[llvm] [Offload] Add device UID (PR #164391)
Kevin Sala Penades via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 12:16:27 PST 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()) + "-" +
+ std::to_string(static_cast<uint64_t>(DeviceId));
----------------
kevinsala wrote:
Can you call the setter here?
https://github.com/llvm/llvm-project/pull/164391
More information about the llvm-commits
mailing list