From 97b85d34f253c2fa33e76603db3f1d85cc90fcf0 Mon Sep 17 00:00:00 2001 From: Ethan Puyaubreau Date: Thu, 12 Jun 2025 16:02:38 -0400 Subject: [PATCH] Fix GPU architecture in CUDA preset for Kokkos --- cmake/presets/kokkos-cuda.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmake/presets/kokkos-cuda.cmake b/cmake/presets/kokkos-cuda.cmake index 31942b8fae..bb311839f8 100644 --- a/cmake/presets/kokkos-cuda.cmake +++ b/cmake/presets/kokkos-cuda.cmake @@ -1,9 +1,8 @@ # preset that enables KOKKOS and selects CUDA compilation with OpenMP -# enabled as well. The GPU architecture *must* match your hardware +# enabled as well. The GPU architecture *must* match your hardware (If not manually set, Kokkos will try to autodetect it). set(PKG_KOKKOS ON CACHE BOOL "" FORCE) set(Kokkos_ENABLE_SERIAL ON CACHE BOOL "" FORCE) set(Kokkos_ENABLE_CUDA ON CACHE BOOL "" FORCE) -set(Kokkos_ARCH_PASCAL60 ON CACHE BOOL "" FORCE) set(BUILD_OMP ON CACHE BOOL "" FORCE) get_filename_component(NVCC_WRAPPER_CMD ${CMAKE_CURRENT_SOURCE_DIR}/../lib/kokkos/bin/nvcc_wrapper ABSOLUTE) set(CMAKE_CXX_COMPILER ${NVCC_WRAPPER_CMD} CACHE FILEPATH "" FORCE)