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

void Impala::Application::GetPartialTask ( int &  partcount,
int &  row,
int &  column 
)

This functions figures out which part of the table this process should process.

in MPI:

  • partcount will be sqrt(nodes) partcount
  • partcount is 0 for nodes that have nothing to do in single processor
  • partcount = 1

Definition at line 186 of file mainPrecomputeKernelMatrix.cpp.

References ILOG_VAR.

Referenced by ComputeMatrix(), mainPrecomputeKernelMatrix(), and WriteResult().

00187 {
00188     ILOG_VAR(Application.mainPrecomputeKernelMatrix.GetPartialTask);
00189     if(Link::Mpi::NrProcs() == 1)
00190     {
00191         partcount = 1;
00192         row = 0;
00193         column = 0;
00194         return;
00195     }
00196 
00197     int cpuCount = Link::Mpi::NrProcs();
00198     partcount = sqrt((double)cpuCount);
00199     int myId = Link::Mpi::MyId();
00200     column = myId % partcount;
00201     row = myId / partcount;
00202     if(row >= partcount)
00203     {
00204         partcount = 0;
00205         row = 0;
00206         column = 0;
00207     }
00208 }


Generated on Fri Mar 19 10:36:31 2010 for ImpalaSrc by  doxygen 1.5.1