Repository: incubator-systemml Updated Branches: refs/heads/master 233a6b247 -> 4f4e94ec1
[SYSTEMML-461] Fix nnz maintenance multi-threaded wdivmm (sparse basic) Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/02806963 Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/02806963 Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/02806963 Branch: refs/heads/master Commit: 02806963e3b64af4706bdb57c66159e2ccd2d777 Parents: 233a6b2 Author: Matthias Boehm <[email protected]> Authored: Wed Jan 13 19:02:52 2016 -0800 Committer: Matthias Boehm <[email protected]> Committed: Wed Jan 13 19:03:11 2016 -0800 ---------------------------------------------------------------------- .../java/org/apache/sysml/runtime/matrix/data/LibMatrixMult.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/02806963/src/main/java/org/apache/sysml/runtime/matrix/data/LibMatrixMult.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/sysml/runtime/matrix/data/LibMatrixMult.java b/src/main/java/org/apache/sysml/runtime/matrix/data/LibMatrixMult.java index a262ed8..50247b9 100644 --- a/src/main/java/org/apache/sysml/runtime/matrix/data/LibMatrixMult.java +++ b/src/main/java/org/apache/sysml/runtime/matrix/data/LibMatrixMult.java @@ -795,7 +795,8 @@ public class LibMatrixMult //execute tasks pool.invokeAll(tasks); pool.shutdown(); - //aggregate partial nnz + //aggregate partial nnz + ret.nonZeros = 0; //reset after execute for( MatrixMultWDivTask task : tasks ) ret.nonZeros += task.getPartialNnz(); }
