Draft: feat: implement `__cuda_array_interface__`
https://numba.readthedocs.io/en/stable/cuda/cuda_array_interface.html
This is supported by:
- pycuda
- numba
- cupy
- torch
- nvcv https://github.com/CvCuda/CV-CUDA
- maybe by tensorflow in future: https://github.com/tensorflow/tensorflow/issues/29039
Also allow to execute with cupy (https://docs.cupy.dev/en/stable/index.html) instead of pycuda
TODO:
-
check that pointers in correct CUDA context and if not import into current -
make execution with pycuda aware of __cuda_array_interface__
-
what/how to test
Edited by Stephan Seitz