3.2 Directed Parallelization Using the kf77 Driver and PCF Directives

Use directed parallelization if you are experienced with parallel programming, and you want to explicitly control which loops KAP parallelizes with PCF directives. PCF directives eliminate the need for you to write calls to directives.

In general, use PCF directives only with loops that are safe to parallelize. Where KAP sees loops prefaced with PCF directives, it does not perform data dependence analysis and does not prevent you from using a parallel directive incorrectly.

To compile a program with PCF directives for directed parallel execution, use the compiler and linker switches for your version of DIGITAL UNIX as follows:


Note
To determine the version of DIGITAL UNIX on your system, use the following cshell command:
uname -r

KAP provides the following PCF directives. Refer to the appropriate sections for explanations and code examples as follows:


C*KAP* ONE PROCESSOR SECTION . . . END ONE PROCESSOR SECTION (See Section 3.2.7.)
C*KAP* PARALLEL REGION . . . END PARALLEL REGION (See Section 3.2.2.)
C*KAP* PARALLEL DO (See Section 3.2.3.)
C*KAP* CRITICAL SECTION . . . END CRITICAL SECTION (See Section 3.2.6.)


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

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