Class GridBasedEnumerator

java.lang.Object
org.apache.sysds.resource.enumeration.Enumerator
org.apache.sysds.resource.enumeration.GridBasedEnumerator

public class GridBasedEnumerator extends Enumerator
  • Constructor Details

    • GridBasedEnumerator

      public GridBasedEnumerator(Enumerator.Builder builder, int stepSizeExecutors, int expBaseExecutors)
  • Method Details

    • preprocessing

      public void preprocessing()
      Initializes the pool for driver and executor instances parsed at processing with all the available instances
      Specified by:
      preprocessing in class Enumerator
    • evaluateSingleNodeExecution

      public boolean evaluateSingleNodeExecution(long driverMemory, int cores)
      Specified by:
      evaluateSingleNodeExecution in class Enumerator
    • estimateRangeExecutors

      public ArrayList<Integer> estimateRangeExecutors(int driverCores, long executorMemory, int executorCores)
      Description copied from class: Enumerator
      Estimates the minimum and maximum number of executors based on given VM instance characteristics, the enumeration strategy and the user-defined configurations
      Specified by:
      estimateRangeExecutors in class Enumerator
      Parameters:
      driverCores - CPU cores for the currently evaluated driver node
      executorMemory - memory of currently evaluated executor node
      executorCores - CPU cores of currently evaluated executor node
      Returns:
      - [min, max]
    • getStepSize

      public int getStepSize()
      Meant to be used for testing purposes
      Returns:
      the set step size for the grid search
    • getExpBase

      public int getExpBase()
      Meant to be used for testing purposes
      Returns:
      the set exponential base for the grid search