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_wrap44917

If an array, A has tex2html_wrap_inline44893 elements and is mapped onto tex2html_wrap_inline44895 processors each processor gets (a maximum) total of tex2html_wrap44887 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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 18:56:08 GMT 1996
Not for commercial use.