Skip to content

Commit

Permalink
CMAKE_CUDA_ARCHITECTURES needs CMake 3.18.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Sep 29, 2021
1 parent 707977e commit 734415c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,8 @@ if(QMC_CUDA OR ENABLE_CUDA)
if(QMC_CUDA2HIP)
message(STATUS "CUDA2HIP enabled") # all the HIP and ROCm settings will be handled by ENABLE_ROCM
else(QMC_CUDA2HIP)
if (CMAKE_VERSION VERSION_LESS 3.17.0)
message(FATAL_ERROR "QMC_CUDA or ENABLE_CUDA require CMake 3.17.0 or later")
if (CMAKE_VERSION VERSION_LESS 3.18.0)
message(FATAL_ERROR "QMC_CUDA or ENABLE_CUDA require CMake 3.18.0 or later")
endif()
if(DEFINED CUDA_ARCH)
unset(CUDA_ARCH CACHE)
Expand Down

0 comments on commit 734415c

Please sign in to comment.