104.哑参数的典型映射
|
|
- 选项一: 每次传送全部数组
- SUBROUTINE smooth(r,u,f,nx,ny)
REAL r(nx,ny), u(nx,ny), f(nx,ny)
!HPF$ DISTRIBUTE u*(BLOCK, BLOCK)
!HPF$ ALIGN WITH *u(i,j) :: r(i,j), f(i,j)
- 选项二: 传送数组的一部分
- SUBROUTINE smooth(r,u,f)
REAL r(:,:), u(:,:), f(:,:)
!HPF$ INHERIT r,u,f
!HPF$ DISTRIBUTE *(BLOCK, BLOCK) ::r,u,f
Copyright: NPACT |
|