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

Parallel sort algorithm not used when calling with poolstl::par #39

Open
schdub opened this issue Nov 20, 2024 · 0 comments
Open

Parallel sort algorithm not used when calling with poolstl::par #39

schdub opened this issue Nov 20, 2024 · 0 comments

Comments

@schdub
Copy link

schdub commented Nov 20, 2024

Hello, Adam.
Thank you for awesome library.

Maybe I'm something doing wrong... I've simple code, something like

#include <poolstl/poolstl.hpp>
#include <vector>
#include <cassert>

int main() {
    std::vector<int> v(40 * 1024 * 1024, 0);
    v.front() = 100;
    v.back() = -1;
    std::sort(poolstl::par, v.begin(), v.end(), std::less());
    assert(v.front() < v.back());
}

And it utilizes only one core.

Ubuntu 22.04, gcc 12.3.0

@schdub schdub changed the title parallel sort algorithm not used when calling with poolstl::par Parallel sort algorithm not used when calling with poolstl::par Nov 20, 2024
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

No branches or pull requests

1 participant