next up previous contents
Next: Input and Output Up: Data Parallel Execution Previous: Visualisation of New Variables

 

New Variables Example 2

Variable list specifies temporaries to use in INDEPENDENT loops, for example,

    !HPF$ INDEPENDENT, NEW (i2)
    DO i1 = 1, n1
     !HPF$ INDEPENDENT, NEW (i3)
     DO i2 = 1, n2
      !HPF$ INDEPENDENT, NEW (i4)
      DO i3 = 1, n3
       DO i4 = 1, n4 
        a(i1,i2,i3) = a(i1,i2,i3) &
          + b(i1,i2,i4)*c(i2,i3,i4)
       END DO
      END DO
     END DO
    END DO

Inner loop not INDEPENDENT as a(i1,i2,i3) is assigned to repeatedly.

For more information, click here gif


next up previous contents
Next: Input and Output Up: Data Parallel Execution Previous: Visualisation of New Variables

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