Xmipp
v3.23.11-Nereus
|
#include <xmipp_mpi.h>
Public Member Functions | |
void | read (int argc, char **argv) |
virtual int | tryRun () |
Public Member Functions inherited from XmippProgram | |
const char * | getParam (const char *param, int arg=0) |
const char * | getParam (const char *param, const char *subparam, int arg=0) |
int | getIntParam (const char *param, int arg=0) |
int | getIntParam (const char *param, const char *subparam, int arg=0) |
double | getDoubleParam (const char *param, int arg=0) |
double | getDoubleParam (const char *param, const char *subparam, int arg=0) |
float | getFloatParam (const char *param, int arg=0) |
float | getFloatParam (const char *param, const char *subparam, int arg=0) |
void | getListParam (const char *param, StringVector &list) |
int | getCountParam (const char *param) |
bool | checkParam (const char *param) |
bool | existsParam (const char *param) |
void | addParamsLine (const String &line) |
void | addParamsLine (const char *line) |
ParamDef * | getParamDef (const char *param) const |
virtual void | run () |
virtual void | quit (int exit_code=0) const |
void | initProgress (size_t total, size_t stepBin=60) |
void | setProgress (size_t value=0) |
void | endProgress () |
void | processDefaultComment (const char *param, const char *left) |
void | setDefaultComment (const char *param, const char *comment) |
virtual void | initComments () |
virtual void | defineParams () |
virtual void | readParams () |
void | setProgramName (const char *name) |
void | addUsageLine (const char *line, bool verbatim=false) |
void | clearUsage () |
void | addExampleLine (const char *example, bool verbatim=true) |
void | addSeeAlsoLine (const char *seeAlso) |
void | addKeywords (const char *keywords) |
const char * | name () const |
virtual void | usage (int verb=0) const |
virtual void | usage (const String ¶m, int verb=2) |
int | version () const |
virtual void | show () const |
virtual void | read (int argc, const char **argv, bool reportErrors=true) |
virtual void | read (int argc, char **argv, bool reportErrors=true) |
void | read (const String &argumentsLine) |
XmippProgram () | |
XmippProgram (int argc, const char **argv) | |
virtual | ~XmippProgram () |
Protected Member Functions | |
void | setNode (const std::shared_ptr< MpiNode > &node) |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Protected Attributes | |
std::shared_ptr< MpiNode > | node |
size_t | nProcs |
size_t | numberOfJobs |
MPI_Status | status |
Protected Attributes inherited from XmippProgram | |
int | errorCode |
ProgramDef * | progDef |
Program definition and arguments parser. More... | |
std::map< String, CommentList > | defaultComments |
int | argc |
Original command line arguments. More... | |
const char ** | argv |
Additional Inherited Members | |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
This class represent an Xmipp MPI Program. It includes the basic MPI functionalities to the programs, like an mpinode, a mutex...
To be compatible with inheritance multiple, the BaseXmippProgram must be declared with XmippProgramm as virtual.
Definition at line 160 of file xmipp_mpi.h.
void XmippMpiProgram::read | ( | int | argc, |
char ** | argv | ||
) |
Read MPI params from command line
Definition at line 240 of file xmipp_mpi.cpp.
|
protected |
|
virtual |
Call the run function inside a try/catch block sending an abort signal to the rest of mpi nodes.
Reimplemented from XmippProgram.
Definition at line 262 of file xmipp_mpi.cpp.
|
protected |
Mpi node
Definition at line 164 of file xmipp_mpi.h.
|
protected |
Number of Processors
Definition at line 166 of file xmipp_mpi.h.
|
protected |
Number of independent MPI jobs
Definition at line 168 of file xmipp_mpi.h.
|
protected |
status after an MPI call
Definition at line 170 of file xmipp_mpi.h.