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?
Thank you! We'll create more content like this.
Thank you for helping us improve!