You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" CUDA Language Support Not Found (with MSVC ${MSVC_VERSION} >= 1941)\n"
27
27
" \n"
28
-
" The MSVC STL included with MSVC 1941 requires CUDA 12.4 or newer\n"
29
-
" If you have CUDA <= 12.3 installed you must either:\n"
28
+
" The MSVC STL included with MSVC >= 1941 requires CUDA >= 12.4\n"
29
+
" If you have CUDA < 12.4 installed you must either:\n"
30
+
" \n"
31
+
" - Set the NVCC_PREPEND_FLAGS environment variable to include '-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH -allow-unsupported-compiler' for configuration and compilation\n"
30
32
" - Upgrade CUDA to >= 12.4\n"
31
33
" - Downgrade MSVC to 1940 and set the CUDAFLAGS environment variable to contain '-allow-unsupported-compiler'\n"
32
34
" - Downgrade MSVC to 1939 or older\n"
33
-
" You must then clear the CMake cache before reconfiguring\n"
35
+
" \n"
36
+
" You must clear the CMake Cache before reconfiguring this project\n"
34
37
)
35
38
# If using MSVC >= 1940 then CUDA <= 12.3 support requires -allow-unsupported-compiler, so warn about this
# If this is the case, then CMake >= 3.29.4 is also required, otherwise CMake does not pass -allow-unsupported-compiler along, warn as appropriate
38
41
if(CMAKE_VERSIONVERSION_LESS"3.29.4")
39
42
message(WARNING
40
-
" CUDA Language Support Not Found (with MSVC ${MSVC_VERSION} >= 1940)\n"
43
+
" CUDA Language Support Not Found (with MSVC ${MSVC_VERSION} >= 1940 and CMake < 3.29.4)\n"
44
+
" \n"
45
+
" If you have CUDA <= 12.3 installed you must either:\n"
41
46
" \n"
42
-
" If you have CUDA <= 12.3 installed:\n"
43
-
" - You must upgrade CMake to be >= 3.29.4\n"
44
-
" The CUDAFLAGS environment variable must include '-allow-unsupported-compiler'\n"
45
-
" You must clear the CMake Cache before reconfiguring this project\n"
47
+
" - Set the NVCC_PREPEND_FLAGS environment variable to include '-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH -allow-unsupported-compiler' for configuration and compilation\n"
48
+
" - Upgrade CMake to >= 3.29.4 and set the CUDAFLAGS environment variable to contain '-allow-unsupported-compiler'\n"
49
+
" - Upgrade CUDA to >= 12.4\n"
50
+
" - Downgrade MSVC to 1939 or older\n"
51
+
" \n"
52
+
" You must clear the CMake Cache before reconfiguring this project\n"
46
53
" \n"
47
-
" - Alternatively you may upgrade CUDA to >= 12.4 and clear the CMake Cache before reconfiguring\n"
48
54
)
49
55
else()
50
56
message(WARNING
51
-
" CUDA Language Support Not Found (with MSVC ${MSVC_VERSION} >= 1940)\n"
57
+
" CUDA Language Support Not Found (with MSVC ${MSVC_VERSION} >= 1940 and CMake >= 3.29.4)\n"
58
+
" \n"
59
+
" If you have CUDA <= 12.3 installed you must either:\n"
60
+
" \n"
61
+
" - Set the NVCC_PREPEND_FLAGS environment variable to include '-D_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH -allow-unsupported-compiler' for configuration and compilation\n"
62
+
" - Set the CUDAFLAGS environment variable to contain '-allow-unsupported-compiler'\n"
63
+
" - Upgrade CUDA to >= 12.4\n"
64
+
" - Downgrade MSVC to 1939 or older\n"
52
65
" \n"
53
-
" If you have CUDA <= 12.3 installed:\n"
54
-
" - The CUDAFLAGS environment variable must include '-allow-unsupported-compiler'\n"
55
-
" You must clear the CMake Cache before reconfiguring this project\n"
66
+
" You must clear the CMake Cache before reconfiguring this project\n"
56
67
" \n"
57
-
" - Alternatively you may upgrade CUDA to >= 12.4 and clear the CMake Cache before reconfiguring\n"
0 commit comments