Repository: incubator-systemml
Updated Branches:
  refs/heads/master 479497017 -> 0dfa71d35


[SYSTEMML-747] Fix in-memory csv reblock w/ unknown input dimensions

Project: http://git-wip-us.apache.org/repos/asf/incubator-systemml/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-systemml/commit/9b3c0429
Tree: http://git-wip-us.apache.org/repos/asf/incubator-systemml/tree/9b3c0429
Diff: http://git-wip-us.apache.org/repos/asf/incubator-systemml/diff/9b3c0429

Branch: refs/heads/master
Commit: 9b3c0429469b531513d6f70970f620dddb2ec70c
Parents: 4794970
Author: Matthias Boehm <[email protected]>
Authored: Thu Jun 2 17:17:24 2016 -0700
Committer: Matthias Boehm <[email protected]>
Committed: Thu Jun 2 17:17:24 2016 -0700

----------------------------------------------------------------------
 src/main/java/org/apache/sysml/hops/recompile/Recompiler.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/9b3c0429/src/main/java/org/apache/sysml/hops/recompile/Recompiler.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/hops/recompile/Recompiler.java 
b/src/main/java/org/apache/sysml/hops/recompile/Recompiler.java
index d5a6c5f..9daefdf 100644
--- a/src/main/java/org/apache/sysml/hops/recompile/Recompiler.java
+++ b/src/main/java/org/apache/sysml/hops/recompile/Recompiler.java
@@ -1931,6 +1931,11 @@ public class Recompiler
                        return false;
                }               
                
+               //robustness unknown dimensions, e.g., for csv reblock
+               if( rows <= 0 || cols <= 0 ) {
+                       return false;
+               }
+               
                //check valid dimensions and memory requirements
                double sp = OptimizerUtils.getSparsity(rows, cols, nnz);
                double mem = MatrixBlock.estimateSizeInMemory(rows, cols, sp);  
                

Reply via email to