Skip to content

Commit 0160c68

Browse files
author
masa
committed
minor update to test
1 parent c63d205 commit 0160c68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/python/unittest/test_tir_ir_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ def test_device_ir(A, B):
511511
tx = te.thread_axis("threadIdx.x")
512512
ib.scope_attr(tx, "thread_extent", n)
513513

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

516516
Aptr = ib.buffer_ptr(A)
517517
Bptr = ib.buffer_ptr(B)
@@ -538,8 +538,8 @@ def test_device_ir(A, B):
538538
s = te.create_schedule(B.op)
539539

540540
def check_target(target):
541-
# if not tvm.testing.device_enabled(target):
542-
# return
541+
if not tvm.testing.device_enabled(target):
542+
return
543543

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

0 commit comments

Comments
 (0)