mboehm7 commented on code in PR #2302:
URL: https://github.com/apache/systemds/pull/2302#discussion_r2249947451


##########
src/main/java/org/apache/sysds/runtime/instructions/cp/VariableCPInstruction.java:
##########
@@ -1060,6 +1054,36 @@ private void processWriteInstruction(ExecutionContext 
ec) {
                        
HDFSTool.writeScalarToHDFS(ec.getScalarInput(getInput1()), fname);
                }
                else if( getInput1().getDataType() == DataType.MATRIX ) {
+                       MatrixObject mo = 
ec.getMatrixObject(getInput1().getName());
+                       int blen = Integer.parseInt(getInput4().getName());
+                       LocalTaskQueue<IndexedMatrixValue> stream = 
mo.getStreamHandle();
+
+                       if (stream != null) {

Review Comment:
   I would recommend to simple probe if a stream exists and not consume the 
matrix if it does.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@systemds.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to