Next: Scalar Arguments
Up: Procedures
Previous: Array Arguments Example 2
If a dimension has a scalar index it is collapsed. Consider,
!HPF$ DISTRIBUTE (BLOCK,BLOCK) :: A, B
...
CALL Xubbie(A(i,:),b(i,:))
...
SUBROUTINE Xubbie(x,y)
REAL, DIMENSION(:) :: x, y
!HPF$ DISTRIBUTE (BLOCK) :: x, y
Will cause remapping. With 16 processors:
- actual arguments are distributed over 4 processors,
- on entry x and y will be redistributed over 16 processors,
- on exit x and y will be mapped in same way as actual argument,
For more information, click here
Next: Scalar Arguments
Up: Procedures
Previous: Array Arguments Example 2
©University of Liverpool, 1997
Wed May 28 23:37:18 BST 1997Not for commercial use.