#include <limits.h>
#include <mpi.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
|
| static void | mh_mpi_error (int error_code, MPI_Comm comm) |
| |
| static void | mh_abort (const char *error_string, MPI_Comm comm, const char *file, int line) |
| |
| void | mpi_handshake (char const **group_names, MPI_Comm *group_comms, size_t n, MPI_Comm comm) |
| |
| void | mpi_handshake_c2f (int n, char const **group_names, MPI_Fint *group_comms, MPI_Fint comm) |
| |
| void | mpi_handshake_dummy (MPI_Comm comm) |
| |
◆ mh_assert
| #define mh_assert |
( |
| exp, |
|
|
| msg, |
|
|
| comm ) |
Value: { \
if (!((exp))) \
mh_abort(((msg)), ((comm)), __FILE__, __LINE__); \
}
Definition at line 73 of file mpi_handshake.c.
◆ mh_mpi_call
| #define mh_mpi_call |
( |
| call, |
|
|
| comm ) |
Value: do { \
int error_code = (call); \
if (error_code != MPI_SUCCESS) \
mh_mpi_error(error_code, comm); \
} while (0)
Definition at line 66 of file mpi_handshake.c.
◆ mh_abort()
| static void mh_abort |
( |
const char * | error_string, |
|
|
MPI_Comm | comm, |
|
|
const char * | file, |
|
|
int | line ) |
|
static |
◆ mh_mpi_error()
| static void mh_mpi_error |
( |
int | error_code, |
|
|
MPI_Comm | comm ) |
|
static |
◆ mpi_handshake()
| void mpi_handshake |
( |
char const ** | group_names, |
|
|
MPI_Comm * | group_comms, |
|
|
size_t | n, |
|
|
MPI_Comm | comm ) |
Common MPI communicator splitting
- Parameters
-
| [in] | group_names | names of process groups |
| [out] | group_comms | MPI communicators containing all processes that provided the same group names |
| [in] | n | number of group names |
| [in] | comm | MPI communicator used for the splitting |
Definition at line 79 of file mpi_handshake.c.
◆ mpi_handshake_c2f()
| void mpi_handshake_c2f |
( |
int | n, |
|
|
char const ** | group_names, |
|
|
MPI_Fint * | group_comms, |
|
|
MPI_Fint | comm ) |
◆ mpi_handshake_dummy()
| void mpi_handshake_dummy |
( |
MPI_Comm | comm | ) |
|
- Authors
- 08/2021 :: ICON Community Interface comin.nosp@m.@ico.nosp@m.n-mod.nosp@m.el.o.nosp@m.rg
SPDX-License-Identifier: BSD-3-Clause
Please see the file LICENSE in the root of the source tree for this code. Where software is supplied by third parties, it is indicated in the headers of the routines. dummy call of Common MPI communicator splitting
Definition at line 179 of file mpi_handshake.c.