PetscSFReduceWithMemTypeBegin#

begin reduction of leafdata into rootdata with explicit memory types, to be completed with call to PetscSFReduceEnd()

Synopsis#

#include "petscsf.h" 
PetscErrorCode PetscSFReduceWithMemTypeBegin(PetscSF sf, MPI_Datatype unit, PetscMemType leafmtype, const void *leafdata, PetscMemType rootmtype, void *rootdata, MPI_Op op)

Collective

Input Parameters#

  • sf - star forest

  • unit - data type

  • leafmtype - memory type of leafdata

  • leafdata - values to reduce

  • rootmtype - memory type of rootdata

  • op - reduction operation

Output Parameter#

  • rootdata - result of reduction of values from all leaves of each root

See Also#

PetscSF, PetscSFBcastBegin(), PetscSFReduceBegin(), PetscSFReduceEnd()

Level#

intermediate

Location#

src/vec/is/sf/interface/sf.c


Edit on GitLab

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