libgomp: Enabling OpenMP
1
1 1 Enabling OpenMP
1 *****************
1
1 To activate the OpenMP extensions for C/C++ and Fortran, the
1 compile-time flag '-fopenmp' must be specified. This enables the OpenMP
1 directive '#pragma omp' in C/C++ and '!$omp' directives in free form,
1 'c$omp', '*$omp' and '!$omp' directives in fixed form, '!$' conditional
1 compilation sentinels in free form and 'c$', '*$' and '!$' sentinels in
1 fixed form, for Fortran. The flag also arranges for automatic linking
1 of the OpenMP runtime library (⇒Runtime Library Routines).
1
1 A complete description of all OpenMP directives accepted may be found
1 in the OpenMP Application Program Interface (http://www.openmp.org)
1 manual, version 4.5.
1