MatDenseHIPRestoreArrayRead#

Restore read-only access to the HIP buffer inside a dense matrix previously obtained with a call to MatDenseHIPGetArrayRead().

Synopsis#

#include "petscmat.h"  
PetscErrorCode MatDenseHIPRestoreArrayRead(Mat A, const PetscScalar **a)

Not Collective

Input Parameters#

  • A - the matrix

  • array - the GPU array in column major order

Notes#

Data can be copied to the GPU due to operations done on the CPU. If you need write only access, use MatDenseHIPGetArrayWrite().

See Also#

MatDenseHIPGetArray(), MatDenseHIPRestoreArray(), MatDenseHIPRestoreArrayWrite(), MatDenseHIPGetArrayWrite(), MatDenseHIPGetArrayRead()

Level#

developer

Location#

src/mat/impls/dense/mpi/mpidense.c

Implementations#

MatDenseHIPRestoreArrayRead_MPIDenseHIP in src/mat/impls/dense/mpi/mpidense.c
MatDenseHIPRestoreArrayRead_SeqDenseHIP in src/mat/impls/dense/seq/hip/densehip.hip.c


Edit on GitLab

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