(A: T.Buffer((4,), dtype))
| 819 | def test_const(dtype): |
| 820 | @T.prim_func(s_tir=True) |
| 821 | def func(A: T.Buffer((4,), dtype)) -> None: |
| 822 | A_local = T.sblock_alloc_buffer((4,), dtype=dtype, scope="local") |
| 823 | for tx in T.thread_binding(0, 4, "threadIdx.x"): |
| 824 | for i in T.vectorized(4): |
| 825 | A_local[i] = T.float32(1.0).astype(dtype) |
| 826 | A[tx] = A_local[tx] |
| 827 | |
| 828 | mod = tvm.IRModule({"main": func}) |
| 829 | tvm.compile(mod, target="cuda") |
no test coverage detected
searching dependent graphs…