Files
tilelang/testing/python/issue/test_tilelang_issue_1690.py
T
Kuris 5358f5a272 [EagerJIT] Lazy Evaluation of Kernel Body in Eager JIT (#1690) (#1694)
* [Refactor] Support lazy evaluate in eager jit

* add test script

* fix lint error

* canonicalize signature and error of `T.empty`

* Fix comment from genai

* [EagerJIT] Add comment for eager jit stage
2026-01-23 14:33:12 +08:00

22 lines
477 B
Python

import tilelang
import tilelang.testing
import tilelang.language as T
def test_issue_1690():
@tilelang.jit()
def test(A):
N = T.const("N")
A: T.Tensor[[N], T.float32]
with T.Kernel():
tmp = T.alloc_fragment((N,), T.float32)
tmp_max = T.alloc_fragment(1, T.float32)
T.copy(A, tmp)
T.reduce_max(tmp, tmp_max, dim=0)
test.compile(N=16)
if __name__ == "__main__":
tilelang.testing.main()