how to diff one device from anothor device #7556
Replies: 2 comments
-
If only Nvidia gpus are available, a list of all available devices can be found from:
The ordering of the list will match the ordering of the devices reported by the nvidia driver using:
i.e device 0 reported by If GPUs from other backends are available you need some more information: Each CUDA device currently has its own platform. The vector of platforms returned from sycl::platform::get_platforms() is ordered by CUDA device ID with the lowest ID available coming first. This means that we can populate an identical list of devices,
NOTE: In the long-term CUDA devices will be contained within a single platform, and the above code will have to be adjusted. |
Beta Was this translation helpful? Give feedback.
-
I think users can query device id or uuid. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
If I have two same spec devices. How to differ them ? It seems no device_id or platform_id to differ two device(same specification)
Beta Was this translation helpful? Give feedback.
All reactions