Skip to main content
Ctrl+K
PETSc v3.23.6-547-gb594d2b36f29 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
  • MatGetCurrentMemType

MatGetCurrentMemType#

Get the memory location of the matrix

Synopsis#

#include "petscmat.h" 
PetscErrorCode MatGetCurrentMemType(Mat A, PetscMemType *m)

Not Collective, but the result will be the same on all MPI processes

Input Parameter#

  • A - the matrix whose memory type we are checking

Output Parameter#

  • m - the memory type

See Also#

Matrices, Mat, MatBoundToCPU(), PetscMemType

Level#

intermediate

Location#

src/mat/interface/matrix.c

Implementations#

MatGetCurrentMemType_MPIAIJ() in src/mat/impls/aij/mpi/mpiaij.c
MatGetCurrentMemType_SeqAIJKokkos() in src/mat/impls/aij/seq/kokkos/aijkok.kokkos.cxx
MatGetCurrentMemType_SeqAIJCUSPARSE() in src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu
MatGetCurrentMemType_SeqAIJHIPSPARSE() in src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.c
MatGetCurrentMemType_HYPRE() in src/mat/impls/hypre/mhypre.c


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

On this page
  • Synopsis
  • Input Parameter
  • Output Parameter
  • 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-09-03T03:46:45-0500 (v3.23.6-547-gb594d2b36f29).