Skip to content

Commit d6cbb68

Browse files
committed
remove plugin-level getDeviceUid()
1 parent 6fffb00 commit d6cbb68

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
@@ -92,7 +92,7 @@ EXTERN int omp_get_device_from_uid(const char *DeviceUid) {
9292

9393
auto ExclusiveDevicesAccessor = PM->getExclusiveDevicesAccessor();
9494
for (const DeviceTy &Device : PM->devices(ExclusiveDevicesAccessor)) {
95-
const char *Uid = Device.RTL->getDeviceUid(Device.RTLDeviceID);
95+
const char *Uid = Device.RTL->getDevice(Device.RTLDeviceID).getDeviceUid();
9696
if (Uid && strcmp(DeviceUid, Uid) == 0) {
9797
DeviceNum = Device.DeviceID;
9898
break;
@@ -120,7 +120,8 @@ EXTERN const char *omp_get_uid_from_device(int DeviceNum) {
120120
if (!DeviceOrErr)
121121
FATAL_MESSAGE(DeviceNum, "%s", toString(DeviceOrErr.takeError()).c_str());
122122

123-
const char *Uid = DeviceOrErr->RTL->getDeviceUid(DeviceOrErr->RTLDeviceID);
123+
const char *Uid =
124+
DeviceOrErr->RTL->getDevice(DeviceOrErr->RTLDeviceID).getDeviceUid();
124125
DP("Call to omp_get_uid_from_device returning %s\n", Uid);
125126
return Uid;
126127
}

0 commit comments

Comments
 (0)