From 1e889c93b8dee7d363f2e2db23c4dd1f008ec20f Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Sat, 15 Jun 2019 08:23:26 +0100 Subject: [PATCH] Insert a GPU synchronise --- Grid/stencil/Stencil.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Grid/stencil/Stencil.h b/Grid/stencil/Stencil.h index f7b31fed..1015e132 100644 --- a/Grid/stencil/Stencil.h +++ b/Grid/stencil/Stencil.h @@ -511,8 +511,9 @@ public: HaloGatherDir(source,compress,point,face_idx); } face_table_computed=1; - assert(u_comm_offset==_unified_buffer_size); + + accelerator_barrier(); halogtime+=usecond(); } @@ -972,7 +973,6 @@ public: assert(shift>=0); assert(shift_slice_nblock[dimension]*_grid->_slice_block[dimension]; int cb= (cbmask==0x2)? Odd : Even;