KaMPIng 0.1.1
Flexible and (near) zero-overhead C++ bindings for MPI
Loading...
Searching...
No Matches
mpi_constants.hpp
Go to the documentation of this file.
1// This file is part of KaMPIng.
2//
3// Copyright 2023 The KaMPIng Authors
4//
5// KaMPIng is free software : you can redistribute it and/or modify it under the terms of the GNU Lesser General Public
6// License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
7// version. KaMPIng is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
8// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
9// for more details.
10//
11// You should have received a copy of the GNU Lesser General Public License along with KaMPIng. If not, see
12// <https://www.gnu.org/licenses/>.
13
14/// @file
15/// @brief Wrapper for MPI constants
16
17#pragma once
18
19#include <mpi.h>
20namespace kamping {
21///@brief Wraps the possible results when calling \c MPI_Comm_compare on two MPI communicators comm1 and comm2
23 identical = MPI_IDENT, ///< Result if comm1 and comm2 are handles for same object.
24 congruent = MPI_CONGRUENT, ///< Result if the underlying groups of comm1 and comm2 are identical but the
25 ///< communicators's context is different.
26 similar = MPI_SIMILAR, ///< Result if the underlying groups contain the same ranks but their order differs.
27 unequal = MPI_UNEQUAL ///< Result otherwise.
28};
29} // namespace kamping
STL-compatible allocator for requesting memory using the builtin MPI allocator.
Definition allocator.hpp:32
CommunicatorComparisonResult
Wraps the possible results when calling MPI_Comm_compare on two MPI communicators comm1 and comm2.
Definition mpi_constants.hpp:22
@ similar
Result if the underlying groups contain the same ranks but their order differs.
@ identical
Result if comm1 and comm2 are handles for same object.