Skip to content

Commit 6426ccb

Browse files
committed
rename getInitialDeviceUid to getHostDeviceUid again
1 parent 5d67aca commit 6426ccb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

offload/libomptarget/OpenMP/API.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ EXTERN int omp_get_device_num(void) {
9494
}
9595

9696
static 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

100100
EXTERN 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);

0 commit comments

Comments
 (0)