Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Use std::execution::par_unseq in std::copy #10

Open
mitinarseny opened this issue Nov 6, 2020 · 1 comment
Open

Use std::execution::par_unseq in std::copy #10

mitinarseny opened this issue Nov 6, 2020 · 1 comment
Assignees

Comments

@mitinarseny
Copy link
Contributor

Use parallel unsequenced version of std::copy by providing std::execution::par_unseq execution policy tag as a first argument for std::copy function.
When I tried to use this policy, clang said:

/usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/pstl/parallel_backend_tbb.h:19:10: error: 'tbb/blocked_range.h' file not found [clang-diagnostic-error]
#include <tbb/blocked_range.h>
         ^

As I googled the problem, it means that we should link to Intel TBB library in out CMakeLists.txt. But what if the library will be used for non-Intel processors?

@mitinarseny mitinarseny self-assigned this Nov 6, 2020
@kovdan01
Copy link

As far as I know, execution policies are not yet properly supported by major compilers (GCC, Clang, MSVC) though it is C++17 (!) feature. So you just have to wait.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants