VecViennaCLRestoreCLMemWrite#

Restores a CL buffer pointer previously acquired with VecViennaCLGetCLMemWrite().

Synopsis#

#include "petscvec.h" 
PETSC_EXTERN PetscErrorCode VecViennaCLRestoreCLMemWrite(Vec v)

This marks the host data as out of date. Subsequent access to the vector data on the host side with for instance VecGetArray() incurs a data transfer.

Input Parameter#

  • v - the vector

See Also#

VecViennaCLGetCLContext(), VecViennaCLGetCLMemWrite()

Level#

intermediate

Location#

src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx


Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages