next up previous contents
Next: Cyclic Distribution Up: Data Distribution Previous: DISTRIBUTE Directive

Block Distribution

Give equal sized chunks of an array to each processor. For example,

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

tex2html_wrap44901

If an array, A has tex2html_wrap_inline44893 elements and is mapped onto tex2html_wrap_inline44895 processors each processor gets a block of (a maximum) of tex2html_wrap44887 elements.

In this case each processor gets five elements.

For more information, click here gif


next up previous contents
Next: Cyclic Distribution Up: Data Distribution Previous: DISTRIBUTE Directive

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