Home
last modified time | relevance | path

Searched refs:DevicePtr (Results 1 – 5 of 5) sorted by relevance

/llvm-project-15.0.7/openmp/libomptarget/src/
H A Dapi.cpp68 EXTERN void omp_target_free(void *DevicePtr, int DeviceNum) { in omp_target_free() argument
71 DeviceNum, DPxPTR(DevicePtr)); in omp_target_free()
73 if (!DevicePtr) { in omp_target_free()
79 free(DevicePtr); in omp_target_free()
89 PM->Devices[DeviceNum]->deleteData(DevicePtr); in omp_target_free()
278 EXTERN int omp_target_associate_ptr(const void *HostPtr, const void *DevicePtr, in omp_target_associate_ptr() argument
284 DPxPTR(HostPtr), DPxPTR(DevicePtr), Size, DeviceOffset, DeviceNum); in omp_target_associate_ptr()
286 if (!HostPtr || !DevicePtr || Size <= 0) { in omp_target_associate_ptr()
302 void *DeviceAddr = (void *)((uint64_t)DevicePtr + (uint64_t)DeviceOffset); in omp_target_associate_ptr()
/llvm-project-15.0.7/polly/tools/GPURuntime/
H A DGPUJIT.c71 void *DevicePtr; member
633 OpenCLDevicePtr *DevPtr = (OpenCLDevicePtr *)Allocation->DevicePtr; in freeDeviceMemoryCL()
654 DevData->DevicePtr = (OpenCLDevicePtr *)malloc(sizeof(OpenCLDevicePtr)); in allocateMemoryForDeviceCL()
655 if (DevData->DevicePtr == 0) { in allocateMemoryForDeviceCL()
661 ((OpenCLDevicePtr *)DevData->DevicePtr)->MemObj = in allocateMemoryForDeviceCL()
673 OpenCLDevicePtr *DevPtr = (OpenCLDevicePtr *)Allocation->DevicePtr; in getDevicePtrCL()
1384 CUdeviceptr CuDevData = ((CUDADevicePtr *)DevData->DevicePtr)->Cuda; in copyFromHostToDeviceCUDA()
1503 CUDADevicePtr *DevPtr = (CUDADevicePtr *)Allocation->DevicePtr; in freeDeviceMemoryCUDA()
1525 DevData->DevicePtr = (CUDADevicePtr *)malloc(sizeof(CUDADevicePtr)); in allocateMemoryForDeviceCUDA()
1526 if (DevData->DevicePtr == 0) { in allocateMemoryForDeviceCUDA()
[all …]
/llvm-project-15.0.7/openmp/libomptarget/include/
H A Domptarget.h229 void omp_target_free(void *DevicePtr, int DeviceNum);
240 int omp_target_associate_ptr(const void *HostPtr, const void *DevicePtr,
/llvm-project-15.0.7/openmp/libomptarget/plugins/cuda/src/
H A Drtl.cpp381 CUdeviceptr DevicePtr; in allocate() local
382 Err = cuMemAlloc(&DevicePtr, Size); in allocate()
383 MemAlloc = (void *)DevicePtr; in allocate()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DPPCGCodeGeneration.cpp716 void createCallCopyFromHostToDevice(Value *HostPtr, Value *DevicePtr,
723 void createCallCopyFromDeviceToHost(Value *DevicePtr, Value *HostPtr,