Closed AlenkaF closed 1 month ago
I think this will need the wheel building checks to be run, since I think they enforce some constraints that apply here (like the ability for the test suite to pass without numpy or pyarrow). There is
ci/scripts/test-python-wheels.sh
that can run this check locally, or you can modify.github/workflows/python-wheels.yaml
to run on pull requests (or I'm happy to check locally, too).
Running ../ci/scripts/test-python-wheels.sh "pp*"
was successful for me locally though I do not see test_dlpack.py
being run:
This PR implements producing part of the DLPack protocol on
CBufferView
(andCArray
/CArrayView
) object. With the changes in this PR, the following code works:Changes
Included changes in this PR:
__dlpack__
method onCBufferView
__dlpack_device__
method onCBufferView
Possible follow-up
__dlpack__
and__dlpack_device__
method to theCArray
(View
?)__dlpack__
About DLPack:
DLPack is selected for Array API protocol. See more about it: https://dmlc.github.io/dlpack/latest/python_spec.html