Yet Another eXchange Tool 0.11.2
|
utility routines for MPI More...
Go to the source code of this file.
Macros | |
#define | xt_mpi_call(call, comm) |
Functions | |
void | xt_mpi_error (int error_code, MPI_Comm comm) |
MPI_Datatype | xt_mpi_generate_datatype (int const *displacements, int count, MPI_Datatype old_type, MPI_Comm comm) |
MPI_Datatype | xt_mpi_generate_datatype_block (const int *displacements, const int *blocklengths, int count, MPI_Datatype old_type, MPI_Comm comm) |
MPI_Datatype | xt_mpi_generate_datatype_stripe (const struct Xt_offset_ext *v, int count, MPI_Datatype old_type, MPI_Comm comm) |
MPI_Datatype | xt_mpi_generate_datatype_astripe (const struct Xt_aoffset_ext *v, int count, MPI_Datatype old_type, MPI_Comm comm) |
void | xt_mpi_comm_mark_exclusive (MPI_Comm comm) |
utility routines for MPI
contains utility routines for handling MPI
Definition in file xt_mpi.h.
#define xt_mpi_call | ( | call, | |
comm ) |
check return code of MPI call and call abort function if needed
void xt_mpi_comm_mark_exclusive | ( | MPI_Comm | comm | ) |
Annotate communicator that is for exclusive use by YAXT.
YAXT will trust communicators marked this way to not have active communications other than those initiated by YAXT functions. This is useful to prevent unnecessary MPI_Comm_dup() calls.
[in,out] | comm | communicator that will not be used by application code |
Definition at line 403 of file xt_mpi.c.
void xt_mpi_error | ( | int | error_code, |
MPI_Comm | comm ) |
MPI_Datatype xt_mpi_generate_datatype | ( | int const * | displacements, |
int | count, | ||
MPI_Datatype | old_type, | ||
MPI_Comm | comm ) |
generates an MPI datatype
[in] | displacements | array of displacements |
[in] | count | number of elements |
[in] | old_type | base MPI datatype of all elements |
[in] | comm | MPI communicator |
Definition at line 245 of file xt_mpi_ddt_gen.c.
MPI_Datatype xt_mpi_generate_datatype_astripe | ( | const struct Xt_aoffset_ext * | v, |
int | count, | ||
MPI_Datatype | old_type, | ||
MPI_Comm | comm ) |
generates an MPI datatype
[in] | v | array of byte displacement, stride and length of sub-vectors |
[in] | count | number of sub-vectors |
[in] | old_type | base MPI datatype of all elements |
[in] | comm | MPI communicator |
MPI_Datatype xt_mpi_generate_datatype_block | ( | const int * | displacements, |
const int * | blocklengths, | ||
int | count, | ||
MPI_Datatype | old_type, | ||
MPI_Comm | comm ) |
generates an MPI datatype
[in] | displacements | array of displacements |
[in] | blocklengths | array of block sizes |
[in] | count | number of blocks |
[in] | old_type | base MPI datatype of all elements |
[in] | comm | MPI communicator |
Definition at line 209 of file xt_mpi_ddt_gen.c.
MPI_Datatype xt_mpi_generate_datatype_stripe | ( | const struct Xt_offset_ext * | v, |
int | count, | ||
MPI_Datatype | old_type, | ||
MPI_Comm | comm ) |
generates an MPI datatype
[in] | v | array of displacement, stride and length of sub-vectors |
[in] | count | number of sub-vectors |
[in] | old_type | base MPI datatype of all elements |
[in] | comm | MPI communicator |