public class MMTSJGPUInstruction extends GPUInstruction
GPUInstruction.GPUINSTRUCTION_TYPE
Instruction.INSTRUCTION_TYPE
_gputype, _optr, _requiresLabelUpdate, MISC_TIMER_ACTIVATION_FORWARD_LIB, MISC_TIMER_ALLOCATE, MISC_TIMER_ALLOCATE_DENSE_OUTPUT, MISC_TIMER_BIAS_ADD_LIB, MISC_TIMER_COMPARE_AND_SET_KERNEL, MISC_TIMER_CONVOLUTION_BACKWARD_DATA_LIB, MISC_TIMER_CONVOLUTION_BACKWARD_FILTER_LIB, MISC_TIMER_CONVOLUTION_FORWARD_LIB, MISC_TIMER_CUDA_FREE, MISC_TIMER_CUDNN_CLEANUP, MISC_TIMER_CUDNN_INIT, MISC_TIMER_DAXPY_LIB, MISC_TIMER_DAXPY_MV_KERNEL, MISC_TIMER_DENSE_DGEAM_LIB, MISC_TIMER_DENSE_DOT_LIB, MISC_TIMER_DENSE_MATRIX_DENSE_MATRIX_LIB, MISC_TIMER_DENSE_MATRIX_DENSE_VECTOR_LIB, MISC_TIMER_DENSE_TO_SPARSE, MISC_TIMER_DENSE_VECTOR_DENSE_MATRIX_LIB, MISC_TIMER_DEVICE_TO_DEVICE, MISC_TIMER_DEVICE_TO_HOST, MISC_TIMER_EXP_KERNEL, MISC_TIMER_FILL_KERNEL, MISC_TIMER_HOST_TO_DEVICE, MISC_TIMER_MATRIX_MATRIX_CELLWISE_OP_KERNEL, MISC_TIMER_MATRIX_SCALAR_OP_KERNEL, MISC_TIMER_MAXPOOLING_BACKWARD_LIB, MISC_TIMER_MAXPOOLING_FORWARD_LIB, MISC_TIMER_REDUCE_ALL_KERNEL, MISC_TIMER_REDUCE_COL_KERNEL, MISC_TIMER_REDUCE_ROW_KERNEL, MISC_TIMER_RELU_BACKWARD_KERNEL, MISC_TIMER_RELU_KERNEL, MISC_TIMER_REUSE, MISC_TIMER_SET_ZERO, MISC_TIMER_SPARSE_ALLOCATE_LIB, MISC_TIMER_SPARSE_DGEAM_LIB, MISC_TIMER_SPARSE_MATRIX_DENSE_VECTOR_LIB, MISC_TIMER_SPARSE_MATRIX_SPARSE_MATRIX_LIB, MISC_TIMER_SPARSE_TO_DENSE, MISC_TIMER_SYRK_LIB, MISC_TIMER_TRANSPOSE_LIB, MISC_TIMER_UPPER_TO_LOWER_TRIANGLE_KERNEL
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
|
getDenseMatrixOutputForGPUInstruction, getGPUInstructionType, getGraphString, getMatrixInputForGPUInstruction, postprocessInstruction, preprocessInstruction, requiresLabelUpdate
getExtendedOpcode, getInstID, getLineNum, getOpcode, getType, 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.