MCPcopy Create free account
hub / github.com/apache/tvm / initial_A

Function initial_A

python/tvm/tirx/exec_context.py:196–204  ·  view source on GitHub ↗

Build A at PrimFunc device entry: all threads active, offsets all zero.

(*, lane_ext: int = 32, warp_ext: int, cta_ext: int = 1)

Source from the content-addressed store, hash-verified

194
195
196def initial_A(*, lane_ext: int = 32, warp_ext: int, cta_ext: int = 1) -> ActiveSet:
197 """Build A at PrimFunc device entry: all threads active, offsets all zero."""
198 return ActiveSet.from_axes(
199 [
200 ("laneid", AxisRange(lane_ext, 0)),
201 ("warpid", AxisRange(warp_ext, 0)),
202 ("cta_id", AxisRange(cta_ext, 0)),
203 ]
204 )
205
206
207def filter_narrow(A: ActiveSet, binding: LaneBinding, lo: int, hi: int) -> ActiveSet:

Calls 2

AxisRangeClass · 0.85
from_axesMethod · 0.80

Used in the wild real call sites across dependent graphs

searching dependent graphs…