Skip to content

Commit 92b968f

Browse files
Skip tests on arl or mtl
1 parent f539955 commit 92b968f

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

dpnp/tests/helper.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,14 @@ def has_support_aspect64(device=None):
404404
return dev.has_aspect_fp64
405405

406406

407+
def is_arl_or_mtl(device=None):
408+
"""
409+
Return True if a test is running on Arrow Lake or Meteor Lake GPU device,
410+
False otherwise.
411+
"""
412+
return _get_dev_mask(device) == 0x7D00
413+
414+
407415
def is_cpu_device(device=None):
408416
"""
409417
Return True if a test is running on CPU device, False otherwise.
@@ -464,14 +472,6 @@ def is_lts_driver(device=None):
464472
return dev.has_aspect_gpu and "1.3" in dev.driver_version
465473

466474

467-
def is_dg2(device=None):
468-
"""
469-
Return True if a test is running on DG2 (Intel Arc Alchemist family) GPU device,
470-
False otherwise.
471-
"""
472-
return _get_dev_mask(device) in (0x4F00, 0x5600)
473-
474-
475475
def is_ptl(device=None):
476476
"""
477477
Return True if a test is running on Panther Lake with Iris Xe3 GPU device,

dpnp/tests/test_linalg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
get_float_complex_dtypes,
2424
get_integer_float_dtypes,
2525
has_support_aspect64,
26-
is_dg2,
26+
is_arl,
2727
is_win_platform,
2828
numpy_version,
2929
)
@@ -159,7 +159,7 @@ class TestCholesky:
159159
def test_cholesky(self, array, dtype):
160160
a = numpy.array(array, dtype=dtype)
161161
ia = dpnp.array(a)
162-
if ia.ndim > 2 and is_win_platform() and is_dg2():
162+
if ia.ndim > 2 and is_win_platform() and is_arl():
163163
pytest.skip("SAT-8206")
164164
result = dpnp.linalg.cholesky(ia)
165165
expected = numpy.linalg.cholesky(a)
@@ -180,7 +180,7 @@ def test_cholesky(self, array, dtype):
180180
@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True))
181181
def test_cholesky_upper(self, array, dtype):
182182
ia = dpnp.array(array, dtype=dtype)
183-
if ia.ndim > 2 and is_win_platform() and is_dg2():
183+
if ia.ndim > 2 and is_win_platform() and is_arl():
184184
pytest.skip("SAT-8206")
185185
result = dpnp.linalg.cholesky(ia, upper=True)
186186

@@ -224,7 +224,7 @@ def test_cholesky_upper(self, array, dtype):
224224
def test_cholesky_upper_numpy(self, array, dtype):
225225
a = numpy.array(array, dtype=dtype)
226226
ia = dpnp.array(a)
227-
if ia.ndim > 2 and is_win_platform() and is_dg2():
227+
if ia.ndim > 2 and is_win_platform() and is_arl():
228228
pytest.skip("SAT-8206")
229229
result = dpnp.linalg.cholesky(ia, upper=True)
230230
expected = numpy.linalg.cholesky(a, upper=True)

dpnp/tests/test_sycl_queue.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .helper import (
1616
generate_random_numpy_array,
1717
get_all_dtypes,
18-
is_dg2,
18+
is_arl,
1919
is_win_platform,
2020
)
2121

@@ -1493,7 +1493,7 @@ def test_cholesky(self, data, is_empty, device):
14931493
else:
14941494
dtype = dpnp.default_float_type(device)
14951495
x = dpnp.array(data, dtype=dtype, device=device)
1496-
if x.ndim > 2 and is_win_platform() and is_dg2():
1496+
if x.ndim > 2 and is_win_platform() and is_arl():
14971497
pytest.skip("SAT-8206")
14981498

14991499
result = dpnp.linalg.cholesky(x)

dpnp/tests/test_usm_type.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import dpnp
1111
from dpnp.dpnp_utils import get_usm_allocations
1212

13-
from .helper import generate_random_numpy_array, is_dg2, is_win_platform
13+
from .helper import generate_random_numpy_array, is_arl, is_win_platform
1414

1515
list_of_usm_types = ["device", "shared", "host"]
1616

@@ -1341,7 +1341,7 @@ def test_cholesky(self, data, is_empty, usm_type):
13411341
x = dpnp.empty(data, dtype=dtype, usm_type=usm_type)
13421342
else:
13431343
x = dpnp.array(data, dtype=dtype, usm_type=usm_type)
1344-
if x.ndim > 2 and is_win_platform() and is_dg2():
1344+
if x.ndim > 2 and is_win_platform() and is_arl():
13451345
pytest.skip("SAT-8206")
13461346

13471347
result = dpnp.linalg.cholesky(x)

dpnp/tests/third_party/cupy/linalg_tests/test_decomposition.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
import dpnp as cupy
77
from dpnp.tests.helper import (
88
has_support_aspect64,
9+
is_arl_or_mtl,
910
is_cpu_device,
10-
is_dg2,
1111
is_win_platform,
1212
)
1313
from dpnp.tests.third_party.cupy import testing
@@ -84,7 +84,9 @@ def test_decomposition(self, dtype):
8484
# np.linalg.cholesky only uses a lower triangle of an array
8585
self.check_L(numpy.array([[1, 2], [1, 9]], dtype))
8686

87-
@pytest.mark.skipif(is_win_platform() and is_dg2(), reason="SAT-8206")
87+
@pytest.mark.skipif(
88+
is_win_platform() and is_arl_or_mtl(), reason="SAT-8206"
89+
)
8890
@testing.for_dtypes(
8991
[
9092
numpy.int32,

0 commit comments

Comments
 (0)