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

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

@mitinarseny

Description

@mitinarseny

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions