• Home
  • Raw
  • Download

Lines Matching refs:device_num

37 EXTERN void *omp_target_alloc(size_t size, int device_num) {  in omp_target_alloc()  argument
39 device_num, size); in omp_target_alloc()
48 if (device_num == omp_get_initial_device()) { in omp_target_alloc()
54 if (!device_is_ready(device_num)) { in omp_target_alloc()
59 rc = PM->Devices[device_num].allocData(size); in omp_target_alloc()
64 EXTERN void omp_target_free(void *device_ptr, int device_num) { in omp_target_free() argument
66 device_num, DPxPTR(device_ptr)); in omp_target_free()
73 if (device_num == omp_get_initial_device()) { in omp_target_free()
79 if (!device_is_ready(device_num)) { in omp_target_free()
84 PM->Devices[device_num].deleteData(device_ptr); in omp_target_free()
88 EXTERN int omp_target_is_present(void *ptr, int device_num) { in omp_target_is_present() argument
90 device_num, DPxPTR(ptr)); in omp_target_is_present()
97 if (device_num == omp_get_initial_device()) { in omp_target_is_present()
105 if (DevicesSize <= (size_t)device_num) { in omp_target_is_present()
111 DeviceTy &Device = PM->Devices[device_num]; in omp_target_is_present()
246 size_t size, size_t device_offset, int device_num) { in omp_target_associate_ptr() argument
249 DPxPTR(host_ptr), DPxPTR(device_ptr), size, device_offset, device_num); in omp_target_associate_ptr()
256 if (device_num == omp_get_initial_device()) { in omp_target_associate_ptr()
261 if (!device_is_ready(device_num)) { in omp_target_associate_ptr()
266 DeviceTy &Device = PM->Devices[device_num]; in omp_target_associate_ptr()
273 EXTERN int omp_target_disassociate_ptr(void *host_ptr, int device_num) { in omp_target_disassociate_ptr() argument
275 "device_num %d\n", DPxPTR(host_ptr), device_num); in omp_target_disassociate_ptr()
282 if (device_num == omp_get_initial_device()) { in omp_target_disassociate_ptr()
288 if (!device_is_ready(device_num)) { in omp_target_disassociate_ptr()
293 DeviceTy &Device = PM->Devices[device_num]; in omp_target_disassociate_ptr()