This is an automated email from the ASF dual-hosted git repository.

baunsgaard pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/systemds.git


The following commit(s) were added to refs/heads/master by this push:
     new 65d07b3  [MINOR] parse threads in fed binary instruction
65d07b3 is described below

commit 65d07b355750ba35c10f8f56e9e080769b9770eb
Author: baunsgaard <[email protected]>
AuthorDate: Thu Feb 11 11:03:12 2021 +0100

    [MINOR] parse threads in fed binary instruction
---
 .../apache/sysds/runtime/instructions/fed/BinaryFEDInstruction.java  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git 
a/src/main/java/org/apache/sysds/runtime/instructions/fed/BinaryFEDInstruction.java
 
b/src/main/java/org/apache/sysds/runtime/instructions/fed/BinaryFEDInstruction.java
index ffaf2af..994b2e1 100644
--- 
a/src/main/java/org/apache/sysds/runtime/instructions/fed/BinaryFEDInstruction.java
+++ 
b/src/main/java/org/apache/sysds/runtime/instructions/fed/BinaryFEDInstruction.java
@@ -34,11 +34,14 @@ public abstract class BinaryFEDInstruction extends 
ComputationFEDInstruction {
 
        public static BinaryFEDInstruction parseInstruction(String str) {
                String[] parts = 
InstructionUtils.getInstructionPartsWithValueType(str);
-               InstructionUtils.checkNumFields(parts, 3);
+               InstructionUtils.checkNumFields(parts, 3, 4);
                String opcode = parts[0];
                CPOperand in1 = new CPOperand(parts[1]);
                CPOperand in2 = new CPOperand(parts[2]);
                CPOperand out = new CPOperand(parts[3]);
+               // threads to use 
+               int k = Integer.parseInt(parts[4]);
+
 
                checkOutputDataType(in1, in2, out);
                Operator operator = 
InstructionUtils.parseBinaryOrBuiltinOperator(opcode, in1, in2);

Reply via email to