next up previous contents
Next: The Owner-Computes Rule Up: Data Distribution Previous: Commentary

Distribution of Allocatables

Directives take effect at allocation, for example,

    REAL, ALLOCATABLE, DIMENSION(:,:) :: A
    INTEGER                           :: ierr
!HPF$ PROCESSORS, DIMENSION(10,10)    :: P
!HPF$ DISTRIBUTE (BLOCK,CYCLIC)       :: A
      ...
     ALLOCATE(A(100,20),stat=ierr)
!---> A automatically distributed here
!     block size in dim=1 is 10 elements
!     ...
     DEALLOCATE(A)
    END

The blocksize is determined immediately after allocation.

Once allocated, these arrays behave in the same way as regular arrays.

For more information, click here gif

Now try this question gif


next up previous contents
Next: The Owner-Computes Rule Up: Data Distribution Previous: Commentary

Adam Marshall ©University of Liverpool, 1996
Tue Nov 26 19:51:50 GMT 1996