Mojo function
barrier
barrier()
Performs a synchronization barrier at the block level.
This is equivalent to __syncthreads() in CUDA. All threads in a thread block must execute this function before any thread can proceed past the barrier. This ensures memory operations before the barrier are visible to all threads after the barrier.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!