Skip to content

Commit 6fffb00

Browse files
committed
rename getInitialDeviceUid to getHostDeviceUid again
1 parent 944b974 commit 6fffb00

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
@@ -71,7 +71,7 @@ EXTERN int omp_get_device_num(void) {
7171
}
7272

7373
static inline bool is_initial_device_uid(const char *DeviceUid) {
74-
return strcmp(DeviceUid, GenericPluginTy::getInitialDeviceUid()) == 0;
74+
return strcmp(DeviceUid, GenericPluginTy::getHostDeviceUid()) == 0;
7575
}
7676

7777
EXTERN int omp_get_device_from_uid(const char *DeviceUid) {
@@ -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 initial device UID\n");
116-
return GenericPluginTy::getInitialDeviceUid();
116+
return GenericPluginTy::getHostDeviceUid();
117117
}
118118

119119
auto DeviceOrErr = PM->getDevice(DeviceNum);

0 commit comments

Comments
 (0)