MatDenseHIPGetArrayWrite#
Provides write access to the HIP buffer inside a dense matrix.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatDenseHIPGetArrayWrite(Mat A, PetscScalar **a)
Not Collective
Input Parameters#
A - the matrix
Output Parameters
array - the GPU array in column major order
Note#
The data on the GPU may not be updated due to operations done on the CPU. If you need updated data, use MatDenseHIPGetArray()
.
The array must be restored with MatDenseHIPRestoreArrayWrite()
when no longer needed.
See Also#
Matrices, Mat
, MatDenseHIPGetArray(), MatDenseHIPRestoreArray(), MatDenseHIPRestoreArrayWrite(), MatDenseHIPGetArrayRead(), MatDenseHIPRestoreArrayRead()
Level#
developer
Location#
Implementations#
MatDenseHIPGetArrayWrite_MPIDenseHIP in src/mat/impls/dense/mpi/mpidense.c
MatDenseHIPGetArrayWrite_SeqDenseHIP in src/mat/impls/dense/seq/hip/densehip.hip.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages