KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
|
Code for error handling. More...
#include <array>
#include <exception>
#include <string>
#include <kassert/kassert.hpp>
#include <mpi.h>
Go to the source code of this file.
Classes | |
class | kamping::MpiErrorException |
The exception type used when an MPI call did not return MPI_SUCCESS . More... | |
Macros | |
#define | THROW_IF_MPI_ERROR(error_code, function) |
Wrapper around THROWING_KASSERT for MPI errors. | |
Code for error handling.
#define THROW_IF_MPI_ERROR | ( | error_code, | |
function ) |
Wrapper around THROWING_KASSERT for MPI errors.
Throws an MpiErrorException if the supplied error code is not MPI_SUCCESS
.
The macro accepts 2 parameters: