Skip to content

Commit 8de90d5

Browse files
Create non-singular matrix in test_usm_type.py::test_cond
1 parent fa7ab49 commit 8de90d5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dpnp/tests/test_usm_type.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from .helper import (
1414
assert_dtype_allclose,
1515
generate_random_numpy_array,
16-
is_cuda_device,
1716
)
1817

1918
list_of_usm_types = ["device", "shared", "host"]
@@ -867,12 +866,8 @@ def test_split(func, data1, usm_type):
867866
@pytest.mark.parametrize("usm_type", list_of_usm_types, ids=list_of_usm_types)
868867
@pytest.mark.parametrize("p", [None, -dp.inf, -2, -1, 1, 2, dp.inf, "fro"])
869868
def test_cond(usm_type, p):
870-
if is_cuda_device():
871-
if p in [None, -2, 2]:
872-
pass
873-
else:
874-
pytest.skip("SAT-7589")
875-
ia = dp.arange(32, usm_type=usm_type).reshape(2, 4, 4)
869+
a = numpy.array(numpy.random.uniform(-5, 5, 16)).reshape(4, 4)
870+
ia = dp.array(a, usm_type=usm_type)
876871

877872
result = dp.linalg.cond(ia, p=p)
878873
assert ia.usm_type == usm_type

0 commit comments

Comments
 (0)