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

Avoid __brick_reverse and __brick_reverse_copy calls for empty source data #1442

Merged
merged 11 commits into from
Mar 13, 2024

Conversation

SergeyKopienko
Copy link
Contributor

@SergeyKopienko SergeyKopienko commented Mar 12, 2024

Assertion happens in the reverse.pass test.

It's reproduced on any C++ compiler on Windows
for CMake line -DCMAKE_CXX_COMPILER=dpcpp-cl -DCMAKE_BUILD_TYPE=debug -DONEDPL_BACKEND=serial

The root cause is that we call __brick_reverse and __brick_reverse_copy for empty source data in the parallel implementations for serial backend.

@SergeyKopienko SergeyKopienko changed the title Log exception info for reverse.pass test Fix error in reverse.pass test for empty source data with reverse iterator Mar 12, 2024
@SergeyKopienko SergeyKopienko deleted the dev/skopienko/reverse_pass_fix branch March 12, 2024 15:31
@SergeyKopienko SergeyKopienko restored the dev/skopienko/reverse_pass_fix branch March 12, 2024 15:33
@SergeyKopienko SergeyKopienko changed the title Fix error in reverse.pass test for empty source data with reverse iterator Avoid __brick_reverse and __brick_reverse_copy calls for empty source data Mar 12, 2024
include/oneapi/dpl/pstl/algorithm_impl.h Outdated Show resolved Hide resolved
include/oneapi/dpl/pstl/algorithm_impl.h Outdated Show resolved Hide resolved
include/oneapi/dpl/pstl/algorithm_impl.h Outdated Show resolved Hide resolved
include/oneapi/dpl/pstl/algorithm_impl.h Outdated Show resolved Hide resolved
MikeDvorskiy
MikeDvorskiy previously approved these changes Mar 12, 2024
Copy link
Contributor

@MikeDvorskiy MikeDvorskiy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@MikeDvorskiy MikeDvorskiy left a comment

Choose a reason for hiding this comment

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

LGTM

@SergeyKopienko SergeyKopienko merged commit 9d1cdd1 into main Mar 13, 2024
20 checks passed
@SergeyKopienko SergeyKopienko deleted the dev/skopienko/reverse_pass_fix branch March 13, 2024 11:29
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.

2 participants