jorisvandenbossche commented on code in PR #43392:
URL: https://github.com/apache/arrow/pull/43392#discussion_r1691059642
##########
python/pyarrow/_cuda.pyx:
##########
@@ -185,6 +185,29 @@ cdef class Context(_Weakrefable):
cudabuf = GetResultValue(self.context.get().Allocate(nbytes))
return pyarrow_wrap_cudabuffer(cudabuf)
+ @property
+ def memory_manager(self):
+ """
+ The default memory manager tied to this context's device.
+
+ Returns
+ -------
+ MemoryManager
+ """
+ return MemoryManager.wrap(self.context.get().memory_manager())
+
+ @property
+ def device(self):
+ """
+ The device instance associated with this context.
+
+
Review Comment:
```suggestion
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]