You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Use parallel unsequenced version of
std::copy
by providingstd::execution::par_unseq
execution policy tag as a first argument forstd::copy
function.When I tried to use this policy, clang said:
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?The text was updated successfully, but these errors were encountered: