()
| 434 | |
| 435 | @tilelang.jit |
| 436 | def inf_init_kernel(): |
| 437 | @T.prim_func |
| 438 | def kernel(out: T.Tensor((N,), T.float32)) -> None: |
| 439 | with T.Kernel(1, threads=N) as _: |
| 440 | v = T.alloc_var(T.float32, init=-T.infinity(T.float32)) |
| 441 | for i in T.Parallel(N): |
| 442 | out[i] = v |
| 443 | |
| 444 | return kernel |
| 445 | |
| 446 | out = torch.zeros(N, dtype=torch.float32, device="cuda") |
| 447 | inf_init_kernel()(out) |
no outgoing calls
no test coverage detected
searching dependent graphs…