Package org.apache.sysds.resource.cost
Class CostEstimator
- java.lang.Object
-
- org.apache.sysds.resource.cost.CostEstimator
-
public class CostEstimator extends Object
Class for estimating the execution time of a program. For estimating the time for new set of resources, a new instance of CostEstimator should be created. TODO: consider reusing of some parts of the computation for small changes in the resources
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static double
estimateExecutionTime(Program program)
Entry point for estimating the execution time of a program.double
getTimeEstimate(Program rtprog)
static void
setCP_FLOPS(long gFlops)
static void
setSP_FLOPS(long gFlops)
-
-
-
Method Detail
-
estimateExecutionTime
public static double estimateExecutionTime(Program program) throws CostEstimationException
Entry point for estimating the execution time of a program.- Parameters:
program
- compiled runtime program- Returns:
- estimated time for execution of the program
given the resources set in
SparkExecutionContext
- Throws:
CostEstimationException
- in case of errors
-
setCP_FLOPS
public static void setCP_FLOPS(long gFlops)
-
setSP_FLOPS
public static void setSP_FLOPS(long gFlops)
-
getTimeEstimate
public double getTimeEstimate(Program rtprog) throws CostEstimationException
- Throws:
CostEstimationException
-
-