6.35 acc_detach – Let device pointer point to host-pointer target.

Description

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

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

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