2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
8 acc_update_self -- Update host memory from mapped device memory.
9 ****************************************************************
12 This function updates the host copy from the previously mapped device memory.
13 The host memory is specified with the host address :samp:`{a}` and a length of
16 In Fortran, two (2) forms are supported. In the first form, :samp:`{a}` specifies
17 a contiguous array section. The second form :samp:`{a}` specifies a variable or
18 array element and :samp:`{len}` specifies the length in bytes.
24 - ``acc_update_self(h_void *a, size_t len);``
26 - ``acc_update_self_async(h_void *a, size_t len, int async);``
32 - ``subroutine acc_update_self(a)``
34 - ``type, dimension(:[,:]...) :: a``
36 - ``subroutine acc_update_self(a, len)``
38 - ``type, dimension(:[,:]...) :: a``
42 - ``subroutine acc_update_self_async(a, async)``
44 - ``type, dimension(:[,:]...) :: a``
46 - ``integer(acc_handle_kind) :: async``
48 - ``subroutine acc_update_self_async(a, len, async)``
50 - ``type, dimension(:[,:]...) :: a``
54 - ``integer(acc_handle_kind) :: async``
57 :openacc:`2.6`, section