Skip to main content
Ctrl+K
PETSc v3.23.3-280-ga8f5390672d documentation - Home
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • Overview
  • Install
  • Tutorials
  • User-Guide
  • C/Fortran API
  • petsc4py API
  • FAQ
  • Community
  • Developers
  • Misc.
  • GitLab
  • MatCUSPARSESetFormat

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 MATSEQAIJCUSPARSE

  • op - MatCUSPARSEFormatOperation. MATSEQAIJCUSPARSE matrices support MAT_CUSPARSE_MULT and MAT_CUSPARSE_ALL. MATMPIAIJCUSPARSE matrices support MAT_CUSPARSE_MULT_DIAG,MAT_CUSPARSE_MULT_OFFDIAG, and MAT_CUSPARSE_ALL.

  • format - MatCUSPARSEStorageFormat (one of MAT_CUSPARSE_CSR, MAT_CUSPARSE_ELL, MAT_CUSPARSE_HYB.)

See Also#

Matrices, Mat, MATSEQAIJCUSPARSE, MatCUSPARSEStorageFormat, MatCUSPARSEFormatOperation

Level#

intermediate

Location#

src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu

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

On this page
  • Synopsis
  • Input Parameters
  • See Also
  • Level
  • Location
  • Implementations
Edit on GitLab
Show Source

© Copyright 1991-2025, UChicago Argonne, LLC and the PETSc Development Team.

Created using Sphinx 7.3.7.

Built with the PyData Sphinx Theme 0.15.1.

Last updated on 2025-06-21T03:45:31-0500 (v3.23.3-280-ga8f5390672d).