|
| | ContiguousAssigner (int size__, int nblocks__) |
| | Assigns blocks to processes in contiguous gid (block global id) order. More...
|
| |
|
int | rank (int gid) const override |
| | returns the process rank of the block with global id gid (need not be local)
|
| |
|
void | local_gids (int rank, std::vector< int > &gids) const override |
| | gets the local gids for a given process rank
|
| |
| | Assigner (int size__, int nblocks__) |
| | Manages how blocks are assigned to processes. More...
|
| |
|
int | size () const |
| | returns the total number of process ranks
|
| |
|
int | nblocks () const |
| | returns the total number of global blocks
|
| |
|
void | set_nblocks (int nblocks__) |
| | sets the total number of global blocks
|
| |
- Examples:
- decomposition/regular-decomposer-long.cpp, decomposition/regular-decomposer-short.cpp, decomposition/test-decomposition.cpp, decomposition/test-direct-master.cpp, reduce/all-to-all.cpp, reduce/kd-tree.cpp, reduce/merge-reduce.cpp, reduce/sample-sort.cpp, reduce/sort.cpp, reduce/swap-reduce.cpp, and simple/read-blocks.cpp.
| diy::ContiguousAssigner::ContiguousAssigner |
( |
int |
size__, |
|
|
int |
nblocks__ |
|
) |
| |
|
inline |
Assigns blocks to processes in contiguous gid (block global id) order.
- Parameters
-
| size__ | total number of processes |
| nblocks__ | total (global) number of blocks |
The documentation for this class was generated from the following file: