TRIQS/mpi 1.3.0
C++ interface to MPI
|
#include "./utils.hpp"
#include <mpi.h>
#include <algorithm>
#include <array>
#include <complex>
#include <cstdlib>
#include <tuple>
#include <type_traits>
#include <utility>
Provides utilities to map C++ datatypes to MPI datatypes.
Definition in file datatypes.hpp.
Go to the source code of this file.
Classes | |
struct | mpi::mpi_type< T > |
Map C++ datatypes to the corresponding MPI datatypes. More... | |
struct | mpi::mpi_type< bool > |
Specialization of mpi_type for bool. More... | |
struct | mpi::mpi_type< char > |
Specialization of mpi_type for char. More... | |
struct | mpi::mpi_type< const T > |
Specialization of mpi::mpi_type for const types. More... | |
struct | mpi::mpi_type< double > |
Specialization of mpi_type for double. More... | |
struct | mpi::mpi_type< float > |
Specialization of mpi_type for float. More... | |
struct | mpi::mpi_type< int > |
Specialization of mpi_type for int. More... | |
struct | mpi::mpi_type< long > |
Specialization of mpi_type for long. More... | |
struct | mpi::mpi_type< long long > |
Specialization of mpi_type for long long. More... | |
struct | mpi::mpi_type< std::complex< double > > |
Specialization of mpi_type for std::complex<double>. More... | |
struct | mpi::mpi_type< std::tuple< T... > > |
Specialization of mpi::mpi_type for std::tuple. More... | |
struct | mpi::mpi_type< unsigned int > |
Specialization of mpi_type for unsigned int. More... | |
struct | mpi::mpi_type< unsigned long > |
Specialization of mpi_type for unsigned long. More... | |
struct | mpi::mpi_type< unsigned long long > |
Specialization of mpi_type for unsigned long long. More... | |
struct | mpi::mpi_type_from_tie< T > |
Create an MPI_Datatype from some struct. More... | |
Functions | |
template<typename... Ts> | |
MPI_Datatype | mpi::get_mpi_type (std::tuple< Ts... > tup) |
Create a new MPI_Datatype from a tuple. | |
Variables | |
template<typename T , typename = void> | |
constexpr bool | mpi::has_mpi_type = false |
Type trait to check if a type T has a corresponding MPI datatype, i.e. if mpi::mpi_type has been specialized. | |