File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
offload/libomptarget/OpenMP Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments