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


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



© on Tue Oct 7 1997