A Fortran program can be compiled and linked using the command:
lfc
In combination with MPI the command to compile and link is:
mpilfc
The LF95 Linux PRO is especially useful to find runtime errors due to the extensive runtime diagnostics available:
-g --ap --chkglobal --pca
For details please look into the Fortran User's Guide.
Some additional features of Lahey/Fujitsu Fortran 95 v8.0 (see also:Lahey/Fujitsu Linux64 Fortran v8.0):
Automatic Parallelization:
The LF95 compiler automatically parallelizes DO loops and array operations without you having to make modifications to the program.
Four compiler switches control automatic parallelization: --parallel, --threads, --threadstack, and --ocl. Details of automatic parallelization (loop slicing, interchange, distribution, fusion, and reduction, as well as OCL syntax and specifiers) are documented in the LF95 User's Guide.
OpenMP Compatibility:
OpenMPspecifies a set of compiler directives, library routines, and environment variables for shared-memory parallelism in Fortran and C/C++ programs. LF95 Linux PRO v8.0 supports the OpenMP v2.0 specification for Fortran. OpenMP directives are used to parallelize a program that runs on a computer with more than one processor.