For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
init_clc_barriers
init_clc_barriers[num_clc_stages: Int](clc_full_ptr: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED], clc_empty_ptr: UnsafePointer[SharedMemBarrier, MutAnyOrigin, address_space=AddressSpace.SHARED], clc_producer_arv_count: Int32, clc_consumer_arv_count: Int32)
Initialize CLC full/empty barrier pairs.
Called inside the elect_one_warp && elect_one_thread guard for CLC-enabled kernels (default, block_scaled, blockwise_fp8, grouped_2sm).
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!