Skip to content

Commit 3dc2164

Browse files
Skip test_slogdet_singular_matrix_3D for mkl<2025.2
1 parent 44232c6 commit 3dc2164

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

dpnp/tests/test_linalg.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2820,6 +2820,13 @@ def test_slogdet_singular_matrix(self, matrix):
28202820
assert_allclose(sign_result, sign_expected)
28212821
assert_allclose(logdet_result, logdet_expected)
28222822

2823+
# TODO: remove skipif when Intel MKL 2025.2 is released
2824+
# Skip running on CPU because dpnp uses _getrf_batch only on CPU
2825+
# for dpnp.linalg.det/slogdet.
2826+
@pytest.mark.skipif(
2827+
is_cpu_device() and not requires_intel_mkl_version("2025.2"),
2828+
reason="mkl<2025.2",
2829+
)
28232830
def test_slogdet_singular_matrix_3D(self):
28242831
a_np = numpy.array(
28252832
[[[1, 2], [3, 4]], [[1, 2], [1, 2]], [[1, 3], [3, 1]]]

0 commit comments

Comments
 (0)