Adding an assertion to do bounds checking. This assertion fails on runs on kraken.
authorIsaac Dooley <idooley2@illinois.edu>
Thu, 9 Jul 2009 16:22:56 +0000 (16:22 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Thu, 9 Jul 2009 16:22:56 +0000 (16:22 +0000)
src/conv-core/cputopology.C

index b6518a93ccd42911808c9dfbb0771ef2f571395a..7a137c9f61ef17cbbd3622857c58701f61bfcdba 100644 (file)
@@ -136,6 +136,7 @@ public:
     numUniqNodes();
     bynodes = new CkVec<int>[numNodes];
     for (i=0; i<CmiNumPes(); i++) 
+      CkAssert(nodeIDs[i] >=0 && nodeIDs[i] <= numNodes); // Sanity check for bug that occurs on mpi-crayxt
       bynodes[nodeIDs[i]].push_back(i);
   }