#include <MpiCommunicator.hpp>
◆ MpiCommunicator() [1/2]
sisi4s::MpiCommunicator::MpiCommunicator |
( |
int |
rank_, |
|
|
int |
processes_, |
|
|
MPI_Comm |
comm_ = MPI_COMM_WORLD |
|
) |
| |
|
inline |
◆ MpiCommunicator() [2/2]
sisi4s::MpiCommunicator::MpiCommunicator |
( |
const CTF::World & |
world | ) |
|
|
inline |
◆ ~MpiCommunicator()
sisi4s::MpiCommunicator::~MpiCommunicator |
( |
| ) |
|
|
inline |
◆ allReduce()
template<typename F >
void sisi4s::MpiCommunicator::allReduce |
( |
const F & |
src, |
|
|
F & |
dst |
|
) |
| |
|
inline |
◆ barrier()
void sisi4s::MpiCommunicator::barrier |
( |
| ) |
|
|
inline |
◆ gather()
template<typename F >
void sisi4s::MpiCommunicator::gather |
( |
const std::vector< F > & |
src, |
|
|
std::vector< F > & |
dst, |
|
|
int |
rootRank = 0 |
|
) |
| |
|
inline |
\Brief Gathers the src vectors of all ranks together to the dst vector at the given root rank, by default rank 0.
◆ getProcesses()
int sisi4s::MpiCommunicator::getProcesses |
( |
| ) |
const |
|
inline |
◆ getRank()
int sisi4s::MpiCommunicator::getRank |
( |
| ) |
const |
|
inline |
◆ reduce()
template<typename F >
void sisi4s::MpiCommunicator::reduce |
( |
const F & |
src, |
|
|
F & |
dst, |
|
|
int |
rootRank = 0 |
|
) |
| |
|
inline |
◆ comm
MPI_Comm sisi4s::MpiCommunicator::comm |
|
protected |
◆ processes
int sisi4s::MpiCommunicator::processes |
|
protected |
◆ rank
int sisi4s::MpiCommunicator::rank |
|
protected |
The documentation for this class was generated from the following file: