Basic HTML version of Foils prepared 26 September 1996

Foil 121 Reductions in INDEPENDENT DO Loops

From HPCC Software Technologies Fall 96 -- Overview and HPF Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 26 September 96. by Geoffrey C. Fox


Many applications of INDEPENDENT DO loops do require reductions as they are typically calculating independently quantities but storing results as parts of various averages
e.g. in High Enegry Physics Data Analysis, each measured event can be computed via an INDEPENDENT DO but one wishes to find a particular observable (histogram, scatterplot) which is averaged over each event
Financial modelling is similar
x = 0
!HPF$ INDEPENDENT, NEW(xinc), REDUCTION(x)
do i = 1 , N
  • call sub(i, xinc)
  • x = x + xinc
END DO
xinc is a separate new variable each iteration but result is accumulated into global x



© 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 Feb 22 1998