Skip to main content

Mojo function

increment_counter_if_first_thread

increment_counter_if_first_thread(counter: UnsafePointer[Int32, origin, address_space=AddressSpace.SHARED], increment: Int32)

Atomically increment counter, but only from the first thread in warp.

Was this page helpful?