From 763b5f3cdc180e0ade87d2c4ad785cb9a47287ce Mon Sep 17 00:00:00 2001 From: Nikita Titov Date: Mon, 1 Feb 2021 14:09:53 +0300 Subject: [PATCH] [CUDA][docs] explicitly require CUDA 9.0 or higher (#3885) --- CMakeLists.txt | 6 +++--- docs/Installation-Guide.rst | 2 +- python-package/README.rst | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a06c2032f..3d2dbad3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,7 +153,7 @@ if(__INTEGRATE_OPENCL) endif(__INTEGRATE_OPENCL) if(USE_CUDA) - find_package(CUDA REQUIRED) + find_package(CUDA 9.0 REQUIRED) include_directories(${CUDA_INCLUDE_DIRS}) LIST(APPEND CMAKE_CUDA_FLAGS -Xcompiler=${OpenMP_CXX_FLAGS} -Xcompiler=-fPIC -Xcompiler=-Wall) @@ -161,8 +161,8 @@ if(USE_CUDA) if(CUDA_VERSION VERSION_GREATER_EQUAL "10.0") list(APPEND CUDA_ARCHS "7.5") endif() - list(POP_BACK CUDA_ARCHS CUDA_LAST_SUPORTED_VERSION) - list(APPEND CUDA_ARCHS "${CUDA_LAST_SUPORTED_VERSION}+PTX") + list(POP_BACK CUDA_ARCHS CUDA_LAST_SUPPORTED_ARCH) + list(APPEND CUDA_ARCHS "${CUDA_LAST_SUPPORTED_ARCH}+PTX") CUDA_SELECT_NVCC_ARCH_FLAGS(CUDA_ARCH_FLAGS ${CUDA_ARCHS}) LIST(APPEND CMAKE_CUDA_FLAGS ${CUDA_ARCH_FLAGS}) diff --git a/docs/Installation-Guide.rst b/docs/Installation-Guide.rst index 2bd0969a6..a5c0b2d27 100644 --- a/docs/Installation-Guide.rst +++ b/docs/Installation-Guide.rst @@ -594,7 +594,7 @@ On Linux a CUDA version of LightGBM can be built using **CUDA**, **CMake** and * The following dependencies should be installed before compilation: -- **CUDA** libraries. Please refer to `this detailed guide`_. +- **CUDA** 9.0 or later libraries. Please refer to `this detailed guide`_. - **CMake** 3.16 or later. diff --git a/python-package/README.rst b/python-package/README.rst index dd6f4b21d..7f4d2d357 100644 --- a/python-package/README.rst +++ b/python-package/README.rst @@ -119,7 +119,7 @@ Build CUDA Version All requirements from `Build from Sources section <#build-from-sources>`__ apply for this installation option as well, and `CMake`_ (version 3.16 or higher) is strongly required. -**CUDA** library is needed: details for installation can be found in `Installation Guide `__. +**CUDA** library (version 9.0 or higher) is needed: details for installation can be found in `Installation Guide `__. Build HDFS Version ~~~~~~~~~~~~~~~~~~