Skip to content

Commit 36c6325

Browse files
committed
remove plugin-level getDeviceUid()
1 parent 3610b36 commit 36c6325

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

offload/libomptarget/OpenMP/API.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ EXTERN int omp_get_device_from_uid(const char *DeviceUid) {
115115

116116
auto ExclusiveDevicesAccessor = PM->getExclusiveDevicesAccessor();
117117
for (const DeviceTy &Device : PM->devices(ExclusiveDevicesAccessor)) {
118-
const char *Uid = Device.RTL->getDeviceUid(Device.RTLDeviceID);
118+
const char *Uid = Device.RTL->getDevice(Device.RTLDeviceID).getDeviceUid();
119119
if (Uid && strcmp(DeviceUid, Uid) == 0) {
120120
DeviceNum = Device.DeviceID;
121121
break;
@@ -143,7 +143,8 @@ EXTERN const char *omp_get_uid_from_device(int DeviceNum) {
143143
if (!DeviceOrErr)
144144
FATAL_MESSAGE(DeviceNum, "%s", toString(DeviceOrErr.takeError()).c_str());
145145

146-
const char *Uid = DeviceOrErr->RTL->getDeviceUid(DeviceOrErr->RTLDeviceID);
146+
const char *Uid =
147+
DeviceOrErr->RTL->getDevice(DeviceOrErr->RTLDeviceID).getDeviceUid();
147148
DP("Call to omp_get_uid_from_device returning %s\n", Uid);
148149
return Uid;
149150
}

0 commit comments

Comments
 (0)