![]() |
Ginkgo
Generated from pipelines/3136675824 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
|
The distributed namespace. More...
Namespaces | |
| preconditioner | |
| The Preconditioner namespace. | |
Classes | |
| class | DistributedBase |
| A base class for distributed objects. More... | |
| class | index_map |
| This class defines mappings between global and local indices. More... | |
| class | Matrix |
| The Matrix class defines a (MPI-)distributed matrix. More... | |
| class | Partition |
| Represents a partition of a range of indices [0, size) into a disjoint set of parts. More... | |
| class | RowGatherer |
| The distributed::RowGatherer gathers the rows of distributed::Vector that are located on other processes. More... | |
| class | RowScatterer |
| The distributed::RowScatterer scatters local values to their owning processes and accumulates received contributions into a local target. More... | |
| class | Vector |
| Vector is a format which explicitly stores (multiple) distributed column vectors in a dense storage format. More... | |
Enumerations | |
| enum | index_space { index_space::local, index_space::non_local, index_space::combined } |
| Index space classification for the locally stored indices. More... | |
| enum | assembly_mode { communicate, local_only } |
| assembly_mode defines how the read_distributed function of the distributed matrix treats non-local indices in the (device_)matrix_data: More... | |
Functions | |
| template<typename ValueType , typename LocalIndexType , typename GlobalIndexType > | |
| device_matrix_data< ValueType, GlobalIndexType > | assemble_rows_from_neighbors (mpi::communicator comm, const device_matrix_data< ValueType, GlobalIndexType > &input, ptr_param< const Partition< LocalIndexType, GlobalIndexType >> partition) |
| Assembles device_matrix_data entries owned by this MPI rank from other ranks and communicates entries located on this MPI rank owned by other ranks to their respective owners. More... | |
| template<typename LocalIndexType , typename GlobalIndexType > | |
| std::unique_ptr< Partition< LocalIndexType, GlobalIndexType > > | build_partition_from_local_range (std::shared_ptr< const Executor > exec, mpi::communicator comm, span local_range) |
| Builds a partition from a local range. More... | |
| template<typename LocalIndexType , typename GlobalIndexType > | |
| std::unique_ptr< Partition< LocalIndexType, GlobalIndexType > > | build_partition_from_local_size (std::shared_ptr< const Executor > exec, mpi::communicator comm, size_type local_size) |
| Builds a partition from a local size. More... | |
The distributed namespace.
|
strong |
assembly_mode defines how the read_distributed function of the distributed matrix treats non-local indices in the (device_)matrix_data:
communicate communicates the overlap between ranks and adds up all local contributions. Indices smaller than 0 or larger than the global size of the matrix are ignored.local_only does not communicate any overlap but ignores all non-local indices.
|
strong |
Index space classification for the locally stored indices.
The definitions of the enum values is clarified in index_map.
| Enumerator | |
|---|---|
| local | indices that are locally owned |
| non_local | indices that are owned by other processes |
| combined | both local and non_local indices |
| device_matrix_data<ValueType, GlobalIndexType> gko::experimental::distributed::assemble_rows_from_neighbors | ( | mpi::communicator | comm, |
| const device_matrix_data< ValueType, GlobalIndexType > & | input, | ||
| ptr_param< const Partition< LocalIndexType, GlobalIndexType >> | partition | ||
| ) |
Assembles device_matrix_data entries owned by this MPI rank from other ranks and communicates entries located on this MPI rank owned by other ranks to their respective owners.
This can be useful e.g. in a finite element code where each rank assembles a local contribution to a global system matrix and the global matrix has to be assembled by summing up the local contributions on rank boundaries. The partition used is only relevant for row ownership.
| comm | the communicator used to assemble the global matrix. |
| input | the device_matrix_data structure. |
| partition | the partition used to determine row owndership. |
| std::unique_ptr<Partition<LocalIndexType, GlobalIndexType> > gko::experimental::distributed::build_partition_from_local_range | ( | std::shared_ptr< const Executor > | exec, |
| mpi::communicator | comm, | ||
| span | local_range | ||
| ) |
Builds a partition from a local range.
| exec | the Executor on which the partition should be built. |
| comm | the communicator used to determine the global partition. |
| local_range | the start and end indices of the local range. |
n every local range r_i = [s_i, e_i) either s_i != 0 and another local range r_j = [s_j, e_j = s_i) exists, or e_i != n and another local range r_j = [s_j = e_i, e_j) exists.| std::unique_ptr<Partition<LocalIndexType, GlobalIndexType> > gko::experimental::distributed::build_partition_from_local_size | ( | std::shared_ptr< const Executor > | exec, |
| mpi::communicator | comm, | ||
| size_type | local_size | ||
| ) |
Builds a partition from a local size.
| exec | the Executor on which the partition should be built. |
| comm | the communicator used to determine the global partition. |
| local_size | the number of the locally owned indices |
s_i, then the range i has size s_i, and range r_i = [start, start + s_i), where start = sum_j^(i-1) s_j.
1.8.16