On Thu, 2021-05-06 at 08:58 +0000, Williams, Gareth (IM&T, Black
Mountain) wrote:
> ROCR_VISIBLE_DEVICES Is the closer analogy. GPU_DEVICE_ORDINAL is in
> principle more generic (though does have GPU in the name). OpenCL
> could in principle (can!) run on other devices which could/can have
> more exotic topology, but for the sake of simplicity are likely to be
> presented as a list of devices...
>
> Gareth
Here is a ROCm issue discussion on device selection:
https://github.com/RadeonOpenCompute/ROCm/issues/994
ROCm also has a different way to select devices by serial number using
the rocm-smi interface, this approach is much more reliable than using
device ordinals:
https://rocmdocs.amd.com/en/latest/ROCm_System_Managment/ROCm-SMI-CLI.html?highlight=showuniqueid