Skip to content

Remote arrays addition - #644

Open
weilewei wants to merge 4 commits into
masterfrom
remote_arrays_addition
Open

Remote arrays addition#644
weilewei wants to merge 4 commits into
masterfrom
remote_arrays_addition

Conversation

@weilewei

Copy link
Copy Markdown
Contributor

adding a case of element-wise arrays addition using two localities

@weilewei weilewei added this to the 0.0.1 milestone Oct 29, 2018
@weilewei
weilewei requested review from hkaiser and parsa October 29, 2018 01:25
auto const& code = phylanx::execution_tree::compile(codestr, snippets, env);
return code.run();
}

Copy link
Copy Markdown
Member

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?

Comment thread tests/unit/distributed/remote_arrays_addition.cpp

auto et2 = compile(code2, there);
et2(a2, b2);
}

Copy link
Copy Markdown
Member

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
))";

Copy link
Copy Markdown
Member

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?

@hkaiser

hkaiser commented Nov 3, 2018

Copy link
Copy Markdown
Member

@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

@weilewei

weilewei commented Nov 5, 2018

Copy link
Copy Markdown
Contributor Author

@hkaiser looks great to me! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants