Basic HTML version of Foils prepared August 7 98

Foil 24 Examples of Correct
INDEPENDENT Assertions

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


Always true
  • !HPF$ INDEPENDENT
  • FORALL (i=2:n-1) a(i)=b(i-1)+b(i)+b(i+1)
  • !HPF$ INDEPENDENT, NEW(j)
  • DO k = 2, m-1, 2
    • !HPF$ INDEPENDENT, NEW(vl,vr)
    • DO j = 2, n-1, 2
    • vr = x(j,k) - x(j-1,k)
    • vl = x(j+1,k) - x(j,k)
    • x(j,k) = x(j,k) + 0.5*(vr-vl)
    • END DO
  • END DO
Some compilers will catch these on their own; some won't



© 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