![]() |
ESPResSo 3.2.0-167-g2c9ead1-git
Extensible Simulation Package for Soft Matter Research
|
For more information about MPIFake, see mpi.h. More...
#include "mpi.h"
Go to the source code of this file.
Functions | |
| static void | mpifake_dtblock (MPI_Datatype newtype, MPI_Datatype oldtype, int count, int disp) |
| static void | mpifake_pack (void *dest, void *src, int num, MPI_Datatype dtype) |
| static int | mpifake_unpack (void *dest, void *src, int num, MPI_Datatype dtype) |
| int | MPI_Type_struct (int count, int *lengths, MPI_Aint *disps, MPI_Datatype *oldtypes, MPI_Datatype *newtype) |
| int | MPI_Type_contiguous (int count, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_vector (int count, int length, int stride, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| int | MPI_Type_hvector (int count, int length, int stride, MPI_Datatype oldtype, MPI_Datatype *newtype) |
| static void | mpifake_pack_hvector (void *dest, void *src, int num, MPI_Datatype dtype, int vflag) |
| static void | mpifake_pack_struct (void *dest, void *src, int num, MPI_Datatype dtype) |
| static int | mpifake_unpack_hvector (void *dest, void *src, int num, MPI_Datatype dtype, int vflag) |
| static int | mpifake_unpack_struct (void *dest, void *src, int num, MPI_Datatype dtype) |
| static void | mpifake_cpy_hvector (void *dest, void *src, int num, MPI_Datatype dtype, int vflag) |
| static void | mpifake_cpy_struct (void *dest, void *src, int count, MPI_Datatype dtype) |
| void | mpifake_copy (void *src, void *dest, int *count, MPI_Datatype *dtype) |
| int | mpifake_sendrecv (void *s, int scount, MPI_Datatype sdtype, void *r, int rcount, MPI_Datatype rdtype) |
Variables | |
| struct mpifake_dtype | mpifake_dtype_lb = { 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL } |
| struct mpifake_dtype | mpifake_dtype_ub = { 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL } |
| struct mpifake_dtype | mpifake_dtype_byte = { 0, 0, sizeof(char), sizeof(char), 1, 1, sizeof(char), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype | mpifake_dtype_char = { 0, 0, sizeof(char), sizeof(char), 1, 1, sizeof(char), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype | mpifake_dtype_int = { 0, 0, sizeof(int), sizeof(int), 1, 1, sizeof(int), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype | mpifake_dtype_long = { 0, 0, sizeof(long), sizeof(long), 1, 1, sizeof(long), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype | mpifake_dtype_double = { 0, 0, sizeof(double), sizeof(double), 1, 1, sizeof(double), NULL, NULL, NULL, NULL } |
| int MPI_Type_contiguous | ( | int | count, |
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Definition at line 78 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, mpifake_dtype::format, LAM_DTCONTIG, mpifake_dtype::lower, malloc, MPI_SUCCESS, mpifake_dtblock(), mpifake_dtype::size, and mpifake_dtype::upper.
Referenced by maggs_exchange_surface_patch(), and maggs_prepare_surface_planes().
| int MPI_Type_hvector | ( | int | count, |
| int | length, | ||
| int | stride, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Definition at line 134 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, mpifake_dtype::format, LAM_DTHVECTOR, mpifake_dtype::length, mpifake_dtype::lower, malloc, MPI_SUCCESS, mpifake_dtblock(), mpifake_dtype::size, mpifake_dtype::stride, and mpifake_dtype::upper.
Referenced by lb_prepare_communication(), and maggs_exchange_surface_patch().
| int MPI_Type_struct | ( | int | count, |
| int * | lengths, | ||
| MPI_Aint * | disps, | ||
| MPI_Datatype * | oldtypes, | ||
| MPI_Datatype * | newtype | ||
| ) |
Definition at line 40 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::disps, mpifake_dtype::dtypes, mpifake_dtype::format, i, LAM_DTSTRUCT, mpifake_dtype::lengths, mpifake_dtype::lower, malloc, MPI_SUCCESS, mpifake_dtblock(), mpifake_dtype::size, and mpifake_dtype::upper.
| int MPI_Type_vector | ( | int | count, |
| int | length, | ||
| int | stride, | ||
| MPI_Datatype | oldtype, | ||
| MPI_Datatype * | newtype | ||
| ) |
Definition at line 99 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, mpifake_dtype::format, LAM_DTVECTOR, mpifake_dtype::length, mpifake_dtype::lower, malloc, MPI_SUCCESS, mpifake_dtblock(), mpifake_dtype::size, mpifake_dtype::stride, and mpifake_dtype::upper.
Referenced by maggs_exchange_surface_patch(), maggs_prepare_surface_planes(), and prepare_halo_communication().
| void mpifake_copy | ( | void * | src, |
| void * | dest, | ||
| int * | count, | ||
| MPI_Datatype * | dtype | ||
| ) |
Definition at line 411 of file mpi.c.
References LAM_DTCONTIG, LAM_DTHVECTOR, LAM_DTSTRUCT, LAM_DTVECTOR, mpifake_copy(), mpifake_cpy_hvector(), and mpifake_cpy_struct().
Referenced by mpifake_copy(), mpifake_cpy_hvector(), mpifake_cpy_struct(), and mpifake_sendrecv().
| static void mpifake_cpy_hvector | ( | void * | dest, |
| void * | src, | ||
| int | num, | ||
| MPI_Datatype | dtype, | ||
| int | vflag | ||
| ) | [static] |
Definition at line 371 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, i, mpifake_dtype::length, mpifake_dtype::lower, mpifake_copy(), mpifake_dtype::stride, and mpifake_dtype::upper.
Referenced by mpifake_copy().
| static void mpifake_cpy_struct | ( | void * | dest, |
| void * | src, | ||
| int | count, | ||
| MPI_Datatype | dtype | ||
| ) | [static] |
Definition at line 392 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::disps, mpifake_dtype::dtypes, i, mpifake_dtype::lengths, mpifake_dtype::lower, mpifake_copy(), and mpifake_dtype::upper.
Referenced by mpifake_copy().
| static void mpifake_dtblock | ( | MPI_Datatype | newtype, |
| MPI_Datatype | oldtype, | ||
| int | count, | ||
| int | disp | ||
| ) | [static] |
Definition at line 169 of file mpi.c.
References mpifake_dtype::lower, mpifake_dtype::size, and mpifake_dtype::upper.
Referenced by MPI_Type_contiguous(), MPI_Type_hvector(), MPI_Type_struct(), and MPI_Type_vector().
| static void mpifake_pack | ( | void * | dest, |
| void * | src, | ||
| int | num, | ||
| MPI_Datatype | dtype | ||
| ) | [static] |
Definition at line 249 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, mpifake_dtype::format, LAM_DTCONTIG, LAM_DTHVECTOR, LAM_DTSTRUCT, LAM_DTVECTOR, mpifake_pack_hvector(), mpifake_pack_struct(), and mpifake_dtype::size.
Referenced by mpifake_pack_hvector(), mpifake_pack_struct(), and mpifake_sendrecv().
| static void mpifake_pack_hvector | ( | void * | dest, |
| void * | src, | ||
| int | num, | ||
| MPI_Datatype | dtype, | ||
| int | vflag | ||
| ) | [static] |
Definition at line 198 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, i, mpifake_dtype::length, mpifake_dtype::lower, mpifake_pack(), mpifake_dtype::size, mpifake_dtype::stride, and mpifake_dtype::upper.
Referenced by mpifake_pack().
| static void mpifake_pack_struct | ( | void * | dest, |
| void * | src, | ||
| int | num, | ||
| MPI_Datatype | dtype | ||
| ) | [static] |
Definition at line 223 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::disps, mpifake_dtype::dtypes, i, mpifake_dtype::lengths, mpifake_dtype::lower, mpifake_pack(), mpifake_dtype::size, and mpifake_dtype::upper.
Referenced by mpifake_pack().
| int mpifake_sendrecv | ( | void * | s, |
| int | scount, | ||
| MPI_Datatype | sdtype, | ||
| void * | r, | ||
| int | rcount, | ||
| MPI_Datatype | rdtype | ||
| ) |
Definition at line 441 of file mpi.c.
References errexit(), free, malloc, MPI_SUCCESS, mpifake_copy(), mpifake_pack(), mpifake_unpack(), and mpifake_dtype::size.
Referenced by MPI_Allgather(), MPI_Gather(), and MPI_Scatter().
| static int mpifake_unpack | ( | void * | dest, |
| void * | src, | ||
| int | num, | ||
| MPI_Datatype | dtype | ||
| ) | [static] |
Definition at line 345 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, mpifake_dtype::format, LAM_DTCONTIG, LAM_DTHVECTOR, LAM_DTSTRUCT, LAM_DTVECTOR, mpifake_unpack_hvector(), mpifake_unpack_struct(), and mpifake_dtype::size.
Referenced by mpifake_sendrecv(), mpifake_unpack_hvector(), and mpifake_unpack_struct().
| static int mpifake_unpack_hvector | ( | void * | dest, |
| void * | src, | ||
| int | num, | ||
| MPI_Datatype | dtype, | ||
| int | vflag | ||
| ) | [static] |
Definition at line 276 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::dtype, errexit(), i, mpifake_dtype::length, mpifake_dtype::lower, mpifake_unpack(), mpifake_dtype::size, mpifake_dtype::stride, and mpifake_dtype::upper.
Referenced by mpifake_unpack().
| static int mpifake_unpack_struct | ( | void * | dest, |
| void * | src, | ||
| int | num, | ||
| MPI_Datatype | dtype | ||
| ) | [static] |
Definition at line 310 of file mpi.c.
References mpifake_dtype::count, mpifake_dtype::disps, mpifake_dtype::dtypes, errexit(), i, mpifake_dtype::lengths, mpifake_dtype::lower, mpifake_unpack(), mpifake_dtype::size, and mpifake_dtype::upper.
Referenced by mpifake_unpack().
| struct mpifake_dtype mpifake_dtype_byte = { 0, 0, sizeof(char), sizeof(char), 1, 1, sizeof(char), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype mpifake_dtype_char = { 0, 0, sizeof(char), sizeof(char), 1, 1, sizeof(char), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype mpifake_dtype_double = { 0, 0, sizeof(double), sizeof(double), 1, 1, sizeof(double), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype mpifake_dtype_int = { 0, 0, sizeof(int), sizeof(int), 1, 1, sizeof(int), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype mpifake_dtype_lb = { 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL } |
| struct mpifake_dtype mpifake_dtype_long = { 0, 0, sizeof(long), sizeof(long), 1, 1, sizeof(long), NULL, NULL, NULL, NULL } |
| struct mpifake_dtype mpifake_dtype_ub = { 0, 0, 0, 0, 0, 0, 0, NULL, NULL, NULL, NULL } |
1.7.5.1