Skip to content

Commit

Permalink
change requires_gpu to requires_cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
Archermmt committed Jan 3, 2024
1 parent 82d7724 commit fcbd65d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tests/python/contrib/test_msc/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def test_tvm_runner_cpu():
_test_from_torch(TVMRunner, "cpu", is_training=True)


@tvm.testing.requires_gpu
def test_tvm_runner_gpu():
@tvm.testing.requires_cuda
def test_tvm_runner_cuda():
"""Test runner for tvm on cuda"""

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


@tvm.testing.requires_gpu
def test_torch_runner_gpu():
@tvm.testing.requires_cuda
def test_torch_runner_cuda():
"""Test runner for torch on cuda"""

_test_from_torch(TorchRunner, "cuda", atol=1e-1, rtol=1e-1)
Expand Down
2 changes: 1 addition & 1 deletion tests/python/contrib/test_msc/test_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def test_tvm_tool(tool_type):
)


@tvm.testing.requires_gpu
@tvm.testing.requires_cuda
@pytest.mark.parametrize("tool_type", [ToolType.PRUNER, ToolType.QUANTIZER])
def test_tvm_distill(tool_type):
"""Test tools for tvm with distiller"""
Expand Down

0 comments on commit fcbd65d

Please sign in to comment.