3.5 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

The compiler and linker qualifiers are as follows:


Note
When you use kapf to process a file, you must set the Fortran compiler and linker qualifiers appropriately. For this reason, Compaq 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

Copyright © Digital Equipment Corporation. 1999. All Rights Reserved.