Class Dag<N extends Lop>

java.lang.Object
org.apache.sysds.lops.compile.Dag<N>
Type Parameters:
N - the class parameter has no affect and is only kept for documentation purposes.

public class Dag<N extends Lop> extends Object
Class to maintain a DAG of lops and compile it into runtime instructions, incl piggybacking into jobs.
  • Constructor Details

    • Dag

      public Dag()
  • Method Details

    • getNextUniqueFilenameSuffix

      public static String getNextUniqueFilenameSuffix()
    • getNextUniqueFilename

      public String getNextUniqueFilename()
    • getNextUniqueVarname

      public static String getNextUniqueVarname(Types.DataType dt)
    • addNode

      public boolean addNode(Lop node)
      Method to add a node to the DAG.
      Parameters:
      node - low-level operator
      Returns:
      true if node was not already present, false if not.
    • getJobs

      public ArrayList<Instruction> getJobs(StatementBlock sb, DMLConfig config)
      Method to compile a dag generically
      Parameters:
      sb - statement block
      config - dml configuration
      Returns:
      list of instructions