Selecting topology colors to send to tasks. More...
Classes | |
struct | mapping< P > |
A prepared assignment of colors. More... | |
Typedefs | |
using | Claims = std::vector< borrow::Claims > |
Desired underlying colors for each outer color. | |
Functions | |
Claims | block (Color u, Color n) |
Assign colors in blocks. | |
Claims | gather (Color u, Color n) |
Make all colors available on all point tasks. | |
template<class P > | |
mapping< P > | make (topology_slot< P > &t) |
Create a mapping for initialization using an MPI task. | |
template<class P > | |
mapping< P > | make (topology_slot< P > &t, const Claims &c) |
Create a mapping . | |
Claims | robin (Color u, Color n) |
Assign colors in a cycle. | |
Selecting topology colors to send to tasks.
using Claims = std::vector<borrow::Claims> |
Desired underlying colors for each outer color.
Elements need not have the same length.
Claims block | ( | Color | u, |
Color | n | ||
) |
Assign colors in blocks.
For example, 5 colors are assigned to 3 tasks as {0,1}, {2,3}, and {4}.
u | number of colors |
n | number of tasks |
Claims robin | ( | Color | u, |
Color | n | ||
) |
Assign colors in a cycle.
For example, 5 colors are assigned to 3 tasks as {0,3}, {1,4}, and {2}.
u | number of colors |
n | number of tasks |
Claims gather | ( | Color | u, |
Color | n | ||
) |
Make all colors available on all point tasks.
u | number of colors |
n | number of tasks |
mapping< P > make | ( | topology_slot< P > & | t, |
const Claims & | c | ||
) |
Create a mapping
.
mapping< P > make | ( | topology_slot< P > & | t | ) |
Create a mapping
for initialization using an MPI task.
The Claims
are constructed using block
.