Skip to content

Commit ac2221d

Browse files
Mute batched cholesky test due to SAT-8206
1 parent 956db4c commit ac2221d

File tree

5 files changed

+30
-3
lines changed

5 files changed

+30
-3
lines changed

dpnp/tests/helper.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,14 @@ def is_lts_driver(device=None):
464464
return dev.has_aspect_gpu and "1.3" in dev.driver_version
465465

466466

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+
467475
def is_ptl(device=None):
468476
"""
469477
Return True if a test is running on Panther Lake with Iris Xe3 GPU device,

dpnp/tests/test_linalg.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
get_float_complex_dtypes,
2424
get_integer_float_dtypes,
2525
has_support_aspect64,
26-
is_cpu_device,
26+
is_dg2,
27+
is_win_platform,
2728
numpy_version,
2829
)
2930
from .third_party.cupy import testing
@@ -158,6 +159,8 @@ class TestCholesky:
158159
def test_cholesky(self, array, dtype):
159160
a = numpy.array(array, dtype=dtype)
160161
ia = dpnp.array(a)
162+
if ia.ndim > 2 and is_win_platform() and is_dg2():
163+
pytest.skip("SAT-8206")
161164
result = dpnp.linalg.cholesky(ia)
162165
expected = numpy.linalg.cholesky(a)
163166
assert_dtype_allclose(result, expected)
@@ -177,6 +180,8 @@ def test_cholesky(self, array, dtype):
177180
@pytest.mark.parametrize("dtype", get_all_dtypes(no_bool=True))
178181
def test_cholesky_upper(self, array, dtype):
179182
ia = dpnp.array(array, dtype=dtype)
183+
if ia.ndim > 2 and is_win_platform() and is_dg2():
184+
pytest.skip("SAT-8206")
180185
result = dpnp.linalg.cholesky(ia, upper=True)
181186

182187
if ia.ndim > 2:
@@ -219,6 +224,8 @@ def test_cholesky_upper(self, array, dtype):
219224
def test_cholesky_upper_numpy(self, array, dtype):
220225
a = numpy.array(array, dtype=dtype)
221226
ia = dpnp.array(a)
227+
if ia.ndim > 2 and is_win_platform() and is_dg2():
228+
pytest.skip("SAT-8206")
222229
result = dpnp.linalg.cholesky(ia, upper=True)
223230
expected = numpy.linalg.cholesky(a, upper=True)
224231
assert_dtype_allclose(result, expected)

dpnp/tests/test_sycl_queue.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
from dpnp.dpnp_array import dpnp_array
1313
from dpnp.dpnp_utils import get_usm_allocations
1414

15-
from .helper import generate_random_numpy_array, get_all_dtypes, is_win_platform
15+
from .helper import (
16+
generate_random_numpy_array,
17+
get_all_dtypes,
18+
is_dg2,
19+
is_win_platform,
20+
)
1621

1722
list_of_backend_str = ["cuda", "host", "level_zero", "opencl"]
1823

@@ -1488,6 +1493,8 @@ def test_cholesky(self, data, is_empty, device):
14881493
else:
14891494
dtype = dpnp.default_float_type(device)
14901495
x = dpnp.array(data, dtype=dtype, device=device)
1496+
if x.ndim > 2 and is_win_platform() and is_dg2():
1497+
pytest.skip("SAT-8206")
14911498

14921499
result = dpnp.linalg.cholesky(x)
14931500
assert_sycl_queue_equal(result.sycl_queue, x.sycl_queue)

dpnp/tests/test_usm_type.py

Lines changed: 3 additions & 1 deletion
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_win_platform
13+
from .helper import generate_random_numpy_array, is_dg2, is_win_platform
1414

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

@@ -1341,6 +1341,8 @@ 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():
1345+
pytest.skip("SAT-8206")
13441346

13451347
result = dpnp.linalg.cholesky(x)
13461348
assert x.usm_type == result.usm_type

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
from dpnp.tests.helper import (
88
has_support_aspect64,
99
is_cpu_device,
10+
is_dg2,
11+
is_win_platform,
1012
)
1113
from dpnp.tests.third_party.cupy import testing
1214
from dpnp.tests.third_party.cupy.testing import _condition
@@ -82,6 +84,7 @@ def test_decomposition(self, dtype):
8284
# np.linalg.cholesky only uses a lower triangle of an array
8385
self.check_L(numpy.array([[1, 2], [1, 9]], dtype))
8486

87+
@pytest.mark.skipif(is_win_platform() and is_dg2(), reason="SAT-8206")
8588
@testing.for_dtypes(
8689
[
8790
numpy.int32,

0 commit comments

Comments
 (0)