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


5.24 acc_update_device – Update device memory from mapped host memory.

Description

This function updates the device copy from the previously mapped host memory. The host memory is specified with the host address a and a length of len bytes.

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_update_device(h_void *a, size_t len);
Prototype:acc_update_device(h_void *a, size_t len, async);
Fortran:
Interface:subroutine acc_update_device(a)
type, dimension(:[,:]...) :: a
Interface:subroutine acc_update_device(a, len)
type, dimension(:[,:]...) :: a
integer len
Interface:subroutine acc_update_device_async(a, async)
type, dimension(:[,:]...) :: a
integer(acc_handle_kind) :: async
Interface:subroutine acc_update_device_async(a, len, async)
type, dimension(:[,:]...) :: a
integer len
integer(acc_handle_kind) :: async
Reference:

OpenACC specification v2.6, section 3.2.24.