.. Copyright 1988-2022 Free Software Foundation, Inc. This is part of the GCC manual. For copying conditions, see the copyright.rst file. .. _acc_attach: 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++: .. list-table:: * - *Prototype*: - ``acc_attach(h_void **ptr);`` * - *Prototype*: - ``acc_attach_async(h_void **ptr, int async);`` Reference: :openacc:`2.6`, section 3.2.34.