https://github.com/jhuber6 commented: CUDA has cuDeviceGetUuid() we should use that https://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__DEVICE.html#group__CUDA__DEVICE_1g987b46b884c101ed5be414ab4d9e60e4. https://github.com/llvm/llvm-project/pull/164391