Skip to content

Commit 5457a9d

Browse files
Memory acquires _pointer property
1 parent 8bd3ecc commit 5457a9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/_memory.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ cdef class Memory:
6666
def __get__(self):
6767
return self.nbytes
6868

69+
property _pointer:
70+
def __get__(self):
71+
return <size_t>(self.memory_ptr)
72+
6973
property _context:
7074
def __get__(self):
7175
return self.queue.get_sycl_context()

0 commit comments

Comments
 (0)