wpan11nv commented on a change in pull request #5727:
URL: https://github.com/apache/incubator-tvm/pull/5727#discussion_r435391687
##########
File path: tests/python/unittest/test_tir_transform_lower_warp_memory.py
##########
@@ -249,9 +245,13 @@ def check(m):
B_np = A_np + 1
tvm.testing.assert_allclose(B_nd.asnumpy(), B_np)
- check(m=31)
- check(m=32)
- check(m=33)
+ for device in ['cuda', 'rocm']:
+ if not tvm.context(device, 0).exist or not tvm.runtime.enabled(device):
+ print("skip because", device,"is not enabled..")
+ continue
+ check(device, m=31)
Review comment:
For rocm you may want to check 63,64,65 as it covers three cases
comparing to the warp size.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]