Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into ebourne_tensor_type
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyBourne committed Feb 10, 2025
2 parents e8e6d79 + 9d763a1 commit a835ed8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,15 @@ if("${GYSELALIBXX_INCLUDE_TESTING_DEPENDENCIES}")
endif()
endif()

## Use Kokkos from `vendor/`
if("${Kokkos_ENABLE_CUDA}")
option(Kokkos_ENABLE_CUDA_CONSTEXPR "Whether to activate experimental relaxed constexpr functions" ON)
option(Kokkos_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE "Whether to enable relocatable device code (RDC) for CUDA" ON)
find_package(Kokkos 4.4.1)
if(NOT "${Kokkos_FOUND}")
## Use Kokkos from `vendor/`
if("${Kokkos_ENABLE_CUDA}")
option(Kokkos_ENABLE_CUDA_CONSTEXPR "Whether to activate experimental relaxed constexpr functions" ON)
option(Kokkos_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE "Whether to enable relocatable device code (RDC) for CUDA" ON)
endif()
add_subdirectory("vendor/kokkos/" "kokkos") # SYSTEM)
endif()
add_subdirectory("vendor/kokkos/" "kokkos") # SYSTEM)

# NOTE: Do not forget to keep Kokkos and Kokkos-kernels in sync !
set(KokkosKernels_ENABLE_ALL_COMPONENTS OFF CACHE BOOL "")
Expand Down

0 comments on commit a835ed8

Please sign in to comment.