PetscSetMPIThreadRequiredType#
Set the MPI required thread level for when PetscInitialize() initializes MPI.
Synopsis#
#include "petscsys.h"
PetscErrorCode PetscSetMPIThreadRequiredType(PetscMPIInt required)
Logically Collective
Input Parameter#
required - the desired thread support, one of
MPI_THREAD_SINGLE,MPI_THREAD_FUNNELED,MPI_THREAD_SERIALIZED, orMPI_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#
Level#
intermediate
Location#
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages