Skip to content

Adding generation parameter to gather to enable using it more than once#2003

Merged
hkaiser merged 5 commits into
masterfrom
fixing_2001
Feb 25, 2016
Merged

Adding generation parameter to gather to enable using it more than once#2003
hkaiser merged 5 commits into
masterfrom
fixing_2001

Conversation

@hkaiser
Copy link
Copy Markdown
Contributor

@hkaiser hkaiser commented Feb 24, 2016

  • also: adding gather_here and gather_there accept plain values (instead of futures)
  • flyby: change size_t = ~0U to size_t = size_t(-1)

This fixes #2001

- also: adding gather_here and gather_there accept plain values (instead of futures)
- flyby: change size_t = ~0U to size_t = size_t(-1)

This fixes #2001
@hkaiser hkaiser added this to the 0.9.12 milestone Feb 24, 2016
@hkaiser
Copy link
Copy Markdown
Contributor Author

hkaiser commented Feb 25, 2016

@ltroska This fixes the issue you reported in #2001. Please verify. Note however, that the API of gather_here and gather_there has changed and now requires to pass along a sequence number identifying the gather operation (please see here: https://github.com/STEllAR-GROUP/hpx/blob/fixing_2001/tests/regressions/lcos/multiple_gather_ops_2001.cpp)

Comment thread hpx/lcos/gather.hpp
std::size_t num_sites = ~0U, std::size_t this_site = ~0U);

std::size_t num_sites = std::size_t(-1),
std::size_t generation = std::size_t(-1),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can't we have the generation as the last parameter?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I thought about this. I assumed that a user would want to specify an invocation site less frequently as this defaults to the current locality. Thus I moved that one to the end.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Indeed, the issue is fixed for me. Thank you!

hkaiser added a commit that referenced this pull request Feb 25, 2016
Adding generation parameter to gather to enable using it more than once
@hkaiser hkaiser merged commit 1d92a5b into master Feb 25, 2016
@hkaiser hkaiser deleted the fixing_2001 branch February 25, 2016 17:53
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.

Gathering more than once segfaults

3 participants