BullseyeCoverage Up Contents Search

Nvidia CUDA: Compiler cl.exe in PATH different than the one specified with -ccbin

SYMPTOMS

nvcc fatal: Compiler 'cl.exe' in PATH different than the one specified with -ccbin

CAUSE

Nvidia CUDA is incompatible with BullseyeCoverage. When nvcc finds the BullseyeCoverage cl.exe, it detects that it is not the Microsoft compiler. Rather than continuing to search, it fails with an error as shown above.

RESOLUTION

Alternative 1

Disable the BullseyeCoverage integration for all versions of Microsoft C++ before building any CUDA projects. You can disable and enable the Microsoft C++ integration using the Coverage Browser menu command Tools Options.

Alternative 2

  1. In the Windows start menu, enter cmd and click Run as administrator. Exercise caution and enter commands carefully.

  2. Use the commands below to disable BullseyeCoverage integration before building your CUDA project.
    C:\Windows\System32> cd %PROGRAMFILES%\BullseyeCoverage\bin
    
    C:\Program Files\BullseyeCoverage\bin> rename cl.exe cl.exe-
    
  3. Use the commands below to re-enable BullseyeCoverage integration after building your CUDA project.
    C:\Windows\System32> cd %PROGRAMFILES%\BullseyeCoverage\bin
    
    C:\Program Files\BullseyeCoverage\bin> rename cl.exe- cl.exe
    

Updated: 9 Aug 2023