Skip to content

Commit

Permalink
ODE: forgot to check if the SYCL space is enabled in Kokkos
Browse files Browse the repository at this point in the history
Signed-off-by: Luc Berger-Vergiat <[email protected]>
  • Loading branch information
lucbv committed Nov 8, 2024
1 parent b6d2ffe commit cd54c22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ode/unit_test/Test_ODE_RK_counts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,12 @@ void test_RK_count() {
Test::RK_Count<RK>(TestDevice(), TestProblem::EnrightD2(), 1.e-5, 0.0, 590);
}
Test::RK_Count<RK>(TestDevice(), TestProblem::EnrightD4(), 1.e-5, 1.e-9, 932);
#if defined(KOKKOS_ENABLE_SYCL)
if constexpr ((RK != KokkosODE::Experimental::RK_type::RKF12) &&
!std::is_same_v<typename TestDevice::execution_space, Kokkos::Experimental::SYCL>) {
#else
if constexpr (RK != KokkosODE::Experimental::RK_type::RKF12) {
#endif
Test::RK_Count<RK>(TestDevice(), TestProblem::KKStiffChemistry(), 1e-5, 0.0, 1);
}
}
Expand Down

0 comments on commit cd54c22

Please sign in to comment.