Scripted HTML version of Foils prepared 27 December 1996

Foil 17 Advanced Mapping Directives -- Allocatable arrays and pointers

From CPS615-Align and Distribute in HPF Delivered Lectures of CPS615 Basic Simulation Track for Computational Science -- 1 October 96. by Geoffrey C. Fox *
Secs 152.6
!HPF$ PROCESSORS Q(64)
!HPF$ ALIGN B(I) WITH A(I+N)
!HPF$ DISTRIBUTE A(BLOCK(M))
!HPF$ DISTRIBUTE(BLOCK), DYNAMIC :: P
  • ...
  • ALLOCATE(A(128))
  • ALLOCATE(B(64))
  • ALLOCATE(P(1024))
  • ...
!HPF$ REDISTRIBUTE P(CYCLIC)
  • ...
  • RETURN
  • END



© 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 Fri Aug 15 1997