Next: , Previous: , Up: OpenACC Runtime Library Routines   [Contents][Index]


5.21 acc_copyout – Copy device memory to host memory.

Description

This function copies mapped device memory to host memory which is specified by host address a for a length len bytes in C/C++.

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.

C/C++:
Prototype:acc_copyout(h_void *a, size_t len);
Fortran:
Interface:subroutine acc_copyout(a)
type, dimension(:[,:]...) :: a
Interface:subroutine acc_copyout(a, len)
type, dimension(:[,:]...) :: a
integer len
Reference:

OpenACC specification v2.0, section 3.2.21.