Enum Class OptimizerUtils.OptimizationLevel

java.lang.Object
java.lang.Enum<OptimizerUtils.OptimizationLevel>
org.apache.sysds.hops.OptimizerUtils.OptimizationLevel
All Implemented Interfaces:
Serializable, Comparable<OptimizerUtils.OptimizationLevel>, Constable
Enclosing class:
OptimizerUtils

public static enum OptimizerUtils.OptimizationLevel extends Enum<OptimizerUtils.OptimizationLevel>
Optimization Types for Compilation O0 STATIC - Decisions for scheduling operations on CP/MR are based on predefined set of rules, which check if the dimensions are below a fixed/static threshold (OLD Method of choosing between CP and MR). The optimization scope is LOCAL, i.e., per statement block. Advanced rewrites like constant folding, common subexpression elimination, or inter procedural analysis are NOT applied. O1 MEMORY_BASED - Every operation is scheduled on CP or MR, solely based on the amount of memory required to perform that operation. It does NOT take the execution time into account. The optimization scope is LOCAL, i.e., per statement block. Advanced rewrites like constant folding, common subexpression elimination, or inter procedural analysis are NOT applied. O2 MEMORY_BASED - Every operation is scheduled on CP or MR, solely based on the amount of memory required to perform that operation. It does NOT take the execution time into account. The optimization scope is LOCAL, i.e., per statement block. All advanced rewrites are applied. This is the default optimization level of SystemDS. O3 GLOBAL TIME_MEMORY_BASED - Operation scheduling on CP or MR as well as many other rewrites of data flow properties such as block size, partitioning, replication, vectorization, etc are done with the optimization objective of minimizing execution time under hard memory constraints per operation and execution context. The optimization scope if GLOBAL, i.e., program-wide. All advanced rewrites are applied. This optimization level requires more optimization time but has higher optimization potential. O4 DEBUG MODE - All optimizations, global and local, which interfere with breakpoints are NOT applied. This optimization level is REQUIRED for the compiler running in debug mode.