tilelang.layout.partial_fragment¶
Wrapping the reducer partial-fragment layout.
Classes¶
Layout of a reducer's per-thread partials. |
Functions¶
|
The wide plan: every participant holds one full-shape partial. |
Module Contents¶
- class tilelang.layout.partial_fragment.PartialFragment(shape, forward_fn=None, forward_thread_fn=None, replicate=1, forward_index_fn=None, combine=None)¶
Bases:
tilelang.layout.fragment.FragmentLayout of a reducer’s per-thread partials.
Same algebra as Fragment, but the replication coordinate enumerates addends that still await the finalize collective (combine lanes), not equal copies of a finished value. Inferred by layout inference for
local.reducerbuffers, or supplied by the user viaT.annotate_layout({acc: PartialFragment(...)})to pin the reducer’s physical plan.- static from_fragment(fragment)¶
Reinterpret a solved Fragment as per-thread partials.
- Parameters:
fragment (tilelang.layout.fragment.Fragment)
- Return type:
- as_post_collective()¶
The same algebraic map read as a plain Fragment (post-finalize).
- Return type:
- tilelang.layout.partial_fragment.make_fully_replicated_partial_fragment(shape, thread_extent)¶
The wide plan: every participant holds one full-shape partial.
- Return type: