From 9a43cb59fe4d7df476b39bcb7c350950b57486c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Long?= Date: Mon, 6 Jan 2025 10:09:04 -0800 Subject: [PATCH] Changed waits to be conditional on policy async --- include/RAJA/policy/sycl/scan.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/RAJA/policy/sycl/scan.hpp b/include/RAJA/policy/sycl/scan.hpp index c415fd902c..81e5614b71 100644 --- a/include/RAJA/policy/sycl/scan.hpp +++ b/include/RAJA/policy/sycl/scan.hpp @@ -94,7 +94,7 @@ inclusive_inplace( ii++; } while ( ii <= iterations); - sycl_res.wait(); + if (!Async) { sycl_res.wait(); } return camp::resources::EventProxy(sycl_res); } @@ -183,7 +183,7 @@ exclusive_inplace( ii++; } while ( ii <= iterations); - sycl_res.wait(); + if(!Async) { sycl_res.wait(); } return camp::resources::EventProxy(sycl_res); return inclusive_inplace(sycl_res, exec, begin, end, binary_op); }