From 16ba74d00842f965db7b7c578f098f39ce4cc518 Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Mon, 9 May 2022 04:16:22 +0800 Subject: [PATCH] Update CUDA version requirement in CMake script. (#7876) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f3e66f779..65a698eca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,8 +131,8 @@ if (USE_CUDA) message(STATUS "Configured CUDA host compiler: ${CMAKE_CUDA_HOST_COMPILER}") enable_language(CUDA) - if (${CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS 10.1) - message(FATAL_ERROR "CUDA version must be at least 10.1!") + if (${CMAKE_CUDA_COMPILER_VERSION} VERSION_LESS 11.0) + message(FATAL_ERROR "CUDA version must be at least 11.0!") endif() set(GEN_CODE "") format_gencode_flags("${GPU_COMPUTE_VER}" GEN_CODE)