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/device.h
Show First 20 Lines • Show All 438 Lines • ▼ Show 20 Lines | int32_t submitData(void *TgtPtrBegin, void *HstPtrBegin, int64_t Size, | ||||
AsyncInfoTy &AsyncInfo); | AsyncInfoTy &AsyncInfo); | ||||
// Copy data from device back to host | // Copy data from device back to host | ||||
int32_t retrieveData(void *HstPtrBegin, void *TgtPtrBegin, int64_t Size, | int32_t retrieveData(void *HstPtrBegin, void *TgtPtrBegin, int64_t Size, | ||||
AsyncInfoTy &AsyncInfo); | AsyncInfoTy &AsyncInfo); | ||||
// Copy data from current device to destination device directly | // Copy data from current device to destination device directly | ||||
int32_t dataExchange(void *SrcPtr, DeviceTy &DstDev, void *DstPtr, | int32_t dataExchange(void *SrcPtr, DeviceTy &DstDev, void *DstPtr, | ||||
int64_t Size, AsyncInfoTy &AsyncInfo); | int64_t Size, AsyncInfoTy &AsyncInfo); | ||||
/// Notify the plugin about a new mapping starting at the host address | |||||
/// \p HstPtr and \p Size bytes. | |||||
int32_t notifyDataMapped(void *HstPtr, int64_t Size); | |||||
/// Notify the plugin about an existing mapping being unmapped starting at | |||||
/// the host address \p HstPtr. | |||||
int32_t notifyDataUnmapped(void *HstPtr); | |||||
// Launch the kernel identified by \p TgtEntryPtr with the given arguments. | // Launch the kernel identified by \p TgtEntryPtr with the given arguments. | ||||
int32_t launchKernel(void *TgtEntryPtr, void **TgtVarsPtr, | int32_t launchKernel(void *TgtEntryPtr, void **TgtVarsPtr, | ||||
ptrdiff_t *TgtOffsets, const KernelArgsTy &KernelArgs, | ptrdiff_t *TgtOffsets, const KernelArgsTy &KernelArgs, | ||||
AsyncInfoTy &AsyncInfo); | AsyncInfoTy &AsyncInfo); | ||||
/// Synchronize device/queue/event based on \p AsyncInfo and return | /// Synchronize device/queue/event based on \p AsyncInfo and return | ||||
/// OFFLOAD_SUCCESS/OFFLOAD_FAIL when succeeds/fails. | /// OFFLOAD_SUCCESS/OFFLOAD_FAIL when succeeds/fails. | ||||
int32_t synchronize(AsyncInfoTy &AsyncInfo); | int32_t synchronize(AsyncInfoTy &AsyncInfo); | ||||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |