public abstract class GPUInstruction extends Instruction
Modifier and Type | Class and Description |
---|---|
static class |
GPUInstruction.GPUINSTRUCTION_TYPE |
Instruction.INSTRUCTION_TYPE
Modifier and Type | Field and Description |
---|---|
protected GPUInstruction.GPUINSTRUCTION_TYPE |
_gputype |
protected org.apache.sysml.runtime.matrix.operators.Operator |
_optr |
protected boolean |
_requiresLabelUpdate |
beginCol, beginLine, DATATYPE_PREFIX, endCol, endLine, GPU_INST_PREFIX, instOpcode, INSTRUCTION_DELIM, instString, LITERAL_PREFIX, LOG, OPERAND_DELIM, SP_INST_PREFIX, type, VALUETYPE_PREFIX
Constructor and Description |
---|
GPUInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
String opcode,
String istr) |
GPUInstruction(String opcode,
String istr) |
Modifier and Type | Method and Description |
---|---|
GPUInstruction.GPUINSTRUCTION_TYPE |
getGPUInstructionType() |
String |
getGraphString() |
Instruction |
preprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
This method should be used for any setup before executing this instruction.
|
abstract void |
processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
This method should be used to execute the instruction.
|
boolean |
requiresLabelUpdate() |
getExtendedOpcode, getInstID, getLineNum, getOpcode, getType, postprocessInstruction, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setType, toString, updateInstructionThreadID
protected GPUInstruction.GPUINSTRUCTION_TYPE _gputype
protected org.apache.sysml.runtime.matrix.operators.Operator _optr
protected boolean _requiresLabelUpdate
public GPUInstruction.GPUINSTRUCTION_TYPE getGPUInstructionType()
public boolean requiresLabelUpdate()
requiresLabelUpdate
in class Instruction
public String getGraphString()
getGraphString
in class Instruction
public Instruction preprocessInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
Instruction
preprocessInstruction
in class Instruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occurspublic abstract void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
Instruction
processInstruction
in class Instruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occursCopyright © 2017 The Apache Software Foundation. All rights reserved.