Basic HTML version of Foils prepared August 7 98

Foil 20 An Example of INDEPENDENT

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


1 Initially,
  • a = [0, 2, 4, 6, 1, 3, 5, 7]
  • b = [6, 5, 4, 3, 2, 3, 4, 5]
  • c = [-1,-1,-1,-1,-1,-1,-1,-1]
2 !HPF$ INDEPENDENT
3 DO j = 1, 3
  • a(j) = a(b(j))
  • c(a(j)) = a(j)*b(a(j))
4 END DO
5 Afterwards,
  • a = [3, 1, 6, 6, 1, 3, 5, 7]
  • b = [6, 5, 4, 3, 2, 3, 4, 5]
  • c = [6,-1,12,-1,-1,18,-1,-1]

in Table To:


© 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