Skip to content

Commit 747f82f

Browse files
committed
change requires_gpu to requires_cuda
1 parent dc884d9 commit 747f82f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/python/contrib/test_msc/test_runner.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ def test_tvm_runner_cpu():
109109
_test_from_torch(TVMRunner, "cpu", is_training=True)
110110

111111

112-
@tvm.testing.requires_gpu
113-
def test_tvm_runner_gpu():
112+
@tvm.testing.requires_cuda
113+
def test_tvm_runner_cuda():
114114
"""Test runner for tvm on cuda"""
115115

116116
_test_from_torch(TVMRunner, "cuda", is_training=True)
@@ -122,8 +122,8 @@ def test_torch_runner_cpu():
122122
_test_from_torch(TorchRunner, "cpu")
123123

124124

125-
@tvm.testing.requires_gpu
126-
def test_torch_runner_gpu():
125+
@tvm.testing.requires_cuda
126+
def test_torch_runner_cuda():
127127
"""Test runner for torch on cuda"""
128128

129129
_test_from_torch(TorchRunner, "cuda", atol=1e-1, rtol=1e-1)

tests/python/contrib/test_msc/test_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def test_tvm_tool(tool_type):
251251
)
252252

253253

254-
@tvm.testing.requires_gpu
254+
@tvm.testing.requires_cuda
255255
@pytest.mark.parametrize("tool_type", [ToolType.PRUNER, ToolType.QUANTIZER])
256256
def test_tvm_distill(tool_type):
257257
"""Test tools for tvm with distiller"""

0 commit comments

Comments
 (0)