Skip to content
Merged
Changes from all commits
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
8 changes: 8 additions & 0 deletions dpctl/tests/test_sycl_usm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ def test_memory_create(self):
self.assertEqual(mobj.nbytes, nbytes)
self.assertTrue(hasattr(mobj, "__sycl_usm_array_interface__"))

@unittest.expectedFailure
@unittest.skipUnless(
dpctl.has_sycl_platforms(), "No SYCL devices except the default host device."
)
def test_memory_create_with_np(self):
mobj = dpctl.memory.MemoryUSMShared(np.int64(16384))
self.assertTrue(hasattr(mobj, "__sycl_usm_array_interface__"))

def _create_memory(self):
nbytes = 1024
queue = dpctl.get_current_queue()
Expand Down