PaCO++  0.05
Internal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static unsigned getProcId (unsigned rank, Topology_t topo)
 
static unsigned getProcRangeInf (unsigned low, unsigned bsz)
 
static unsigned getProcRangeSup (unsigned high, unsigned bsz)
 

Function Documentation

◆ getProcId()

static unsigned getProcId ( unsigned  rank,
Topology_t  topo 
)
inlinestatic

Definition at line 11 of file Internal.h.

Referenced by doSchedule().

11  {
12  return (rank % topo.total);
13 }

◆ getProcRangeInf()

static unsigned getProcRangeInf ( unsigned  low,
unsigned  bsz 
)
inlinestatic

Definition at line 4 of file Internal.h.

4  {
5  return low / bsz; // first remote node
6 }

◆ getProcRangeSup()

static unsigned getProcRangeSup ( unsigned  high,
unsigned  bsz 
)
inlinestatic

Definition at line 7 of file Internal.h.

7  {
8  return (high-1) / bsz; // last remote node
9 }