VecCUDARestoreArray#
Restore a device buffer previously acquired with VecCUDAGetArray().
Synopsis#
#include <petscvec.h>
PetscErrorCode VecCUDARestoreArray(Vec v, PetscScalar *a[])
Not Collective; Asynchronous
Input Parameters#
v - the vector
a - the device buffer
Note#
The restored pointer is invalid after this function returns. This function also marks the
host data as out of date. Subsequent access to the vector data on the host side via
VecGetArray() will incur a (synchronous) data transfer.
Fortran Note#
PetscScalar, pointer :: a(:)
See Also#
Vectors and Parallel Data, VecCUDAGetArray(), VecCUDAGetArrayRead(), VecCUDAGetArrayWrite(), VecGetArray(),
VecRestoreArray(), VecGetArrayRead()
Level#
intermediate
Location#
Examples#
src/vec/is/sf/tests/ex9.c
src/vec/vec/tests/ex67.c
src/vec/vec/tests/ex67f.F90
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages