DIY  3.0
data-parallel out-of-core C++ library
 All Classes Namespaces Functions Typedefs Groups Pages
Public Member Functions | List of all members
diy::RoundRobinAssigner Class Reference
Inheritance diagram for diy::RoundRobinAssigner:
diy::Assigner

Public Member Functions

 RoundRobinAssigner (int size, int nblocks)
 Assigns blocks to processes in cyclic or round-robin 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
 
- Public Member Functions inherited from diy::Assigner
 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
 

Detailed Description

Examples:
reduce/all-done.cpp, simple/simple.cpp, and simple/until-done.cpp.

Constructor & Destructor Documentation

diy::RoundRobinAssigner::RoundRobinAssigner ( int  size,
int  nblocks 
)
inline

Assigns blocks to processes in cyclic or round-robin gid (block global id) order.

Parameters
sizetotal number of processes
nblockstotal (global) number of blocks

The documentation for this class was generated from the following file: