Skip to content

Commit

Permalink
Merge pull request #3946 from anagainaru/dataman-kokkos-bug
Browse files Browse the repository at this point in the history
Set the compiler for the Kokkos DataMan example
  • Loading branch information
anagainaru committed Nov 28, 2023
2 parents 49158d0 + 1b01e75 commit ee2db16
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/hello/datamanKokkos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,16 @@ if(NOT TARGET adios2_core)

find_package(ZeroMQ 4.1 QUIET)

find_package(Kokkos 3.7 QUIET)
if(Kokkos_FOUND AND DEFINED Kokkos_CXX_COMPILER)
set(CMAKE_CXX_COMPILER "${Kokkos_CXX_COMPILER}")
endif()

find_package(ADIOS2 REQUIRED COMPONENTS ${_components})
else()
if(DEFINED Kokkos_CXX_COMPILER)
set(CMAKE_CXX_COMPILER "${Kokkos_CXX_COMPILER}")
endif()
endif()

if(ADIOS2_HAVE_MPI AND ADIOS2_HAVE_DataMan)
Expand Down

0 comments on commit ee2db16

Please sign in to comment.