6.34 acc_attach – Let device pointer point to device-pointer target.

Description

This function updates a pointer on the device from pointing to a host-pointer address to pointing to the corresponding device data.

C/C++:
Prototype:void acc_attach(h_void **ptr_addr);
Prototype:void acc_attach_async(h_void **ptr_addr, int async);
Fortran:
Interface:subroutine acc_attach(ptr_addr)
Interface:subroutine acc_attach_async(ptr_addr, async_arg)
type(*), dimension(..) :: ptr_addr
integer(acc_handle_kind), value :: async_arg
Reference:

OpenACC specification v2.6, section 3.2.34. OpenACC specification v3.3, section 3.2.29.