[llvm] [Offload] Add device UID (PR #164391)
Robert Imschweiler via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 21 06:24:25 PDT 2025
================
@@ -715,6 +715,9 @@ GenericDeviceTy::GenericDeviceTy(GenericPluginTy &Plugin, int32_t DeviceId,
DeviceId(DeviceId), GridValues(OMPGridValues),
PeerAccesses(NumDevices, PeerAccessState::PENDING), PeerAccessesLock(),
PinnedAllocs(*this), RPCServer(nullptr) {
+ DeviceUid = std::string(Plugin.getName()) + "-" +
----------------
ro-i wrote:
I do. This is just the default implementation. It is overwritten in the amdgpu rtl, for example.
(And in the cuda rtl, once I add cuDeviceGetUuid() as you suggested below. Just needed to check for a test system.)
https://github.com/llvm/llvm-project/pull/164391
More information about the llvm-commits
mailing list