Skip to content

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

@schdub

Description

@schdub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions