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 @@ -71,7 +71,7 @@ EXTERN int omp_get_device_num(void) {
7171}
7272
7373static 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
7777EXTERN 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);
You can’t perform that action at this time.
0 commit comments