Fleet  0.0.9
Inference in the LOT
Functions | Variables
MPI.h File Reference
#include <string>
#include <mpi.h>
Include dependency graph for MPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int mpi_rank ()
 
int mpi_size ()
 
bool is_mpi_head ()
 
template<typename T >
void mpi_return (T &x)
 Return my results via MPI. More...
 
template<typename T >
std::vector< T > mpi_gather ()
 Reads all the MPI returns from mpi_return. NOTE that the output does not come with any order guarantees. This waits until all are finished. NOTE: This has NO robustness to losing nodes. https://mpitutorial.com/tutorials/dynamic-receiving-with-mpi-probe-and-mpi-status/. More...
 
template<typename T >
std::vector< T > mpi_map (const size_t n)
 Send an int n to each request. Each requestor can use this to index into some data which they are assumed to know already. More...
 

Variables

const size_t MPI_HEAD_RANK = 0
 

Function Documentation

◆ is_mpi_head()

bool is_mpi_head ( )

◆ mpi_gather()

template<typename T >
std::vector<T> mpi_gather ( )

Reads all the MPI returns from mpi_return. NOTE that the output does not come with any order guarantees. This waits until all are finished. NOTE: This has NO robustness to losing nodes. https://mpitutorial.com/tutorials/dynamic-receiving-with-mpi-probe-and-mpi-status/.

Returns

◆ mpi_map()

template<typename T >
std::vector<T> mpi_map ( const size_t  n)

Send an int n to each request. Each requestor can use this to index into some data which they are assumed to know already.

Returns

◆ mpi_rank()

int mpi_rank ( )

◆ mpi_return()

template<typename T >
void mpi_return ( T &  x)

Return my results via MPI.

Parameters
x

◆ mpi_size()

int mpi_size ( )

Variable Documentation

◆ MPI_HEAD_RANK

const size_t MPI_HEAD_RANK = 0