Basic HTML version of Foils prepared August 7 98

Foil 27 Why Use INDEPENDENT?

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


Yet another way to do (some) array assignments
  • !HPF$ INDEPENDENT
  • DO i = 1, n
    • a(i) = b(i)
  • END DO
Express application-dependent information
  • ! ³colors² don't interfere with each other
  • !HPF$ INDEPENDENT, NEW(ix, i1,i2,f12)
  • DO i = 1, ncolor
    • DO ix = color_beg(i), color_end(i)
    • i1 = icolor(ix,1)
    • i2 = icolor(ix,2)
    • f12 = w(i1)-w(i2)
    • x(i1) = x(i1) + f12
    • x(i2) = x(i2) - f12
    • END DO
  • END DO



© 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