
See the 'Examples' section below.įor any of the implemented algorithms, pass one of the values seq, unseq, par or par_unseq as the first parameter in a call to the algorithm to specify the desired execution policy. When using algorithms and execution policies, specify the namespaces std::execution in case of there is no vendor implementation of C++17 standard library or pstl::execution otherwise.Then add a subset of the following set of lines, depending on the algorithms you intend to use:
You can do this by calling the pstlvars script.Īdd #include "pstl/execution" to your code.
For ordinary users: $HOME/intel/compilers_and_libraries_įollow these steps to add Parallel STL to your application:Īdd the /include folder to the compiler include paths. For super-users: /opt/intel/compilers_and_libraries_. is the installation directory, by default, it is: You can do this by calling suite-level environment scripts such as compilervars./pstl/bin. To build an application that uses Parallel STL on the command line, you need to set the environment variables for compilation and linkage. The latest version of the Intel® C++ Compiler is recommended for better performance of Parallel STL algorithms, comparing to previous compiler versions.
Intel® Threading Building Blocks (Intel® TBB) 2019. Support for OpenMP* 4.0 SIMD constructs. To use Parallel STL, you must have the following software installed: