poolSTL icon indicating copy to clipboard operation
poolSTL copied to clipboard

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

Open schdub opened this issue 1 year ago • 0 comments

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 avatar Nov 20 '24 20:11 schdub