Basic HTML version of Foils prepared
August 7 98
Foil 27 Why Use ALIGN?
From
DoD HPF Training -- 4. HPF Data Mapping Facilities DoD Training and Others --
1995-98
.
by
Chuck Koelbel -- Rice University
³Copy² distributions
DISTRIBUTE one array as the ³master² for data layout
ALIGN other arrays to it
Just modify one line to change all the distributions
This will be common when porting codes!
Off-by-one problems
Sometimes boundaries get in the way of DISTRIBUTE
Differing array sizes
Will the compiler handle this better?
REAL a(16), b(8)
!HPF$ ALIGN b(i) WITH a(2*i)
!HPF$ DISTRIBUTE a(BLOCK)
Or this?
REAL a(16), b(8)
!HPF$ DISTRIBUTE a(BLOCK), b(BLOCK)
©
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