Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test |
|
Note that there is still the PyArrow needs an actual CUDA context to wrap the Numba-originating pointer: |
Thanks for pointing to this - I will consider whether it's better to just revert #536 instead and hold onto the |
|
Or perhaps there is a way for PyArrow to get a context from Numba that's suitable for the pointer? |
|
I can't see a way to get an appropriate context given just the pointer. |
|
You can use |
|
Given that even with this PR, the API is still changed (as memory pointers won't be holding a context) and changes in Arrow would still be needed, with perhaps non-trivial impact, it may be better to revert the commit that caused this. I have a PR that does this in #611. |
|
I'm curious about the performance reasons: is it because of |
|
It's because every time we handle an input to a kernel that is not a "native" Numba I suspect that we could avoid the overhead whilst still keeping the |
|
Closing as #611 has gone in instead. |
Public APIs were modified in #536, creating knock-on effects for users of the External Memory Management plugin interface - e.g. Arrow and RMM. See e.g. https://github.com/apache/arrow/pull/48259/files#diff-d57b920879b21c3290244b0fe8cfee56c2581fe9b8e9d7792fead53801d51383
This PR restores the public APIs and replaces the usage of the new APIs with no
contextparameter with internal APIs prefixed by an underscore.cc @pitrou