cuda-python icon indicating copy to clipboard operation
cuda-python copied to clipboard

[FEA]: cuda.core.system: Provide convenience methods to convert between cuda.core.system.Device and cuda.core.Device

Open mdboom opened this issue 2 weeks ago • 0 comments

Is this a duplicate?

  • [ ] I confirmed there appear to be no duplicate issues for this request and that I agree to the Code of Conduct

Area

cuda.core

Is your feature request related to a problem? Please describe.

cuda.core.system.Device is for accessing NVML-based information. By design, it does not initialize or load any CUDA libraries.

However, these devices correspond 1:1 with CUDA device handles (though the handles themselves are different). It would be nice to have convenience methods to convert between these two types.

Describe the solution you'd like

Add cuda.core.system.Device::to_cuda_device and cuda.core.Device::to_system_device.

Describe alternatives you've considered

No response

Additional context

No response

mdboom avatar Jan 16 '26 15:01 mdboom