|
pomerol
2.2
|
Abstraction of an MPI worker process. More...
#include <mpi_dispatcher.hpp>
Public Member Functions | |
| MPIWorker (MPI_Comm const &Comm, int Boss) | |
| void | receive_order () |
| Check if there is an outstanding order from the master. More... | |
| void | report_job_done () |
| Notify the master about a job's completion. More... | |
| bool | is_finished () |
| Has this worker process finished execution. More... | |
| bool | is_working () |
| Is a job being processed by this worker? More... | |
| JobId | current_job () const |
| Get the ID of the job currently assigned to this worker. More... | |
Data Fields | |
| MPI_Comm | Comm |
| MPI communicator. More... | |
| WorkerId const | id |
| Worker ID of this process. More... | |
| int const | boss |
| Rank of the master process. More... | |
Protected Attributes | |
| JobId | current_job_ |
| ID of the job currently assigned to this worker. More... | |
| MPI_Request | req |
| An MPI request handle used for non-blocking communications. More... | |
| WorkerTag | Status |
| Current state of this worker. More... | |
Abstraction of an MPI worker process.
Definition at line 44 of file mpi_dispatcher.hpp.
| pMPI::MPIWorker::MPIWorker | ( | MPI_Comm const & | Comm, |
| int | Boss | ||
| ) |
Constructor.
| [in] | Comm | MPI communicator |
| [in] | Boss | Rank of the master process. |
|
inline |
Get the ID of the job currently assigned to this worker.
Definition at line 66 of file mpi_dispatcher.hpp.
| bool pMPI::MPIWorker::is_finished | ( | ) |
Has this worker process finished execution.
| bool pMPI::MPIWorker::is_working | ( | ) |
Is a job being processed by this worker?
| void pMPI::MPIWorker::receive_order | ( | ) |
Check if there is an outstanding order from the master.
| void pMPI::MPIWorker::report_job_done | ( | ) |
Notify the master about a job's completion.
| int const pMPI::MPIWorker::boss |
Rank of the master process.
Definition at line 50 of file mpi_dispatcher.hpp.
| MPI_Comm pMPI::MPIWorker::Comm |
MPI communicator.
Definition at line 46 of file mpi_dispatcher.hpp.
|
protected |
ID of the job currently assigned to this worker.
Definition at line 70 of file mpi_dispatcher.hpp.
| WorkerId const pMPI::MPIWorker::id |
Worker ID of this process.
Definition at line 48 of file mpi_dispatcher.hpp.
|
protected |
An MPI request handle used for non-blocking communications.
Definition at line 72 of file mpi_dispatcher.hpp.
|
protected |
Current state of this worker.
Definition at line 74 of file mpi_dispatcher.hpp.