Loading...
Searching...
No Matches
RgpotGroupMpi.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4
8#define EON_RGPOT_GROUP_MPI_VERSION 1
9
10extern "C" {
11
18 int (*agree)(const char *local, char *shared, std::size_t cap);
21 void (*hard_exit)(int status, void *arg);
22};
23
25}
const EonRgpotGroupMpi * eon_rgpot_group_mpi_v1()
int(* agree)(const char *local, char *shared, std::size_t cap)
Collective on MPI_COMM_WORLD; initialises MPI when needed.
void(* hard_exit)(int status, void *arg)
on_exit handler: MPI_Abort when rgpot asked for it, else MPI_Finalize, then _Exit.