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 f7b5f55 commit e8c29ddCopy full SHA for e8c29dd
dpctl/tensor/_dlpack.pyx
@@ -340,7 +340,7 @@ cpdef usm_ndarray from_dlpack_capsule(object py_caps) except +:
340
if _IS_LINUX:
341
default_context = root_device.sycl_platform.default_context
342
else:
343
- default_context = None
+ default_context = dpctl.SyclQueue(root_device).sycl_context
344
except RuntimeError:
345
default_context = dpctl.SyclQueue(root_device).sycl_context
346
if dlm_tensor.dl_tensor.data is NULL:
0 commit comments