Package org.apache.sysds.parser
Class ParForStatementBlock
- java.lang.Object
- 
- org.apache.sysds.parser.LiveVariableAnalysis
- 
- org.apache.sysds.parser.StatementBlock
- 
- org.apache.sysds.parser.ForStatementBlock
- 
- org.apache.sysds.parser.ParForStatementBlock
 
 
 
 
- 
- All Implemented Interfaces:
- ParseInfo
 
 public class ParForStatementBlock extends ForStatementBlock This ParForStatementBlock is essentially identical to a ForStatementBlock, except an extended validate for checking/setting optional parfor parameters and running the loop dependency analysis.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classParForStatementBlock.ResultVar
 - 
Field SummaryFields Modifier and Type Field Description static StringCHECKstatic StringDATA_PARTITIONERstatic StringEXEC_MODEstatic StringINTERAL_FN_INDEX_COLstatic StringINTERAL_FN_INDEX_ROWstatic StringOPT_LOGstatic StringOPT_MODEstatic StringPARstatic StringPROFILEstatic StringRESULT_MERGEstatic StringTASK_PARTITIONERstatic StringTASK_SIZE- 
Fields inherited from class org.apache.sysds.parser.StatementBlockDEFAULT_LOOP_REPETITIONS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ParForStatementBlock()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ParForProgramBlock.PartitionFormatdetermineDataPartitionFormat(String var)Determines the PDataPartitioningFormat for read-only parent variables according to the access pattern of that variable within the parfor statement block.longgetID()List<String>getReadOnlyParentMatrixVars()ArrayList<ParForStatementBlock.ResultVar>getResultVariables()voidsetResultVariables(ArrayList<ParForStatementBlock.ResultVar> rvars)VariableSetvalidate(DMLProgram dmlProg, VariableSet ids, HashMap<String,ConstIdentifier> constVars, boolean conditional)- 
Methods inherited from class org.apache.sysds.parser.ForStatementBlockanalyze, getEstimateReps, getFromHops, getFromLops, getIncrementHops, getIncrementLops, getInputstoSB, getIterPredicate, getToHops, getToLops, initializebackwardLV, initializeforwardLV, performConstantPropagation, requiresFromRecompilation, requiresIncrementRecompilation, requiresPredicateRecompilation, requiresToRecompilation, setFromHops, setFromLops, setIncrementHops, setIncrementLops, setToHops, setToLops, updatePredicateRecompilationFlags, updateRepetitionEstimates
 - 
Methods inherited from class org.apache.sysds.parser.StatementBlockaddStatement, addStatementBlock, getBeginColumn, getBeginLine, getConstIn, getConstOut, getDMLProg, getEndColumn, getEndLine, getFilename, getHops, getLops, getName, getNumStatements, getOutputNamesofSB, getOutputsofSB, getSBID, getStatement, getStatements, getText, getUpdateInPlaceVars, hasHops, isMergeableFunctionCallBlock, isNondeterministic, isRewritableFunctionCall, isSplitDag, mergeable, mergeFunctionCalls, mergeStatementBlocks, printBlockErrorLocation, printErrorLocation, printWarningLocation, raiseValidateError, raiseValidateError, requiresRecompilation, rewriteFunctionCallStatements, rHoistFunctionCallsFromExpressions, rHoistFunctionCallsFromExpressions, rHoistFunctionCallsFromExpressions, setBeginColumn, setBeginLine, setDMLProg, setEndColumn, setEndLine, setFilename, setHops, setLops, setNondeterministic, setParseInfo, setSplitDag, setStatementFormatType, setStatementFormatType, setStatements, setText, setUpdateInPlaceVars, toString, updateRecompilationFlag
 - 
Methods inherited from class org.apache.sysds.parser.LiveVariableAnalysisgetGen, getKill, getWarn, liveIn, liveOut, setGen, setKill, setLiveIn, setLiveOut, setReadVariables, setUpdatedVariables, updateLiveVariablesOut, variablesRead, variablesUpdated
 
- 
 
- 
- 
- 
Field Detail- 
CHECKpublic static final String CHECK - See Also:
- Constant Field Values
 
 - 
PARpublic static final String PAR - See Also:
- Constant Field Values
 
 - 
TASK_PARTITIONERpublic static final String TASK_PARTITIONER - See Also:
- Constant Field Values
 
 - 
TASK_SIZEpublic static final String TASK_SIZE - See Also:
- Constant Field Values
 
 - 
DATA_PARTITIONERpublic static final String DATA_PARTITIONER - See Also:
- Constant Field Values
 
 - 
RESULT_MERGEpublic static final String RESULT_MERGE - See Also:
- Constant Field Values
 
 - 
EXEC_MODEpublic static final String EXEC_MODE - See Also:
- Constant Field Values
 
 - 
OPT_MODEpublic static final String OPT_MODE - See Also:
- Constant Field Values
 
 - 
OPT_LOGpublic static final String OPT_LOG - See Also:
- Constant Field Values
 
 - 
PROFILEpublic static final String PROFILE - See Also:
- Constant Field Values
 
 - 
INTERAL_FN_INDEX_ROWpublic static final String INTERAL_FN_INDEX_ROW - See Also:
- Constant Field Values
 
 - 
INTERAL_FN_INDEX_COLpublic static final String INTERAL_FN_INDEX_COL - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getIDpublic long getID() 
 - 
getResultVariablespublic ArrayList<ParForStatementBlock.ResultVar> getResultVariables() 
 - 
setResultVariablespublic void setResultVariables(ArrayList<ParForStatementBlock.ResultVar> rvars) 
 - 
validatepublic VariableSet validate(DMLProgram dmlProg, VariableSet ids, HashMap<String,ConstIdentifier> constVars, boolean conditional) - Overrides:
- validatein class- ForStatementBlock
 
 - 
determineDataPartitionFormatpublic ParForProgramBlock.PartitionFormat determineDataPartitionFormat(String var) Determines the PDataPartitioningFormat for read-only parent variables according to the access pattern of that variable within the parfor statement block. Row-wise or column wise partitioning is only suggested if we see pure row-wise or column-wise access patterns.- Parameters:
- var- variables
- Returns:
- partition format
 
 
- 
 
-