next up previous contents
Next: Visualisation of 2D Gaussian Up: Alignment and Distribution Previous: Replicating Dimensions

 

Gaussian Elimination - 2D Grid

Consider kernel:

     ...
    DO j = i+1, n
     A(j,i) = A(j,i)/Swap(i)
     A(j,i+1:n) = A(j,i+1:n) - A(j,i)*Swap(i+1:n)
     Y(j) = Y(j) - A(j,i)*Temp
    END DO

Want to minimise communications in loop:

!HPF$ ALIGN Y(:) WITH A(:,*)      
      ! Y aligned with each col of A
!HPF$ ALIGN Swap(:) WITH A(*,:)   
      ! Swap aligned with each row of A
!HPF$ DISTRIBUTE A(CYCLIC,CYCLIC) ! onto default grid

CYCLIC gives a good load balance.

For more information, click here gif


next up previous contents
Next: Visualisation of 2D Gaussian Up: Alignment and Distribution Previous: Replicating Dimensions

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