15 #ifndef ALLIUM_IPC_COMM_HPP
16 #define ALLIUM_IPC_COMM_HPP
20 #include <allium/mesh/range.hpp>
31 Comm(::MPI_Comm handle);
33 bool operator!= (
const Comm& other) {
34 return m_handle != other.m_handle;
45 Comm split(
int color,
int key)
const;
61 RecvInfo recv(
int* data,
int max_elements,
int src,
int tag);
63 void send(
const Range<2>& p,
int dest,
int tag);
64 void send(
int* data,
int elements,
int dest,
int tag);
66 std::vector<long long> sum_exscan(std::vector<long long> buf);
68 MPI_Comm handle() {
return m_handle; }
Wraps an MPI communicator to make MPI easier to use.
Definition: comm.hpp:26
Comm(::MPI_Comm handle)
Create a Comm from an MPI_Comm handle.
Definition: comm.cpp:19
An n-d range.
Definition: range.hpp:28
Information about the data that was just received.
Definition: comm.hpp:54