Skip to content

Commit

Permalink
Require CUDA 10.0+ in CMake build (#5718)
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 authored May 27, 2020
1 parent 75a0025 commit fdbb6ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ if (USE_CUDA)
message(STATUS "Configured CUDA host compiler: ${CMAKE_CUDA_HOST_COMPILER}")

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 "")
format_gencode_flags("${GPU_COMPUTE_VER}" GEN_CODE)
message(STATUS "CUDA GEN_CODE: ${GEN_CODE}")
Expand Down

0 comments on commit fdbb6ae

Please sign in to comment.