Skip to content

Commit a2a0189

Browse files
authored
-move to Kokkos 4.4 (#289)
-prevent Async malloc automatically (cf issues with JZ) -update include dir for Kokkos as recommended in the documentation
1 parent ec0594d commit a2a0189

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,12 @@ include(SetRequiredBuildSettingsForGCC8)
4545
#Idefix requires Cuda Lambdas (experimental)
4646
if(Kokkos_ENABLE_CUDA)
4747
set(Kokkos_ENABLE_CUDA_LAMBDA ON CACHE BOOL "Idefix requires lambdas on Cuda" FORCE)
48+
set(Kokkos_ENABLE_IMPL_CUDA_MALLOC_ASYNC OFF CACHE BOOL "Disable Async malloc to avoid bugs on PSM2" FORCE)
4849
endif()
4950

5051
# Add kokkos CMAKE files (required early since these set compiler options)
5152
add_subdirectory(src/kokkos build/kokkos)
53+
include_directories(${Kokkos_INCLUDE_DIRS_RET})
5254

5355
# Add Idefix CXX Flags
5456
add_compile_options(${Idefix_CXX_FLAGS})

src/kokkos

Submodule kokkos updated 273 files

0 commit comments

Comments
 (0)