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

Fix timeouts in std_ranges tests #2012

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dmitriy-sobolev
Copy link
Contributor

@dmitriy-sobolev dmitriy-sobolev commented Jan 20, 2025

Processing 32M elements is too much for the debug mode. Let's stick to 256K elements which is enough to use multiple work-group implementation in case of device offloading.


std_ranges_sort.pass takes >10min on my laptop with 32M elements and ~11sec with 256K elements.

@dmitriy-sobolev dmitriy-sobolev added the test Test only Change label Jan 20, 2025
inline constexpr std::size_t big_sz = (1<<25) + 10; //32M
inline constexpr std::size_t big_sz =
#if PSTL_USE_DEBUG
(1<<18) + 10; //256K
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, we are reducing the test coverage here, because some parallel patterns have code differentiation by data sizes, for example __parallel_merge...
I would suggest discussing it offline on one of the next technical meeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test Test only Change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants