https://github.com/madmann91/par
A small, minimalistic, and customizable wrapper for C++ parallelism frameworks
https://github.com/madmann91/par
cpp20 header- parallelism
Last synced: 25 days ago
JSON representation
A small, minimalistic, and customizable wrapper for C++ parallelism frameworks
- Host: GitHub
- URL: https://github.com/madmann91/par
- Owner: madmann91
- License: mit
- Created: 2021-08-20T22:26:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-21T20:30:13.000Z (almost 5 years ago)
- Last Synced: 2025-01-21T11:33:45.044Z (over 1 year ago)
- Topics: cpp20, header-, parallelism
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Par
`par` is a small wrapper around common parallelization frameworks.
It is designed to be extendable to other parallelization frameworks as well,
and provides a simple sequential backend that executes every construct serially.
## Installing
Since this project is a header-only library, it can be added to your project simply by
writing the following CMake code to your CMakeLists.txt:
add_subdirectory(/path/to/par)
This line will provide the target `par::par`, which you can link against.
Alternatively, if you have several projects that depend on par, you can use a call to
`find_package(par)`:
find_package(par REQUIRED)
This will require to set the CMake variable `par_DIR`. For that, you can alternatively
use the build directory, or install the library somewhere, say `/path/to/install`, and
set `par_DIR` to the path `/path/to/install/lib/cmake`.