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

Impala::Core::Matrix::DistributedAccess::DistributedAccess (  )  [inline]

Definition at line 99 of file DistributedAccess.h.

References ILOG_ERROR, mColumnQuids, mColumns, mHasOwnAverages, mNodeCount, mRowQuids, mRows, and mStartNode.

00100     {
00101         int cpuCount = Link::Mpi::NrProcs();
00102         int partCount = sqrt((double)cpuCount);
00103         if (partCount * partCount != cpuCount)
00104         {
00105             ILOG_ERROR("Unsupported number of nodes, number of nodes MUST be"
00106                        << " sqare of a natural number");
00107             mRows = 0;
00108             return;
00109         }
00110 
00111         mRows = new IndexConverter(0, partCount);
00112         mColumns = new IndexConverter(0, partCount);
00113         mStartNode = 0;
00114         mNodeCount = cpuCount;
00115         mRowQuids = new Table::QuidTable();
00116         mColumnQuids = new Table::QuidTable();
00117         mHasOwnAverages = false;
00118     }


Generated on Thu Jan 13 09:20:18 2011 for ImpalaSrc by  doxygen 1.5.1