(
A: T.Tensor((length,), dtype),
B: T.Tensor((length,), dtype),
)
| 32 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…