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

Function test_ex_8_6_factor_fail

tests/python/tirx/test_exec_context.py:235–242  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233
234
235def test_ex_8_6_factor_fail():
236 ctx = ExecContext.at_kernel_entry(warp_ext=16).with_scope_switch(CTA)
237 # with_filter recomputes (inter, intra) for current scope_kind=cta -- still OK
238 ctx2 = ctx.with_filter(WARP_FLAT, 2, 6)
239 assert ctx2.A.warpid == AxisRange(4, 2)
240 # scope_switch to warpgroup is the one that must fail
241 with pytest.raises(ExecContextError, match="crosses warpgroup boundary"):
242 ctx2.with_scope_switch(WARPGROUP)
243
244
245# ---------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 4

AxisRangeClass · 0.90
with_scope_switchMethod · 0.80
at_kernel_entryMethod · 0.80
with_filterMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…