Skip to content

Commit

Permalink
kokkos_tpls.cmake: update default option to enable rocthrust
Browse files Browse the repository at this point in the history
Avoid configuration issues with Trilinos of the form:
Make Error at kokkos/cmake/kokkos_tpls.cmake:29 (MESSAGE):
 Enabled TPL ROCTHRUST inside TriBITS build, but this can only be enabled in
 a standalone build
  • Loading branch information
ndellingwood committed Mar 14, 2024
1 parent 5931cbd commit 49bd895
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/kokkos_tpls.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ IF(KOKKOS_ENABLE_HIP AND NOT KOKKOS_CXX_COMPILER_ID STREQUAL HIPCC AND NOT
ELSE()
SET(ROCM_DEFAULT OFF)
ENDIF()
IF(KOKKOS_ENABLE_HIP AND NOT KOKKOS_HAS_TRILINOS)
SET(ROCTHRUST_DEFAULT ON)
ELSE()
SET(ROCTHRUST_DEFAULT OFF)
ENDIF()
KOKKOS_TPL_OPTION(ROCM ${ROCM_DEFAULT})
KOKKOS_TPL_OPTION(ROCTHRUST ${KOKKOS_ENABLE_HIP})
KOKKOS_TPL_OPTION(ROCTHRUST ${ROCTHRUST_DEFAULT})

IF(KOKKOS_ENABLE_SYCL AND NOT KOKKOS_HAS_TRILINOS)
SET(ONEDPL_DEFAULT ON)
Expand Down

0 comments on commit 49bd895

Please sign in to comment.