3.4 Compiling a Program for Parallel Execution Using kapf

To compile a program for parallel execution using kapf , use the following commands:

kapf /conc /cmp=myprog_mp.f myprog.f

fort myprog_mp.f /fast/optimize=(tune=host,level=5) /automatic

link myprog_cmp.obj/threads_enable/EXECUTABLE=myprog.exe,SYS$COMMON:[SYSLIB]kmp/lib

An explanation of the compiler and linker qualifiers follows:


Note
When you use kapf to process a file, you must set the Digital Fortran compiler and linker qualifiers appropriately. For this reason, Digital recommends that you use kfort whenever possible, as kfort automatically sets the compiler and linker qualifiers correctly.


Previous Page | Next Page | Contents | Index |
Command-Line Qualifiers