https://github.com/willdunklin/cpp-parallel
https://github.com/willdunklin/cpp-parallel
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/willdunklin/cpp-parallel
- Owner: willdunklin
- Created: 2022-11-25T18:22:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T18:23:36.000Z (over 3 years ago)
- Last Synced: 2025-03-05T01:45:14.227Z (over 1 year ago)
- Language: C++
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting default C++ project
1. Make sure you have a C++ compiler that can target C++17 or higher.
2. Install cmake: https://cmake.org/download/
3. Install ninja. Easiest way is probably from pip: `python -m pip install ninja`
- Otherwise, see https://ninja-build.org/ for instructions.
4. Configure cmake build: `cmake -G Ninja -S . -B build`
5. Build project: `cmake --build build`
6. Run project: `./build/Parallel`
## GPU Acceleration
7. For GPU compilation read this article: https://developer.nvidia.com/blog/accelerating-standard-c-with-gpus-using-stdpar/
- Make sure you install `nvc++`
- Make sure you compile manully (without the CMake commands) with the `-stdpar` flag as per the article's example