cloudy
trunk
|
#include <mpi_utilities.h>
Public Member Functions | |
load_balance () | |
load_balance (unsigned int nJobs, unsigned int nCPU) | |
~load_balance () | |
void | clear () |
void | init (unsigned int nJobs, unsigned int nCPU) |
int | next_job () |
void | finalize (exit_type exit_status) |
Private Member Functions | |
void | p_clear0 () |
void | p_clear1 () |
Private Attributes | |
vector< int > | p_jobs |
unsigned int | p_ptr |
unsigned int | p_rank |
unsigned int | p_ncpu |
Definition at line 99 of file mpi_utilities.h.
|
inline |
Definition at line 116 of file mpi_utilities.h.
References p_clear1().
|
inline |
Definition at line 120 of file mpi_utilities.h.
References init(), and p_clear1().
|
inline |
Definition at line 125 of file mpi_utilities.h.
References p_clear0().
|
inline |
Definition at line 129 of file mpi_utilities.h.
References p_clear0(), and p_clear1().
void load_balance::finalize | ( | exit_type | exit_status | ) |
Definition at line 112 of file mpi_utilities.cpp.
References cpu, t_cpu::i(), t_cpu_i::lgMPI(), MPI_Barrier, p_ncpu, p_rank, and wait.
Referenced by main().
void load_balance::init | ( | unsigned int | nJobs, |
unsigned int | nCPU | ||
) |
Definition at line 61 of file mpi_utilities.cpp.
References cpu, EXIT_FAILURE, fork, fprintf(), t_cpu::i(), ioQQQ, t_cpu_i::lgMPI(), min(), MPI_Bcast, t_cpu_i::nRANK(), p_jobs, p_ncpu, p_ptr, p_rank, pid_t, and t_cpu_i::set_nRANK().
Referenced by load_balance().
|
inline |
|
inlineprivate |
Definition at line 105 of file mpi_utilities.h.
References p_jobs.
Referenced by clear(), and ~load_balance().
|
inlineprivate |
Definition at line 109 of file mpi_utilities.h.
References p_ncpu, p_ptr, and p_rank.
Referenced by clear(), and load_balance().
|
private |
Definition at line 101 of file mpi_utilities.h.
Referenced by init(), next_job(), and p_clear0().
|
private |
Definition at line 104 of file mpi_utilities.h.
Referenced by finalize(), init(), next_job(), and p_clear1().
|
private |
Definition at line 102 of file mpi_utilities.h.
Referenced by init(), next_job(), and p_clear1().
|
private |
Definition at line 103 of file mpi_utilities.h.
Referenced by finalize(), init(), and p_clear1().