You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hama.apache.org by ed...@apache.org on 2008/11/17 07:26:46 UTC

svn commit: r718177 - /incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java

Author: edwardyoon
Date: Sun Nov 16 22:26:45 2008
New Revision: 718177

URL: http://svn.apache.org/viewvc?rev=718177&view=rev
Log: (empty)

Modified:
    incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java

Modified: incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java?rev=718177&r1=718176&r2=718177&view=diff
==============================================================================
--- incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java (original)
+++ incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java Sun Nov 16 22:26:45 2008
@@ -43,9 +43,11 @@
     DenseMatrix a = DenseMatrix.random(conf, row, column);
     DenseMatrix b = DenseMatrix.random(conf, row, column);
 
-    a.blocking(conf.getNumMapTasks());
-    b.blocking(conf.getNumMapTasks());
-    
+    if (!a.isBlocked())
+      a.blocking(conf.getNumMapTasks());
+    if (!b.isBlocked())
+      b.blocking(conf.getNumMapTasks());
+
     Matrix c = a.mult(b);
 
     a.close();