Skip to content

Commit f600e50

Browse files
authored
KA.__synchronize, add GLOBAL_MEM_FENCE semantic (#618)
1 parent eb8ea8e commit f600e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pocl/backend.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ end
189189
## Synchronization and Printing
190190

191191
@device_override @inline function KA.__synchronize()
192-
SPIRVIntrinsics.barrier(SPIRVIntrinsics.CLK_LOCAL_MEM_FENCE)
192+
SPIRVIntrinsics.barrier(SPIRVIntrinsics.CLK_LOCAL_MEM_FENCE | SPIRVIntrinsics.CLK_GLOBAL_MEM_FENCE)
193193
end
194194

195195
@device_override @inline function KA.__print(args...)

0 commit comments

Comments
 (0)