#include <Doxymodules_parallel.h>
Public Types | |
enum | { kRANK_MASTER = 0 } |
enum | { kTAG_G4COMMAND = 100 , kTAG_G4STATUS = 200 , kTAG_G4SEED = 300 , kTAG_DATA = 1000 , kTAG_HISTO = 1001 , kTAG_RUN = 1002 , kTAG_CMDSCR = 1003 , kTAG_NTUPLE = 1004 } |
Public Member Functions | |
G4MPImanager (int nof_extra_workers=0) | |
G4MPImanager (int argc, char **argv, int nof_extra_workers=0) | |
~G4MPImanager () | |
G4MPIsession * | GetMPIsession () const |
G4int | GetVerbose () const |
void | SetVerbose (G4int iverbose) |
G4int | GetTotalSize () const |
G4int | GetActiveSize () const |
G4int | GetRank () const |
G4bool | IsMaster () const |
G4bool | IsSlave () const |
G4bool | IsExtraWorker () const |
G4bool | IsInitMacro () const |
const G4String & | GetInitFileName () const |
G4bool | IsBatchMode () const |
const G4String & | GetMacroFileName () const |
void | SetMasterWeight (G4double aweight) |
G4double | GetMasterWeight () const |
void | SetExtraWorker (G4VMPIextraWorker *extraWorker) |
G4VMPIextraWorker * | GetExtraWorker () const |
G4VMPIseedGenerator * | GetSeedGenerator () const |
G4String | BcastCommand (const G4String &command) |
void | ShowStatus () |
void | ShowSeeds () |
void | SetSeed (G4int inode, G4long seed) |
void | WaitBeamOn () |
void | DistributeSeeds () |
void | ExecuteMacroFile (const G4String &fname, G4bool qbatch=false) |
G4bool | CheckThreadStatus () |
void | ExecuteThreadCommand (const G4String &command) |
void | ExecuteBeamOnThread (const G4String &command) |
void | JoinBeamOnThread () |
void | BeamOn (G4int nevent, G4bool qdivide=true) |
void | Print (const G4String &message) |
G4int | GetEventsInMaster () const |
G4int | GetEventsInSlave () const |
void | ShowHelp () const |
const MPI::Intracomm * | GetComm () const |
const MPI_Comm * | GetProcessingComm () const |
const MPI_Comm * | GetCollectingComm () const |
const MPI_Comm * | GetAllComm () const |
Static Public Member Functions | |
static G4MPImanager * | GetManager () |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (G4MPImanager) | |
void | Initialize () |
void | ParseArguments (G4int argc, char **argv) |
void | UpdateStatus () |
Private Attributes | |
G4MPImessenger * | messenger_ |
G4MPIsession * | session_ |
G4VMPIextraWorker * | extra_worker_ |
G4VMPIseedGenerator * | seed_generator_ |
G4MPIstatus * | status_ |
G4int | verbose_ |
G4bool | is_master_ |
G4bool | is_slave_ |
G4bool | is_extra_worker_ |
G4int | rank_ |
G4int | size_ |
G4int | world_size_ |
MPI::Intracomm | COMM_G4COMMAND_ |
MPI_Comm | processing_comm_ |
MPI_Comm | collecting_comm_ |
MPI_Comm | all_comm_ |
MPI_Group | world_group_ |
MPI_Group | processing_group_ |
MPI_Group | collecting_group_ |
MPI_Group | all_group_ |
G4bool | qfcout_ |
std::ofstream | fscout_ |
G4bool | qinitmacro_ |
G4String | init_file_name_ |
G4bool | qbatchmode_ |
G4String | macro_file_name_ |
pthread_t | thread_id_ |
G4int | fevents_in_master = 0 |
G4int | fevents_in_slave = 0 |
G4double | master_weight_ |
G4int | nof_extra_workers_ |
Static Private Attributes | |
static G4MPImanager * | g4mpi_ = NULL |
Definition at line 63 of file Doxymodules_parallel.h.
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
kTAG_G4COMMAND | |
kTAG_G4STATUS | |
kTAG_G4SEED | |
kTAG_DATA | |
kTAG_HISTO | |
kTAG_RUN | |
kTAG_CMDSCR | |
kTAG_NTUPLE |
Definition at line 51 of file G4MPImanager.hh.
G4MPImanager::G4MPImanager | ( | int | nof_extra_workers = 0 | ) |
Definition at line 69 of file G4MPImanager.cc.
G4MPImanager::G4MPImanager | ( | int | argc, |
char ** | argv, | ||
int | nof_extra_workers = 0 |
||
) |
Definition at line 82 of file G4MPImanager.cc.
G4MPImanager::~G4MPImanager | ( | ) |
Definition at line 96 of file G4MPImanager.cc.
|
static |
Definition at line 127 of file G4MPImanager.cc.
|
inline |
Definition at line 186 of file G4MPImanager.hh.
|
inline |
Definition at line 191 of file G4MPImanager.hh.
|
inline |
Definition at line 196 of file G4MPImanager.hh.
|
inline |
Definition at line 211 of file G4MPImanager.hh.
|
inline |
Definition at line 216 of file G4MPImanager.hh.
|
inline |
Definition at line 206 of file G4MPImanager.hh.
|
inline |
Definition at line 221 of file G4MPImanager.hh.
|
inline |
Definition at line 226 of file G4MPImanager.hh.
|
inline |
Definition at line 231 of file G4MPImanager.hh.
|
inline |
Definition at line 236 of file G4MPImanager.hh.
|
inline |
Definition at line 242 of file G4MPImanager.hh.
|
inline |
Definition at line 248 of file G4MPImanager.hh.
|
inline |
Definition at line 253 of file G4MPImanager.hh.
|
inline |
Definition at line 258 of file G4MPImanager.hh.
|
inline |
Definition at line 266 of file G4MPImanager.hh.
void G4MPImanager::SetExtraWorker | ( | G4VMPIextraWorker * | extraWorker | ) |
Definition at line 137 of file G4MPImanager.cc.
|
inline |
Definition at line 271 of file G4MPImanager.hh.
|
inline |
Definition at line 276 of file G4MPImanager.hh.
Definition at line 515 of file G4MPImanager.cc.
void G4MPImanager::ShowStatus | ( | ) |
Definition at line 334 of file G4MPImanager.cc.
void G4MPImanager::ShowSeeds | ( | ) |
Definition at line 393 of file G4MPImanager.cc.
void G4MPImanager::SetSeed | ( | G4int | inode, |
G4long | seed | ||
) |
Definition at line 416 of file G4MPImanager.cc.
void G4MPImanager::WaitBeamOn | ( | ) |
Definition at line 617 of file G4MPImanager.cc.
void G4MPImanager::DistributeSeeds | ( | ) |
Definition at line 383 of file G4MPImanager.cc.
void G4MPImanager::ExecuteMacroFile | ( | const G4String & | fname, |
G4bool | qbatch = false |
||
) |
Definition at line 551 of file G4MPImanager.cc.
G4bool G4MPImanager::CheckThreadStatus | ( | ) |
Definition at line 424 of file G4MPImanager.cc.
void G4MPImanager::ExecuteThreadCommand | ( | const G4String & | command | ) |
Definition at line 455 of file G4MPImanager.cc.
void G4MPImanager::ExecuteBeamOnThread | ( | const G4String & | command | ) |
Definition at line 484 of file G4MPImanager.cc.
void G4MPImanager::JoinBeamOnThread | ( | ) |
Definition at line 506 of file G4MPImanager.cc.
void G4MPImanager::BeamOn | ( | G4int | nevent, |
G4bool | qdivide = true |
||
) |
Definition at line 562 of file G4MPImanager.cc.
void G4MPImanager::Print | ( | const G4String & | message | ) |
Definition at line 653 of file G4MPImanager.cc.
|
inline |
Definition at line 113 of file G4MPImanager.hh.
|
inline |
Definition at line 114 of file G4MPImanager.hh.
void G4MPImanager::ShowHelp | ( | ) | const |
Definition at line 667 of file G4MPImanager.cc.
|
inline |
Definition at line 119 of file G4MPImanager.hh.
|
inline |
Definition at line 120 of file G4MPImanager.hh.
|
inline |
Definition at line 121 of file G4MPImanager.hh.
|
inline |
Definition at line 122 of file G4MPImanager.hh.
|
private |
|
private |
Definition at line 148 of file G4MPImanager.cc.
|
private |
Definition at line 239 of file G4MPImanager.cc.
|
private |
Definition at line 307 of file G4MPImanager.cc.
|
staticprivate |
Definition at line 131 of file G4MPImanager.hh.
|
private |
Definition at line 132 of file G4MPImanager.hh.
|
private |
Definition at line 133 of file G4MPImanager.hh.
|
private |
Definition at line 134 of file G4MPImanager.hh.
|
private |
Definition at line 137 of file G4MPImanager.hh.
|
private |
Definition at line 139 of file G4MPImanager.hh.
|
private |
Definition at line 141 of file G4MPImanager.hh.
|
private |
Definition at line 144 of file G4MPImanager.hh.
|
private |
Definition at line 145 of file G4MPImanager.hh.
|
private |
Definition at line 146 of file G4MPImanager.hh.
|
private |
Definition at line 147 of file G4MPImanager.hh.
|
private |
Definition at line 148 of file G4MPImanager.hh.
|
private |
Definition at line 149 of file G4MPImanager.hh.
|
private |
Definition at line 152 of file G4MPImanager.hh.
|
private |
Definition at line 154 of file G4MPImanager.hh.
|
private |
Definition at line 156 of file G4MPImanager.hh.
|
private |
Definition at line 158 of file G4MPImanager.hh.
|
private |
Definition at line 160 of file G4MPImanager.hh.
|
private |
Definition at line 161 of file G4MPImanager.hh.
|
private |
Definition at line 162 of file G4MPImanager.hh.
|
private |
Definition at line 163 of file G4MPImanager.hh.
|
private |
Definition at line 166 of file G4MPImanager.hh.
|
private |
Definition at line 167 of file G4MPImanager.hh.
|
private |
Definition at line 170 of file G4MPImanager.hh.
|
private |
Definition at line 171 of file G4MPImanager.hh.
|
private |
Definition at line 172 of file G4MPImanager.hh.
|
private |
Definition at line 173 of file G4MPImanager.hh.
|
private |
Definition at line 176 of file G4MPImanager.hh.
|
private |
Definition at line 177 of file G4MPImanager.hh.
|
private |
Definition at line 178 of file G4MPImanager.hh.
|
private |
Definition at line 181 of file G4MPImanager.hh.
|
private |
Definition at line 182 of file G4MPImanager.hh.