(B:UOp, A:UOp)
| 42 | return prog.sink(arg=KernelInfo(name=f"custom_gemm_{C.shape[0]}_{C.shape[1]}_{A.shape[1]}", opts_to_apply=())) |
| 43 | |
| 44 | def custom_sum(B:UOp, A:UOp) -> UOp: |
| 45 | i = UOp.range(A.shape[0], 0, axis_type=AxisType.REDUCE) |
| 46 | B = B[0].set(0.0) |
| 47 | B = B[0].set(B.after(i)[0] + A[i], end=i) |
| 48 | return B.sink(arg=KernelInfo(name=f"custom_sum_{A.shape[0]}", opts_to_apply=())) |
| 49 | |
| 50 | def flip_contract_kernel(dest:UOp, src:UOp): |
| 51 | i = UOp.range(dest.shape[0], 0) |
nothing calls this directly
no test coverage detected
searching dependent graphs…