Xmipp
v3.23.11-Nereus
|
#include <mpi_reconstruct_fourier_starpu.h>
Classes | |
struct | DistributedBatchProvider |
Public Member Functions | |
void | defineParams () override |
void | readParams () override |
void | read (int argc, char **argv, bool reportErrors=true) override |
int | tryRun () override |
void | run () override |
~ProgRecFourierMpiStarPU () override | |
Public Member Functions inherited from ProgRecFourierStarPU | |
ProgRecFourierStarPU () | |
void | show () const override |
void | setIO (const FileName &fn_in, const FileName &fn_out) override |
Public Member Functions inherited from ProgReconsBase | |
virtual | ~ProgReconsBase () |
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 | 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 () |
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 | read (int argc, const char **argv, bool reportErrors=true) |
void | read (const String &argumentsLine) |
XmippProgram () | |
XmippProgram (int argc, const char **argv) | |
virtual | ~XmippProgram () |
Additional Inherited Members | |
Public Attributes inherited from XmippProgram | |
bool | doRun |
bool | runWithoutArgs |
int | verbose |
Verbosity level. More... | |
int | debug |
Protected Member Functions inherited from XmippProgram | |
void | defineCommons () |
Static Protected Member Functions inherited from ProgRecFourierStarPU | |
static void | prepareMetaData (const FileName &fn_in, MetaDataVec &SF) |
static uint32_t | computeBatchCount (const Params ¶ms, const MetaData &SF) |
static void | prepareConstants (const Params ¶ms, const MetaData &SF, const FileName &fn_sym, ComputeConstants &constants) |
static void | initStarPU () |
static ComputeStarPUResult | computeStarPU (const Params ¶ms, const MetaData &SF, const ComputeConstants &computeConstants, BatchProvider &batches, bool verbose) |
static void | shutdownStarPU () |
static void | postProcessAndSave (const Params ¶ms, const ComputeConstants &computeConstants, const FileName &fn_out, std::complex< float > ***tempVolume, float ***tempWeights) |
Protected Attributes inherited from ProgRecFourierStarPU | |
FileName | fn_in |
FileName | fn_out |
FileName | fn_sym |
struct ProgRecFourierStarPU::Params | params |
MetaDataVec | SF |
struct ProgRecFourierStarPU::ComputeConstants | computeConstants |
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 |
MPI extension of ProgRecFourierStarPU. MPI should already be initialized externally. (This is done by runReconstructFourierMpiStarPU function)
At least two program instances are needed - one master and at least one worker (though any real speedup is expected only with multiple workers). It is expected, but not required, that the master will run on the same machine as one of the workers, as it uses minimal processing power.
All program instances, no matter their role, should have the access to identical input files (through network storage, manual copy, etc.).
First worker (i.e. second global rank) will write out the result.
Definition at line 52 of file mpi_reconstruct_fourier_starpu.h.
|
override |
|
overridevirtual |
Specify supported command line arguments
Reimplemented from ProgRecFourierStarPU.
Definition at line 49 of file mpi_reconstruct_fourier_starpu.cpp.
|
overridevirtual |
Read with MPI Initialization
Reimplemented from XmippProgram.
Definition at line 409 of file mpi_reconstruct_fourier_starpu.cpp.
|
overridevirtual |
Read arguments from command line
Reimplemented from ProgRecFourierStarPU.
Definition at line 58 of file mpi_reconstruct_fourier_starpu.cpp.
|
overridevirtual |
Run the image processing. Method will load data, process them and store result to final destination.
Reimplemented from ProgRecFourierStarPU.
Definition at line 65 of file mpi_reconstruct_fourier_starpu.cpp.
|
overridevirtual |
try with MPI abort
Reimplemented from XmippProgram.
Definition at line 426 of file mpi_reconstruct_fourier_starpu.cpp.