kev-inn commented on code in PR #1649:
URL: https://github.com/apache/systemds/pull/1649#discussion_r913026862


##########
src/main/java/org/apache/sysds/hops/rewrite/RewriteAlgebraicSimplificationDynamic.java:
##########
@@ -2398,7 +2399,9 @@ else if( bop.getOp() == OpOp2.MINUS && 
left.getDataType()==DataType.MATRIX
                        }
                        
                        //rewire parent-child operators if rewrite applied
-                       if( ternop != null ) { 
+                       if( ternop != null ) {
+                               if (right.getForcedExecType() == 
Types.ExecType.FED)
+                                       
ternop.setForcedExecType(Types.ExecType.FED);

Review Comment:
   This is necessary, because our planner might assume the output to be 
federated. The fused ternary instruction is generated to execute in CP mode. We 
could either stop those rewrites from the beginning or be careful where we have 
to add the fed execution mode.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to