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 @@ -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}
You can’t perform that action at this time.
0 commit comments