From 496d04cd8524e48d1631293c6471d26ab6dd2e3b Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Wed, 29 Mar 2023 18:58:51 -0400 Subject: [PATCH] Weaken the Fence --- Grid/threads/Accelerator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grid/threads/Accelerator.h b/Grid/threads/Accelerator.h index 2dde1433..7336cfd4 100644 --- a/Grid/threads/Accelerator.h +++ b/Grid/threads/Accelerator.h @@ -525,7 +525,7 @@ inline void acceleratorFreeCpu (void *ptr){free(ptr);}; ////////////////////////////////////////////// #ifdef GRID_SYCL -inline void acceleratorFenceComputeStream(void){ accelerator_barrier();}; +inline void acceleratorFenceComputeStream(void){ theGridAccelerator->submit_barrier();}; #else // Ordering within a stream guaranteed on Nvidia & AMD inline void acceleratorFenceComputeStream(void){ };