PETSc version 3.15.5
Fix/Edit manual page

VecHIPPlaceArray

Allows one to replace the GPU array in a vector with a GPU array provided by the user. This is useful to avoid copying an array into a vector.

Synopsis

#include "petscvec.h"   
PetscErrorCode VecHIPPlaceArray(Vec vin,const PetscScalar a[])
Not Collective

Input Parameters

vec - the vector
array - the GPU array

Notes

You can return to the original GPU array with a call to VecHIPResetArray() It is not possible to use VecHIPPlaceArray() and VecPlaceArray() at the same time on the same vector.

See Also

VecPlaceArray(), VecGetArray(), VecRestoreArray(), VecReplaceArray(), VecResetArray(), VecHIPResetArray(), VecHIPReplaceArray()

Level

developer

Location

src/vec/vec/interface/rvector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages