diff --git a/dpnp/tests/helper.py b/dpnp/tests/helper.py index 80043464f791..a94a592ad2fa 100644 --- a/dpnp/tests/helper.py +++ b/dpnp/tests/helper.py @@ -483,7 +483,7 @@ def numpy_version(): return numpy.lib.NumpyVersion(numpy.__version__) -def requires_intel_mkl_version(version): +def requires_intel_mkl_version(version): # pragma: no cover """ Check if Intel MKL is used and its version is greater than or equal to the specified one. diff --git a/dpnp/tests/test_linalg.py b/dpnp/tests/test_linalg.py index 34571ddf799d..f4dc1f74add0 100644 --- a/dpnp/tests/test_linalg.py +++ b/dpnp/tests/test_linalg.py @@ -25,7 +25,6 @@ has_support_aspect64, is_cpu_device, numpy_version, - requires_intel_mkl_version, ) from .third_party.cupy import testing @@ -1747,10 +1746,6 @@ def test_inv_singular_matrix(self, matrix): assert_raises(numpy.linalg.LinAlgError, numpy.linalg.inv, a_np) assert_raises(dpnp.linalg.LinAlgError, dpnp.linalg.inv, a_dp) - # TODO: remove skipif when Intel MKL 2025.2 is released - @pytest.mark.skipif( - not requires_intel_mkl_version("2025.2"), reason="mkl<2025.2" - ) def test_inv_singular_matrix_3D(self): a_np = numpy.array( [[[1, 2], [3, 4]], [[1, 2], [1, 2]], [[1, 3], [3, 1]]] @@ -2766,13 +2761,6 @@ def test_slogdet_strides(self): assert_allclose(sign_result, sign_expected) assert_allclose(logdet_result, logdet_expected) - # TODO: remove skipif when Intel MKL 2025.2 is released - # Skip running on CPU because dpnp uses _getrf_batch only on CPU - # for dpnp.linalg.det/slogdet. - @pytest.mark.skipif( - is_cpu_device() and not requires_intel_mkl_version("2025.2"), - reason="mkl<2025.2", - ) @pytest.mark.parametrize( "matrix", [ @@ -2803,13 +2791,6 @@ def test_slogdet_singular_matrix(self, matrix): assert_allclose(sign_result, sign_expected) assert_allclose(logdet_result, logdet_expected) - # TODO: remove skipif when Intel MKL 2025.2 is released - # Skip running on CPU because dpnp uses _getrf_batch only on CPU - # for dpnp.linalg.det/slogdet. - @pytest.mark.skipif( - is_cpu_device() and not requires_intel_mkl_version("2025.2"), - reason="mkl<2025.2", - ) def test_slogdet_singular_matrix_3D(self): a_np = numpy.array( [[[1, 2], [3, 4]], [[1, 2], [1, 2]], [[1, 3], [3, 1]]] diff --git a/dpnp/tests/third_party/cupy/linalg_tests/test_solve.py b/dpnp/tests/third_party/cupy/linalg_tests/test_solve.py index f43559e1c077..bac6591bb7f0 100644 --- a/dpnp/tests/third_party/cupy/linalg_tests/test_solve.py +++ b/dpnp/tests/third_party/cupy/linalg_tests/test_solve.py @@ -7,7 +7,6 @@ from dpnp.tests.helper import ( assert_dtype_allclose, has_support_aspect64, - requires_intel_mkl_version, ) from dpnp.tests.third_party.cupy import testing from dpnp.tests.third_party.cupy.testing import _condition @@ -214,10 +213,6 @@ def test_inv(self, dtype): ): xp.linalg.inv(a) - # TODO: remove skipif when Intel MKL 2025.2 is released - @pytest.mark.skipif( - not requires_intel_mkl_version("2025.2"), reason="mkl<2025.2" - ) @testing.for_dtypes("ifdFD") def test_batched_inv(self, dtype): for xp in (numpy, cupy):