MatCUSPARSESetFormat#
Sets the storage format of MATSEQCUSPARSE matrices for a particular operation. Only the MatMult() operation can use different GPU storage formats
Synopsis#
#include "petscmat.h"
PetscErrorCode MatCUSPARSESetFormat(Mat A, MatCUSPARSEFormatOperation op, MatCUSPARSEStorageFormat format)
Not Collective
Input Parameters#
A - Matrix of type
MATSEQAIJCUSPARSEop -
MatCUSPARSEFormatOperation.MATSEQAIJCUSPARSEmatrices supportMAT_CUSPARSE_MULTandMAT_CUSPARSE_ALL.MATMPIAIJCUSPARSEmatrices supportMAT_CUSPARSE_MULT_DIAG,MAT_CUSPARSE_MULT_OFFDIAG, andMAT_CUSPARSE_ALL.format -
MatCUSPARSEStorageFormat(one ofMAT_CUSPARSE_CSR,MAT_CUSPARSE_ELL,MAT_CUSPARSE_HYB.)
See Also#
Matrices, Mat, MATSEQAIJCUSPARSE, MatCUSPARSEStorageFormat, MatCUSPARSEFormatOperation
Level#
intermediate
Location#
Implementations#
MatCUSPARSESetFormat_MPIAIJCUSPARSE() in src/mat/impls/aij/mpi/mpicusparse/mpiaijcusparse.cu
MatCUSPARSESetFormat_SeqAIJCUSPARSE() in 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