Skip to content

Commit 290230a

Browse files
test_linspace should not try double precision if HW does not support it
1 parent 5f49827 commit 290230a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dpctl/tests/test_usm_ndarray_ctor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,6 +1080,8 @@ def test_linspace(dt):
10801080
q = dpctl.SyclQueue()
10811081
except dpctl.SyclQueueCreationError:
10821082
pytest.skip("Default queue could not be created")
1083+
if dt in ["f8", "c16"] and not q.sycl_device.has_aspect_fp64:
1084+
pytest.skip("Device does not support double precision")
10831085
X = dpt.linspace(0, 1, num=2, dtype=dt, sycl_queue=q)
10841086
assert np.allclose(dpt.asnumpy(X), np.linspace(0, 1, num=2, dtype=dt))
10851087

0 commit comments

Comments
 (0)