Skip to content

Commit

Permalink
Merge pull request #20 from G-071/relax-kokkos-version-requirement
Browse files Browse the repository at this point in the history
Relax required Kokkos version
  • Loading branch information
msimberg authored Jul 28, 2023
2 parents 246b4b8 + 5b96d63 commit 283e345
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ set(HPX_KOKKOS_VERSION_STRING "${HPX_KOKKOS_VERSION_MAJOR}.${HPX_KOKKOS_VERSION_

# Dependencies
find_package(HPX 1.8.1 REQUIRED)
# TODO: The version requirement needs to be bumped once
# https://github.com/kokkos/kokkos/pull/5628 is merged and released.
find_package(Kokkos 3.7.99 REQUIRED)
find_package(Kokkos 3.6.00 REQUIRED)

# Check that Kokkos and HPX options are consistent.

if(Kokkos_VERSION VERSION_LESS 4.1.00)
message(INFO " Using Kokkos Version with HPX futures backend")
kokkos_check(DEVICES HPX OPTIONS HPX_ASYNC_DISPATCH)
else()
message(INFO " Using Kokkos Version with HPX Sender/Receiver backend")
kokkos_check(DEVICES HPX)
endif()

if(Kokkos_ENABLE_CUDA)
kokkos_check(OPTIONS CUDA_LAMBDA CUDA_LAMBDA)
Expand Down

0 comments on commit 283e345

Please sign in to comment.