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

static unsigned getProcId ( unsigned  rank,
Topology_t  topo 
) [inline, static]

Definition at line 11 of file PC/Internal.h.

                                                                 {
  return (rank % topo.total);
}
static unsigned getProcRangeInf ( unsigned  low,
unsigned  bsz 
) [inline, static]

Definition at line 4 of file PC/Internal.h.

                                                                   {
  return low / bsz;      // first remote node
}
static unsigned getProcRangeSup ( unsigned  high,
unsigned  bsz 
) [inline, static]

Definition at line 7 of file PC/Internal.h.

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