I’m building some programs using different versions of the CUDA toolkit (and driver), using GitHub Action runners. I’m using the windows-2025 image (also tried it using windows-2022). Building works for me with a bunch of CUDA 12.x versions, but - fails with CUDA 13.0, already at the CMake configuration stage: CMake tries to compile a toy program, CMakeCUDACompilerId.cu, but fails locating a CUDA include file, crt/host_config.h. The CMake version is 3.31.6 . I’m not sure if I need a newer CMake, or maybe the CUDA installation has changed somehow in v13.0 and my workflow script has not installed it fully/properly.
Can someone help me pinpoint the problem?
Links:
Relevant log snippet:
#$ resource file C:\Users\RUNNER~1\AppData\Local\Temp/tmpxft_00002294_00000000-8.res: [-D__CUDA_ARCH_LIST__=750 -nologo -E -TP -EHsc -D__CUDACC__ -D__NVCC__ -D__CUDACC_DEBUG__ /EHsc /W0 /nologo /Od /FS /Zi /RTC1 /MDd /FdDebug\vc143.pdb -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.0/include" -I"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v13.0/include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\bin/../include" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0\bin/../include/cccl" -D "_MBCS" -D__CUDACC_VER_MAJOR__=13 -D__CUDACC_VER_MINOR__=0 -D__CUDACC_VER_BUILD__=88 -D__CUDA_API_VER_MAJOR__=13 -D__CUDA_API_VER_MINOR__=0 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -D__CUDACC_DEVICE_ATOMIC_BUILTINS__=1 -FI "cuda_runtime.h" -Zi "D:\a\cuda-api-wrappers\cuda-api-wrappers\build\CMakeFiles\3.31.6\CompilerIdCUDA\CMakeCUDACompilerId.cu" ]
#$ cl.exe -D__NV_NO_HOST_COMPILER_CHECK=1 @"C:\Users\RUNNER~1\AppData\Local\Temp/tmpxft_00002294_00000000-8.res" > "C:/Users/RUNNER~1/AppData/Local/Temp/tmpxft_00002294_00000000-6_CMakeCUDACompilerId.cpp4.ii"
CMakeCUDACompilerId.cu
C:\Program Files\NVIDIA GPU Computing
Toolkit\CUDA\v13.0\include\cuda_runtime.h(82): fatal error C1083: Cannot
open include file: 'crt/host_config.h': No such file or directory
[D:\a\cuda-api-wrappers\cuda-api-wrappers\build\CMakeFiles\3.31.6\CompilerIdCUDA\CompilerIdCUDA.vcxproj]