()
| 8 | def 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()) |
no test coverage detected
searching dependent graphs…