For loop doesn't parallelize #2281
The example shown at the website:
However, in the implementation the iterator type is passed to traits:
The is_seq integral constants is true which prevents from using a parallel execution policy even when it's explicitly specified. I've encountered this problem when working with Safura on her code and trying to find a reason why the code parallelize so poorly, when it doesn't parallelize at all.
referenced this issue
Aug 5, 2016
In Safura's code we had a problem with sequential execution, but I can't reproduce this problem in a smaller example because for_loop ends with throwing an exception: HPX(invalid_status) (maybe it's similar with the issue #2282). It executes correctly with the sequential executor:
Am I doing something wrong here?
@mcopik Could you please describe:
I'm not sure from you description of what code you ran (you mention at least two different scenarios, both not well described) and what errors you have seen when running any of those.
What is 'Safura's code', etc.?
In other words, please create a minimal reproducing test case I can cut&paste, compile, and run in order to see what's going on.