This functions figures out which part of the table this process should process. in MPI:
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 }
|