2005-01-18 19:15:55 +03:00
|
|
|
#! /bin/sh
|
|
|
|
|
2005-08-24 06:11:02 +04:00
|
|
|
. "$1/fortran_kinds.sh"
|
2005-01-18 19:15:55 +03:00
|
|
|
|
|
|
|
procedure='MPI_Win_create'
|
|
|
|
|
|
|
|
rank=0
|
|
|
|
for kind in $lkinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DL${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " logical(kind=MPI_INTEGER${kind}_KIND), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
rank=0
|
|
|
|
for kind in $ikinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DI${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " integer(kind=MPI_INTEGER${kind}_KIND), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
rank=0
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DR${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " real(kind=MPI_REAL${kind}_KIND), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
rank=0
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DC${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " complex(kind=MPI_REAL${kind}_KIND), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
for rank in $ranks
|
|
|
|
do
|
|
|
|
case "$rank" in 1) dim=':' ; esac
|
|
|
|
case "$rank" in 2) dim=':,:' ; esac
|
|
|
|
case "$rank" in 3) dim=':,:,:' ; esac
|
|
|
|
case "$rank" in 4) dim=':,:,:,:' ; esac
|
|
|
|
case "$rank" in 5) dim=':,:,:,:,:' ; esac
|
|
|
|
case "$rank" in 6) dim=':,:,:,:,:,:' ; esac
|
|
|
|
case "$rank" in 7) dim=':,:,:,:,:,:,:' ; esac
|
|
|
|
|
|
|
|
for kind in $lkinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DL${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " logical(kind=MPI_INTEGER${kind}_KIND), dimension(${dim}), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
for kind in $ikinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DI${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " integer(kind=MPI_INTEGER${kind}_KIND), dimension(${dim}), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DR${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " real(kind=MPI_REAL${kind}_KIND), dimension(${dim}), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
|
|
|
proc="${procedure}${rank}DC${kind}"
|
|
|
|
echo "subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
echo " use mpi_kinds"
|
|
|
|
echo " complex(kind=MPI_REAL${kind}_KIND), dimension(${dim}), intent(in) :: base"
|
|
|
|
echo " integer(kind=MPI_ADDRESS_KIND), intent(in) :: size"
|
|
|
|
echo " integer, intent(in) :: disp_unit"
|
|
|
|
echo " integer, intent(in) :: info"
|
|
|
|
echo " integer, intent(in) :: comm"
|
|
|
|
echo " integer, intent(in) :: win"
|
|
|
|
echo " integer, intent(out) :: ierr"
|
|
|
|
echo " call ${procedure}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)"
|
|
|
|
|
|
|
|
echo "end subroutine ${proc}"
|
|
|
|
echo
|
|
|
|
done
|
|
|
|
done
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
|