Function opensn::GetVisibleGPUIDs
Defined in File device_binding.h
Function Documentation
-
std::vector<std::string> opensn::GetVisibleGPUIDs()
Returns an identifier of each GPU this process can see, in device order.
The identifier combines the GPU’s PCI bus ID and UUID, so it differs between the GPUs on a node and between the MIG instances of one GPU, and is the same in every process that sees the GPU. SYCL lists a GPU once for each of its backends that reaches it, so the same identifier can appear more than once. When a SYCL device does not support these queries, the identifiers are the device indices. Returns an empty list without GPU support.