MatDenseCUDARestoreArrayRead#
Restore read-only access to the CUDA buffer inside a MATDENSECUDA
matrix previously obtained with a call to MatDenseCUDAGetArrayRead()
.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatDenseCUDARestoreArrayRead(Mat A, const PetscScalar **a)
Not Collective
Input Parameters#
A - the matrix
array - the GPU array in column major order
Note#
Data can be copied to the GPU due to operations done on the CPU. If you need write only access, use MatDenseCUDAGetArrayWrite()
.
See Also#
MATDENSECUDA
, MatDenseCUDAGetArray()
, MatDenseCUDARestoreArray()
, MatDenseCUDARestoreArrayWrite()
, MatDenseCUDAGetArrayWrite()
, MatDenseCUDAGetArrayRead()
Level#
developer
Location#
Implementations#
MatDenseCUDARestoreArrayRead_MPIDenseCUDA in src/mat/impls/dense/mpi/mpidense.c
MatDenseCUDARestoreArrayRead_SeqDenseCUDA in src/mat/impls/dense/seq/cuda/densecuda.cu
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages