|
core 1.8.1
Shared MPI block decomposition, asynchronous ghost-layer exchange, SDF geometry, load balancing (header-only C++20)
|
#include <cstdlib>#include <cstring>#include <map>Go to the source code of this file.
Classes | |
| struct | MPI_Status |
Namespaces | |
| namespace | peclet |
| namespace | peclet::core |
| namespace | peclet::core::mpi_stub |
Macros | |
| #define | MPI_COMM_WORLD 0 |
| #define | MPI_COMM_NULL (-1) |
| #define | MPI_REQUEST_NULL 0 |
| #define | MPI_INFO_NULL 0 |
| #define | MPI_STATUS_IGNORE (static_cast<MPI_Status*>(nullptr)) |
| #define | MPI_STATUSES_IGNORE (static_cast<MPI_Status*>(nullptr)) |
| #define | MPI_ANY_SOURCE (-1) |
| #define | MPI_UNDEFINED (-32766) |
| #define | MPI_UNWEIGHTED (static_cast<int*>(nullptr)) |
| #define | MPI_SUCCESS 0 |
| #define | MPI_BYTE 1 |
| #define | MPI_INT 4 |
| #define | MPI_LONG 8 |
| #define | MPI_DOUBLE 8 |
| #define | MPI_SUM 0 |
| #define | MPI_MAX 1 |
| #define | MPI_MIN 2 |
| #define | MPI_LAND 3 |
| #define | MPI_COMM_NULL_COPY_FN (static_cast<MPI_Comm_copy_attr_function*>(nullptr)) |
| #define | MPI_COMM_NULL_DELETE_FN (static_cast<MPI_Comm_delete_attr_function*>(nullptr)) |
| #define | MPI_KEYVAL_INVALID (-1) |
Typedefs | |
| using | MPI_Comm = int |
| using | MPI_Request = int |
| using | MPI_Datatype = int |
| using | MPI_Op = int |
| using | MPI_Info = int |
| using | MPI_Comm_copy_attr_function = int(MPI_Comm, int, void*, void*, void*, int*) |
| using | MPI_Comm_delete_attr_function = int(MPI_Comm, int, void*, void*) |
Functions | |
| int | MPI_Init (int *, char ***) |
| int | MPI_Initialized (int *f) |
| int | MPI_Finalize () |
| int | MPI_Finalized (int *f) |
| int | MPI_Abort (MPI_Comm, int code) |
| int | MPI_Comm_rank (MPI_Comm, int *r) |
| int | MPI_Comm_size (MPI_Comm, int *s) |
| std::map< std::pair< int, int >, void * > & | peclet::core::mpi_stub::attrs () |
| int & | peclet::core::mpi_stub::nextKeyval () |
| int | MPI_Comm_create_keyval (MPI_Comm_copy_attr_function *, MPI_Comm_delete_attr_function *, int *keyval, void *) |
| int | MPI_Comm_get_attr (MPI_Comm c, int keyval, void *val, int *flag) |
| int | MPI_Comm_set_attr (MPI_Comm c, int keyval, void *val) |
| int | MPI_Comm_free (MPI_Comm *) |
| int | MPI_Barrier (MPI_Comm) |
| int | MPI_Allreduce (const void *sbuf, void *rbuf, int count, MPI_Datatype dt, MPI_Op, MPI_Comm) |
| int | MPI_Bcast (void *, int, MPI_Datatype, int, MPI_Comm) |
| int | MPI_Send (const void *, int, MPI_Datatype, int, int, MPI_Comm) |
| int | MPI_Recv (void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *) |
| int | MPI_Isend (const void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *) |
| int | MPI_Irecv (void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *) |
| int | MPI_Issend (const void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *) |
| int | MPI_Iprobe (int, int, MPI_Comm, int *flag, MPI_Status *) |
| int | MPI_Get_count (const MPI_Status *, MPI_Datatype, int *c) |
| int | MPI_Test (MPI_Request *, int *flag, MPI_Status *) |
| int | MPI_Testall (int, MPI_Request *, int *flag, MPI_Status *) |
| int | MPI_Wait (MPI_Request *, MPI_Status *) |
| int | MPI_Waitall (int, MPI_Request *, MPI_Status *) |
| int | MPI_Waitany (int, MPI_Request *, int *idx, MPI_Status *) |
| int | MPI_Ibarrier (MPI_Comm, MPI_Request *) |
| int | MPI_Dist_graph_create_adjacent (MPI_Comm c, int, const int *, const int *, int, const int *, const int *, MPI_Info, int, MPI_Comm *out) |
| int | MPI_Neighbor_alltoallv (const void *, const int *, const int *, MPI_Datatype, void *, const int *, const int *, MPI_Datatype, MPI_Comm) |
| #define MPI_COMM_WORLD 0 |
Definition at line 27 of file mpi_stub.hpp.
Referenced by peclet::core::halo::GridHaloTopology< Dim >::buildTopology(), peclet::core::halo::ParticleMigrator< Dim >::init(), peclet::core::halo::ParticleMigratorView< Dim >::init(), peclet::core::halo::NbxEngine::NbxEngine(), and peclet::core::halo::rebalanceByParticleCount().
| #define MPI_COMM_NULL (-1) |
Definition at line 28 of file mpi_stub.hpp.
Referenced by peclet::core::halo::GridHaloTopology< Dim >::operator=().
| #define MPI_REQUEST_NULL 0 |
| #define MPI_INFO_NULL 0 |
Definition at line 30 of file mpi_stub.hpp.
| #define MPI_STATUS_IGNORE (static_cast<MPI_Status*>(nullptr)) |
Definition at line 31 of file mpi_stub.hpp.
Referenced by peclet::core::halo::NbxEngine::exchange(), peclet::core::halo::detail::probeGpuAwareMpi(), peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::wait().
| #define MPI_STATUSES_IGNORE (static_cast<MPI_Status*>(nullptr)) |
Definition at line 32 of file mpi_stub.hpp.
Referenced by peclet::core::halo::NbxEngine::exchange(), peclet::core::halo::GridHalo< T >::exchangeEnd(), peclet::core::halo::ParticleHalo< Dim >::forward(), peclet::core::halo::ParticleHalo< Dim >::reverse(), peclet::core::halo::ParticleHaloTopology< Dim >::reverse(), peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::wait().
| #define MPI_ANY_SOURCE (-1) |
Definition at line 33 of file mpi_stub.hpp.
Referenced by peclet::core::halo::NbxEngine::exchange().
| #define MPI_UNDEFINED (-32766) |
Definition at line 34 of file mpi_stub.hpp.
Referenced by peclet::core::decomp::makeStageComm(), MPI_Waitany(), peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::wait().
| #define MPI_UNWEIGHTED (static_cast<int*>(nullptr)) |
Definition at line 35 of file mpi_stub.hpp.
| #define MPI_SUCCESS 0 |
Definition at line 36 of file mpi_stub.hpp.
Referenced by MPI_Allreduce(), MPI_Barrier(), MPI_Bcast(), MPI_Comm_free(), MPI_Comm_rank(), MPI_Comm_size(), MPI_Dist_graph_create_adjacent(), MPI_Finalize(), MPI_Finalized(), MPI_Get_count(), MPI_Ibarrier(), MPI_Init(), MPI_Initialized(), MPI_Iprobe(), MPI_Irecv(), MPI_Isend(), MPI_Issend(), MPI_Neighbor_alltoallv(), MPI_Recv(), MPI_Send(), MPI_Test(), MPI_Testall(), MPI_Wait(), MPI_Waitall(), MPI_Waitany(), and peclet::core::halo::detail::probeGpuAwareMpi().
| #define MPI_BYTE 1 |
Definition at line 38 of file mpi_stub.hpp.
Referenced by peclet::core::solver::andersonComm(), peclet::core::decomp::RedistributeTopology< Dim, T >::backward(), peclet::core::halo::NbxEngine::exchange(), peclet::core::halo::GridHaloTopology< Dim >::exchangePersistent(), peclet::core::decomp::RedistributeTopology< Dim, T >::forward(), peclet::core::decomp::gatherByGlobalId(), peclet::core::halo::ParticleHaloTopology< Dim >::reverse(), peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::start().
| #define MPI_INT 4 |
Definition at line 39 of file mpi_stub.hpp.
Referenced by peclet::core::decomp::gatherByGlobalId(), and peclet::core::halo::detail::probeGpuAwareMpi().
| #define MPI_LONG 8 |
Definition at line 40 of file mpi_stub.hpp.
Referenced by peclet::core::halo::GridHaloTopology< Dim >::buildTopology().
| #define MPI_DOUBLE 8 |
Definition at line 41 of file mpi_stub.hpp.
Referenced by peclet::core::solver::andersonComm(), and peclet::core::halo::rebalanceByParticleCount().
| #define MPI_SUM 0 |
Definition at line 43 of file mpi_stub.hpp.
Referenced by peclet::core::solver::andersonComm(), peclet::core::halo::GridHaloTopology< Dim >::buildTopology(), and peclet::core::halo::rebalanceByParticleCount().
| #define MPI_MAX 1 |
Definition at line 44 of file mpi_stub.hpp.
| #define MPI_MIN 2 |
Definition at line 45 of file mpi_stub.hpp.
| #define MPI_LAND 3 |
Definition at line 46 of file mpi_stub.hpp.
| #define MPI_COMM_NULL_COPY_FN (static_cast<MPI_Comm_copy_attr_function*>(nullptr)) |
Definition at line 77 of file mpi_stub.hpp.
Referenced by peclet::core::halo::detail::nbxRoundTag().
| #define MPI_COMM_NULL_DELETE_FN (static_cast<MPI_Comm_delete_attr_function*>(nullptr)) |
Definition at line 78 of file mpi_stub.hpp.
Referenced by peclet::core::halo::detail::nbxRoundTag().
| #define MPI_KEYVAL_INVALID (-1) |
Definition at line 79 of file mpi_stub.hpp.
Referenced by peclet::core::halo::detail::nbxRoundTag().
| using MPI_Comm = int |
Definition at line 17 of file mpi_stub.hpp.
| using MPI_Request = int |
Definition at line 18 of file mpi_stub.hpp.
| using MPI_Datatype = int |
Definition at line 19 of file mpi_stub.hpp.
| using MPI_Op = int |
Definition at line 20 of file mpi_stub.hpp.
| using MPI_Info = int |
Definition at line 21 of file mpi_stub.hpp.
| using MPI_Comm_copy_attr_function = int(MPI_Comm, int, void*, void*, void*, int*) |
Definition at line 75 of file mpi_stub.hpp.
| using MPI_Comm_delete_attr_function = int(MPI_Comm, int, void*, void*) |
Definition at line 76 of file mpi_stub.hpp.
|
inline |
Definition at line 48 of file mpi_stub.hpp.
References MPI_SUCCESS.
|
inline |
Definition at line 51 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::detail::probeGpuAwareMpi().
|
inline |
Definition at line 55 of file mpi_stub.hpp.
References MPI_SUCCESS.
|
inline |
Definition at line 58 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::GridHaloTopology< Dim >::operator=().
|
inline |
Definition at line 62 of file mpi_stub.hpp.
|
inline |
Definition at line 66 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::solver::andersonComm(), peclet::core::decomp::RedistributeTopology< Dim, T >::build(), peclet::core::decomp::makeStageComm(), and peclet::core::halo::NbxEngine::rank().
|
inline |
Definition at line 70 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::decomp::RedistributeTopology< Dim, T >::build(), peclet::core::halo::ParticleHaloTopology< Dim >::build(), peclet::core::decomp::gatherByGlobalId(), peclet::core::halo::ParticleMigrator< Dim >::gatherGhosts(), peclet::core::decomp::makeStageComm(), peclet::core::halo::rebalanceByParticleCount(), and peclet::core::halo::NbxEngine::size().
|
inline |
Definition at line 90 of file mpi_stub.hpp.
References peclet::core::mpi_stub::nextKeyval().
Referenced by peclet::core::halo::detail::nbxRoundTag().
|
inline |
Definition at line 95 of file mpi_stub.hpp.
References peclet::core::mpi_stub::attrs().
Referenced by peclet::core::halo::detail::nbxRoundTag().
|
inline |
Definition at line 103 of file mpi_stub.hpp.
References peclet::core::mpi_stub::attrs().
Referenced by peclet::core::halo::detail::nbxRoundTag().
|
inline |
Definition at line 107 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::GridHaloTopology< Dim >::operator=(), and peclet::core::halo::detail::probeGpuAwareMpi().
|
inline |
Definition at line 110 of file mpi_stub.hpp.
References MPI_SUCCESS.
|
inline |
Definition at line 114 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::solver::andersonComm(), peclet::core::halo::GridHaloTopology< Dim >::buildTopology(), and peclet::core::halo::rebalanceByParticleCount().
|
inline |
Definition at line 120 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::solver::andersonComm().
|
inline |
Definition at line 126 of file mpi_stub.hpp.
References MPI_SUCCESS.
|
inline |
Definition at line 129 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::NbxEngine::exchange().
|
inline |
Definition at line 132 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::ParticleHaloTopology< Dim >::reverse(), peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::start().
|
inline |
Definition at line 135 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::ParticleHaloTopology< Dim >::reverse(), peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::start().
|
inline |
Definition at line 138 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::NbxEngine::exchange().
|
inline |
Definition at line 141 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::NbxEngine::exchange().
|
inline |
Definition at line 145 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::NbxEngine::exchange().
|
inline |
Definition at line 149 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::NbxEngine::exchange().
|
inline |
Definition at line 153 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::NbxEngine::exchange().
|
inline |
Definition at line 157 of file mpi_stub.hpp.
References MPI_SUCCESS.
|
inline |
Definition at line 160 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::GridHalo< T >::exchangeEnd(), peclet::core::halo::ParticleHalo< Dim >::forward(), peclet::core::halo::ParticleHalo< Dim >::reverse(), peclet::core::halo::ParticleHaloTopology< Dim >::reverse(), peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::wait().
|
inline |
Definition at line 163 of file mpi_stub.hpp.
References MPI_SUCCESS, and MPI_UNDEFINED.
Referenced by peclet::core::halo::GridHaloTopology< Dim >::reverseAdd(), and peclet::core::halo::GridHaloTopology< Dim >::wait().
|
inline |
Definition at line 167 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::NbxEngine::exchange().
|
inline |
Definition at line 170 of file mpi_stub.hpp.
References MPI_SUCCESS.
|
inline |
Definition at line 175 of file mpi_stub.hpp.
References MPI_SUCCESS.
Referenced by peclet::core::halo::GridHaloTopology< Dim >::exchangePersistent().