@@ -71,7 +71,7 @@ EXTERN int omp_get_device_num(void) {
7171}
7272
7373static inline bool is_host_device_uid (const char *DeviceUid) {
74- return strcmp (DeviceUid, GenericDeviceTy ::getHostDeviceUid ()) == 0 ;
74+ return strcmp (DeviceUid, GenericPluginTy ::getHostDeviceUid ()) == 0 ;
7575}
7676
7777EXTERN int omp_get_device_from_uid (const char *DeviceUid) {
@@ -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 ->getDevice (Device.RTLDeviceID ). getDeviceUid ( );
95+ const char *Uid = Device.RTL ->getDeviceUid (Device.RTLDeviceID );
9696 if (Uid && strcmp (DeviceUid, Uid) == 0 ) {
9797 DeviceNum = Device.DeviceID ;
9898 break ;
@@ -113,7 +113,7 @@ EXTERN const char *omp_get_uid_from_device(int DeviceNum) {
113113 }
114114 if (DeviceNum == omp_get_initial_device ()) {
115115 DP (" Call to omp_get_uid_from_device returning host device UID\n " );
116- return GenericDeviceTy ::getHostDeviceUid ();
116+ return GenericPluginTy ::getHostDeviceUid ();
117117 }
118118
119119 llvm::Expected<DeviceTy &> Device = PM->getDevice (DeviceNum);
@@ -122,7 +122,7 @@ EXTERN const char *omp_get_uid_from_device(int DeviceNum) {
122122 return nullptr ;
123123 }
124124
125- const char *Uid = Device->RTL ->getDevice (Device->RTLDeviceID ). getDeviceUid ( );
125+ const char *Uid = Device->RTL ->getDeviceUid (Device->RTLDeviceID );
126126 DP (" Call to omp_get_uid_from_device returning %s\n " , Uid);
127127 return Uid;
128128}
0 commit comments