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/include/omptargetplugin.h
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Lines | |||||
// lock/pin host memory | // lock/pin host memory | ||||
int32_t __tgt_rtl_data_lock(int32_t ID, void *HstPtr, int64_t Size, | int32_t __tgt_rtl_data_lock(int32_t ID, void *HstPtr, int64_t Size, | ||||
void **LockedPtr); | void **LockedPtr); | ||||
// unlock/unpin host memory | // unlock/unpin host memory | ||||
int32_t __tgt_rtl_data_unlock(int32_t ID, void *HstPtr); | int32_t __tgt_rtl_data_unlock(int32_t ID, void *HstPtr); | ||||
// Notify the plugin about a new mapping starting at the host address \p HstPtr | |||||
// and \p Size bytes. The plugin may lock/pin that buffer to achieve optimal | |||||
// memory transfers involving that buffer. | |||||
int32_t __tgt_rtl_data_notify_mapped(int32_t ID, void *HstPtr, int64_t Size); | |||||
tianshilei1992: `__tgt_rtl_notify_data_mapped`? | |||||
This name was proposed by @ye-luo to be consistent with the other data-related API functions:
kevinsala: This name was proposed by @ye-luo to be consistent with the other `data`-related API functions… | |||||
// Notify the plugin about an existing mapping being unmapped, starting at the | |||||
// host address \p HstPtr and \p Size bytes. | |||||
int32_t __tgt_rtl_data_notify_unmapped(int32_t ID, void *HstPtr); | |||||
The same as line 215 ye-luo: The same as line 215 | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
} | } | ||||
#endif | #endif | ||||
#endif // _OMPTARGETPLUGIN_H_ | #endif // _OMPTARGETPLUGIN_H_ |
__tgt_rtl_notify_data_mapped?