Skip to content
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

Shared fix fanout #7

Closed
wants to merge 1 commit into from
Closed

Shared fix fanout #7

wants to merge 1 commit into from

Conversation

derbeyn
Copy link
Collaborator

@derbeyn derbeyn commented Jun 18, 2018

During last meeting, we saw on Xi's slides that the mca_coll_shared_reduce_linear algo is the best for sizes <= 256 bytes.
So I did 2 changes:
. I fixed the fanout limit to avoid a segfault when calling mca_coll_shared_reduce_linear ()
. I put the call to this algo into mca_coll_shared_reduce_intra()

@derbeyn derbeyn changed the base branch from master to shared June 18, 2018 07:41
@@ -9,7 +9,7 @@ int mca_coll_shared_reduce_intra(const void *sbuf, void* rbuf, int count,
ptrdiff_t extent, lower_bound;
ompi_datatype_get_extent(dtype, &lower_bound, &extent);
if (count*extent <= 256) {
mca_coll_shared_reduce_binomial(sbuf, rbuf, count, dtype, op, root, comm, module);
mca_coll_shared_reduce_linear(sbuf, rbuf, count, dtype, op, root, comm, module);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we force the linear for small messages ? Logically the binomial seems like a better choice.

@derbeyn
Copy link
Collaborator Author

derbeyn commented Jul 11, 2018

I forced it because from the slides Xi showed us during a meeting, that was the best algo for small sizes.
will look for the graphs and attach it.

@derbeyn
Copy link
Collaborator Author

derbeyn commented Jul 11, 2018

Ok, could find the graph.
Attaching it

reduce

@bosilca
Copy link
Owner

bosilca commented Oct 16, 2020

We will reevaluate the shared component and will adapt the selection logic. Meanwhile I will close this PR.

@bosilca bosilca closed this Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants