hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r718177 - /incubator/hama/trunk/src/examples/org/apache/hama/examples/MatrixMultiplication.java
Date Mon, 17 Nov 2008 06:26:46 GMT
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();



Mime
View raw message