Skip to content

Commit

Permalink
Create non-singular matrix in test_usm_type.py::test_cond
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-perevezentsev committed Dec 11, 2024
1 parent fa7ab49 commit 8de90d5
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions dpnp/tests/test_usm_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from .helper import (
assert_dtype_allclose,
generate_random_numpy_array,
is_cuda_device,
)

list_of_usm_types = ["device", "shared", "host"]
Expand Down Expand Up @@ -867,12 +866,8 @@ def test_split(func, data1, usm_type):
@pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types)
@pytest.mark.parametrize("p", [None, -dp.inf, -2, -1, 1, 2, dp.inf, "fro"])
def test_cond(usm_type, p):
if is_cuda_device():
if p in [None, -2, 2]:
pass
else:
pytest.skip("SAT-7589")
ia = dp.arange(32, usm_type=usm_type).reshape(2, 4, 4)
a = numpy.array(numpy.random.uniform(-5, 5, 16)).reshape(4, 4)
ia = dp.array(a, usm_type=usm_type)

result = dp.linalg.cond(ia, p=p)
assert ia.usm_type == usm_type
Expand Down

0 comments on commit 8de90d5

Please sign in to comment.