MatSeqAIJCUSPARSEGetArrayWrite#
gives write access to the array where the device data for a MATSEQAIJCUSPARSE matrix is stored
Synopsis#
#include "petscmat.h"
PetscErrorCode MatSeqAIJCUSPARSEGetArrayWrite(Mat A, PetscScalar **a)
Not Collective
Input Parameter#
A - a
MATSEQAIJCUSPARSEmatrix
Output Parameter#
a - pointer to the device data
Note#
Does not trigger any host to device copies.
It marks the data GPU valid so users must set all the values in a to ensure out-of-date data is not considered current
See Also#
Matrices, Mat, MatSeqAIJCUSPARSEGetArray(), MatSeqAIJCUSPARSEGetArrayRead(), MatSeqAIJCUSPARSERestoreArrayWrite()
Level#
developer
Location#
src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages