Skip to content

Commit

Permalink
More accurate stopper message.
Browse files Browse the repository at this point in the history
  • Loading branch information
ye-luo committed Sep 29, 2021
1 parent 761745b commit 707977e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,8 @@ if(QMC_CUDA OR ENABLE_CUDA)
message(FATAL_ERROR "QMC_CUDA or ENABLE_CUDA require CMake 3.17.0 or later")
endif()
if(DEFINED CUDA_ARCH)
message(FATAL_ERROR "Use CMAKE_CUDA_ARCHITECTURES instead of CUDA_ARCH variable")
unset(CUDA_ARCH CACHE)
message(FATAL_ERROR "CUDA_ARCH option has been removed. Use -DCMAKE_CUDA_ARCHITECTURES=80 if -DCUDA_ARCH=sm_80 was used.")
endif()
if(NOT DEFINED CMAKE_CUDA_ARCHITECTURES)
set(CMAKE_CUDA_ARCHITECTURES 70)
Expand Down

0 comments on commit 707977e

Please sign in to comment.