acc_present_or_copyin
– If the data is not present on the device, allocate device memory and copy from host memory.In Fortran, two (2) forms are supported. In the first form, a specifies
a contiguous array section. The second form a specifies a variable or
array element and len specifies the length in bytes.
Prototype: | void *acc_present_or_copyin(h_void *a, size_t len);
|
Prototype: | void *acc_pcopyin(h_void *a, size_t len);
|
Interface: | subroutine acc_present_or_copyin(a)
|
type, dimension(:[,:]...) :: a
| |
Interface: | subroutine acc_present_or_copyin(a, len)
|
type, dimension(:[,:]...) :: a
| |
integer len
| |
Interface: | subroutine acc_pcopyin(a)
|
type, dimension(:[,:]...) :: a
| |
Interface: | subroutine acc_pcopyin(a, len)
|
type, dimension(:[,:]...) :: a
| |
integer len
|