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

Function main

testing/python/analysis/test_tilelang_nested_loop_checker.py:34–41  ·  view source on GitHub ↗
(
        A: T.Tensor((length,), dtype),
        B: T.Tensor((length,), dtype),
    )

Source from the content-addressed store, hash-verified

32def nested_continuous_parallels(length=256, block=16, dtype=T.float32):
33 @T.prim_func
34 def main(
35 A: T.Tensor((length,), dtype),
36 B: T.Tensor((length,), dtype),
37 ):
38 with T.Kernel(1, threads=length) as _:
39 for i in T.Parallel(length // block):
40 for j in T.Parallel(block):
41 B[i * block + j] = A[i * block + j] + 1.0
42
43 return main
44

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…