From 1453cca029725d1d6e8ac9105ee9a184b96f05a6 Mon Sep 17 00:00:00 2001 From: Geoffroy Lesur Date: Mon, 16 Dec 2024 08:45:38 +0100 Subject: [PATCH] remove force disable cuda malloc async following update to 4.5 https://kokkos.org/kokkos-core-wiki/known-issues.html#cuda --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8df0de73..8b503fad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,8 @@ include(SetRequiredBuildSettingsForGCC8) #Idefix requires Cuda Lambdas (experimental) if(Kokkos_ENABLE_CUDA) set(Kokkos_ENABLE_CUDA_LAMBDA ON CACHE BOOL "Idefix requires lambdas on Cuda" FORCE) - set(Kokkos_ENABLE_IMPL_CUDA_MALLOC_ASYNC OFF CACHE BOOL "Disable Async malloc to avoid bugs on PSM2" FORCE) + # CUDA_MALLOC_ASYNC disbaled by default in Kokkos 4.5, so not required here + #set(Kokkos_ENABLE_IMPL_CUDA_MALLOC_ASYNC OFF CACHE BOOL "Disable Async malloc to avoid bugs on PSM2" FORCE) endif() # Add kokkos CMAKE files (required early since these set compiler options)