From c33b55dbc548a2ee781017cdc1940385de81daf9 Mon Sep 17 00:00:00 2001 From: Loren Schwiebert Date: Tue, 1 Feb 2022 14:14:33 -0500 Subject: [PATCH] Update CMake CUDA flags to build code for Ampere architectures --- CMake/GOMCCUDASetup.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMake/GOMCCUDASetup.cmake b/CMake/GOMCCUDASetup.cmake index 1788137a1..9099e3107 100644 --- a/CMake/GOMCCUDASetup.cmake +++ b/CMake/GOMCCUDASetup.cmake @@ -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") @@ -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") @@ -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") @@ -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")