@@ -94,7 +94,7 @@ EXTERN int omp_get_device_num(void) {
9494}
9595
9696static inline bool is_host_device_uid (const char *DeviceUid) {
97- return strcmp (DeviceUid, GenericDeviceTy ::getHostDeviceUid ()) == 0 ;
97+ return strcmp (DeviceUid, GenericPluginTy ::getHostDeviceUid ()) == 0 ;
9898}
9999
100100EXTERN int omp_get_device_from_uid (const char *DeviceUid) {
@@ -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 ->getDevice (Device.RTLDeviceID ). getDeviceUid ( );
118+ const char *Uid = Device.RTL ->getDeviceUid (Device.RTLDeviceID );
119119 if (Uid && strcmp (DeviceUid, Uid) == 0 ) {
120120 DeviceNum = Device.DeviceID ;
121121 break ;
@@ -136,7 +136,7 @@ EXTERN const char *omp_get_uid_from_device(int DeviceNum) {
136136 }
137137 if (DeviceNum == omp_get_initial_device ()) {
138138 DP (" Call to omp_get_uid_from_device returning host device UID\n " );
139- return GenericDeviceTy ::getHostDeviceUid ();
139+ return GenericPluginTy ::getHostDeviceUid ();
140140 }
141141
142142 llvm::Expected<DeviceTy &> Device = PM->getDevice (DeviceNum);
@@ -145,7 +145,7 @@ EXTERN const char *omp_get_uid_from_device(int DeviceNum) {
145145 return nullptr ;
146146 }
147147
148- const char *Uid = Device->RTL ->getDevice (Device->RTLDeviceID ). getDeviceUid ( );
148+ const char *Uid = Device->RTL ->getDeviceUid (Device->RTLDeviceID );
149149 DP (" Call to omp_get_uid_from_device returning %s\n " , Uid);
150150 return Uid;
151151}
0 commit comments