From 701f32e92fb2602f76b7afe594454e026f8f53c7 Mon Sep 17 00:00:00 2001 From: "William M. Hasling" Date: Thu, 13 Jun 2024 13:24:48 -0400 Subject: [PATCH] add CUDA_ARCHITECTURES --- pfsimulator/parflow_exe/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pfsimulator/parflow_exe/CMakeLists.txt b/pfsimulator/parflow_exe/CMakeLists.txt index 053247a2f..3dd5fcae8 100644 --- a/pfsimulator/parflow_exe/CMakeLists.txt +++ b/pfsimulator/parflow_exe/CMakeLists.txt @@ -23,6 +23,7 @@ if (${PARFLOW_HAVE_HYPRE}) target_link_libraries(parflow PRIVATE CUDA::curand) target_link_libraries(parflow PRIVATE CUDA::cusparse) target_link_libraries(parflow PRIVATE CUDA::cublas) + set_target_properties(parflow PROPERTIES CUDA_ARCHITECTURES "35;50;;70;72") endif (PARFLOW_ACCELERATOR_BACKEND STREQUAL "cuda") endif (${PARFLOW_HAVE_HYPRE})