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_create -- Allocate device memory and map it to host memory.
9 ***************************************************************
12 This function allocates device memory and maps it to host memory specified
13 by the host address :samp:`{a}` with a length of :samp:`{len}` bytes. In C/C++,
14 the function returns the device address of the allocated device memory.
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 - ``void *acc_create(h_void *a, size_t len);``
26 - ``void *acc_create_async(h_void *a, size_t len, int async);``
32 - ``subroutine acc_create(a)``
34 - ``type, dimension(:[,:]...) :: a``
36 - ``subroutine acc_create(a, len)``
38 - ``type, dimension(:[,:]...) :: a``
42 - ``subroutine acc_create_async(a, async)``
44 - ``type, dimension(:[,:]...) :: a``
46 - ``integer(acc_handle_kind) :: async``
48 - ``subroutine acc_create_async(a, len, async)``
50 - ``type, dimension(:[,:]...) :: a``
54 - ``integer(acc_handle_kind) :: async``
57 :openacc:`2.6`, section