Skip to content

Create expected failure test for dpctl.memory.MemoryUSMShared(np.int64(16)) #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 16, 2020
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