Skip to content

Commit 66f408c

Browse files
authored
[OpenCLKernel] Use barrier with LOCAL_MEM_FENCE (#300)
1 parent fd9dd99 commit 66f408c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenCLKernels.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ end
165165
## Synchronization and Printing
166166

167167
@device_override @inline function KA.__synchronize()
168-
barrier()
168+
SPIRVIntrinsics.barrier(SPIRVIntrinsics.CLK_LOCAL_MEM_FENCE)
169169
end
170170

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

0 commit comments

Comments
 (0)