PetscSetMPIThreadRequiredType#

Set the MPI required thread level for when PetscInitialize() initializes MPI.

Synopsis#

Logically Collective

Input Parameter#

  • required - the desired thread support, one of MPI_THREAD_SINGLE, MPI_THREAD_FUNNELED, MPI_THREAD_SERIALIZED, or MPI_THREAD_MULTIPLE.

Notes#

This must be called before PetscInitialize().

Defaults to MPI_THREAD_FUNNELED when the MPI implementation provides MPI_Init_thread(), otherwise MPI_THREAD_SINGLE.

This argument is used in the call to MPI_Init_thread() made by PetscInitialize().

Packages such as SLATE may require MPI_THREAD_MULTIPLE.

The same value must be set on all MPI processes.

See Also#

PetscInitialize()

Level#

intermediate

Location#

src/sys/objects/pinit.c


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