:orphan:
# PCMGGalerkinGetMatProductAlgorithm
Get type of SpGEMM for hypre to use on GPUs 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCMGGalerkinGetMatProductAlgorithm(PC pc, const char *name[])
```
Not Collective


## Input Parameter

- ***pc -*** the multigrid context



## Output Parameter

- ***name -*** one of 'cusparse', 'hypre'





## See Also
 `PCHYPRE`, ``PCMGGalerkinSetMatProductAlgorithm()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/hypre/hypre.c.html#PCMGGalerkinGetMatProductAlgorithm">src/ksp/pc/impls/hypre/hypre.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/hypre/hypre.c)


[Index of all PC routines](index.md)  
[Table of Contents for all manual pages](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
