Geant4
10.02.p02
|
#include <G4VUserMPIrunMerger.hh>
Classes | |
struct | const_registered_data |
struct | registered_data |
Public Member Functions | |
G4VUserMPIrunMerger () | |
G4VUserMPIrunMerger (const G4Run *aRun, G4int destination=G4MPImanager::kRANK_MASTER, G4int verbosity=0) | |
virtual | ~G4VUserMPIrunMerger () |
void | SetRun (G4Run *r) |
void | SetDestinationRank (G4int i) |
void | SetVerbosity (G4int ver) |
virtual void | Merge () |
Protected Member Functions | |
virtual void | Pack ()=0 |
virtual G4Run * | UnPack ()=0 |
void | InputUserData (void *input_data, const MPI::Datatype &dt, int count) |
void | OutputUserData (void *input_data, const MPI::Datatype &dt, int count) |
void | SetupOutputBuffer (char *buff, G4int size, G4int position) |
void | DestroyBuffer () |
G4int | GetPosition () const |
char * | GetBuffer () const |
G4int | GetBufferSize () const |
void | Send (const unsigned int destination) |
void | Receive (const unsigned int source) |
Private Attributes | |
char * | outputBuffer |
G4int | outputBufferSize |
G4int | outputBufferPosition |
G4bool | ownsBuffer |
unsigned int | destinationRank |
G4Run * | run |
unsigned int | commSize |
MPI::Intracomm | COMM_G4COMMAND_ |
G4int | verbose |
long | bytesSent |
std::vector < const_registered_data > | input_userdata |
std::vector< registered_data > | output_userdata |
Definition at line 32 of file G4VUserMPIrunMerger.hh.
G4VUserMPIrunMerger::G4VUserMPIrunMerger | ( | ) |
G4VUserMPIrunMerger::G4VUserMPIrunMerger | ( | const G4Run * | aRun, |
G4int | destination = G4MPImanager::kRANK_MASTER , |
||
G4int | verbosity = 0 |
||
) |
Definition at line 33 of file G4VUserMPIrunMerger.cc.
|
inlinevirtual |
Definition at line 38 of file G4VUserMPIrunMerger.hh.
References DestroyBuffer(), and ownsBuffer.
|
inlineprotected |
Definition at line 63 of file G4VUserMPIrunMerger.hh.
References outputBuffer, outputBufferPosition, outputBufferSize, and ownsBuffer.
Referenced by Send(), and ~G4VUserMPIrunMerger().
|
inlineprotected |
Definition at line 72 of file G4VUserMPIrunMerger.hh.
References outputBuffer.
|
inlineprotected |
Definition at line 73 of file G4VUserMPIrunMerger.hh.
References outputBufferSize.
|
inlineprotected |
Definition at line 71 of file G4VUserMPIrunMerger.hh.
References outputBufferPosition.
|
inlineprotected |
Definition at line 49 of file G4VUserMPIrunMerger.hh.
References input_userdata.
Referenced by RunMerger::Pack(), and Send().
|
virtual |
Definition at line 137 of file G4VUserMPIrunMerger.cc.
References bytesSent, COMM_G4COMMAND_, commSize, destinationRank, DMSG, G4cout, G4endl, G4mpi::Merge(), Receive(), Send(), G4INCL::CrossSections::total(), and verbose.
Referenced by RunActionMaster::EndOfRunAction().
|
inlineprotected |
Definition at line 52 of file G4VUserMPIrunMerger.hh.
References output_userdata.
Referenced by Receive(), and RunMerger::UnPack().
|
protectedpure virtual |
Implemented in G4MPIrunMerger, and RunMerger.
Referenced by Send().
|
protected |
Definition at line 87 of file G4VUserMPIrunMerger.cc.
References buffer, COMM_G4COMMAND_, DMSG, G4Run::GetNumberOfEvent(), G4FFGEnumerations::INT, G4MPImanager::kTAG_RUN, G4Run::Merge(), output_userdata, outputBuffer, outputBufferPosition, outputBufferSize, OutputUserData(), ownsBuffer, G4Run::RecordEvent(), run, SetupOutputBuffer(), Status(), and UnPack().
Referenced by Merge().
|
protected |
Definition at line 46 of file G4VUserMPIrunMerger.cc.
References buffer, bytesSent, COMM_G4COMMAND_, DestroyBuffer(), DMSG, G4Run::GetNumberOfEvent(), input_userdata, InputUserData(), G4FFGEnumerations::INT, G4MPImanager::kTAG_RUN, outputBuffer, outputBufferPosition, outputBufferSize, ownsBuffer, Pack(), run, and SetupOutputBuffer().
Referenced by Merge().
|
inline |
Definition at line 40 of file G4VUserMPIrunMerger.hh.
References destinationRank.
|
inline |
Definition at line 39 of file G4VUserMPIrunMerger.hh.
References run.
|
inlineprotected |
Definition at line 58 of file G4VUserMPIrunMerger.hh.
References outputBuffer, outputBufferPosition, outputBufferSize, and position.
Referenced by Receive(), and Send().
|
inline |
Definition at line 41 of file G4VUserMPIrunMerger.hh.
References verbose.
Referenced by RunActionMaster::EndOfRunAction().
|
protectedpure virtual |
Implemented in G4MPIrunMerger, and RunMerger.
Referenced by Receive().
|
private |
Definition at line 87 of file G4VUserMPIrunMerger.hh.
|
private |
Definition at line 85 of file G4VUserMPIrunMerger.hh.
|
private |
Definition at line 84 of file G4VUserMPIrunMerger.hh.
Referenced by Merge().
|
private |
Definition at line 82 of file G4VUserMPIrunMerger.hh.
Referenced by Merge(), and SetDestinationRank().
|
private |
Definition at line 99 of file G4VUserMPIrunMerger.hh.
Referenced by InputUserData(), and Send().
|
private |
Definition at line 109 of file G4VUserMPIrunMerger.hh.
Referenced by OutputUserData(), and Receive().
|
private |
Definition at line 78 of file G4VUserMPIrunMerger.hh.
Referenced by DestroyBuffer(), GetBuffer(), Receive(), Send(), and SetupOutputBuffer().
|
private |
Definition at line 80 of file G4VUserMPIrunMerger.hh.
Referenced by DestroyBuffer(), GetPosition(), Receive(), Send(), and SetupOutputBuffer().
|
private |
Definition at line 79 of file G4VUserMPIrunMerger.hh.
Referenced by DestroyBuffer(), GetBufferSize(), Receive(), Send(), and SetupOutputBuffer().
|
private |
Definition at line 81 of file G4VUserMPIrunMerger.hh.
Referenced by DestroyBuffer(), Receive(), Send(), and ~G4VUserMPIrunMerger().
|
private |
Definition at line 83 of file G4VUserMPIrunMerger.hh.
|
private |
Definition at line 86 of file G4VUserMPIrunMerger.hh.
Referenced by Merge(), and SetVerbosity().