From a01d17e8b69c496c92e74221850f5f08523921de Mon Sep 17 00:00:00 2001 From: Pranav Sivaraman <14294205+pranav-sivaraman@users.noreply.github.com> Date: Tue, 16 Jan 2024 08:40:57 -0800 Subject: [PATCH] feat: add RAJA device synchronize options --- src/raja/fasten.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/raja/fasten.hpp b/src/raja/fasten.hpp index 39e5c33..3ebbb99 100644 --- a/src/raja/fasten.hpp +++ b/src/raja/fasten.hpp @@ -255,10 +255,13 @@ template class IMPL_CLS final : public Bude { static void synchronise() { // nothing to do for host devices #if defined(RAJA_ENABLE_CUDA) - cudaDeviceSynchronize(); + RAJA::synchronize(); #endif #if defined(RAJA_ENABLE_HIP) - hipDeviceSynchronize(); + RAJA::synchronize(); +#endif +#if defined(RAJA_ENABLE_SYCL) + RAJA::synchronize(); #endif }