next up previous contents
Next: Forall and Independent Loops Up: Alignment and Distribution Previous: Aligning Scalars

 

Explicit Replication Using Templates

If an array is not explicitly distributed it is given the default mapping. This is often, but not always, replication. It is often prudent to explicitly replicate objects if this is what is desired.

To force replication of an array, A:

For example,

      REAL, DIMENSION(100,100)   :: A
!HPF$ PROCESSORS, DIMENSION(NUMBER_OF_PROCESSORS()) :: P
!HPF$ TEMPLATE, DIMENSION(NUMBER_OF_PROCESSORS())   :: T
!HPF$ ALIGN A(*,*) WITH T(*)
!HPF$ DISTRIBUTE (BLOCK) :: T


next up previous contents
Next: Forall and Independent Loops Up: Alignment and Distribution Previous: Aligning Scalars

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 15:03:35 GMT 1996
Not for commercial use.