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

Function main

testing/python/transform/test_readonly_param_const_codegen.py:8–14  ·  view source on GitHub ↗
(
        x: T.Tensor((128,), T.float32),
        y: T.Tensor((128,), T.float32),
    )

Source from the content-addressed store, hash-verified

6def _simple_add_kernel():
7 @T.prim_func
8 def main(
9 x: T.Tensor((128,), T.float32),
10 y: T.Tensor((128,), T.float32),
11 ):
12 # One-dimensional kernel; writes y from x without modifying x
13 with T.Kernel(128, threads=32) as pid:
14 y[pid] = x[pid] + 1.0
15
16 return main
17

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…