Tutorial of OpenMP in C++.
To compile any of the codes in this repository execute (inside src
folder):
$ g++ -fopenmp {filename}.cpp
To run the compiled file execute:
$ ./a.out
After execute it some output like the following one should appear
Number of threads: 4
Hello, World! (from thread: #0)
Hello, World! (from thread: #1)
Hello, World! (from thread: #2)
Hello, World! (from thread: #3)