tweak

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

Branch: refs/heads/master
Commit: d0ef4263e92de60cc18c54213c758c8e7bebb8e1
Parents: 691c8f7
Author: Matthias Boehm <mboe...@gmail.com>
Authored: Fri Nov 17 22:13:21 2017 -0800
Committer: Matthias Boehm <mboe...@gmail.com>
Committed: Fri Nov 17 22:13:21 2017 -0800

----------------------------------------------------------------------
 .../sysml/hops/codegen/opt/PlanSelectionFuseCostBasedV2.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/systemml/blob/d0ef4263/src/main/java/org/apache/sysml/hops/codegen/opt/PlanSelectionFuseCostBasedV2.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/sysml/hops/codegen/opt/PlanSelectionFuseCostBasedV2.java
 
b/src/main/java/org/apache/sysml/hops/codegen/opt/PlanSelectionFuseCostBasedV2.java
index 721ffdd..08d5e44 100644
--- 
a/src/main/java/org/apache/sysml/hops/codegen/opt/PlanSelectionFuseCostBasedV2.java
+++ 
b/src/main/java/org/apache/sysml/hops/codegen/opt/PlanSelectionFuseCostBasedV2.java
@@ -223,7 +223,7 @@ public class PlanSelectionFuseCostBasedV2 extends 
PlanSelection
                boolean[] bestPlan = (C0 <= CN) ? plan0 : planN;
                double bestC = Math.min(C0, CN);
                final boolean evalRemain = (Mlen < COST_MIN_EPS_NUM_POINTS 
-                       || bestC > (1+COST_MIN_EPS) * costs.getMinCosts());
+                       || !COST_PRUNING || bestC > (1+COST_MIN_EPS) * 
costs.getMinCosts());
                if( LOG.isTraceEnabled() )
                        LOG.trace("Enum opening: " + Arrays.toString(bestPlan) 
+ " -> " + bestC);
                if( !evalRemain )

Reply via email to