Basic HTML version of Foils prepared August 7 98

Foil 23 Example of Asynchronous I/O

From DoD HPF Training -- 6. HPF2 DoD Training and Others -- 1995-98. by Chuck Koelbel -- Rice University


i0 = 0; i1 = 1
READ (file0, ID=id0, END=100) a(i0,1:1048576)
DO
  • WAIT (ID=id0, END=100)
  • ! start next read into other row
  • itmp = i0; i0 = i1; i1 = itmp
  • READ (file0, ID=id0, END=100) a(i0,1:1048576)
  • ! overlap I/O with useful work
  • CALL PROCESSING( a(i1,1:1048576) )
END DO
100 CONTINUE



© 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