6.26 acc_map_data – Map previously allocated device memory to host memory.

Description

This function maps previously allocated device and host memory. The device memory is specified with the device address data_dev. The host memory is specified with the host address data_arg and a length of bytes.

C/C++:
Prototype:void acc_map_data(h_void *data_arg, d_void *data_dev, size_t bytes);
Fortran:
Interface:subroutine acc_map_data(data_arg, data_dev, bytes)
type(*), dimension(*) :: data_arg
type(c_ptr), value :: data_dev
integer(c_size_t), value :: bytes
Reference:

OpenACC specification v2.6, section 3.2.26. OpenACC specification v3.3, section 3.2.21.