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 [12/10/2020 15:54] – [Esempio LIFE] roberto.alfieri | roberto.alfieri:pub:openmp [18/03/2022 15:43] – roberto.alfieri | ||
---|---|---|---|
Linea 1: | Linea 1: | ||
====== OpenMP ====== | ====== OpenMP ====== | ||
- | [[http:// | + | ====Tutorials, |
+ | |||
+ | [[https:// | ||
+ | |||
+ | |||
+ | **[[http:// | ||
+ | |||
+ | |||
+ | ==== What is openMP ==== | ||
+ | |||
+ | [[http:// | ||
- | [[https:// | ||
{{: | {{: | ||
Linea 20: | Linea 29: | ||
Version 4.0 (July 2013), 4.5 (Nov 2015 ) and 5.0 (Nov 2018) add support for accelerators (target directives), | Version 4.0 (July 2013), 4.5 (Nov 2015 ) and 5.0 (Nov 2018) add support for accelerators (target directives), | ||
- | [[https:// | ||
- | ====Tutorials, | ||
- | |||
- | [[https:// | ||
- | - | ||
- | [[https:// | ||
- | - | ||
- | [[http:// | ||
=== openMP support in the C/C++ Compilers === | === openMP support in the C/C++ Compilers === | ||
Linea 208: | 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 [[http:// | + | Examples: ex1.c ex2.c parallel-single.c |
Linea 230: | Linea 231: | ||
Or use #pragma omp parallel for | Or use #pragma omp parallel for | ||
- | [[http:// | + | Examples: for.c for-schelule.c |
Linea 242: | Linea 243: | ||
All other threads on the team skip this section of code. | All other threads on the team skip this section of code. | ||
- | [[http:// | + | Examples: |
==== Sections Directive ==== | ==== Sections Directive ==== | ||
Linea 262: | 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 | ||
- | [[http:// | + | Examples: sections.c |
==== Critical | ==== Critical | ||
Linea 287: | Linea 288: | ||
} | } | ||
</ | </ | ||
+ | Examples: ex2.c | ||
Linea 311: | Linea 312: | ||
- | [[http:// | + | Examples: reduction.c |
== Combining FOR and reduce == | == Combining FOR and reduce == | ||
Linea 338: | Linea 339: | ||
- | [[http:// | + | Examples: |
roberto.alfieri/pub/openmp.txt · Ultima modifica: 18/03/2022 16:11 da roberto.alfieri