Ada: Automatic parallelization of a program in Fortran

The Fortran compiler can try to automatically parallelize your sequential programs: The compiler will attempt to parallelize explicitly coded DO loops as well as those that are generated by the compiler for Fortran 90 array language. This is a parallelization in shared memory, that is, intra-node.

To obtain an automatically parallelized executable file, use the option -parallel. This option should appear for the compiling and linking steps. For example, you can have in a Makefile :

FC = ifort
FFLAGS = -parallel -par-report3
LDFLAGS = -parallel

Ref. Our page on the execution of such a program.

Remark: The option -par-report3 allows obtaining the parallelization details.