Skip to content

Commit

Permalink
MueLu: kokkos: add logic to cmake for Kokkos Refactor
Browse files Browse the repository at this point in the history
One cannot use Kokkos Refactor in MueLu without enabling it in Xpetra.
This commit starts throwing an error if that is not the case.
  • Loading branch information
aprokop committed Feb 4, 2016
1 parent 420ef6a commit 756e9c5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/muelu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ TRIBITS_ADD_OPTION_AND_DEFINE(
"Enable MueLu code refactored to use Kokkos."
NO)

IF (${PACKAGE_NAME}_ENABLE_Kokkos_Refactor AND NOT Xpetra_ENABLE_KokkosRefactor)
MESSAGE(FATAL_ERROR "Kokkos Refactor in MueLu requires one to also enable Kokkos Refactor in Xpetra (-DXpetra_ENABLE_KokkosRefactor:BOOL=ON).")
ENDIF()

# Define HAVE_MUELU_STRATIMIKOS if Stratimikos package is enabled
ASSERT_DEFINED(${PACKAGE_NAME}_ENABLE_Stratimikos)
GLOBAL_SET(HAVE_${PACKAGE_NAME_UC}_STRATIMIKOS ${${PACKAGE_NAME}_ENABLE_Stratimikos})
Expand Down

0 comments on commit 756e9c5

Please sign in to comment.