Overloaded utility functions to convert between arbitrary C/C++ types and MPI types, custom typedefs for cstdlib types like size_t, and a wrapper for MPI_Pack_Size.
More...
#include <iostream>
#include <cstdlib>
#include <stdint.h>
#include <mpi.h>
Go to the source code of this file.
Overloaded utility functions to convert between arbitrary C/C++ types and MPI types, custom typedefs for cstdlib types like size_t, and a wrapper for MPI_Pack_Size.
Definition in file mpi_utils.h.
int mpi_packed_size |
( |
int |
count, |
|
|
MPI_Datatype |
type, |
|
|
MPI_Comm |
comm |
|
) |
| |
|
inline |
Expression-ifies the overly C-ish MPI_Pack_size function.
Just returns the size instead of requring a temporary.
Definition at line 47 of file mpi_utils.h.
MPI_Datatype mpi_typeof |
( |
char |
| ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
signed |
short | ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
unsigned |
char | ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
signed long |
long | ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
double |
| ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
long |
double | ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
std::pair< int, int > |
| ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
std::pair< float, int > |
| ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
std::pair< double, int > |
| ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
std::pair< long double, int > |
| ) |
|
|
inline |
MPI_Datatype mpi_typeof |
( |
std::pair< short, int > |
| ) |
|
|
inline |
int pmpi_packed_size |
( |
int |
count, |
|
|
MPI_Datatype |
type, |
|
|
MPI_Comm |
comm |
|
) |
| |
|
inline |