Home
last modified time | relevance | path

Searched refs:HstPtr (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/openmp/libomptarget/plugins/common/MemoryManager/
H A DMemoryManager.h135 void *allocateOnDevice(size_t Size, void *HstPtr) const { in allocateOnDevice() argument
136 return DeviceAllocator.allocate(Size, HstPtr, TARGET_ALLOC_DEVICE); in allocateOnDevice()
145 void *freeAndAllocate(size_t Size, void *HstPtr) { in freeAndAllocate() argument
169 return allocateOnDevice(Size, HstPtr); in freeAndAllocate()
176 void *allocateOrFreeAndAllocateOnDevice(size_t Size, void *HstPtr) { in allocateOrFreeAndAllocateOnDevice() argument
177 void *TgtPtr = allocateOnDevice(Size, HstPtr); in allocateOrFreeAndAllocateOnDevice()
183 TgtPtr = freeAndAllocate(Size, HstPtr); in allocateOrFreeAndAllocateOnDevice()
214 void *allocate(size_t Size, void *HstPtr) { in allocate() argument
221 Size, DPxPTR(HstPtr)); in allocate()
229 void *TgtPtr = allocateOrFreeAndAllocateOnDevice(Size, HstPtr); in allocate()
[all …]
/llvm-project-15.0.7/openmp/libomptarget/plugins/remote/src/
H A Drtl.cpp75 void *__tgt_rtl_data_alloc(int32_t DeviceId, int64_t Size, void *HstPtr, in __tgt_rtl_data_alloc() argument
83 return Manager->dataAlloc(DeviceId, Size, HstPtr); in __tgt_rtl_data_alloc()
86 int32_t __tgt_rtl_data_submit(int32_t DeviceId, void *TgtPtr, void *HstPtr, in __tgt_rtl_data_submit() argument
88 return Manager->dataSubmit(DeviceId, TgtPtr, HstPtr, Size); in __tgt_rtl_data_submit()
91 int32_t __tgt_rtl_data_retrieve(int32_t DeviceId, void *HstPtr, void *TgtPtr, in __tgt_rtl_data_retrieve() argument
93 return Manager->dataRetrieve(DeviceId, HstPtr, TgtPtr, Size); in __tgt_rtl_data_retrieve()
H A DClient.cpp273 void *HstPtr) { in dataAlloc() argument
282 Request->set_hst_ptr((uint64_t)HstPtr); in dataAlloc()
318 Request->set_data((char *)HstPtr + Start, End - Start); in dataSubmit()
319 Request->set_hst_ptr((uint64_t)HstPtr); in dataSubmit()
340 Request->set_data(HstPtr, Size); in dataSubmit()
341 Request->set_hst_ptr((uint64_t)HstPtr); in dataSubmit()
383 Request->set_hst_ptr((int64_t)HstPtr); in dataRetrieve()
394 Size, DeviceId, TgtPtr, HstPtr) in dataRetrieve()
404 memcpy((void *)((char *)HstPtr + Reply->start()), in dataRetrieve()
656 void *HstPtr) { in dataAlloc() argument
[all …]
H A DClient.h80 void *dataAlloc(int32_t DeviceId, int64_t Size, void *HstPtr);
83 int32_t dataSubmit(int32_t DeviceId, void *TgtPtr, void *HstPtr,
85 int32_t dataRetrieve(int32_t DeviceId, void *HstPtr, void *TgtPtr,
135 void *dataAlloc(int32_t DeviceId, int64_t Size, void *HstPtr);
138 int32_t dataSubmit(int32_t DeviceId, void *TgtPtr, void *HstPtr,
140 int32_t dataRetrieve(int32_t DeviceId, void *HstPtr, void *TgtPtr,
/llvm-project-15.0.7/openmp/libomptarget/plugins/generic-elf-64bit/src/
H A Drtl.cpp260 void *__tgt_rtl_data_alloc(int32_t DeviceId, int64_t Size, void *HstPtr, in __tgt_rtl_data_alloc() argument
278 int32_t __tgt_rtl_data_submit(int32_t DeviceId, void *TgtPtr, void *HstPtr, in __tgt_rtl_data_submit() argument
280 memcpy(TgtPtr, HstPtr, Size); in __tgt_rtl_data_submit()
284 int32_t __tgt_rtl_data_retrieve(int32_t DeviceId, void *HstPtr, void *TgtPtr, in __tgt_rtl_data_retrieve() argument
286 memcpy(HstPtr, TgtPtr, Size); in __tgt_rtl_data_retrieve()
/llvm-project-15.0.7/openmp/libomptarget/plugins/amdgpu/src/
H A Drtl.cpp1128 if (!HstPtr) in dataRetrieve()
1133 (long long unsigned)(Elf64_Addr)HstPtr); in dataRetrieve()
1141 (Elf64_Addr)HstPtr, (Elf64_Addr)TgtPtr, (unsigned long long)Size); in dataRetrieve()
1146 (long long unsigned)(Elf64_Addr)HstPtr); in dataRetrieve()
1156 if (!HstPtr) in dataSubmit()
1160 (long long unsigned)(Elf64_Addr)HstPtr, in dataSubmit()
2623 int32_t __tgt_rtl_data_submit(int DeviceId, void *TgtPtr, void *HstPtr, in __tgt_rtl_data_submit() argument
2627 int32_t Rc = dataSubmit(DeviceId, TgtPtr, HstPtr, Size, &AsyncInfo); in __tgt_rtl_data_submit()
2639 return dataSubmit(DeviceId, TgtPtr, HstPtr, Size, AsyncInfo); in __tgt_rtl_data_submit_async()
2641 return __tgt_rtl_data_submit(DeviceId, TgtPtr, HstPtr, Size); in __tgt_rtl_data_submit_async()
[all …]
/llvm-project-15.0.7/openmp/libomptarget/plugins/cuda/src/
H A Drtl.cpp998 int dataSubmit(const int DeviceId, const void *TgtPtr, const void *HstPtr, in dataSubmit() argument
1007 DPxPTR(HstPtr), DPxPTR(TgtPtr), Size); in dataSubmit()
1015 int dataRetrieve(const int DeviceId, void *HstPtr, const void *TgtPtr, in dataRetrieve() argument
1024 DPxPTR(HstPtr), DPxPTR(TgtPtr), Size); in dataRetrieve()
1621 int32_t __tgt_rtl_data_submit(int32_t DeviceId, void *TgtPtr, void *HstPtr, in __tgt_rtl_data_submit() argument
1628 __tgt_rtl_data_submit_async(DeviceId, TgtPtr, HstPtr, Size, &AsyncInfo); in __tgt_rtl_data_submit()
1636 void *HstPtr, int64_t Size, in __tgt_rtl_data_submit_async() argument
1644 return DeviceRTL.dataSubmit(DeviceId, TgtPtr, HstPtr, Size, AsyncInfoPtr); in __tgt_rtl_data_submit_async()
1647 int32_t __tgt_rtl_data_retrieve(int32_t DeviceId, void *HstPtr, void *TgtPtr, in __tgt_rtl_data_retrieve() argument
1661 int32_t __tgt_rtl_data_retrieve_async(int32_t DeviceId, void *HstPtr, in __tgt_rtl_data_retrieve_async() argument
[all …]
/llvm-project-15.0.7/openmp/libomptarget/src/
H A Domptarget.cpp628 PostProcessingInfo(void *HstPtr, int64_t Size, int64_t ArgType, bool DelEntry, in PostProcessingInfo()
630 : HstPtrBegin(HstPtr), DataSize(Size), ArgType(ArgType), TPR(TPR), in PostProcessingInfo()
1166 FirstPrivateArgInfoTy(int Index, const void *HstPtr, int64_t Size, in FirstPrivateArgInfoTy()
1168 : Index(Index), HstPtrBegin(reinterpret_cast<const char *>(HstPtr)), in FirstPrivateArgInfoTy()
1199 int addArg(void *HstPtr, int64_t ArgSize, int64_t ArgOffset, in addArg() argument
1208 TgtPtr = Device.allocData(ArgSize, HstPtr); in addArg()
1211 (IsFirstPrivate ? "first-" : ""), DPxPTR(HstPtr)); in addArg()
1220 DPxPTR(HstPtr), DPxPTR(TgtPtrBase)); in addArg()
1225 int Ret = Device.submitData(TgtPtr, HstPtr, ArgSize, AsyncInfo); in addArg()
1234 DPxPTR(HstPtr), ArgSize); in addArg()
[all …]
H A Ddevice.cpp516 void *DeviceTy::allocData(int64_t Size, void *HstPtr, int32_t Kind) { in allocData() argument
517 return RTL->data_alloc(RTLDeviceID, Size, HstPtr, Kind); in allocData()
/llvm-project-15.0.7/openmp/libomptarget/plugins/remote/server/
H A DServer.cpp213 auto HstPtr = std::make_unique<char[]>(Request->size()); in DataRetrieve() local
216 mapHostRTLDeviceId(Request->device_id()), HstPtr.get(), in DataRetrieve()
229 Reply->set_data((char *)HstPtr.get() + Start, End - Start); in DataRetrieve()
250 Reply->set_data((char *)HstPtr.get(), Request->size()); in DataRetrieve()
/llvm-project-15.0.7/openmp/libomptarget/include/
H A Ddevice.h409 void *allocData(int64_t Size, void *HstPtr = nullptr,
/llvm-project-15.0.7/openmp/docs/design/
H A DRuntimes.rst813 Info: Copying data from host to device, HstPtr=0x00007fff0d259a40,
817 Info: Copying data from host to device, HstPtr=0x00007fff0d255a40,
832 Info: Copying data from host to device, HstPtr=0x00007fff0d2559f0,
849 HstPtr=0x00007fff0d2559f0, Size=16, Name=D
864 HstPtr=0x00007fff0d255a40, Size=16384, Name=Y[0:N]