Compiling XL Fortran SMP programs

You can use the xlf_r, xlf_r7, xlf90_r, xlf90_r7, xlf95_r, xlf95_r7, xlf2003_r, or xlf2008_r command to compile XL Fortran SMP programs. The xlf_r and xlf_r7 commands are similar to the xlf command; the xlf90_r and xlf90_r7 commands are similar to the xlf90 command; the xlf95_r and xlf95_r7 commands are similar to the xlf95 command; the xlf2003_r command is similar to the xlf2003 command; the xlf2008_r command is similar to the xlf2008 command. The main difference is that the components for multi-threading (libraries, crt0_r.o, and so on) are used to link and bind the object files if you specify the xlf_r, xlf_r7, xlf90_r, xlf90_r7, xlf95_r, xlf95_r7, xlf2003_r, or xlf2008_r command.

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



Voice your opinion on getting help information Ask IBM compiler experts a technical question in the IBM XL compilers forum Reach out to us