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

Function get_kernel

testing/python/transform/test_nullable_buffer_params.py:11–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10 @tilelang.jit
11 def get_kernel():
12 m = T.dynamic("m")
13
14 @T.prim_func
15 def test_kernel(
16 a: T.Tensor[(m,), T.int32],
17 b: T.Tensor[(m,), T.int32],
18 c: T.Tensor[(m,), T.int32],
19 ):
20 with T.Kernel(1, threads=64):
21 tx = T.get_thread_binding()
22 if tx == 0:
23 T.print(m)
24
25 return test_kernel
26
27 m = 200
28 kernel = get_kernel()

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…