acc_update_self – Update host memory from mapped device memory.#
- Description
This function updates the host copy from the previously mapped device memory. The host memory is specified with the host address
aand a length oflenbytes.In Fortran, two (2) forms are supported. In the first form,
aspecifies a contiguous array section. The second formaspecifies a variable or array element andlenspecifies the length in bytes.- C/C++:
Prototype:
acc_update_self(h_void *a, size_t len);Prototype:
acc_update_self_async(h_void *a, size_t len, int async);- Fortran:
Interface:
subroutine acc_update_self(a)type, dimension(:[,:]...) :: aInterface:
subroutine acc_update_self(a, len)type, dimension(:[,:]...) :: ainteger lenInterface:
subroutine acc_update_self_async(a, async)type, dimension(:[,:]...) :: ainteger(acc_handle_kind) :: asyncInterface:
subroutine acc_update_self_async(a, len, async)type, dimension(:[,:]...) :: ainteger leninteger(acc_handle_kind) :: async- Reference:
OpenACC specification v2.6, section 3.2.25.