Xmipp
v3.23.11-Nereus
|
#include <xmipp_mpi.h>
Public Member Functions | |
MpiNode (int &argc, char **&argv) | |
~MpiNode () | |
MpiNode (const MpiNode &)=delete | |
MpiNode & | operator= (const MpiNode &)=delete |
bool | isMaster () const |
void | barrierWait () |
template<typename T > | |
void | gatherMetadatas (T &MD, const FileName &rootName) |
Public Attributes | |
size_t | rank |
size_t | size |
size_t | active |
Protected Member Functions | |
size_t | getActiveNodes () |
Class to wrapp some MPI common calls in an work node.
Definition at line 47 of file xmipp_mpi.h.
MpiNode::MpiNode | ( | int & | argc, |
char **& | argv | ||
) |
Definition at line 144 of file xmipp_mpi.cpp.
MpiNode::~MpiNode | ( | ) |
Definition at line 158 of file xmipp_mpi.cpp.
|
delete |
void MpiNode::barrierWait | ( | ) |
Wait on a barrier for the other MPI nodes
Definition at line 171 of file xmipp_mpi.cpp.
template void MpiNode::gatherMetadatas< MetaDataDb > | ( | T & | MD, |
const FileName & | rootName | ||
) |
Gather metadatas
Wait for all workers write results
Definition at line 200 of file xmipp_mpi.cpp.
|
protected |
Update the MPI communicator to connect the currently active nodes Calculate the number of still active nodes
bool MpiNode::isMaster | ( | ) | const |
Check if the node is master
Definition at line 166 of file xmipp_mpi.cpp.
size_t MpiNode::active |
Definition at line 52 of file xmipp_mpi.h.
size_t MpiNode::rank |
Definition at line 52 of file xmipp_mpi.h.
size_t MpiNode::size |
Definition at line 52 of file xmipp_mpi.h.