BioCMAMC-ST
message_t.hpp
1#ifndef __PMESSAGE_HPP__
2#define __PMESSAGE_HPP__
3
4#include <type_traits>
5namespace WrapMPI
6{
7 // static bool is_mpi_init = false;
8 int critical_error() noexcept;
9 void barrier() noexcept;
10 void finalize() noexcept;
11 bool is_initialized() noexcept;
12 enum class SIGNALS : char
13 {
14 STOP,
15 RUN,
16 NOP,
17 DUMP
18 };
19
20 template <typename T>
21 concept POD_t =
22 std::is_standard_layout_v<T> && std::is_trivially_copyable_v<T> &&
23 std::is_trivially_destructible_v<T> && std::is_trivially_default_constructible_v<T>;
24
25
26} // namespace WrapMPI
27
28#endif //__PMESSAGE_HPP__
Definition message_t.hpp:21
Namespace to correclty wrap MPI C API for modern C++.
Definition impl_async.hpp:19
void barrier() noexcept
Definition mpi_wrap.cpp:28
bool is_initialized() noexcept
Definition mpi_wrap.cpp:9
SIGNALS
Definition message_t.hpp:13
int critical_error() noexcept
Definition mpi_wrap.cpp:23
void finalize() noexcept
Definition mpi_wrap.cpp:18