roberto.alfieri:pub:openmp
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedenteProssima revisioneEntrambe le parti successive la revisione | ||
roberto.alfieri:pub:openmp [14/10/2020 18:24] – roberto.alfieri | roberto.alfieri:pub:openmp [14/10/2020 18:36] – roberto.alfieri | ||
---|---|---|---|
Linea 209: | Linea 209: | ||
A parallel region is a block of code that will be executed by multiple threads. This is the fundamental OpenMP parallel construct. | A parallel region is a block of code that will be executed by multiple threads. This is the fundamental OpenMP parallel construct. | ||
- | Examples: ex1.c ex2.c parallel2.c | + | Examples: ex1.c ex2.c parallel-single.c |
Linea 231: | Linea 231: | ||
Or use #pragma omp parallel for | Or use #pragma omp parallel for | ||
- | | + | |
Linea 243: | Linea 243: | ||
All other threads on the team skip this section of code. | All other threads on the team skip this section of code. | ||
- | Examples: single.c | + | Examples: |
==== Sections Directive ==== | ==== Sections Directive ==== | ||
Linea 263: | Linea 263: | ||
There is an implied barrier at the end of a SECTIONS directive | There is an implied barrier at the end of a SECTIONS directive | ||
- | | + | |
==== Critical | ==== Critical | ||
Linea 288: | Linea 288: | ||
} | } | ||
</ | </ | ||
+ | Examples: ex2.c | ||
roberto.alfieri/pub/openmp.txt · Ultima modifica: 18/03/2022 16:11 da roberto.alfieri