Basic HTML version of Foils prepared August 7 98

Foil 19 A. INDEPENDENT directives
The INDEPENDENT Directive

From DoD HPF Training -- 3. Parallel Constructs in HPF DoD Training and Others -- 1995-98. by Chuck Koelbel -- Rice University


Syntax:
  • !HPF$ INDEPENDENT [ , NEW( variable-list ) ]
Semantics:
  • INDEPENDENT is an assertion that no iteration affects any other iteration in any way
  • NEW variables are treated as if they were allocated anew for each iteration (DO only)
  • Applied to a DO: states that there are no loop carried dependences (except for NEW variables)
  • Applied to a FORALL: states that no index point assigns to any location that another uses
  • If the assertion is false, the program is not standard-conforming (i.e. results are not defined)
Note: INDEPENDENT is not a general parallel loop!



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Aug 9 1998