Skip to content

Commit ce75949

Browse files
author
Salinas, David
authored
Fix missing sync in init (llvm#870) (llvm#911)
2 parents c5587e7 + 254b1c6 commit ce75949

File tree

1 file changed

+3
-0
lines changed
  • amd/device-libs/ockl/src

1 file changed

+3
-0
lines changed

amd/device-libs/ockl/src/dm.cl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,9 @@ __ockl_dm_init_v1(ulong hp, ulong sp, uint hb, uint nis)
950950
}
951951
}
952952

953+
__builtin_amdgcn_fence(__ATOMIC_RELEASE, "agent", "global");
954+
__builtin_amdgcn_s_barrier();
955+
953956
if (lid == 0) {
954957
__global heap_t *thp = (__global heap_t *)hp;
955958
AS(&thp->initial_slabs, sp, memory_order_relaxed);

0 commit comments

Comments
 (0)