Skip to content

Commit

Permalink
Ode sycl fix (#2423)
Browse files Browse the repository at this point in the history
* ODE: skipping autocatalytic test on SYCL

For the time being it is unclear why this particular case
leads to a runtime error from the SYCL API?

Signed-off-by: Luc Berger-Vergiat <[email protected]>

* ODE: formatting

Signed-off-by: Luc Berger-Vergiat <[email protected]>

* ODE: forgot to check if the SYCL space is enabled in Kokkos

Signed-off-by: Luc Berger-Vergiat <[email protected]>

---------

Signed-off-by: Luc Berger-Vergiat <[email protected]>
  • Loading branch information
lucbv authored Nov 8, 2024
1 parent 8b66b19 commit fa587df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ode/unit_test/Test_ODE_RK_counts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +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 fa587df

Please sign in to comment.