Search in sources :

Example 1 with GPUINSTRUCTION_TYPE

use of org.apache.sysml.runtime.instructions.gpu.GPUInstruction.GPUINSTRUCTION_TYPE in project incubator-systemml by apache.

the class GPUInstructionParser method parseSingleInstruction.

public static GPUInstruction parseSingleInstruction(String str) throws DMLRuntimeException {
    if (str == null || str.isEmpty())
        return null;
    GPUINSTRUCTION_TYPE cptype = InstructionUtils.getGPUType(str);
    if (cptype == null)
        throw new DMLRuntimeException("Unable derive cptype for instruction: " + str);
    GPUInstruction cpinst = parseSingleInstruction(cptype, str);
    if (cpinst == null)
        throw new DMLRuntimeException("Unable to parse instruction: " + str);
    return cpinst;
}
Also used : ReorgGPUInstruction(org.apache.sysml.runtime.instructions.gpu.ReorgGPUInstruction) GPUInstruction(org.apache.sysml.runtime.instructions.gpu.GPUInstruction) ArithmeticBinaryGPUInstruction(org.apache.sysml.runtime.instructions.gpu.ArithmeticBinaryGPUInstruction) BuiltinBinaryGPUInstruction(org.apache.sysml.runtime.instructions.gpu.BuiltinBinaryGPUInstruction) BuiltinUnaryGPUInstruction(org.apache.sysml.runtime.instructions.gpu.BuiltinUnaryGPUInstruction) ConvolutionGPUInstruction(org.apache.sysml.runtime.instructions.gpu.ConvolutionGPUInstruction) MatrixMatrixAxpyGPUInstruction(org.apache.sysml.runtime.instructions.gpu.MatrixMatrixAxpyGPUInstruction) MMTSJGPUInstruction(org.apache.sysml.runtime.instructions.gpu.MMTSJGPUInstruction) AggregateUnaryGPUInstruction(org.apache.sysml.runtime.instructions.gpu.AggregateUnaryGPUInstruction) AggregateBinaryGPUInstruction(org.apache.sysml.runtime.instructions.gpu.AggregateBinaryGPUInstruction) GPUINSTRUCTION_TYPE(org.apache.sysml.runtime.instructions.gpu.GPUInstruction.GPUINSTRUCTION_TYPE) DMLRuntimeException(org.apache.sysml.runtime.DMLRuntimeException)

Aggregations

DMLRuntimeException (org.apache.sysml.runtime.DMLRuntimeException)1 AggregateBinaryGPUInstruction (org.apache.sysml.runtime.instructions.gpu.AggregateBinaryGPUInstruction)1 AggregateUnaryGPUInstruction (org.apache.sysml.runtime.instructions.gpu.AggregateUnaryGPUInstruction)1 ArithmeticBinaryGPUInstruction (org.apache.sysml.runtime.instructions.gpu.ArithmeticBinaryGPUInstruction)1 BuiltinBinaryGPUInstruction (org.apache.sysml.runtime.instructions.gpu.BuiltinBinaryGPUInstruction)1 BuiltinUnaryGPUInstruction (org.apache.sysml.runtime.instructions.gpu.BuiltinUnaryGPUInstruction)1 ConvolutionGPUInstruction (org.apache.sysml.runtime.instructions.gpu.ConvolutionGPUInstruction)1 GPUInstruction (org.apache.sysml.runtime.instructions.gpu.GPUInstruction)1 GPUINSTRUCTION_TYPE (org.apache.sysml.runtime.instructions.gpu.GPUInstruction.GPUINSTRUCTION_TYPE)1 MMTSJGPUInstruction (org.apache.sysml.runtime.instructions.gpu.MMTSJGPUInstruction)1 MatrixMatrixAxpyGPUInstruction (org.apache.sysml.runtime.instructions.gpu.MatrixMatrixAxpyGPUInstruction)1 ReorgGPUInstruction (org.apache.sysml.runtime.instructions.gpu.ReorgGPUInstruction)1