Basic HTML version of Foils prepared August 7 98

Foil 5 The Multi-Statement FORALL

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


1 Syntax:
  • FORALL ( index-spec-list [, mask] )
    • forall-body-list
  • END FORALL
  • forall-body can be a forall-assignment, FORALL, or WHERE
2 Semantics:
  • Multi-statement FORALL is shorthand for a series of single-statement FORALLs
  • Multi-statement FORALLs can be nested to produce more complex iteration spaces
  • Each bottom-level assignment statement is completed before the next one starts
3 Note: FORALL is not a general-purpose parallel loop!

in Table To:


© 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