Compiling parallelized XL C/C++ applications

XL C/C++ provides thread-safe compiler invocation commands that you can use when compiling 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 thread-safe components and libraries. The generic XL C/C++ thread-safe compiler invocations include:
  • xlC_r
  • xlc++_r
  • xlc_r

XL C/C++ provides additional thread-safe invocations to meet specific compilation requirements. See Invoking the compiler for more information.

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 thread-safe 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 Parallelizing your programs.