Package org.apache.sysds.hops
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
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static OptimizerUtils.OptimizationLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
O0_LOCAL_STATIC
-
O1_LOCAL_MEMORY_MIN
-
O2_LOCAL_MEMORY_DEFAULT
-
O3_LOCAL_RESOURCE_TIME_MEMORY
-
O4_GLOBAL_TIME_MEMORY
-
O5_DEBUG_MODE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-