next up previous contents
Next: Calls to the NAG Up: Extrinsics Previous: Uses of Extrinsics

 

Extrinsic instead of INDEPENDENT

The INDEPENDENT directive is currently not implemented by most compilers. Assuming the loop implies no communication an EXTRINSIC can be used to achieve the same functionality:

 !HPF$ DISTRIBUTE A(*,CYCLIC)
....
 !HPF$ INDEPENDENT, NEW(i)
 DO j = 1, n
  DO i = 1, m
   ! ... stuff missing
   A(i,j) =
   ! ... stuff missing
  END DO
 END DO
....

the loop can be replaced by a call to the EXTRINSIC Ext_Loop:

....
 CALL Ext_Loop(A,...)
....

The EXTRINSIC contains the loop with n and m modified.

For more information, click here gif

Now try this question gif


next up previous contents
Next: Calls to the NAG Up: Extrinsics Previous: Uses of Extrinsics

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