3.3 Running a Parallel Program

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

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. kcc /ckapargs=(/conc) myprog.c define PARALLEL 1

  2. kcc /ckapargs=(/noconc) myprog.c
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