Searched refs:TgtPtr (Results 1 – 6 of 6) sorted by relevance
/external/llvm-project/openmp/libomptarget/src/ |
D | MemoryManager.cpp | 141 void *TgtPtr = allocateOnDevice(Size, HstPtr); in allocateOrFreeAndAllocateOnDevice() local 144 if (TgtPtr == nullptr) { in allocateOrFreeAndAllocateOnDevice() 147 TgtPtr = freeAndAllocate(Size, HstPtr); in allocateOrFreeAndAllocateOnDevice() 151 if (TgtPtr == nullptr) in allocateOrFreeAndAllocateOnDevice() 156 return TgtPtr; in allocateOrFreeAndAllocateOnDevice() 174 void *TgtPtr = allocateOrFreeAndAllocateOnDevice(Size, HstPtr); in allocate() local 176 DP("Got target pointer " DPxMOD ". Return directly.\n", DPxPTR(TgtPtr)); in allocate() 178 return TgtPtr; in allocate() 208 void *TgtPtr = allocateOrFreeAndAllocateOnDevice(Size, HstPtr); in allocate() local 210 if (TgtPtr == nullptr) in allocate() [all …]
|
D | omptarget.cpp | 938 bool IsFirstPrivate, void *&TgtPtr, int TgtArgsIndex, in addArg() argument 944 TgtPtr = Device.allocData(ArgSize, HstPtr); in addArg() 945 if (!TgtPtr) { in addArg() 951 void *TgtPtrBase = (void *)((intptr_t)TgtPtr + ArgOffset); in addArg() 955 ArgSize, DPxPTR(TgtPtr), (IsFirstPrivate ? "first-" : ""), in addArg() 960 int Ret = Device.submitData(TgtPtr, HstPtr, ArgSize, AsyncInfo); in addArg() 966 TgtPtrs.push_back(TgtPtr); in addArg() 982 TgtPtr = nullptr; in addArg() 1005 void *TgtPtr = in packAndTransfer() local 1007 if (TgtPtr == nullptr) { in packAndTransfer() [all …]
|
D | MemoryManager.h | 92 int free(void *TgtPtr);
|
D | api.cpp | 114 void *TgtPtr = Device.getTgtPtrBegin(ptr, 0, IsLast, false, IsHostPtr); in omp_target_is_present() local 115 int rc = (TgtPtr != NULL); in omp_target_is_present()
|
/external/llvm-project/openmp/libomptarget/plugins/cuda/src/ |
D | rtl.cpp | 738 int dataSubmit(const int DeviceId, const void *TgtPtr, const void *HstPtr, in dataSubmit() argument 748 Err = cuMemcpyHtoDAsync((CUdeviceptr)TgtPtr, HstPtr, Size, Stream); in dataSubmit() 752 DPxPTR(HstPtr), DPxPTR(TgtPtr), Size); in dataSubmit() 760 int dataRetrieve(const int DeviceId, void *HstPtr, const void *TgtPtr, in dataRetrieve() argument 770 Err = cuMemcpyDtoHAsync(HstPtr, (CUdeviceptr)TgtPtr, Size, Stream); in dataRetrieve() 774 DPxPTR(HstPtr), DPxPTR(TgtPtr), Size); in dataRetrieve() 833 int dataDelete(const int DeviceId, void *TgtPtr) const { in dataDelete() 838 Err = cuMemFree((CUdeviceptr)TgtPtr); in dataDelete()
|
/external/llvm-project/openmp/libomptarget/plugins/amdgpu/src/ |
D | rtl.cpp | 568 int32_t dataRetrieve(int32_t DeviceId, void *HstPtr, void *TgtPtr, int64_t Size, in dataRetrieve() argument 577 (long long unsigned)(Elf64_Addr)TgtPtr, in dataRetrieve() 580 err = DeviceInfo.freesignalpool_memcpy_d2h(HstPtr, TgtPtr, (size_t)Size, in dataRetrieve() 586 (Elf64_Addr)HstPtr, (Elf64_Addr)TgtPtr, (unsigned long long)Size); in dataRetrieve() 590 (long long unsigned)(Elf64_Addr)TgtPtr, in dataRetrieve() 595 int32_t dataSubmit(int32_t DeviceId, void *TgtPtr, void *HstPtr, int64_t Size, in dataSubmit() argument 606 (long long unsigned)(Elf64_Addr)TgtPtr); in dataSubmit() 607 err = DeviceInfo.freesignalpool_memcpy_h2d(TgtPtr, HstPtr, (size_t)Size, in dataSubmit() 612 (Elf64_Addr)HstPtr, (Elf64_Addr)TgtPtr, (unsigned long long)Size); in dataSubmit()
|