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

hpx::parallel::count/count_if failing tests #3838

Closed
pmikolajczyk41 opened this issue May 6, 2019 · 2 comments
Closed

hpx::parallel::count/count_if failing tests #3838

pmikolajczyk41 opened this issue May 6, 2019 · 2 comments

Comments

@pmikolajczyk41
Copy link

Actual Behavior

Tests fail for hpx::parallel::count and hpx::parallel:count_if for larger cases.

Steps to Reproduce the Problem

It is enough to change size from 33 to 65.

void test_count()
{
using Iter = BitCountingIterator<std::int64_t{33}>;
using Sent = Sentinel<std::int64_t>;
auto stdResult = std::count(Iter{0}, Iter{33},
std::int64_t{1});

Specifications

  • Ubuntu 18.04 LTS
  • GCC 8.2.0
  • CMake 3.13.4

Remarks

The same thing occurs also before commits to #3646, i.e. with functions accepting one type of iterators.

Similar problem was encountered in #3442. It may be the partitioner that looses control over chunks. I have made a breakpoint here:

static Begin call(Begin it, End end, F && f)
{
for (/**/; it != end; ++it)
f(it);
return it;
}

and seen that program was iterating over elements with completely strange values.

@stale
Copy link

stale bot commented Nov 2, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the tag: wontfix label Nov 2, 2019
@stale
Copy link

stale bot commented Dec 2, 2019

This issue has been automatically closed. Please re-open if necessary.

@stale stale bot closed this as completed Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants