cuda-python
cuda-python copied to clipboard
cuda.core.system: add conveniences to convert between device types
This adds two convenience methods to convert between cuda.core.Device and cuda.core.system.Device.
I have a few design questions for this one:
- Is the naming of
Device.to_system_deviceandDevice.to_cuda_deviceok? - This could be a new type accepted by the constructor, e.g.
cuda.core.Device(nvml_device), but that requires importing the other module from the constructor which could be a performance / cyclical import nightmare.
Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.
Contributors can view more details about this message here.
/ok to test
Doc Preview CI :---: |
:rocket: View preview athttps://nvidia.github.io/cuda-python/pr-preview/pr-1508/
|
https://nvidia.github.io/cuda-python/pr-preview/pr-1508/cuda-core/
|
https://nvidia.github.io/cuda-python/pr-preview/pr-1508/cuda-bindings/
|
https://nvidia.github.io/cuda-python/pr-preview/pr-1508/cuda-pathfinder/
|
Preview will be ready when the GitHub Pages deployment is complete.
/ok to test
/ok to test
Doc Preview CI :---: Preview removed because the pull request was closed or merged.