3.5 Running a Parallel Program

To run a parallel program compiled by KAP on an SMP system, you must define the following logicals:


Note
A program optimized to run with multiple threads may run more slowly as a single-thread process. There are two ways you can compile a program as a single-threaded process:

  1. kfort /fkapargs=(/conc) myprog.f define PARALLEL 1

  2. kfort /fkapargs=(/noconc) myprog.f
Either way may result in a performance increase or decrease of as much as 30% depending on your program.


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