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 prior to 11.6 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

Upgrade to CUDA 11.6 or later.

Alternative 2

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 3

  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: 5 Aug 2024