libgomp: acc_present_or_create

1 
1 5.20 'acc_present_or_create' - If the data is not present on the device, allocate device memory and map it to host memory.
1 ==========================================================================================================================
1 
1 _Description_
1      This function tests if the host data specifed by A and of length
1      LEN is present or not.  If it is not present, then device memory
1      will be allocated and mapped to host memory.  In C/C++, the device
1      address of the newly allocated device memory is returned.
1 
1      In Fortran, two (2) forms are supported.  In the first form, A
1      specifies a contiguous array section.  The second form A specifies
1      a variable or array element and LEN specifies the length in bytes.
1 
1 _C/C++_:
1      _Prototype_:   'void *acc_present_or_create(h_void *a, size_t len)'
1      _Prototype_:   'void *acc_pcreate(h_void *a, size_t len)'
1 
1 _Fortran_:
1      _Interface_:   'subroutine acc_present_or_create(a)'
1                     'type, dimension(:[,:]...) :: a'
1      _Interface_:   'subroutine acc_present_or_create(a, len)'
1                     'type, dimension(:[,:]...) :: a'
1                     'integer len'
1      _Interface_:   'subroutine acc_pcreate(a)'
1                     'type, dimension(:[,:]...) :: a'
1      _Interface_:   'subroutine acc_pcreate(a, len)'
1                     'type, dimension(:[,:]...) :: a'
1                     'integer len'
1 
1 _Reference_:
1      OpenACC specification v2.0 (https://www.openacc.org), section
1      3.2.20.
1