Compiling parallelized XL Fortran applications

XL Fortran provides threadsafe compiler invocation commands to compile parallelized applications for use in multiprocessor environments.

These invocations are similar to their corresponding base compiler invocations, except that they link and bind compiled objects to threadsafe components and libraries. The generic XL Fortran threadsafe compiler invocation is as follow:
  • xlf_r

XL Fortran provides additional threadsafe invocations to meet specific compilation requirements. For more information, see Compiling XL Fortran programs.

Note: Using any of these commands alone does not imply parallelization. For the compiler to recognize OpenMP directives and activate parallelization, you must also specify -qsmp compiler option. In turn, you should specify the -qsmp option only in conjunction with one of these threadsafe invocation commands. When you specify -qsmp, the driver links in the libraries specified on the smp libraries line in the active stanza of the configuration file.

For more information on parallelized applications, see Parallel programming .

POSIX Pthreads API support

XL Fortran supports thread programming with the IEEE 1003.1-2001 (POSIX) standard Pthreads API.