artdaq_mpich_plugin  v1_00_13
MPISentry.hh
1 #ifndef artdaq_Application_MPI2_MPISentry_hh
2 #define artdaq_Application_MPI2_MPISentry_hh
3 
5 #include "artdaq/Application/TaskType.hh"
6 
7 namespace artdaq {
8 class MPISentry;
9 }
10 
15 {
16 public:
22  MPISentry(int* argc_ptr, char*** argv_ptr);
23 
30  MPISentry(int* argc_ptr, char*** argv_ptr, int threading_level);
31 
40  MPISentry(int* argc_ptr, char*** argv_ptr, int threading_level, artdaq::TaskType type, MPI_Comm& local_group_comm);
41 
45  ~MPISentry();
46 
51  int threading_level() const;
52 
57  int rank() const;
58 
63  int procs() const;
64 
65 private:
66  void initialize_();
67 
68  int threading_level_;
69  int rank_;
70  int procs_;
71 };
72 
73 #endif /* artdaq_Application_MPI2_MPISentry_hh */
MPISentry(int *argc_ptr, char ***argv_ptr)
MPISentry Constructor.
Definition: MPISentry.cc:9
The MPISentry class initializes and finalizes the MPI context that the artdaq applciations run in...
Definition: MPISentry.hh:14
int rank() const
Get the MPI rank of the application.
Definition: MPISentry.cc:74
int threading_level() const
Get the actual threading level.
Definition: MPISentry.cc:72
int procs() const
The number of processes in the MPI context.
Definition: MPISentry.cc:76
~MPISentry()
MPISentry Destructor. Calls MPI_Finalize.
Definition: MPISentry.cc:70