Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add test based on reproducer in gh-1926
  • Loading branch information
oleksandr-pavlyk committed Dec 9, 2024
commit 8bdf20621ce9d1578a9be6e818e7cbc7f14a23ea
11 changes: 11 additions & 0 deletions dpctl/tests/test_usm_ndarray_ctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1435,6 +1435,17 @@ def test_astype_device():
assert r.sycl_queue == q2


def test_astype_gh_1926():
get_queue_or_skip()

x = dpt.ones(10_000)
Comment thread
oleksandr-pavlyk marked this conversation as resolved.
Outdated
x_ = dpt.astype(x, x.dtype, copy=False, order="C")
assert x is x_

x__ = dpt.astype(x, x.dtype, copy=False, order="F")
assert x is x__


def test_copy():
try:
X = dpt.usm_ndarray((5, 5), "i4")[2:4, 1:4]
Expand Down