You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cluster geometry beyond the 2-CTA pair: generalize the multicast mask #49
examples/README.md §8 ends "Generalizing the cluster mask is filed nowhere."
Filing it.
tma_load_2d_multicast_cg2, commit_multicast_cg2 and mma_walk_cg2 all
hardcode the 2-CTA pair. That covers the two things a pair actually needs, and #8 corrected the original claim that multicast was therefore dead code — a
cluster kernel does want tma_load_2d_multicast_cg2, just not for replication:
with the CTA's own bit as the entire mask it supplies a .shared::cluster
barrier operand, which a plain cp.async.bulk.tensor cannot. See the correction
on #24.
What is still unfiled is multicast as replication, which starts paying at
cluster >= 4 and which the _cg2 suffix rules out by name. In a 2x2 cluster, A broadcasts along the N axis and B along the M axis, so each tile is
fetched once and delivered to two CTAs — halving global traffic for the operand
stage. That is the actual point of multicast and nothing in the library can
express it.
Scope
A cluster geometry the library can describe — rank, dimensions, and which
peers share which operand — rather than the implicit "rank 0 and rank 1" the _cg2 functions assume.
Mask construction derived from that geometry instead of hand-built u16
literals at call sites.
The _cg2 entry points generalized or joined by rank-N forms.
Sequencing
This is below the cluster-scope primitives in value. #24's items 1 and 2
(cluster TMEM allocation, cluster-scope semaphore arrival) are what a correct
2-CTA kernel needs today — the GEMM open-codes both — and item 3
(pipeline::run cluster scheduling, now #50) is what a persistent one needs.
This issue is about making a larger cluster pay off, which nothing in the
backlog currently wants.
Worth doing only once a kernel exists that would use it. Filing it so the note
in examples/README.md has somewhere to point, not to schedule it.
Related: #24 (the retraction that clarified what multicast is actually for), #49 (cluster-scope semaphore arrival).
Activity
Name the cluster-scope arrival, and settle who charges the stage's by…