Next: Block Distribution
Up: Data Distribution
Previous: PROCESSORS Declaration
Distribute objects ONTO processor grids:
REAL, DIMENSION(50) :: A
REAL, DIMENSION(10,10) :: B, C, D
!HPF$ DISTRIBUTE (BLOCK) ONTO P1 :: A !1-D
!HPF$ DISTRIBUTE (CYCLIC,CYCLIC) ONTO P2 :: B,C !2-D
!HPF$ DISTRIBUTE D(BLOCK,*) ONTO P1 ! alt. syntax
There must be the same number of non-* distributed dimensions as the
rank of the grid.
- BLOCK means give a continuous and, as far as possible,
equal sized block of elements to each processor,
- CYCLIC means deal the elements out one at a time in a
round-robin fashion,
- * means `give this whole dimension to the processor'.
If an object is distributed then it is said to be mapped (or have
a mapping).
For more information, click here
Next: Block Distribution
Up: Data Distribution
Previous: PROCESSORS Declaration
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.