Basic HTML version of Foils prepared 17 Sept 1996

Foil 66 Multiple Statement FORALL's

From New CPS615HPF and Fortran90 Discussion Sept 17 96 Basic Simulation Track for Computational Science CPS615 -- Fall Semester 96. by Geoffrey C. Fox, Tom Haupt


1 FORALL( index-spec-list [,mask-expr] )
2 forall-body
3 END FORALL
4 where forall-body can be a list of forall-assignment statements, FORALL or WHERE statements
5 So Multi-Statement FORALL's support nesting of FORALL's but
6 is in general Shorthand for a sequence of single statement FORALL's with by definition each statement completed before next one begins
7 The multi-statement FORALL is likely to be more efficient than several single statement ones as latter have synchronization overhead on each statement

in Table To:


© on Tue Oct 7 1997