libgomp: acc_is_present
1
1 5.29 'acc_is_present' - Indicate whether host variable / array is present on device.
1 ====================================================================================
1
1 _Description_
1 This function indicates whether the specified host address in A and
1 a length of LEN bytes is present on the device. In C/C++, a
1 non-zero value is returned to indicate the presence of the mapped
1 memory on the device. A zero is returned to indicate the memory is
1 not mapped on the device.
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 If the host memory is mapped to device memory, then a 'true' is
1 returned. Otherwise, a 'false' is return to indicate the mapped
1 memory is not present.
1
1 _C/C++_:
1 _Prototype_: 'int acc_is_present(h_void *a, size_t len);'
1
1 _Fortran_:
1 _Interface_: 'function acc_is_present(a)'
1 'type, dimension(:[,:]...) :: a'
1 'logical acc_is_present'
1 _Interface_: 'function acc_is_present(a, len)'
1 'type, dimension(:[,:]...) :: a'
1 'integer len'
1 'logical acc_is_present'
1
1 _Reference_:
1 OpenACC specification v2.0 (https://www.openacc.org), section
1 3.2.29.
1