libgomp: acc_present_or_copyin
1
1 5.18 'acc_present_or_copyin' - If the data is not present on the device, allocate device memory and copy from 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 the host memory copied. The device address
1 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_copyin(h_void *a, size_t len);'
1 _Prototype_: 'void *acc_pcopyin(h_void *a, size_t len);'
1
1 _Fortran_:
1 _Interface_: 'subroutine acc_present_or_copyin(a)'
1 'type, dimension(:[,:]...) :: a'
1 _Interface_: 'subroutine acc_present_or_copyin(a, len)'
1 'type, dimension(:[,:]...) :: a'
1 'integer len'
1 _Interface_: 'subroutine acc_pcopyin(a)'
1 'type, dimension(:[,:]...) :: a'
1 _Interface_: 'subroutine acc_pcopyin(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.18.
1