MCPcopy Create free account
hub / github.com/tile-ai/tilelang / shared_kernel

Function shared_kernel

testing/python/issue/test_tilelang_issue_1026.py:9–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7def get_shared_kernel():
8 @T.prim_func
9 def shared_kernel():
10 with T.Kernel(1, threads=32):
11 tx = T.get_thread_binding()
12 shared_mem = T.alloc_shared((32), dtype="float32", scope="shared")
13 if tx % 2 == 0:
14 a = shared_mem[tx]
15 shared_mem[tx ^ 1] = a
16
17 return shared_kernel
18

Callers

nothing calls this directly

Calls 1

get_thread_bindingMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…