Lines Matching refs:DeviceNum
49 EXTERN void *omp_target_alloc(size_t Size, int DeviceNum) { in omp_target_alloc() argument
50 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_DEFAULT, __func__); in omp_target_alloc()
53 EXTERN void *llvm_omp_target_alloc_device(size_t Size, int DeviceNum) { in llvm_omp_target_alloc_device() argument
54 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_DEVICE, __func__); in llvm_omp_target_alloc_device()
57 EXTERN void *llvm_omp_target_alloc_host(size_t Size, int DeviceNum) { in llvm_omp_target_alloc_host() argument
58 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_HOST, __func__); in llvm_omp_target_alloc_host()
61 EXTERN void *llvm_omp_target_alloc_shared(size_t Size, int DeviceNum) { in llvm_omp_target_alloc_shared() argument
62 return targetAllocExplicit(Size, DeviceNum, TARGET_ALLOC_SHARED, __func__); in llvm_omp_target_alloc_shared()
68 EXTERN void omp_target_free(void *DevicePtr, int DeviceNum) { in omp_target_free() argument
71 DeviceNum, DPxPTR(DevicePtr)); in omp_target_free()
78 if (DeviceNum == omp_get_initial_device()) { in omp_target_free()
84 if (!deviceIsReady(DeviceNum)) { in omp_target_free()
89 PM->Devices[DeviceNum]->deleteData(DevicePtr); in omp_target_free()
93 EXTERN int omp_target_is_present(const void *Ptr, int DeviceNum) { in omp_target_is_present() argument
96 DeviceNum, DPxPTR(Ptr)); in omp_target_is_present()
103 if (DeviceNum == omp_get_initial_device()) { in omp_target_is_present()
111 if (DevicesSize <= (size_t)DeviceNum) { in omp_target_is_present()
117 DeviceTy &Device = *PM->Devices[DeviceNum]; in omp_target_is_present()
280 int DeviceNum) { in omp_target_associate_ptr() argument
284 DPxPTR(HostPtr), DPxPTR(DevicePtr), Size, DeviceOffset, DeviceNum); in omp_target_associate_ptr()
291 if (DeviceNum == omp_get_initial_device()) { in omp_target_associate_ptr()
296 if (!deviceIsReady(DeviceNum)) { in omp_target_associate_ptr()
301 DeviceTy &Device = *PM->Devices[DeviceNum]; in omp_target_associate_ptr()
309 EXTERN int omp_target_disassociate_ptr(const void *HostPtr, int DeviceNum) { in omp_target_disassociate_ptr() argument
313 DPxPTR(HostPtr), DeviceNum); in omp_target_disassociate_ptr()
320 if (DeviceNum == omp_get_initial_device()) { in omp_target_disassociate_ptr()
326 if (!deviceIsReady(DeviceNum)) { in omp_target_disassociate_ptr()
331 DeviceTy &Device = *PM->Devices[DeviceNum]; in omp_target_disassociate_ptr()