Skip to main content
Log in

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.