VS: CUDA 11.1 and 11.2 not detected.
The error:
The CUDA compiler identification is unknown
CMake Error at CMakeLists.txt:77 (enable_language):
No CMAKE_CUDA_COMPILER could be found.
The code leading to the error:
...
if (${ASTRAY_SHARED_DEVICE} STREQUAL cuda)
enable_language(CUDA)
find_package (CUDA REQUIRED)
list (APPEND PROJECT_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CUDA>:--extended-lambda --use_fast_math --expt-relaxed-constexpr>)
list (APPEND PROJECT_COMPILE_OPTIONS $<$<COMPILE_LANGUAGE:CUDA>:-gencode arch=compute_75,code=sm_75>)
import_library (CUDA_INCLUDE_DIRS CUDA_LIBRARIES)
set (CUDA_LINK_LIBRARIES_KEYWORD PUBLIC)
set (CUDA_SEPARABLE_COMPILATION ON)
elseif (${ASTRAY_SHARED_DEVICE} STREQUAL omp)
...
Tested with CMake 3.19.5 and 3.20.0-rc1 on Windows 10 64 bit. CUDA 11.1 and 11.2 are installed with default settings in the default directory. There is also no entry in the cache which I can use to explicitly set the directory. There are a bunch of other open CUDA issues, but none exactly fit this. Please close if this is redundant or captured by another issue.
This was working fine a few months ago when I started writing the library. I sadly do not remember the CMake or CUDA versions from the last time it worked.
Please let me know if I can provide more information.