/modern-cpp-examples

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Supplementary material: ADVANCED PARALLEL PROGRAMMING IN C++

Codacy Badge CircleCI

The build system CMake is used to compile all the examples.

The following code snippet shows how to compile the examples with the parallel algorithms and OpenMP

mkdir build
cd build
cmake ..
make

The following code snippet show how to compile the optional HPX examples

mkdir build
cd build
cmake -DWITH_HPX=ON ..
make

Dependencies

  • Thread Building Blocks (TBB) for the parallel algorithms
  • GNU compiler collection (gcc) >= 9 to support the parallel algorithms
  • Optional: The C++ Standard Library for Paralism and Concurrency (HPX)

Note that we provide a Docker image with all the dependencies installed and Docker image with all examples compiled