https://github.com/ggrbill/omp-tutorial
Tutorial of OpenMP in C++
https://github.com/ggrbill/omp-tutorial
cpp hacktoberfest openmp
Last synced: 10 months ago
JSON representation
Tutorial of OpenMP in C++
- Host: GitHub
- URL: https://github.com/ggrbill/omp-tutorial
- Owner: ggrbill
- License: mit
- Created: 2020-06-02T19:25:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-14T18:52:20.000Z (about 6 years ago)
- Last Synced: 2025-02-27T02:51:01.243Z (over 1 year ago)
- Topics: cpp, hacktoberfest, openmp
- Language: C++
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# omp-tutorial
Tutorial of OpenMP in C++.
## Compilation
To compile any of the codes in this repository execute (inside `src` folder):
```shell
$ g++ -fopenmp {filename}.cpp
```
## Run
To run the compiled file execute:
```shell
$ ./a.out
```
After execute it some output like the following one should appear
```shell
Number of threads: 4
Hello, World! (from thread: #0)
Hello, World! (from thread: #1)
Hello, World! (from thread: #2)
Hello, World! (from thread: #3)
```