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_wrap28643

If an array, A has tex2html_wrap_inline28635 elements and is mapped onto tex2html_wrap_inline28637 processors each processor gets a block of (a maximum) of tex2html_wrap28629 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

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