<<Prev
Top
Next>>
What is OpenMP
Why OpenMP
OpenMP &
Multithreaded
Programming
Multithreaded
Programming
Models
OpenMP Specs
Compiler &
OpenMP
Examples, DIY
Remarks
References
OpenMP Specifications
There are two versions, one for C/C++ and ther other for FORTRAN. Both define the following three parts
Directives
- instructions embedded in the source code, in the form of
C:
#pragma
directive
[
clause
[
clause
[...]]]
FORTRAN:
!$omp
directive
[
clause
[
clause
[...]]]
Both start with from a new line.
Run time routines
- dynamically set the execution environment, e.g. number of threads. Both C/C++ and FORTRAN versions have the same interface
omp_
name
()
Environment variables
- determines the execution environment at the time of start-up.