HiRep 0.1
Loading...
Searching...
No Matches
hr_mpi.h File Reference

Setup for mpi. More...

#include <mpi.h>
Include dependency graph for hr_mpi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OMPI_SKIP_MPICXX
 
#define MPI_CHECK(stmt)
 

Detailed Description

Setup for mpi.

Macro Definition Documentation

◆ MPI_CHECK

#define MPI_CHECK ( stmt)
Value:
do { \
int mpi_errno = (stmt); \
if (MPI_SUCCESS != mpi_errno) { \
char mesg[MPI_MAX_ERROR_STRING]; \
int mesglen; \
MPI_Error_string(mpi_eerno, mesg, &mesglen); \
lprintf("MPI", 0, "[%s] ERROR: %s\n", __func__, mesg); \
error(1, 1, "File: " __FILE__, " Line: " __LINE__); \
} \
} while (0)