PaCO++  0.05
Internal.h
Go to the documentation of this file.
00001 #ifndef SCHEDULE_INTERNAL_IS_DEFINED
00002 #define SCHEDULE_INTERNAL_IS_DEFINED
00003 
00004 inline static unsigned getProcRangeInf(unsigned low, unsigned bsz) {
00005   return low / bsz;      // first remote node
00006 }
00007 inline static unsigned getProcRangeSup(unsigned high, unsigned bsz) {
00008   return (high-1) / bsz; //  last remote node
00009 }
00010 
00011 inline static unsigned getProcId(unsigned rank, Topology_t topo) {
00012   return (rank % topo.total);
00013 }
00014 
00018 
00019 
00020 #endif