Skip to content

Commit

Permalink
[Hotfix] A unittest (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
junrushao authored Jan 22, 2022
1 parent dbe279f commit 5793c98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,15 @@ def main(A: T.Buffer[(1, 256, 256), "float32"], D: T.Buffer[(1,), "float32"]) ->
with T.block("C"):
b = T.axis.S(1, 0)
i, j = T.axis.remap("RR", [i1, i2])
T.where(i0_fused_0 * 32 + i0_fused_1 < 1)
T.where(i0_fused_1 < 1)
with T.init():
C[b] = T.float32(0)
C[b] = C[b] + A[b, i, j] * A[b, i, j]
for i0_fused_0 in T.thread_binding(1, thread="blockIdx.x"):
for i0_fused_1 in T.thread_binding(32, thread="threadIdx.x"):
with T.block("D"):
b = T.axis.S(1, 0)
T.where(i0_fused_0 * 32 + i0_fused_1 < 1)
T.where(i0_fused_1 < 1)
D[b] = T.sqrt(C[b], dtype="float32")


Expand Down

0 comments on commit 5793c98

Please sign in to comment.