We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd60be8 commit 8e43c77Copy full SHA for 8e43c77
dpctl/tests/test_usm_ndarray_ctor.py
@@ -2059,3 +2059,16 @@ def test_byte_bounds():
2059
y = x[::-1, ::2]
2060
lo, hi = y._byte_bounds
2061
assert hi - lo == (n0 * n1 - 1) * x.itemsize
2062
+
2063
2064
+def test_gh_1201():
2065
+ n = 100
2066
+ a = np.flipud(np.arange(n, dtype="i4"))
2067
+ try:
2068
+ b = dpt.asarray(a)
2069
+ except dpctl.SyclDeviceCreationError:
2070
+ pytest.skip("No SYCL devices available")
2071
+ assert (dpt.asnumpy(b) == a).all()
2072
+ c = dpt.flip(dpt.empty(a.shape, dtype=a.dtype))
2073
+ c[:] = a
2074
+ assert (dpt.asnumpy(c) == a).all()
0 commit comments