(
x: T.Tensor((128,), T.float32),
y: T.Tensor((128,), T.float32),
)
| 6 | def _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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…