Compiler Support
Let's look at the compiler support for the topics in this chapter.
We'll cover the following...
As of today (July 2019) only two compilers/STL implementation support parallel algorithms: it’s Visual Studio (since 2017 15.7) and GCC (since 9.1).
Visual Studio implements par_unseq
as par
, so you shouldn’t expect any difference between code runs.
GCC implementation uses modified Intel PSTL and relies on OpenMP 4.0 and Intel TBB 2018. You need to install and link with -ltbb
if you want to work with parallel algorithms. ...