Go to the source code of this file.
|
| static unsigned | BlockNumberOfElementProc (const unsigned glen, const unsigned rank, const unsigned nbprocs, const unsigned bsz, const unsigned pos) |
| |
| static unsigned | blockSize (const unsigned glen, const unsigned nbprocs, const ParisBlock_param_t *param) |
| |
| static unsigned | computeBlockBoundInf (const unsigned bsz, const unsigned rank, const unsigned nbprocs, const unsigned pos) |
| |
| static void | computeBlockBounds (unsigned long *low, unsigned long *high, const unsigned glen, const unsigned rank, const unsigned nbprocs, const unsigned bsz, const unsigned pos) |
| |
| static unsigned | computeBlockBoundSup (const unsigned glen, const unsigned bsz, const unsigned rank, const unsigned nbprocs, const unsigned pos) |
| |
| static unsigned | MaxNumberOfBlock (const unsigned glen, const unsigned nbprocs, const unsigned bsz) |
| |
| static unsigned | NumberOfBlockProc (const unsigned glen, const unsigned nbprocs, const unsigned bsz, const unsigned rank) |
| |
| static unsigned | OwnerBlock (const unsigned bid, const unsigned nbprocs) |
| |
| static unsigned | TotalNumberOfElementProc (const unsigned glen, const unsigned rank, const unsigned nbprocs, const unsigned bsz) |
| |
◆ BlockNumberOfElementProc()
| static unsigned BlockNumberOfElementProc |
( |
const unsigned |
glen, |
|
|
const unsigned |
rank, |
|
|
const unsigned |
nbprocs, |
|
|
const unsigned |
bsz, |
|
|
const unsigned |
pos |
|
) |
| |
|
inlinestatic |
◆ blockSize()
| static unsigned blockSize |
( |
const unsigned |
glen, |
|
|
const unsigned |
nbprocs, |
|
|
const ParisBlock_param_t * |
param |
|
) |
| |
|
inlinestatic |
◆ computeBlockBoundInf()
| static unsigned computeBlockBoundInf |
( |
const unsigned |
bsz, |
|
|
const unsigned |
rank, |
|
|
const unsigned |
nbprocs, |
|
|
const unsigned |
pos |
|
) |
| |
|
inlinestatic |
◆ computeBlockBounds()
| static void computeBlockBounds |
( |
unsigned long * |
low, |
|
|
unsigned long * |
high, |
|
|
const unsigned |
glen, |
|
|
const unsigned |
rank, |
|
|
const unsigned |
nbprocs, |
|
|
const unsigned |
bsz, |
|
|
const unsigned |
pos |
|
) |
| |
|
inlinestatic |
Definition at line 74 of file DistributionBloc.h.
Referenced by computeSendBlock1D().
77 unsigned long start = (pos * nbprocs + rank) * bsz;
78 unsigned long end = start + bsz;
80 *high = ((glen <= end)?glen:end);
◆ computeBlockBoundSup()
| static unsigned computeBlockBoundSup |
( |
const unsigned |
glen, |
|
|
const unsigned |
bsz, |
|
|
const unsigned |
rank, |
|
|
const unsigned |
nbprocs, |
|
|
const unsigned |
pos |
|
) |
| |
|
inlinestatic |
Definition at line 88 of file DistributionBloc.h.
90 unsigned tmp = ( pos * nbprocs + rank + 1) * bsz;
91 return ((glen <= tmp)?glen:tmp);
◆ MaxNumberOfBlock()
| static unsigned MaxNumberOfBlock |
( |
const unsigned |
glen, |
|
|
const unsigned |
nbprocs, |
|
|
const unsigned |
bsz |
|
) |
| |
|
inlinestatic |
Definition at line 18 of file DistributionBloc.h.
19 unsigned nbbloc = (glen + bsz - 1) / bsz;
20 return ((nbbloc + nbprocs - 1 ) / nbprocs);
◆ NumberOfBlockProc()
| static unsigned NumberOfBlockProc |
( |
const unsigned |
glen, |
|
|
const unsigned |
nbprocs, |
|
|
const unsigned |
bsz, |
|
|
const unsigned |
rank |
|
) |
| |
|
inlinestatic |
◆ OwnerBlock()
| static unsigned OwnerBlock |
( |
const unsigned |
bid, |
|
|
const unsigned |
nbprocs |
|
) |
| |
|
inlinestatic |
◆ TotalNumberOfElementProc()
| static unsigned TotalNumberOfElementProc |
( |
const unsigned |
glen, |
|
|
const unsigned |
rank, |
|
|
const unsigned |
nbprocs, |
|
|
const unsigned |
bsz |
|
) |
| |
|
inlinestatic |
Definition at line 49 of file DistributionBloc.h.
References NumberOfBlockProc().
53 unsigned long low = ( nbblocfull * nbprocs + rank ) * bsz;
54 unsigned long end = low + bsz;
55 unsigned long high = (glen < end ? glen : end);
57 return nbblocfull * bsz + ( high - low );
static unsigned NumberOfBlockProc(const unsigned glen, const unsigned nbprocs, const unsigned bsz, const unsigned rank)