70# define __attribute__(x)
73#define UNUSED(x) (void)(x)
78typedef void (*
symprefix(abort_func))(MPI_Comm comm,
const char *msg,
79 const char *source,
int line)
90 const char *source,
int line)
136 int init_flag = 0, finished_flag = 0;
137 return MPI_Initialized(&init_flag) == MPI_SUCCESS && init_flag
138 && MPI_Finalized(&finished_flag) == MPI_SUCCESS && !finished_flag;
void symprefix abort_message(char const *msg, const char *source, int line)
void symprefix set_abort_handler(symprefix(abort_func) custom_abort)
void symprefix set_default_comm(MPI_Comm comm)
void symprefix abort(MPI_Comm comm, const char *msg, const char *source, int line) __attribute__((noreturn))
static int SymPrefix mpi_calls_are_allowed(void)
void symprefix restore_default_abort_handler(void)
Define library-specific symbol prefix macros.
#define SymPrefix(symbol)
#define symprefix(symbol)