Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

static int Impala::Core::Array::Pattern::PxResponsibilityRange ( int  cpuNr  )  [inline, static]

Definition at line 109 of file PxDistribution.h.

References _logCPUs.

Referenced by PxLineRange().

00110 {
00111     /*** Calculate the number of CPUs that 'cpuNr' is responsible ***/
00112     /*** for in hypercube (SBT) collective communication.         ***/
00113 
00114     int range = 1;
00115 
00116     for (int i=0; i<_logCPUs; i++) {
00117         if ((cpuNr & range) == range) {
00118             return range;
00119         }
00120         range <<= 1;
00121     }
00122     return range;
00123 }


Generated on Fri Mar 19 11:02:34 2010 for ImpalaSrc by  doxygen 1.5.1