public class MMTSJGPUInstruction extends GPUInstruction
GPUInstruction.GPUINSTRUCTION_TYPE
Instruction.INSTRUCTION_TYPE
_gputype, _optr, _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 |
---|
MMTSJGPUInstruction(org.apache.sysml.runtime.matrix.operators.Operator op,
org.apache.sysml.runtime.instructions.cp.CPOperand in1,
org.apache.sysml.lops.MMTSJ.MMTSJType type,
org.apache.sysml.runtime.instructions.cp.CPOperand out,
String opcode,
String istr)
MMTSJGPUInstruction constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.sysml.lops.MMTSJ.MMTSJType |
getMMTSJType()
returns left/right depending on the type of MMTSJ instruction
|
static MMTSJGPUInstruction |
parseInstruction(String str)
parse MMTSJ GPU instruction
|
void |
processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec)
process MMTSJ GPU instruction
|
getGPUInstructionType, getGraphString, preprocessInstruction, requiresLabelUpdate
getExtendedOpcode, getInstID, getLineNum, getOpcode, getType, postprocessInstruction, printMe, setInstID, setLocation, setLocation, setLocation, setLocation, setType, toString, updateInstructionThreadID
public MMTSJGPUInstruction(org.apache.sysml.runtime.matrix.operators.Operator op, org.apache.sysml.runtime.instructions.cp.CPOperand in1, org.apache.sysml.lops.MMTSJ.MMTSJType type, org.apache.sysml.runtime.instructions.cp.CPOperand out, String opcode, String istr)
op
- operatorin1
- inputtype
- left/right, left-> A' %*% A, right-> A %*% A'out
- outputopcode
- the opcodeistr
- ?public static MMTSJGPUInstruction parseInstruction(String str) throws DMLRuntimeException
str
- instruction stringDMLRuntimeException
- if DMLRuntimeException occurspublic void processInstruction(org.apache.sysml.runtime.controlprogram.context.ExecutionContext ec) throws DMLRuntimeException
processInstruction
in class GPUInstruction
ec
- execution contextDMLRuntimeException
- if DMLRuntimeException occurspublic org.apache.sysml.lops.MMTSJ.MMTSJType getMMTSJType()
Copyright © 2017 The Apache Software Foundation. All rights reserved.