Skip to content

Commit

Permalink
minor update to test
Browse files Browse the repository at this point in the history
  • Loading branch information
masa committed Jul 14, 2021
1 parent af7780e commit 4530764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/python/unittest/test_tir_ir_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def test_device_ir(A, B):
tx = te.thread_axis("threadIdx.x")
ib.scope_attr(tx, "thread_extent", n)

temp = ib.allocate(dtype, (n,), scope="dyn.shared")
temp = ib.allocate(dtype, (n,), scope="dyn.shared") # n is symbolic size

Aptr = ib.buffer_ptr(A)
Bptr = ib.buffer_ptr(B)
Expand All @@ -538,8 +538,8 @@ def test_device_ir(A, B):
s = te.create_schedule(B.op)

def check_target(target):
# if not tvm.testing.device_enabled(target):
# return
if not tvm.testing.device_enabled(target):
return

freduce = tvm.build(s, [A, B], target)
dev = tvm.device(target, 0)
Expand Down

0 comments on commit 4530764

Please sign in to comment.