cuda-python
cuda-python copied to clipboard
CUDA Python: Performance meets Productivity
### Is this a duplicate? - [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md) ### Type...
This https://github.com/NVIDIA/cuda-python/blob/da7eb1f5a97aa21d8f78098e13e7c4edad013530/cuda_core/tests/test_program.py#L58-L132 has a real need (ex: https://github.com/NVIDIA/numba-cuda/pull/681). We should expose it to `cuda.bindings.utils`, similar to the PTX version helpers.
## Description Add support for exporting `StridedMemoryView` objects via the DLPack protocol. ## Requested Features Both the following protocols should be supported: 1. **`__dlpack__` / `__dlpack_device__`** - The standard Python...
### Is this a duplicate? - [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this request and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md) ### Area...
xref: https://github.com/NVIDIA/cuda-python/pull/1337#issuecomment-3629801505 PR #1337 changed test_cuda.py and test_cudart.py. The idea may apply more generally, TBD.
### Is this a duplicate? - [x] I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cuda-python/issues) for this request and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md) ### Area...
Review `xfail` added in test_memory.py with PR #1302
Since strides in SMV are defined as counts of `itemsize`, they are a subset of what Numpy can handle and we should make sure arrays we can't handle are properly...
https://github.com/NVIDIA/cuda-python/blob/5de2cb616ac61a691051e683fb56e81ecdc825df/cuda_bindings/setup.py#L202-L203