artdaq_mpich_plugin  v1_00_08a
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  public:
21  MPISentry(int* argc_ptr, char*** argv_ptr);
22 
29  MPISentry(int* argc_ptr, char*** argv_ptr, int threading_level);
30 
39  MPISentry(int* argc_ptr, char*** argv_ptr, int threading_level, artdaq::TaskType type, MPI_Comm& local_group_comm);
40 
44  ~MPISentry();
45 
50  int threading_level() const;
51 
56  int rank() const;
57 
62  int procs() const;
63 
64  private:
65  void initialize_();
66 
67  int threading_level_;
68  int rank_;
69  int procs_;
70 };
71 
72 #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:67
int threading_level() const
Get the actual threading level.
Definition: MPISentry.cc:65
int procs() const
The number of processes in the MPI context.
Definition: MPISentry.cc:69
~MPISentry()
MPISentry Destructor. Calls MPI_Finalize.
Definition: MPISentry.cc:63