-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remote arrays addition #644
base: master
Are you sure you want to change the base?
Conversation
auto const& code = phylanx::execution_tree::compile(codestr, snippets, env); | ||
return code.run(); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't the above functions be unified into one?
|
||
auto et2 = compile(code2, there); | ||
et2(a2, b2); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're interested in the result as a whole (i.e. stacking the results together again).
), | ||
code2 | ||
))"; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code1
and code2
are identical. Do we need both?
@weilewei please have a look here for how your code could be simplified and streamlined: https://github.com/STEllAR-GROUP/phylanx/blob/function_call_attributes/tests/unit/distributed/remote_add.cpp |
@hkaiser looks great to me! Thanks |
adding a case of element-wise arrays addition using two localities