|
Nektar++
|
Persistent gather-scatter plan over shared global ids: the replacement for gslib's gs_setup / gs_gather / gs_unique. More...
#include <algorithm>#include <chrono>#include <cstddef>#include <cstdint>#include <cstring>#include <functional>#include <limits>#include <memory>#include <set>#include <tuple>#include <type_traits>#include <unordered_map>#include <utility>#include <vector>#include <LibUtilities/BasicUtils/ErrorUtil.hpp>#include <LibUtilities/Communication/Comm.h>#include <LibUtilities/Communication/ConnectivityResolver.hpp>Go to the source code of this file.
Classes | |
| class | Nektar::LibUtilities::detail::IFixedExchange |
| A fixed-pattern exchange over a known neighbour set. More... | |
| class | Nektar::LibUtilities::detail::PairwiseFixedExchange |
| ExchangeBackend::ePairwise: one non-blocking send and receive per neighbour. More... | |
| class | Nektar::LibUtilities::detail::NeighbourCollectiveFixedExchange |
ExchangeBackend::eNeighbourCollective: one MPI_Neighbor_alltoallv over a distributed-graph communicator built at construction. More... | |
| class | Nektar::LibUtilities::detail::TransportFixedExchange |
| ExchangeBackend::eTransport: replay the fixed pattern through an arbitrary ITransport, one RoutedMessage per neighbour. More... | |
| struct | Nektar::LibUtilities::SharedIdPlanTimings |
| Optional breakdown of where SharedIdPlan's construction time goes, for deciding which stage is worth optimising. Pass one to the constructor; leave it null for no measurement overhead. Seconds; the stages are disjoint and sum to roughly the whole build. More... | |
| class | Nektar::LibUtilities::SharedIdPlan |
A persistent gather-scatter plan over shared global ids: discovery is paid once, then a fixed neighbour exchange is replayed as often as needed. The replacement for gslib's gs_setup / gs_gather / gs_unique, and the engine behind #SharedPayloadResolver's persistent mode. More... | |
| struct | Nektar::LibUtilities::SharedIdPlan::K2Fold |
| One two-sharer id on the fast path: where this rank's value lives, where the other rank's landed, and which id to hand the result to. More... | |
Namespaces | |
| namespace | Nektar |
| namespace | Nektar::LibUtilities |
| namespace | Nektar::LibUtilities::detail |
Enumerations | |
| enum class | Nektar::LibUtilities::ExchangeBackend { Nektar::LibUtilities::ePairwise , Nektar::LibUtilities::eNeighbourCollective , Nektar::LibUtilities::eCrystalRouter , Nektar::LibUtilities::eTransport } |
| How a #SharedIdPlan moves data on each execute call. More... | |
Functions | |
| template<typename T > | |
| T | Nektar::LibUtilities::detail::LoadAt (const std::vector< std::byte > &buf, size_t i) |
Read element i of a trivially-copyable T from a byte buffer. | |
| template<typename T > | |
| void | Nektar::LibUtilities::detail::StoreAt (std::vector< std::byte > &buf, size_t i, const T &v) |
Write element i of a trivially-copyable T into a byte buffer. | |
| ExchangeBackend | Nektar::LibUtilities::detail::ResolveBackend (ExchangeBackend backend, const CommSharedPtr &comm) |
The backend a plan can actually use, given what comm supports. | |
| std::unique_ptr< IFixedExchange > | Nektar::LibUtilities::detail::MakeFixedExchange (ExchangeBackend backend, const std::shared_ptr< ITransport > &transport, const std::vector< int > &nbrs) |
Construct the IFixedExchange for backend over nbrs. | |
Persistent gather-scatter plan over shared global ids: the replacement for gslib's gs_setup / gs_gather / gs_unique.
Discovery is paid once (via #ConnectivityResolver); afterwards each call is one fixed-pattern neighbour exchange carrying values only – no ids, no counts, no rendezvous – over the backend chosen by #ExchangeBackend. Callers working on flat arrays, such as the assembly maps, use this directly; the id-keyed SharedPayloadResolver sits on top of it.
See Transport.hpp for the module overview.
Definition in file SharedIdPlan.hpp.