From fa587df5ff3f782a1fdaa6260a56b1c4fca3d9c6 Mon Sep 17 00:00:00 2001 From: Luc Berger Date: Fri, 8 Nov 2024 14:22:42 -0700 Subject: [PATCH] Ode sycl fix (#2423) * 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 * ODE: formatting Signed-off-by: Luc Berger-Vergiat * ODE: forgot to check if the SYCL space is enabled in Kokkos Signed-off-by: Luc Berger-Vergiat --------- Signed-off-by: Luc Berger-Vergiat --- ode/unit_test/Test_ODE_RK_counts.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ode/unit_test/Test_ODE_RK_counts.hpp b/ode/unit_test/Test_ODE_RK_counts.hpp index a59a9a1754..f76fcb0134 100644 --- a/ode/unit_test/Test_ODE_RK_counts.hpp +++ b/ode/unit_test/Test_ODE_RK_counts.hpp @@ -134,7 +134,12 @@ void test_RK_count() { Test::RK_Count(TestDevice(), TestProblem::EnrightD2(), 1.e-5, 0.0, 590); } Test::RK_Count(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) { +#else if constexpr (RK != KokkosODE::Experimental::RK_type::RKF12) { +#endif Test::RK_Count(TestDevice(), TestProblem::KKStiffChemistry(), 1e-5, 0.0, 1); } }