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;
}
Aggregations