Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
openmp/libomptarget/src/omptarget.cpp
Show First 20 Lines • Show All 199 Lines • ▼ Show 20 Lines | for (auto *HostEntriesBegin : PM->HostEntriesBeginRegistrationOrder) { | ||||
HDTTMap->emplace(new HostDataToTargetTy( | HDTTMap->emplace(new HostDataToTargetTy( | ||||
(uintptr_t)CurrHostEntry->addr /*HstPtrBase*/, | (uintptr_t)CurrHostEntry->addr /*HstPtrBase*/, | ||||
(uintptr_t)CurrHostEntry->addr /*HstPtrBegin*/, | (uintptr_t)CurrHostEntry->addr /*HstPtrBegin*/, | ||||
(uintptr_t)CurrHostEntry->addr + | (uintptr_t)CurrHostEntry->addr + | ||||
CurrHostEntry->size /*HstPtrEnd*/, | CurrHostEntry->size /*HstPtrEnd*/, | ||||
(uintptr_t)CurrDeviceEntry->addr /*TgtPtrBegin*/, | (uintptr_t)CurrDeviceEntry->addr /*TgtPtrBegin*/, | ||||
false /*UseHoldRefCount*/, CurrHostEntry->name, | false /*UseHoldRefCount*/, CurrHostEntry->name, | ||||
true /*IsRefCountINF*/)); | true /*IsRefCountINF*/)); | ||||
// Notify about the new mapping. | |||||
if (Device.notifyDataMapped(CurrHostEntry->addr, CurrHostEntry->size)) | |||||
return OFFLOAD_FAIL; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
} | } | ||||
if (Rc != OFFLOAD_SUCCESS) { | if (Rc != OFFLOAD_SUCCESS) { | ||||
return Rc; | return Rc; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,552 Lines • Show Last 20 Lines |