next up previous contents
Next: Other Mappings Up: Data Distribution Previous: Examples of Good Distributions

 

Successive Over Relaxation Example

Successive over relaxation is used in many HPF kernels:

 DO j = 2,n-1
   DO i = 2,n-1
      a(i,j)=(omega/4)*(a(i,j-1)+a(i,j+1)+ &
              a(i-1,j)+a(i+1,j))+(1-omega)*a(i,j)
   END DO
 END DO

The calculation of a(i,j) uses its 4 neighbours.

tex2html_wrap28671

BLOCK distribution in both dimensions will be the most effective distribution here.

For more information, click here gif

Now try this question gif


next up previous contents
Next: Other Mappings Up: Data Distribution Previous: Examples of Good Distributions

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