VS: CUDA 10.1 integration not working
I recently replaced CUDA 10 with 10.1 on Windows 10 and now CMake can no longer find it. The error message is:
CMake Error at C:/Program Files/CMake/share/cmake-3.14/Modules/CMakeDetermineCompilerId.cmake:285 (message):
No CUDA toolset found.
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.14/Modules/CMakeDetermineCompilerId.cmake:31 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Program Files/CMake/share/cmake-3.14/Modules/CMakeDetermineCUDACompiler.cmake:72 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:111 (enable_language)
Configuring incomplete, errors occurred!
I've got the same error using latest stable (3.13.4), -rc (3.14.0-rc4) and even a recent nightly (20190308).
nvcc
is in PATH, and issuing a nvcc --version
in a cmd prompt gives:
C:\>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Fri_Feb__8_19:08:26_Pacific_Standard_Time_2019
Cuda compilation tools, release 10.1, V10.1.105
Edited by Brad King