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
Fix Segmentation fault on foreach_datapar_zipiter #5281
Fix Segmentation fault on foreach_datapar_zipiter #5281
Conversation
Can one of the admins verify this patch? |
libs/parallelism/algorithms/include/hpx/parallel/datapar/loop.hpp
Outdated
Show resolved
Hide resolved
retest |
Here a2d7511, is_data_aligned is logically correct and is used in correct sense, but the convention was reverse, it returns false when data is aligned. I now changed it to return true when is aligned. |
retest |
libs/parallelism/algorithms/include/hpx/parallel/datapar/iterator_helpers.hpp
Show resolved
Hide resolved
libs/parallelism/algorithms/include/hpx/parallel/datapar/zip_iterator.hpp
Outdated
Show resolved
Hide resolved
Co-authored-by: Hartmut Kaiser <hartmut.kaiser@gmail.com>
We definitely could. Be careful to account for a zero length sequence, however. |
@hkaiser Okay, then the existing solution is a better one. I did not realise about zero length sequence. |
@srinivasyadav18 I'll merge this into the other branch now, let's do further changes if needed there (I have nothing in mind right now). |
Proposed Changes
Any background context you want to provide?
#5235 (comment)