Skip to content

Commit

Permalink
Update CMake CUDA flags to build code for Ampere architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
LSchwiebert committed Feb 1, 2022
1 parent 1ef1ccb commit c33b55d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMake/GOMCCUDASetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if(ENSEMBLE_GPU_NVT)
set_target_properties(GPU_NVT PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
OUTPUT_NAME ${GPU_NVT_name}
CUDA_ARCHITECTURES "35;60;70"
CUDA_ARCHITECTURES "35;60;70;80"
COMPILE_FLAGS "${GPU_NVT_flags}")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
message("-- Debug build type detected, GPU_NVT setting CUDA_RESOLVE_DEVICE_SYMBOLS ON")
Expand All @@ -63,7 +63,7 @@ if(ENSEMBLE_GPU_GEMC)
set_target_properties(GPU_GEMC PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
OUTPUT_NAME ${GPU_GE_name}
CUDA_ARCHITECTURES "35;60;70"
CUDA_ARCHITECTURES "35;60;70;80"
COMPILE_FLAGS "${GPU_GE_flags}")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
message("-- Debug build type detected, GPU_GEMC setting CUDA_RESOLVE_DEVICE_SYMBOLS ON")
Expand All @@ -83,7 +83,7 @@ if(ENSEMBLE_GPU_GCMC)
set_target_properties(GPU_GCMC PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
OUTPUT_NAME ${GPU_GC_name}
CUDA_ARCHITECTURES "35;60;70"
CUDA_ARCHITECTURES "35;60;70;80"
COMPILE_FLAGS "${GPU_GC_flags}")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
message("-- Debug build type detected, GPU_GCMC setting CUDA_RESOLVE_DEVICE_SYMBOLS ON")
Expand All @@ -103,7 +103,7 @@ if(ENSEMBLE_GPU_NPT)
set_target_properties(GPU_NPT PROPERTIES
CUDA_SEPARABLE_COMPILATION ON
OUTPUT_NAME ${GPU_NPT_name}
CUDA_ARCHITECTURES "35;60;70"
CUDA_ARCHITECTURES "35;60;70;80"
COMPILE_FLAGS "${GPU_NPT_flags}")
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
message("-- Debug build type detected, GPU_NPT setting CUDA_RESOLVE_DEVICE_SYMBOLS ON")
Expand Down

0 comments on commit c33b55d

Please sign in to comment.