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 58f78f5 commit 260573cCopy full SHA for 260573c
dpctl/memory/_memory.pyx
@@ -706,3 +706,13 @@ def as_usm_memory(obj):
706
"USM allocation represented by argument {}".
707
format(obj)
708
)
709
+
710
711
+cdef public DPCTLSyclUSMRef get_usm_pointer(_Memory obj):
712
+ return obj.memory_ptr
713
714
+cdef public DPCTLSyclContextRef get_context(_Memory obj):
715
+ return obj.queue._context.get_context_ref()
716
717
+cdef public size_t get_nbytes(_Memory obj):
718
+ return <size_t>obj.nbytes
0 commit comments