ggrbill / omp-tutorial

Tutorial of OpenMP in C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

omp-tutorial

Tutorial of OpenMP in C++.

Compilation

To compile any of the codes in this repository execute (inside src folder):

$ g++ -fopenmp {filename}.cpp

Run

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)

About

Tutorial of OpenMP in C++

License:MIT License


Languages

Language:C++ 100.0%