Skip to content

Commit 7b5ccc5

Browse files
committed
debug vectMultWrite
1 parent 87dcaee commit 7b5ccc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/apache/sysds/hops/codegen/cplan/CNodeBinary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ private CNode getIntermediateInputVector() {
281281

282282
public boolean getOutputType(boolean scalarVector, boolean lsparseLhs, boolean lsparseRhs) {
283283
switch(_type) {
284-
case VECT_MULT_SCALAR:
285284
case VECT_POW_SCALAR: return !scalarVector && lsparseLhs;
285+
case VECT_MULT_SCALAR:
286286
case VECT_DIV_SCALAR:
287287
case VECT_XOR_SCALAR:
288288
case VECT_MIN_SCALAR:

src/main/java/org/apache/sysds/hops/codegen/cplan/java/Binary.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ public String getTemplate(BinType type, boolean sparseLhs, boolean sparseRhs,
6969
}
7070

7171
//vector-scalar operations
72-
case VECT_MULT_SCALAR:
7372
case VECT_POW_SCALAR: {
7473
String vectName = type.getVectorPrimitiveName();
7574
if( scalarVector )
@@ -83,6 +82,7 @@ else if(DMLScript.SPARSE_INTERMEDIATE) {
8382
" double[] %TMP% = LibSpoofPrimitives.vect"+vectName+"Write(%IN1%, %IN2%, %POS1%, %LEN%);\n";
8483
}
8584
}
85+
case VECT_MULT_SCALAR:
8686
case VECT_DIV_SCALAR:
8787
case VECT_XOR_SCALAR:
8888
case VECT_MIN_SCALAR:

0 commit comments

Comments
 (0)