Skip to content

OpenMP

Category: Parallelism · Status: stub

One line: Compiler directives and a runtime that parallelize loops and sections of C, C++ and Fortran programs over shared memory.

Also called: OMP.

How it connects

flowchart LR
  n_openmp["OpenMP"]
  n_thread_pool["Thread pool and executor"]
  n_openmp -->|uses| n_thread_pool
  classDef center stroke-width:3px
  class n_openmp center
  classDef outside stroke-dasharray: 4 3
  class n_thread_pool outside

In each language

C Compiler directives defined by the OpenMP specifications ↗; the GNU implementation is libgomp ↗
C++ The same directives as C; C++17 execution policies ↗ parallelize standard algorithms without them

Where to read more