Require CUDA 10.0+ in CMake build (#5718)
This commit is contained in:
parent
75a0025a3d
commit
fdbb6ae856
@ -92,6 +92,9 @@ if (USE_CUDA)
|
|||||||
message(STATUS "Configured CUDA host compiler: ${CMAKE_CUDA_HOST_COMPILER}")
|
message(STATUS "Configured CUDA host compiler: ${CMAKE_CUDA_HOST_COMPILER}")
|
||||||
|
|
||||||
enable_language(CUDA)
|
enable_language(CUDA)
|
||||||
|
if (${CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS 10.0)
|
||||||
|
message(FATAL_ERROR "CUDA version must be at least 10.0!")
|
||||||
|
endif()
|
||||||
set(GEN_CODE "")
|
set(GEN_CODE "")
|
||||||
format_gencode_flags("${GPU_COMPUTE_VER}" GEN_CODE)
|
format_gencode_flags("${GPU_COMPUTE_VER}" GEN_CODE)
|
||||||
message(STATUS "CUDA GEN_CODE: ${GEN_CODE}")
|
message(STATUS "CUDA GEN_CODE: ${GEN_CODE}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user