bgroup parallel domain: band group communication topology.
More...
#include <para_bgroup_world.h>
|
| | ParaBgroupWorld () |
| | Construct a serial bgroup domain (single band group).
|
| | ParaBgroupWorld (const MPI_Comm &intra_comm, const MPI_Comm &inter_comm, int nbndgroup) |
| | Construct a bgroup domain from intra and inter communicators.
|
| int | my_bndgroup () const |
| | Band group index of this process.
|
| int | nbndgroup () const |
| | Number of band groups.
|
| int | rank_in_bpgroup () const |
| | Rank within the band group (alias for rank()).
|
| int | nproc_in_bndgroup () const |
| | Number of processes in the band group (alias for size()).
|
| MPI_Comm | inter_comm () const |
| | Inter-group communicator (BP_WORLD equivalent).
|
| virtual | ~ParaWorld ()=default |
| const std::string & | tag () const |
| | Domain tag string.
|
| int | rank () const |
| | Rank of this process inside the domain (0 in serial builds).
|
| int | size () const |
| | Number of processes in the domain (1 in serial builds).
|
| bool | valid () const |
| | True if this process belongs to the domain.
|
| MPI_Comm | comm () const |
| | Underlying MPI communicator (MPI builds only).
|
|
| static ParaWorld | serial (const std::string &tag) |
| | Build a serial (size=1, rank=0) domain for the given tag.
|
| static std::unique_ptr< ParaWorld > | make_serial (const std::string &tag) |
| | Build a serial domain as a heap-allocated unique_ptr.
|
| static ParaWorld | make_mpi (const std::string &tag, const MPI_Comm &comm) |
| | Build a domain wrapping an MPI communicator.
|
| static std::unique_ptr< ParaWorld > | make_mpi_ptr (const std::string &tag, const MPI_Comm &comm) |
| | ParaWorld (const std::string &tag) |
| | Construct a serial (single-process) domain.
|
| | ParaWorld (const std::string &tag, const MPI_Comm &comm) |
| | Construct a domain wrapping an existing MPI communicator.
|
bgroup parallel domain: band group communication topology.
Self-contained replacement for INT_BGROUP + BP_WORLD + GlobalV::MY_BNDGROUP/NPROC_IN_BNDGROUP/RANK_IN_BPGROUP.
The band group domain has two communicators:
- intra: INT_BGROUP (same band group, different k/pw)
- inter: BP_WORLD (different band groups, same k)
Tests only need this header.
◆ ParaBgroupWorld() [1/2]
| Parallel::ParaBgroupWorld::ParaBgroupWorld |
( |
| ) |
|
Construct a serial bgroup domain (single band group).
◆ ParaBgroupWorld() [2/2]
| Parallel::ParaBgroupWorld::ParaBgroupWorld |
( |
const MPI_Comm & | intra_comm, |
|
|
const MPI_Comm & | inter_comm, |
|
|
int | nbndgroup ) |
Construct a bgroup domain from intra and inter communicators.
- Parameters
-
| [in] | intra_comm | intra-group communicator (e.g. INT_BGROUP) |
| [in] | inter_comm | inter-group communicator (e.g. BP_WORLD) |
| [in] | nbndgroup | number of band groups |
◆ inter_comm()
| MPI_Comm Parallel::ParaBgroupWorld::inter_comm |
( |
| ) |
const |
|
inline |
Inter-group communicator (BP_WORLD equivalent).
◆ my_bndgroup()
| int Parallel::ParaBgroupWorld::my_bndgroup |
( |
| ) |
const |
|
inline |
Band group index of this process.
◆ nbndgroup()
| int Parallel::ParaBgroupWorld::nbndgroup |
( |
| ) |
const |
|
inline |
◆ nproc_in_bndgroup()
| int Parallel::ParaBgroupWorld::nproc_in_bndgroup |
( |
| ) |
const |
|
inline |
Number of processes in the band group (alias for size()).
◆ rank_in_bpgroup()
| int Parallel::ParaBgroupWorld::rank_in_bpgroup |
( |
| ) |
const |
|
inline |
Rank within the band group (alias for rank()).
◆ inter_comm_
| MPI_Comm Parallel::ParaBgroupWorld::inter_comm_ = MPI_COMM_NULL |
|
private |
◆ my_bndgroup_
| int Parallel::ParaBgroupWorld::my_bndgroup_ = 0 |
|
private |
◆ nbndgroup_
| int Parallel::ParaBgroupWorld::nbndgroup_ = 1 |
|
private |
The documentation for this class was generated from the following files:
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/module_parallel/para_bgroup_world.h
- /home/runner/work/abacus-develop/abacus-develop/source/source_base/module_parallel/para_bgroup_world.cpp