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

Function jit_kernel

testing/python/language/test_tilelang_language_var_init.py:10–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8def test_var_assign() -> None:
9 @tilelang.jit(out_idx=-1)
10 def jit_kernel():
11 @T.prim_func
12 def test_var_assign(A: T.Tensor((2,), T.int32)):
13 with T.Kernel(1) as _:
14 a = T.alloc_var(T.int32, init=1)
15 b = T.alloc_var(T.int32, init=a) # b gets value of a
16 a = 2
17 d = T.alloc_var(T.int32, init=a) # c gets new value of a
18 A[0] = b
19 A[1] = d
20
21 print(test_var_assign)
22 return test_var_assign
23
24 kernel = jit_kernel()
25 print(kernel.get_kernel_source())

Callers 15

test_var_assignFunction · 0.85
run_cumsumFunction · 0.85
run_cumsum_1dFunction · 0.85
run_cumsum_region_1dFunction · 0.85
run_cumsum_region_2dFunction · 0.85
run_cummaxFunction · 0.85
run_cummax_1dFunction · 0.85
run_vectorizeFunction · 0.85
test_reduceFunction · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…