Basic HTML version of Foils prepared August 7 98

Foil 25 Examples of Incorrect
INDEPENDENT Assertions

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


INDEPENDENT does not handle reductions
  • !HPF$ INDEPENDENT
  • DO i = 1, n
    • x = x + a(i)*a(i)
  • END DO
INDEPENDENT does not know about higher-level correctness
  • DO WHILE (err > err_tol)
    • !HPF$ INDEPENDENT
    • DO i = 2, n-1
    • b(i) = a(i)
    • a(i) = 0.5 * (a(i-1) + a(i+1))
    • b(i) = ABS(b(i) - a(i))
    • END DO
    • err = MAXVAL(b(2:n-1))
  • 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