Ada: Compilation of an OpenMP parallel code in Fortran, C/C++

The compilation of an OpenMP program is done by choosing the option -openmp as shown in the following example:

ifort -openmp source.f90
icc -openmp source.c
icpc -openmp source.C

If you do the compilation and the linking separately, you must also specify the option -openmp at the linking. For example:

ifort -c -openmp source1.f  
ifort -c source2.f
icc -c source3.c
ifort -openmp source1.o source2.o source3.o

The execution of an OpenMP program can be done both in interactive and in batch.