:orphan: # PCMGGalerkinSetMatProductAlgorithm Set type of SpGEMM for hypre to use on GPUs ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCMGGalerkinSetMatProductAlgorithm(PC pc, const char name[]) ``` Logically Collective ## Input Parameters - ***pc -*** the hypre context - ***type -*** one of 'cusparse', 'hypre' ## Options Database Key - ***-pc_mg_galerkin_mat_product_algorithm -*** Type of SpGEMM to use in hypre ## Developer Note How the name starts with `PCMG`, should it not be `PCHYPREBoomerAMG`? ## See Also `PCHYPRE`, `PCMGGalerkinGetMatProductAlgorithm()` ## Level intermediate ## Location src/ksp/pc/impls/hypre/hypre.c --- [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)