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_wrap44929

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

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