Cutlass Build Fail


I’m trying to build Cutlass with CUDA 11 and Visual Studio 2019.

I clone the git repo but when I try to call cmake -G “Visual Studio 16 2019” … I get the following error:

– CMake Version: 3.17.20032601-MSVC_2
– Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.17134.
– The CUDA compiler identification is unknown
CMake Error at CUDA.cmake:40 (enable_language):
No CMAKE_CUDA_COMPILER could be found.

Digging into the error output file is a little more illuminating (see the bottom of this post). It seems to be trying to build the intermediates in C:\Windows\System32\Debug. I also noticed when I create CUDA template solution in VS I also get this problem and have to manually set the Intermediate/Output folder to be e.g. $ProjectFolder bin\Degub etc.

Is there any way to fix the default folder in a template? Or override the directory CMake script for the Cutlass Build? Apologies if this is int eh wrong place, I’m new to these forums and this was the closest i could find!


C:/Users/ManningB/AppData/Local/Temp/2/tmpxft_000284f4_00000000-6_CMakeCUDACompilerId.cudafe1.cpp : fatal error C1041: cannot open program database ‘C:\Windows\System32\Debug\vc142.pdb’; if multiple CL.EXE write to the same .PDB file, please use /FS [C:\Code\cutlass-master\CUTLASS\build\CMakeFiles\3.17.20032601-MSVC_2\CompilerIdCUDA\CompilerIdCUDA.vcxproj]

–error 0x2 –

C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Microsoft\VC\v160\BuildCustomizations\CUDA 11.0.targets(770,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\bin\nvcc.exe” -gencode=arch=compute_52,code=“sm_52,compute_52” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --machine 64 --compile -cudart static -v -g -D_MBCS -Xcompiler “/EHsc /W0 /nologo /Od /FdDebug\vc142.pdb /FS /Zi /RTC1 /MDd " -o Debug\ “C:\Code\cutlass-master\CUTLASS\build\CMakeFiles\3.17.20032601-MSVC_2\CompilerIdCUDA\”” exited with code 2. [C:\Code\cutlass-master\CUTLASS\build\CMakeFiles\3.17.20032601-MSVC_2\CompilerIdCUDA\CompilerIdCUDA.vcxproj]