Files
ROCm/python/test/unit/language/conftest.py
Wang Weihan a3c39d8fbe [TEST] Add device parameter for ut (#1817)
Triton has supported different codegen backends for different devices,
so enabling the unit test cases to support different devices also makes
sense. Otherwise, the third-party backend might have to intrusively
change the Triton test cases.
2023-06-25 15:38:59 +08:00

15 lines
238 B
Python

# content of conftest.py
import pytest
def pytest_addoption(parser):
parser.addoption(
"--device", action="store", default='cuda'
)
@pytest.fixture
def device(request):
return request.config.getoption("--device")