Skip to content

Commit c056398

Browse files
Changed test from copying doubles to copying int64 to run on Iris Xe
1 parent 21f6f12 commit c056398

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dpctl/tests/test_tensor_asarray.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ def test_asarray_copy_false():
191191
q = dpctl.SyclQueue()
192192
except dpctl.SyclQueueCreationError:
193193
pytest.skip("Could not create a queue")
194-
X = dpt.from_numpy(np.random.randn(10, 4), usm_type="device", sycl_queue=q)
194+
rng = np.random.default_rng()
195+
Xnp = rng.integers(low=-255, high=255, size=(10, 4), dtype=np.int64)
196+
X = dpt.from_numpy(Xnp, usm_type="device", sycl_queue=q)
195197
Y1 = dpt.asarray(X, copy=False, order="K")
196198
assert Y1 is X
197199
Y1c = dpt.asarray(X, copy=True, order="K")

0 commit comments

Comments
 (0)