An open API service indexing awesome lists of open source software.

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++

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)

```