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

Function test

tests/python/tirx/test_parser_printer.py:50–60  ·  view source on GitHub ↗
(A_ptr: T.handle)

Source from the content-addressed store, hash-verified

48 # fmt: off
49 @T.prim_func
50 def test(A_ptr: T.handle) -> None:
51 A = T.match_buffer(A_ptr, (64,), "float32", scope="global")
52
53 T.device_entry()
54 bx, by, bz = T.cta_id([1, 1, 1])
55 warp_id = T.warp_id([1])
56 lane_id = T.lane_id([32])
57 A_local = T.alloc_buffer([1], dtype="float16", scope="local")
58 for i in T.serial(2):
59 A_local[0] = A[lane_id * 2 + i]
60 # fmt: on
61
62 code = test.script()
63 assert from_source(code).script() == code

Callers 10

test_float_bitwiseFunction · 0.50
test_shift_boundsFunction · 0.50
test_divide_by_zeroFunction · 0.50
test_vm.jsFile · 0.50
test_tensor.jsFile · 0.50
test_object.jsFile · 0.50

Calls 15

initMethod · 0.95
WarpRoleClass · 0.90
WarpgroupRoleClass · 0.90
get_layout3Function · 0.85
get_layout4Function · 0.85
get_layout1Function · 0.85
get_layout2Function · 0.85
get_layout5Function · 0.85
get_shard_replicaFunction · 0.85
get_shard_offset_singleFunction · 0.85
get_shard_offset_multiFunction · 0.85
get_fullFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…