File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
offload/libomptarget/OpenMP Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ EXTERN int omp_get_device_num(void) {
9494}
9595
9696static inline bool is_initial_device_uid (const char *DeviceUid) {
97- return strcmp (DeviceUid, GenericPluginTy::getInitialDeviceUid ()) == 0 ;
97+ return strcmp (DeviceUid, GenericPluginTy::getHostDeviceUid ()) == 0 ;
9898}
9999
100100EXTERN int omp_get_device_from_uid (const char *DeviceUid) {
@@ -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 initial device UID\n " );
139- return GenericPluginTy::getInitialDeviceUid ();
139+ return GenericPluginTy::getHostDeviceUid ();
140140 }
141141
142142 auto DeviceOrErr = PM->getDevice (DeviceNum);
You can’t perform that action at this time.
0 commit comments