next up previous contents
Next: 2D Distribution Example Up: Data Distribution Previous: Block Distribution

 

Cyclic Distribution

Deal out elements of an array to processors in a round robin fashion

        PROGRAM Round_Robin
         REAL, DIMENSION(20)      :: A
 !HPF$ PROCESSORS, DIMENSION(4)   :: P
 !HPF$ DISTRIBUTE (CYCLIC) ONTO P :: A
   ....

tex2html_wrap28659

If an array, A has tex2html_wrap_inline28635 elements and is mapped onto tex2html_wrap_inline28637 processors each processor gets (a maximum) total of tex2html_wrap28629 separate elements.

In this case each processor gets five elements.

For more information, click here gif


next up previous contents
Next: 2D Distribution Example Up: Data Distribution Previous: Block Distribution

©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997
Not for commercial use.