#include "slepcds.h" PetscErrorCode DSSetParallel(DS ds,DSParallelType pmode)Logically Collective
ds | - the direct solver context | |
pmode | - the parallel mode |
-ds_parallel <mode> | - Sets the parallel mode, 'redundant', 'synchronized' or 'distributed' |
In the 'synchronized' parallel mode, only the first MPI process performs the computation and then the computed quantities are broadcast to the other processes in the communicator. This communication is not done automatically, an explicit call to DSSynchronize() is required.
The 'distributed' parallel mode can be used in some DS types only, such as the contour integral method of DSNEP. In this case, every MPI process will be in charge of part of the computation.