MCPcopy Index your code
hub / github.com/apache/tvm / test_fence

Function test_fence

tests/python/tirx/codegen/test_codegen_blackwell.py:97–105  ·  view source on GitHub ↗
(A: T.Buffer((16, 16), "float16"))

Source from the content-addressed store, hash-verified

95 # fmt: off
96 @T.prim_func
97 def test_fence(A: T.Buffer((16, 16), "float16")):
98 T.device_entry()
99 cta_id = T.cta_id([1])
100 warp_id = T.warp_id([4])
101 lane_id = T.lane_id([32])
102 tid = T.thread_id([128])
103 T.ptx.tcgen05.fence.before_thread_sync()
104 T.ptx.bar.sync(0, 32)
105 T.ptx.tcgen05.fence.after_thread_sync()
106 # fmt: on
107
108 target = tvm.target.Target("cuda")

Callers

nothing calls this directly

Calls 2

cta_idMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…