# VecViennaCLRestoreCLMem
Restores a CL buffer pointer previously acquired with VecViennaCLGetCLMem(). 
## Synopsis
```
#include "petscvec.h" 
PETSC_EXTERN PetscErrorCode VecViennaCLRestoreCLMem(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 Parameters

- ***v    -*** the vector





## See Also
 `VecViennaCLGetCLContext()`, `VecViennaCLGetCLMem()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx.html#VecViennaCLRestoreCLMem">src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx)


[Index of all Vec routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
