Skip to content

Commit 11a0a64

Browse files
authored
Temporary skip tests failing with LTS driver on Iris Xe (#2512)
The PR proposes to skip tests which are failing in internal CI due to known issue with LTS driver.
1 parent cc1b898 commit 11a0a64

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

dpnp/tests/helper.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ def _assert_shape(a, b):
2626
assert a.shape == (), f"{a.shape} != ()"
2727

2828

29+
def _get_dev_mask(device=None):
30+
dev = dpctl.select_default_device() if device is None else device
31+
dev_info = dpctl.utils.intel_device_info(dev)
32+
return dev_info.get("device_id", 0) & 0xFF00
33+
34+
2935
def assert_dtype_allclose(
3036
dpnp_arr,
3137
numpy_arr,
@@ -434,6 +440,22 @@ def is_intel_numpy():
434440
return all(dep["name"].startswith("mkl") for dep in [blas, lapack])
435441

436442

443+
def is_iris_xe(device=None):
444+
"""
445+
Return True if a test is running on Iris Xe GPU device, False otherwise.
446+
"""
447+
return _get_dev_mask(device) == 0x9A00
448+
449+
450+
def is_lts_driver(device=None):
451+
"""
452+
Return True if a test is running on a GPU device with LTS driver version,
453+
False otherwise.
454+
"""
455+
dev = dpctl.select_default_device() if device is None else device
456+
return dev.has_aspect_gpu and "1.3" in dev.driver_version
457+
458+
437459
def is_win_platform():
438460
"""
439461
Return True if a test is running on Windows OS, False otherwise.

dpnp/tests/test_arraycreation.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
assert_dtype_allclose,
2020
get_all_dtypes,
2121
get_array,
22+
is_iris_xe,
23+
is_lts_driver,
24+
is_win_platform,
2225
)
2326
from .third_party.cupy import testing
2427

@@ -913,6 +916,14 @@ def test_geomspace_num0():
913916
@pytest.mark.parametrize("num", [2, 4, 8, 3, 9, 27])
914917
@pytest.mark.parametrize("endpoint", [True, False])
915918
def test_logspace(dtype, num, endpoint):
919+
if not is_win_platform() and is_iris_xe() and is_lts_driver():
920+
if (
921+
dpnp.issubdtype(dtype, dpnp.integer)
922+
and num in [8, 27]
923+
and endpoint is True
924+
):
925+
pytest.skip("SAT-7978")
926+
916927
start = 2
917928
stop = 5
918929
base = 2

0 commit comments

Comments
 (0)