Skip to main content
Log in

Mojo function

mbarrier_init

mbarrier_init[type: AnyType](shared_mem: UnsafePointer[type, address_space=3, alignment=alignment, mut=mut, origin=origin], num_threads: SIMD[int32, 1])

Initialize shared memory barrier for N number of threads.

Args:

  • shared_mem (UnsafePointer[type, address_space=3, alignment=alignment, mut=mut, origin=origin]): Shared memory barrier to initialize.
  • num_threads (SIMD[int32, 1]): Number of threads participating.