2004-11-19 02:58:42 +03:00
|
|
|
#! /bin/sh
|
2005-04-12 14:17:52 +04:00
|
|
|
#
|
2006-03-04 17:24:44 +03:00
|
|
|
# Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
2005-11-05 22:57:48 +03:00
|
|
|
# University Research and Technology
|
|
|
|
# Corporation. All rights reserved.
|
2006-04-11 07:33:38 +04:00
|
|
|
# Copyright (c) 2004-2006 The Regents of the University of California.
|
2005-04-12 14:17:52 +04:00
|
|
|
# All rights reserved.
|
2006-04-11 07:33:38 +04:00
|
|
|
# Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
|
2005-04-12 14:17:52 +04:00
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
# Do a little error checking
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-05-16 19:00:23 +04:00
|
|
|
if test ! -f "$1/fortran_kinds.sh"; then
|
2006-04-11 07:33:38 +04:00
|
|
|
echo "ERROR: Cannot find fortran_kinds.sh" >&2
|
2005-04-11 19:28:59 +04:00
|
|
|
exit 1
|
2006-05-16 19:00:23 +04:00
|
|
|
elif test -z "$1/fortran_kinds.sh"; then
|
2006-04-11 07:33:38 +04:00
|
|
|
echo "ERROR: fortran_kinds.sh appears to be empty!" >&2
|
2005-04-11 19:28:59 +04:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
# Read in the KIND information
|
2005-04-12 14:17:52 +04:00
|
|
|
|
2006-05-17 20:31:25 +04:00
|
|
|
. "$1/fortran_kinds.sh"
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
# Setup
|
2006-02-14 16:29:18 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
output=1
|
|
|
|
allranks="0 $ranks"
|
2005-11-10 19:04:39 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-11-10 19:04:39 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
# Helper functions
|
2006-02-14 16:29:18 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start() {
|
|
|
|
check_size $2
|
|
|
|
if test "$output" = "1"; then
|
|
|
|
echo "interface $1"
|
|
|
|
fi
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
end() {
|
|
|
|
if test "$output" = "1"; then
|
|
|
|
cat <<EOF
|
|
|
|
end interface $1
|
2005-04-12 14:17:52 +04:00
|
|
|
|
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
fi
|
2005-04-12 14:17:52 +04:00
|
|
|
}
|
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_1() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, errorcode, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: errorcode
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Abort small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_1 MPI_Abort
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Abort
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_2() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(origin_addr, origin_count, origin_datatype, target_rank, target_disp, &
|
|
|
|
target_count, target_datatype, op, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: origin_addr
|
|
|
|
integer, intent(in) :: origin_count
|
|
|
|
integer, intent(in) :: origin_datatype
|
|
|
|
integer, intent(in) :: target_rank
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: target_disp
|
|
|
|
integer, intent(in) :: target_count
|
|
|
|
integer, intent(in) :: target_datatype
|
|
|
|
integer, intent(in) :: op
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Accumulate medium
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_2 MPI_Accumulate ${rank} CH "character${dim}"
|
|
|
|
output_2 MPI_Accumulate ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_2 MPI_Accumulate ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_2 MPI_Accumulate ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_2 MPI_Accumulate ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Accumulate
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_3() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(errorclass, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: errorclass
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Add_error_class small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_3 MPI_Add_error_class
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Add_error_class
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_4() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(errorclass, errorcode, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: errorclass
|
|
|
|
integer, intent(out) :: errorcode
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-11-10 19:04:39 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Add_error_code small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_4 MPI_Add_error_code
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Add_error_code
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_5() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(errorcode, string, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: errorcode
|
|
|
|
character(len=*), intent(in) :: string
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Add_error_string small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_5 MPI_Add_error_string
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Add_error_string
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_6() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(location, address, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: location
|
|
|
|
integer, intent(out) :: address
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Address medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_6 MPI_Address ${rank} CH "character${dim}"
|
|
|
|
output_6 MPI_Address ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_6 MPI_Address ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_6 MPI_Address ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_6 MPI_Address ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Address
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_7() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(sendbuf, sendcount, sendtype, recvbuf, recvcount, &
|
|
|
|
recvtype, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcount
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: recvcount
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Allgather large
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_7 MPI_Allgather ${rank} CH "character${dim}"
|
|
|
|
output_7 MPI_Allgather ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_7 MPI_Allgather ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_7 MPI_Allgather ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_7 MPI_Allgather ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Allgather
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_8() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(sendbuf, sendcount, sendtype, recvbuf, recvcounts, &
|
|
|
|
displs, recvtype, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcount
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, dimension(*), intent(in) :: recvcounts
|
|
|
|
integer, dimension(*), intent(in) :: displs
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Allgatherv large
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_8 MPI_Allgatherv ${rank} CH "character${dim}"
|
|
|
|
output_8 MPI_Allgatherv ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_8 MPI_Allgatherv ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_8 MPI_Allgatherv ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_8 MPI_Allgatherv ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Allgatherv
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-11-10 19:04:39 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_9() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(size, info, baseptr, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: size
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: baseptr
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Alloc_mem medium
|
2006-04-28 02:46:48 +04:00
|
|
|
output_9 MPI_Alloc_mem
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Alloc_mem
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_10() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, recvbuf, count, datatype, op, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: op
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Allreduce large
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_10 MPI_Allreduce ${rank} CH "character${dim}"
|
|
|
|
output_10 MPI_Allreduce ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_10 MPI_Allreduce ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_10 MPI_Allreduce ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_10 MPI_Allreduce ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Allreduce
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_11() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(sendbuf, sendcount, sendtype, recvbuf, recvcount, &
|
|
|
|
recvtype, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcount
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: recvcount
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Alltoall large
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_11 MPI_Alltoall ${rank} CH "character${dim}"
|
|
|
|
output_11 MPI_Alltoall ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_11 MPI_Alltoall ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_11 MPI_Alltoall ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_11 MPI_Alltoall ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Alltoall
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_12() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(sendbuf, sendcounts, sdispls, sendtype, recvbuf, &
|
|
|
|
recvcounts, rdispls, recvtype, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, dimension(*), intent(in) :: sendcounts
|
|
|
|
integer, dimension(*), intent(in) :: sdispls
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, dimension(*), intent(in) :: recvcounts
|
|
|
|
integer, dimension(*), intent(in) :: rdispls
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Alltoallv large
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_12 MPI_Alltoallv ${rank} CH "character${dim}"
|
|
|
|
output_12 MPI_Alltoallv ${rank} L "logical${dim}"
|
2005-01-15 01:07:15 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_12 MPI_Alltoallv ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_12 MPI_Alltoallv ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_12 MPI_Alltoallv ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Alltoallv
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_13() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(sendbuf, sendcounts, sdispls, sendtypes, recvbuf, &
|
|
|
|
recvcounts, rdispls, recvtypes, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, dimension(*), intent(in) :: sendcounts
|
|
|
|
integer, dimension(*), intent(in) :: sdispls
|
|
|
|
integer, dimension(*), intent(in) :: sendtypes
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, dimension(*), intent(in) :: recvcounts
|
|
|
|
integer, dimension(*), intent(in) :: rdispls
|
|
|
|
integer, dimension(*), intent(in) :: recvtypes
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Alltoallw large
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_13 MPI_Alltoallw ${rank} CH "character${dim}"
|
|
|
|
output_13 MPI_Alltoallw ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_13 MPI_Alltoallw ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_13 MPI_Alltoallw ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_13 MPI_Alltoallw ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Alltoallw
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_14() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Attr_delete small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_14 MPI_Attr_delete
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Attr_delete
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_15() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, keyval, attribute_val, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: keyval
|
|
|
|
integer, intent(out) :: attribute_val
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Attr_get small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_15 MPI_Attr_get
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Attr_get
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_16() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, keyval, attribute_val, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: keyval
|
|
|
|
integer, intent(in) :: attribute_val
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Attr_put small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_16 MPI_Attr_put
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Attr_put
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_17() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Barrier small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_17 MPI_Barrier
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Barrier
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_18() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buffer, count, datatype, root, comm&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buffer
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Bcast medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_18 MPI_Bcast ${rank} CH "character${dim}"
|
|
|
|
output_18 MPI_Bcast ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_18 MPI_Bcast ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_18 MPI_Bcast ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_18 MPI_Bcast ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Bcast
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_19() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Bsend medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_19 MPI_Bsend ${rank} CH "character${dim}"
|
|
|
|
output_19 MPI_Bsend ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_19 MPI_Bsend ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_19 MPI_Bsend ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_19 MPI_Bsend ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Bsend
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_20() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Bsend_init medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_20 MPI_Bsend_init ${rank} CH "character${dim}"
|
|
|
|
output_20 MPI_Bsend_init ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_20 MPI_Bsend_init ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_20 MPI_Bsend_init ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_20 MPI_Bsend_init ${rank} C${kind} "complex*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Bsend_init
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_21() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(buffer, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buffer
|
|
|
|
integer, intent(in) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Buffer_attach medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_21 MPI_Buffer_attach ${rank} CH "character${dim}"
|
|
|
|
output_21 MPI_Buffer_attach ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_21 MPI_Buffer_attach ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_21 MPI_Buffer_attach ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_21 MPI_Buffer_attach ${rank} C${kind} "complex*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Buffer_attach
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_22() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buffer, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(out) :: buffer
|
|
|
|
integer, intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Buffer_detach medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_22 MPI_Buffer_detach ${rank} CH "character${dim}"
|
|
|
|
output_22 MPI_Buffer_detach ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_22 MPI_Buffer_detach ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_22 MPI_Buffer_detach ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_22 MPI_Buffer_detach ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Buffer_detach
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_23() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cancel small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_23 MPI_Cancel
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cancel
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_24() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, rank, maxdims, coords, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: rank
|
|
|
|
integer, intent(in) :: maxdims
|
|
|
|
integer, dimension(*), intent(out) :: coords
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cart_coords small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_24 MPI_Cart_coords
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cart_coords
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_25() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(old_comm, ndims, dims, periods, reorder, &
|
|
|
|
comm_cart, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: old_comm
|
|
|
|
integer, intent(in) :: ndims
|
|
|
|
integer, dimension(*), intent(in) :: dims
|
|
|
|
integer, dimension(*), intent(in) :: periods
|
|
|
|
integer, intent(in) :: reorder
|
|
|
|
integer, intent(out) :: comm_cart
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cart_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_25 MPI_Cart_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cart_create
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_26() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, maxdims, dims, periods, coords&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: maxdims
|
|
|
|
integer, dimension(*), intent(out) :: dims
|
|
|
|
integer, dimension(*), intent(out) :: periods
|
|
|
|
integer, dimension(*), intent(out) :: coords
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cart_get small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_26 MPI_Cart_get
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cart_get
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_27() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, ndims, dims, periods, newrank&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: ndims
|
|
|
|
integer, dimension(*), intent(in) :: dims
|
|
|
|
integer, dimension(*), intent(in) :: periods
|
|
|
|
integer, intent(out) :: newrank
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cart_map small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_27 MPI_Cart_map
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cart_map
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_28() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, coords, rank, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, dimension(*), intent(in) :: coords
|
|
|
|
integer, intent(out) :: rank
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cart_rank small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_28 MPI_Cart_rank
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cart_rank
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_29() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, direction, disp, rank_source, rank_dest&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: direction
|
|
|
|
integer, intent(in) :: disp
|
|
|
|
integer, intent(out) :: rank_source
|
|
|
|
integer, intent(out) :: rank_dest
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cart_shift small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_29 MPI_Cart_shift
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cart_shift
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_30() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, remain_dims, new_comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, dimension(*), intent(in) :: remain_dims
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: new_comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cart_sub small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_30 MPI_Cart_sub
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cart_sub
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_31() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, ndims, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ndims
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Cartdim_get small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_31 MPI_Cartdim_get
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Cartdim_get
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_32() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, errorcode, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: errorcode
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_call_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_32 MPI_Comm_call_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_call_errhandler
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_33() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm1, comm2, result, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm1
|
|
|
|
integer, intent(in) :: comm2
|
|
|
|
integer, intent(out) :: result
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_compare small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_33 MPI_Comm_compare
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_compare
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_34() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, group, newcomm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(out) :: newcomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_34 MPI_Comm_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_create
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_35() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(function, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: function
|
|
|
|
integer, intent(out) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_create_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_35 MPI_Comm_create_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_create_errhandler
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_36() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm_copy_attr_fn, comm_delete_attr_fn, comm_keyval, extra_state, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: comm_copy_attr_fn
|
|
|
|
external :: comm_delete_attr_fn
|
|
|
|
integer, intent(out) :: comm_keyval
|
|
|
|
integer, intent(in) :: extra_state
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_create_keyval small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_36 MPI_Comm_create_keyval
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_create_keyval
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_37() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, comm_keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: comm
|
|
|
|
integer, intent(in) :: comm_keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_delete_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_37 MPI_Comm_delete_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_delete_attr
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_38() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, newcomm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: newcomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_dup small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_38 MPI_Comm_dup
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_dup
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_39() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_39 MPI_Comm_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_free
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_40() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm_keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: comm_keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_free_keyval small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_40 MPI_Comm_free_keyval
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_free_keyval
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_41() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, comm_keyval, attribute_val, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: comm_keyval
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: attribute_val
|
2006-04-21 08:31:49 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_get_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_41 MPI_Comm_get_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_get_attr
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_42() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, erhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: erhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_get_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_42 MPI_Comm_get_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_get_errhandler
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_43() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, comm_name, resultlen, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
character(len=*), intent(out) :: comm_name
|
|
|
|
integer, intent(out) :: resultlen
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_get_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_43 MPI_Comm_get_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_get_name
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_44() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, group, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: group
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_group small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_44 MPI_Comm_group
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_group
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_45() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, rank, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: rank
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_rank small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_45 MPI_Comm_rank
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_rank
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_46() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, group, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: group
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_remote_group small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_46 MPI_Comm_remote_group
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_remote_group
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_47() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_remote_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_47 MPI_Comm_remote_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_remote_size
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_48() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, comm_keyval, attribute_val, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-05-15 21:13:20 +04:00
|
|
|
integer, intent(in) :: comm
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm_keyval
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: attribute_val
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_set_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_48 MPI_Comm_set_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_set_attr
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_49() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: comm
|
|
|
|
integer, intent(in) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_set_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_49 MPI_Comm_set_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_set_errhandler
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_50() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-10-14 23:50:30 +04:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-10-14 23:50:30 +04:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, comm_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: comm
|
|
|
|
character(len=*), intent(in) :: comm_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_set_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_50 MPI_Comm_set_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_set_name
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_51() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_51 MPI_Comm_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_size
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_52() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, color, key, newcomm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: color
|
|
|
|
integer, intent(in) :: key
|
|
|
|
integer, intent(out) :: newcomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_split small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_52 MPI_Comm_split
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_split
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_53() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: comm
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(in) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Comm_test_inter small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_53 MPI_Comm_test_inter
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_test_inter
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_54() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(nnodes, ndims, dims, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: nnodes
|
|
|
|
integer, intent(in) :: ndims
|
|
|
|
integer, dimension(*), intent(inout) :: dims
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Dims_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_54 MPI_Dims_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Dims_create
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_55() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(function, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: function
|
|
|
|
integer, intent(out) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Errhandler_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_55 MPI_Errhandler_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Errhandler_create
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_56() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Errhandler_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_56 MPI_Errhandler_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Errhandler_free
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_57() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Errhandler_get small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_57 MPI_Errhandler_get
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Errhandler_get
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_58() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Errhandler_set small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_58 MPI_Errhandler_set
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Errhandler_set
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_59() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(errorcode, errorclass, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: errorcode
|
|
|
|
integer, intent(out) :: errorclass
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Error_class small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_59 MPI_Error_class
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Error_class
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_60() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(errorcode, string, resultlen, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: errorcode
|
|
|
|
character(len=*), intent(out) :: string
|
|
|
|
integer, intent(out) :: resultlen
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Error_string small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_60 MPI_Error_string
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Error_string
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_61() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, recvbuf, count, datatype, op, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: op
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_Exscan large
|
|
|
|
|
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_61 MPI_Exscan ${rank} CH "character${dim}"
|
|
|
|
output_61 MPI_Exscan ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_61 MPI_Exscan ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_61 MPI_Exscan ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_61 MPI_Exscan ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Exscan
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_62() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, errorcode, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer, intent(in) :: errorcode
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_call_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_62 MPI_File_call_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_call_errhandler
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_63() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_close small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_63 MPI_File_close
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_close
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_64() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(function, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: function
|
|
|
|
integer, intent(out) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_create_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_64 MPI_File_create_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_create_errhandler
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_65() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(filename, info, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: filename
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_delete small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_65 MPI_File_delete
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_delete
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_66() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, amode, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer, intent(out) :: amode
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_amode small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_66 MPI_File_get_amode
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_amode
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_67() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_atomicity small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_67 MPI_File_get_atomicity
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_atomicity
|
2005-10-14 23:50:30 +04:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-10-14 23:50:30 +04:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_68() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, offset, disp, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: disp
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_byte_offset small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_68 MPI_File_get_byte_offset
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_byte_offset
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_69() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(file, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: file
|
|
|
|
integer, intent(out) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_69 MPI_File_get_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_errhandler
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_70() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, group, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer, intent(out) :: group
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_group small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_70 MPI_File_get_group
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_group
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_71() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, info_used, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer, intent(out) :: info_used
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_info small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_71 MPI_File_get_info
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_info
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_72() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, offset, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: offset
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_position small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_72 MPI_File_get_position
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_position
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_73() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(fh, offset, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: offset
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_position_shared small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_73 MPI_File_get_position_shared
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_position_shared
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-11-10 17:10:20 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_74() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-11-10 17:10:20 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_74 MPI_File_get_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_size
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_75() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, datatype, extent, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: extent
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_get_type_extent small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_75 MPI_File_get_type_extent
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_type_extent
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_76() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, disp, etype, filetype, datarep&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: disp
|
|
|
|
integer, intent(out) :: etype
|
|
|
|
integer, intent(out) :: filetype
|
|
|
|
character(len=*), intent(out) :: datarep
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_File_get_view small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_76 MPI_File_get_view
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_get_view
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_77() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, count, datatype, request&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_iread medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_77 MPI_File_iread ${rank} CH "character${dim}"
|
|
|
|
output_77 MPI_File_iread ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_77 MPI_File_iread ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_77 MPI_File_iread ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_77 MPI_File_iread ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_iread
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_78() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype, &
|
|
|
|
request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_iread_at medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_78 MPI_File_iread_at ${rank} CH "character${dim}"
|
|
|
|
output_78 MPI_File_iread_at ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_78 MPI_File_iread_at ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_78 MPI_File_iread_at ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_78 MPI_File_iread_at ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_iread_at
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_79() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, count, datatype, request&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_iread_shared medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_79 MPI_File_iread_shared ${rank} CH "character${dim}"
|
|
|
|
output_79 MPI_File_iread_shared ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_79 MPI_File_iread_shared ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_79 MPI_File_iread_shared ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_79 MPI_File_iread_shared ${rank} C${kind} "complex*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_iread_shared
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_80() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, request&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_iwrite medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_80 MPI_File_iwrite ${rank} CH "character${dim}"
|
|
|
|
output_80 MPI_File_iwrite ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_80 MPI_File_iwrite ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_80 MPI_File_iwrite ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_80 MPI_File_iwrite ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_iwrite
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_81() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype, &
|
|
|
|
request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_iwrite_at medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_81 MPI_File_iwrite_at ${rank} CH "character${dim}"
|
|
|
|
output_81 MPI_File_iwrite_at ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_81 MPI_File_iwrite_at ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_81 MPI_File_iwrite_at ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_81 MPI_File_iwrite_at ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_iwrite_at
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_82() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, request&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_iwrite_shared medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_82 MPI_File_iwrite_shared ${rank} CH "character${dim}"
|
|
|
|
output_82 MPI_File_iwrite_shared ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_82 MPI_File_iwrite_shared ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_82 MPI_File_iwrite_shared ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_82 MPI_File_iwrite_shared ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_iwrite_shared
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_83() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(comm, filename, amode, info, fh&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
character(len=*), intent(in) :: filename
|
|
|
|
integer, intent(in) :: amode
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(out) :: fh
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_open small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_83 MPI_File_open
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_open
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_84() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_preallocate small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_84 MPI_File_preallocate
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_preallocate
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_85() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_85 MPI_File_read ${rank} CH "character${dim}"
|
|
|
|
output_85 MPI_File_read ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_85 MPI_File_read ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_85 MPI_File_read ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_85 MPI_File_read ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_86() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_all medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_86 MPI_File_read_all ${rank} CH "character${dim}"
|
|
|
|
output_86 MPI_File_read_all ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_86 MPI_File_read_all ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_86 MPI_File_read_all ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_86 MPI_File_read_all ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_all
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_87() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_all_begin medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_87 MPI_File_read_all_begin ${rank} CH "character${dim}"
|
|
|
|
output_87 MPI_File_read_all_begin ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_87 MPI_File_read_all_begin ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_87 MPI_File_read_all_begin ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_87 MPI_File_read_all_begin ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_all_begin
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_88() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_all_end medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_88 MPI_File_read_all_end ${rank} CH "character${dim}"
|
|
|
|
output_88 MPI_File_read_all_end ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_88 MPI_File_read_all_end ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_88 MPI_File_read_all_end ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_88 MPI_File_read_all_end ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_all_end
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_89() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype, &
|
|
|
|
status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_at medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_89 MPI_File_read_at ${rank} CH "character${dim}"
|
|
|
|
output_89 MPI_File_read_at ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_89 MPI_File_read_at ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_89 MPI_File_read_at ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_89 MPI_File_read_at ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_at
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_90() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype, &
|
|
|
|
status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_at_all medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_90 MPI_File_read_at_all ${rank} CH "character${dim}"
|
|
|
|
output_90 MPI_File_read_at_all ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_90 MPI_File_read_at_all ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_90 MPI_File_read_at_all ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_90 MPI_File_read_at_all ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_at_all
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_91() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_at_all_begin medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_91 MPI_File_read_at_all_begin ${rank} CH "character${dim}"
|
|
|
|
output_91 MPI_File_read_at_all_begin ${rank} L "logical${dim}"
|
2005-01-15 01:07:15 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_91 MPI_File_read_at_all_begin ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_91 MPI_File_read_at_all_begin ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_91 MPI_File_read_at_all_begin ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_at_all_begin
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_92() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_at_all_end medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_92 MPI_File_read_at_all_end ${rank} CH "character${dim}"
|
|
|
|
output_92 MPI_File_read_at_all_end ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_92 MPI_File_read_at_all_end ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_92 MPI_File_read_at_all_end ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_92 MPI_File_read_at_all_end ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_at_all_end
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_93() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_ordered medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_93 MPI_File_read_ordered ${rank} CH "character${dim}"
|
|
|
|
output_93 MPI_File_read_ordered ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_93 MPI_File_read_ordered ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_93 MPI_File_read_ordered ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_93 MPI_File_read_ordered ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_ordered
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_94() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_ordered_begin medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_94 MPI_File_read_ordered_begin ${rank} CH "character${dim}"
|
|
|
|
output_94 MPI_File_read_ordered_begin ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_94 MPI_File_read_ordered_begin ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_94 MPI_File_read_ordered_begin ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_94 MPI_File_read_ordered_begin ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_ordered_begin
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-11-10 19:04:39 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_95() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_ordered_end medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_95 MPI_File_read_ordered_end ${rank} CH "character${dim}"
|
|
|
|
output_95 MPI_File_read_ordered_end ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_95 MPI_File_read_ordered_end ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_95 MPI_File_read_ordered_end ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_95 MPI_File_read_ordered_end ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_ordered_end
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_96() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_read_shared medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_96 MPI_File_read_shared ${rank} CH "character${dim}"
|
|
|
|
output_96 MPI_File_read_shared ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_96 MPI_File_read_shared ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_96 MPI_File_read_shared ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_96 MPI_File_read_shared ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_read_shared
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_97() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, offset, whence, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
integer, intent(in) :: whence
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_seek small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_97 MPI_File_seek
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_seek
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_98() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, offset, whence, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
integer, intent(in) :: whence
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_seek_shared small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_98 MPI_File_seek_shared
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_seek_shared
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_99() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(fh, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(in) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_set_atomicity small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_99 MPI_File_set_atomicity
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_set_atomicity
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_100() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${procedure}(file, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: file
|
|
|
|
integer, intent(in) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
2005-11-10 19:04:39 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_set_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_100 MPI_File_set_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_set_errhandler
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_101() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(fh, info, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_File_set_info small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_101 MPI_File_set_info
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_set_info
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_102() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(fh, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_File_set_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_102 MPI_File_set_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_set_size
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_103() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(fh, disp, etype, filetype, datarep, &
|
|
|
|
info, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: disp
|
|
|
|
integer, intent(in) :: etype
|
|
|
|
integer, intent(in) :: filetype
|
|
|
|
character(len=*), intent(in) :: datarep
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_File_set_view small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_103 MPI_File_set_view
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_set_view
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_104() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(fh, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_File_sync small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_104 MPI_File_sync
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_sync
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_105() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_File_write medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_105 MPI_File_write ${rank} CH "character${dim}"
|
|
|
|
output_105 MPI_File_write ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_105 MPI_File_write ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_105 MPI_File_write ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_105 MPI_File_write ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write
|
2005-11-10 19:04:39 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_106() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_all medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_106 MPI_File_write_all ${rank} CH "character${dim}"
|
|
|
|
output_106 MPI_File_write_all ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_106 MPI_File_write_all ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_106 MPI_File_write_all ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_106 MPI_File_write_all ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_all
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_107() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_all_begin medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_107 MPI_File_write_all_begin ${rank} CH "character${dim}"
|
|
|
|
output_107 MPI_File_write_all_begin ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_107 MPI_File_write_all_begin ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_107 MPI_File_write_all_begin ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_107 MPI_File_write_all_begin ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_all_begin
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_108() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_all_end medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_108 MPI_File_write_all_end ${rank} CH "character${dim}"
|
|
|
|
output_108 MPI_File_write_all_end ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_108 MPI_File_write_all_end ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_108 MPI_File_write_all_end ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_108 MPI_File_write_all_end ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_all_end
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_109() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype, &
|
|
|
|
status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_at medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_109 MPI_File_write_at ${rank} CH "character${dim}"
|
|
|
|
output_109 MPI_File_write_at ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_109 MPI_File_write_at ${rank} I${kind} "integer*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_109 MPI_File_write_at ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_109 MPI_File_write_at ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_at
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_110() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype, &
|
|
|
|
status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_at_all medium
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-12-26 20:07:26 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_110 MPI_File_write_at_all ${rank} CH "character${dim}"
|
|
|
|
output_110 MPI_File_write_at_all ${rank} L "logical${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_110 MPI_File_write_at_all ${rank} I${kind} "integer*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_110 MPI_File_write_at_all ${rank} R${kind} "real*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $ckinds
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_110 MPI_File_write_at_all ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_at_all
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_111() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, offset, buf, count, datatype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_at_all_begin medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_111 MPI_File_write_at_all_begin ${rank} CH "character${dim}"
|
|
|
|
output_111 MPI_File_write_at_all_begin ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_111 MPI_File_write_at_all_begin ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_111 MPI_File_write_at_all_begin ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_111 MPI_File_write_at_all_begin ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_at_all_begin
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_112() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_at_all_end medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_112 MPI_File_write_at_all_end ${rank} CH "character${dim}"
|
|
|
|
output_112 MPI_File_write_at_all_end ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_112 MPI_File_write_at_all_end ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_112 MPI_File_write_at_all_end ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_112 MPI_File_write_at_all_end ${rank} C${kind} "complex*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_at_all_end
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_113() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_ordered medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_113 MPI_File_write_ordered ${rank} CH "character${dim}"
|
|
|
|
output_113 MPI_File_write_ordered ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_113 MPI_File_write_ordered ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_113 MPI_File_write_ordered ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_113 MPI_File_write_ordered ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_ordered
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_114() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_ordered_begin medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_114 MPI_File_write_ordered_begin ${rank} CH "character${dim}"
|
|
|
|
output_114 MPI_File_write_ordered_begin ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_114 MPI_File_write_ordered_begin ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_114 MPI_File_write_ordered_begin ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_114 MPI_File_write_ordered_begin ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_ordered_begin
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_115() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(fh, buf, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_ordered_end medium
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_115 MPI_File_write_ordered_end ${rank} CH "character${dim}"
|
|
|
|
output_115 MPI_File_write_ordered_end ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_115 MPI_File_write_ordered_end ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_115 MPI_File_write_ordered_end ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_115 MPI_File_write_ordered_end ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_ordered_end
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_116() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(fh, buf, count, datatype, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: fh
|
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
EOF
|
|
|
|
}
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
start MPI_File_write_shared medium
|
2004-12-26 20:07:26 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
for rank in $allranks
|
2004-12-26 20:07:26 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_116 MPI_File_write_shared ${rank} CH "character${dim}"
|
|
|
|
output_116 MPI_File_write_shared ${rank} L "logical${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_116 MPI_File_write_shared ${rank} I${kind} "integer*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_116 MPI_File_write_shared ${rank} R${kind} "real*${kind}${dim}"
|
2004-12-26 20:07:26 +03:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_116 MPI_File_write_shared ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2005-01-15 01:07:15 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_File_write_shared
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_117() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Finalize small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_117 MPI_Finalize
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Finalize
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_118() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Finalized small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_118 MPI_Finalized
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Finalized
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_119() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
2004-11-19 02:58:42 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
subroutine ${proc}(base, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: base
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Free_mem medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
2004-11-19 02:58:42 +03:00
|
|
|
do
|
2006-04-11 07:33:38 +04:00
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
2005-01-15 01:07:15 +03:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_119 MPI_Free_mem ${rank} CH "character${dim}"
|
|
|
|
output_119 MPI_Free_mem ${rank} L "logical${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_119 MPI_Free_mem ${rank} I${kind} "integer*${kind}${dim}"
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_119 MPI_Free_mem ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-21 01:18:04 +04:00
|
|
|
done
|
2004-12-26 20:07:26 +03:00
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_119 MPI_Free_mem ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
2004-11-19 02:58:42 +03:00
|
|
|
done
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Free_mem
|
2006-03-04 17:24:44 +03:00
|
|
|
|
2006-04-11 07:33:38 +04:00
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_120() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, sendcount, sendtype, recvbuf, recvcount, &
|
|
|
|
recvtype, root, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcount
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: recvcount
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Gather large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_120 MPI_Gather ${rank} CH "character${dim}"
|
|
|
|
output_120 MPI_Gather ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_120 MPI_Gather ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_120 MPI_Gather ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_120 MPI_Gather ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Gather
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_121() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, sendcount, sendtype, recvbuf, recvcounts, &
|
|
|
|
displs, recvtype, root, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcount
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, dimension(*), intent(in) :: recvcounts
|
|
|
|
integer, dimension(*), intent(in) :: displs
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Gatherv large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_121 MPI_Gatherv ${rank} CH "character${dim}"
|
|
|
|
output_121 MPI_Gatherv ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_121 MPI_Gatherv ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_121 MPI_Gatherv ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_121 MPI_Gatherv ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Gatherv
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_122() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(origin_addr, origin_count, origin_datatype, target_rank, target_disp, &
|
|
|
|
target_count, target_datatype, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: origin_addr
|
|
|
|
integer, intent(in) :: origin_count
|
|
|
|
integer, intent(in) :: origin_datatype
|
|
|
|
integer, intent(in) :: target_rank
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: target_disp
|
|
|
|
integer, intent(in) :: target_count
|
|
|
|
integer, intent(in) :: target_datatype
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Get medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_122 MPI_Get ${rank} CH "character${dim}"
|
|
|
|
output_122 MPI_Get ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_122 MPI_Get ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_122 MPI_Get ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_122 MPI_Get ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Get
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_123() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(location, address, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: location
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: address
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Get_address medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_123 MPI_Get_address ${rank} CH "character${dim}"
|
|
|
|
output_123 MPI_Get_address ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_123 MPI_Get_address ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_123 MPI_Get_address ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_123 MPI_Get_address ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Get_address
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_124() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(status, datatype, count, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(in) :: status
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: count
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Get_count small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_124 MPI_Get_count
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Get_count
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_125() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(status, datatype, count, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(in) :: status
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: count
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Get_elements small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_125 MPI_Get_elements
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Get_elements
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_126() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(name, resultlen, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(out) :: name
|
|
|
|
integer, intent(out) :: resultlen
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Get_processor_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_126 MPI_Get_processor_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Get_processor_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_127() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(version, subversion, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: version
|
|
|
|
integer, intent(out) :: subversion
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Get_version small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_127 MPI_Get_version
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Get_version
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_128() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm_old, nnodes, index, edges, reorder, &
|
|
|
|
comm_graph, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm_old
|
|
|
|
integer, intent(in) :: nnodes
|
|
|
|
integer, dimension(*), intent(in) :: index
|
|
|
|
integer, dimension(*), intent(in) :: edges
|
|
|
|
integer, intent(in) :: reorder
|
|
|
|
integer, intent(out) :: comm_graph
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Graph_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_128 MPI_Graph_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Graph_create
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_129() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, maxindex, maxedges, index, edges&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: maxindex
|
|
|
|
integer, intent(in) :: maxedges
|
|
|
|
integer, dimension(*), intent(out) :: index
|
|
|
|
integer, dimension(*), intent(out) :: edges
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Graph_get small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_129 MPI_Graph_get
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Graph_get
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_130() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, nnodes, index, edges, newrank&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: nnodes
|
|
|
|
integer, dimension(*), intent(in) :: index
|
|
|
|
integer, dimension(*), intent(in) :: edges
|
|
|
|
integer, intent(out) :: newrank
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Graph_map small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_130 MPI_Graph_map
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Graph_map
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_131() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, rank, maxneighbors, neighbors, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: rank
|
|
|
|
integer, intent(in) :: maxneighbors
|
|
|
|
integer, dimension(*), intent(out) :: neighbors
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Graph_neighbors small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_131 MPI_Graph_neighbors
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Graph_neighbors
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_132() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, rank, nneighbors, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: rank
|
|
|
|
integer, intent(out) :: nneighbors
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Graph_neighbors_count small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_132 MPI_Graph_neighbors_count
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Graph_neighbors_count
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_133() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, nnodes, nedges, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: nnodes
|
|
|
|
integer, intent(out) :: nedges
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Graphdims_get small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_133 MPI_Graphdims_get
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Graphdims_get
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_134() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Grequest_complete small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_134 MPI_Grequest_complete
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Grequest_complete
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_135() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(query_fn, free_fn, cancel_fn, extra_state, request&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: query_fn
|
|
|
|
external :: free_fn
|
|
|
|
external :: cancel_fn
|
|
|
|
integer, intent(in) :: extra_state
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Grequest_start small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_135 MPI_Grequest_start
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Grequest_start
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_136() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group1, group2, result, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group1
|
|
|
|
integer, intent(in) :: group2
|
|
|
|
integer, intent(out) :: result
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_compare small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_136 MPI_Group_compare
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_compare
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_137() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group1, group2, newgroup, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group1
|
|
|
|
integer, intent(in) :: group2
|
|
|
|
integer, intent(out) :: newgroup
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_difference small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_137 MPI_Group_difference
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_difference
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_138() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, n, ranks, newgroup, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(in) :: n
|
|
|
|
integer, dimension(*), intent(in) :: ranks
|
|
|
|
integer, intent(out) :: newgroup
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_excl small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_138 MPI_Group_excl
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_excl
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_139() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: group
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_139 MPI_Group_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_free
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_140() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, n, ranks, newgroup, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(in) :: n
|
|
|
|
integer, dimension(*), intent(in) :: ranks
|
|
|
|
integer, intent(out) :: newgroup
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_incl small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_140 MPI_Group_incl
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_incl
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_141() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group1, group2, newgroup, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group1
|
|
|
|
integer, intent(in) :: group2
|
|
|
|
integer, intent(out) :: newgroup
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_intersection small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_141 MPI_Group_intersection
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_intersection
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_142() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, n, ranges, newgroup, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(in) :: n
|
|
|
|
integer, dimension(3, *), intent(in) :: ranges
|
|
|
|
integer, intent(out) :: newgroup
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_range_excl small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_142 MPI_Group_range_excl
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_range_excl
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_143() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, n, ranges, newgroup, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(in) :: n
|
|
|
|
integer, dimension(3, *), intent(in) :: ranges
|
|
|
|
integer, intent(out) :: newgroup
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_range_incl small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_143 MPI_Group_range_incl
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_range_incl
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_144() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, rank, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(out) :: rank
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_rank small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_144 MPI_Group_rank
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_rank
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_145() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_145 MPI_Group_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_size
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_146() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group1, n, ranks1, group2, ranks2&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group1
|
|
|
|
integer, intent(in) :: n
|
|
|
|
integer, dimension(*), intent(in) :: ranks1
|
|
|
|
integer, intent(in) :: group2
|
|
|
|
integer, dimension(*), intent(out) :: ranks2
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_translate_ranks small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_146 MPI_Group_translate_ranks
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_translate_ranks
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_147() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group1, group2, newgroup, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group1
|
|
|
|
integer, intent(in) :: group2
|
|
|
|
integer, intent(out) :: newgroup
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Group_union small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_147 MPI_Group_union
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Group_union
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_148() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Ibsend medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_148 MPI_Ibsend ${rank} CH "character${dim}"
|
|
|
|
output_148 MPI_Ibsend ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_148 MPI_Ibsend ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_148 MPI_Ibsend ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_148 MPI_Ibsend ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Ibsend
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_149() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: info
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_149 MPI_Info_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_create
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_150() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, key, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: info
|
|
|
|
character(len=*), intent(in) :: key
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_delete small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_150 MPI_Info_delete
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_delete
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_151() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, newinfo, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(out) :: newinfo
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_dup small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_151 MPI_Info_dup
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_dup
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_152() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: info
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_152 MPI_Info_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_free
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_153() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, key, valuelen, value, flag&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: info
|
|
|
|
character(len=*), intent(in) :: key
|
|
|
|
integer, intent(in) :: valuelen
|
|
|
|
character(len=*), intent(out) :: value
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_get small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_153 MPI_Info_get
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_get
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_154() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, nkeys, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(out) :: nkeys
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_get_nkeys small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_154 MPI_Info_get_nkeys
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_get_nkeys
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_155() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, n, key, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(in) :: n
|
|
|
|
character(len=*), intent(out) :: key
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_get_nthkey small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_155 MPI_Info_get_nthkey
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_get_nthkey
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_156() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, key, valuelen, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: info
|
|
|
|
character(len=*), intent(in) :: key
|
|
|
|
integer, intent(out) :: valuelen
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_get_valuelen small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_156 MPI_Info_get_valuelen
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_get_valuelen
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_157() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, key, value, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: info
|
|
|
|
character(len=*), intent(in) :: key
|
|
|
|
character(len=*), intent(in) :: value
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Info_set small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_157 MPI_Info_set
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Info_set
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_158() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Init small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_158 MPI_Init
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Init
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_159() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(required, provided, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: required
|
|
|
|
integer, intent(out) :: provided
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Init_thread small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_159 MPI_Init_thread
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Init_thread
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_160() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: flag
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Initialized small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_160 MPI_Initialized
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Initialized
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_161() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(local_comm, local_leader, bridge_comm, remote_leader, tag, &
|
|
|
|
newintercomm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: local_comm
|
|
|
|
integer, intent(in) :: local_leader
|
|
|
|
integer, intent(in) :: bridge_comm
|
|
|
|
integer, intent(in) :: remote_leader
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(out) :: newintercomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Intercomm_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_161 MPI_Intercomm_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Intercomm_create
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_162() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(intercomm, high, newintercomm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: intercomm
|
2006-05-01 22:58:05 +04:00
|
|
|
logical, intent(in) :: high
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: newintercomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Intercomm_merge small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_162 MPI_Intercomm_merge
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Intercomm_merge
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_163() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(source, tag, comm, flag, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: source
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Iprobe small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_163 MPI_Iprobe
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Iprobe
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_164() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, source, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: source
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Irecv medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_164 MPI_Irecv ${rank} CH "character${dim}"
|
|
|
|
output_164 MPI_Irecv ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_164 MPI_Irecv ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_164 MPI_Irecv ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_164 MPI_Irecv ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Irecv
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_165() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Irsend medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_165 MPI_Irsend ${rank} CH "character${dim}"
|
|
|
|
output_165 MPI_Irsend ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_165 MPI_Irsend ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_165 MPI_Irsend ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_165 MPI_Irsend ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Irsend
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_166() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Is_thread_main small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_166 MPI_Is_thread_main
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Is_thread_main
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_167() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Isend medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_167 MPI_Isend ${rank} CH "character${dim}"
|
|
|
|
output_167 MPI_Isend ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_167 MPI_Isend ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_167 MPI_Isend ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_167 MPI_Isend ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Isend
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_168() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Issend medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_168 MPI_Issend ${rank} CH "character${dim}"
|
|
|
|
output_168 MPI_Issend ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_168 MPI_Issend ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_168 MPI_Issend ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_168 MPI_Issend ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Issend
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_169() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(copy_fn, delete_fn, keyval, extra_state, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: copy_fn
|
|
|
|
external :: delete_fn
|
|
|
|
integer, intent(out) :: keyval
|
|
|
|
integer, intent(in) :: extra_state
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Keyval_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_169 MPI_Keyval_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Keyval_create
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_170() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Keyval_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_170 MPI_Keyval_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Keyval_free
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_171() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(function, commute, op, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: function
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(in) :: commute
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: op
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Op_create small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_171 MPI_Op_create
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Op_create
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_172() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(op, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: op
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Op_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_172 MPI_Op_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Op_free
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_173() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(inbuf, incount, datatype, outbuf, outsize, &
|
|
|
|
position, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: inbuf
|
|
|
|
integer, intent(in) :: incount
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
${type}, intent(out) :: outbuf
|
|
|
|
integer, intent(out) :: outsize
|
|
|
|
integer, intent(inout) :: position
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Pack large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_173 MPI_Pack ${rank} CH "character${dim}"
|
|
|
|
output_173 MPI_Pack ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_173 MPI_Pack ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_173 MPI_Pack ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_173 MPI_Pack ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Pack
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_174() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(datarep, inbuf, incount, datatype, outbuf, &
|
|
|
|
outsize, position, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: datarep
|
|
|
|
${type}, intent(in) :: inbuf
|
|
|
|
integer, intent(in) :: incount
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
${type}, intent(out) :: outbuf
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: outsize
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(inout) :: position
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Pack_external large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_174 MPI_Pack_external ${rank} CH "character${dim}"
|
|
|
|
output_174 MPI_Pack_external ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_174 MPI_Pack_external ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_174 MPI_Pack_external ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_174 MPI_Pack_external ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Pack_external
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_175() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(datarep, incount, datatype, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: datarep
|
|
|
|
integer, intent(in) :: incount
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Pack_external_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_175 MPI_Pack_external_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Pack_external_size
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_176() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(incount, datatype, comm, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: incount
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Pack_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_176 MPI_Pack_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Pack_size
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_177() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(level)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: level
|
|
|
|
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Pcontrol small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_177 MPI_Pcontrol
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Pcontrol
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_178() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(source, tag, comm, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: source
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Probe small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_178 MPI_Probe
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Probe
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_179() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(origin_addr, origin_count, origin_datatype, target_rank, target_disp, &
|
|
|
|
target_count, target_datatype, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: origin_addr
|
|
|
|
integer, intent(in) :: origin_count
|
|
|
|
integer, intent(in) :: origin_datatype
|
|
|
|
integer, intent(in) :: target_rank
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: target_disp
|
|
|
|
integer, intent(in) :: target_count
|
|
|
|
integer, intent(in) :: target_datatype
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Put medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_179 MPI_Put ${rank} CH "character${dim}"
|
|
|
|
output_179 MPI_Put ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_179 MPI_Put ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_179 MPI_Put ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_179 MPI_Put ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Put
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_180() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(provided, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: provided
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Query_thread small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_180 MPI_Query_thread
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Query_thread
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_181() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, source, tag, &
|
|
|
|
comm, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: source
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Recv medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_181 MPI_Recv ${rank} CH "character${dim}"
|
|
|
|
output_181 MPI_Recv ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_181 MPI_Recv ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_181 MPI_Recv ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_181 MPI_Recv ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Recv
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_182() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, source, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(out) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: source
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Recv_init medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_182 MPI_Recv_init ${rank} CH "character${dim}"
|
|
|
|
output_182 MPI_Recv_init ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_182 MPI_Recv_init ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_182 MPI_Recv_init ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_182 MPI_Recv_init ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Recv_init
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_183() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, recvbuf, count, datatype, op, &
|
|
|
|
root, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: op
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Reduce large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_183 MPI_Reduce ${rank} CH "character${dim}"
|
|
|
|
output_183 MPI_Reduce ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_183 MPI_Reduce ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_183 MPI_Reduce ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_183 MPI_Reduce ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Reduce
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_184() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, recvbuf, recvcounts, datatype, op, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: recvcounts
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: op
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Reduce_scatter large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_184 MPI_Reduce_scatter ${rank} CH "character${dim}"
|
|
|
|
output_184 MPI_Reduce_scatter ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_184 MPI_Reduce_scatter ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_184 MPI_Reduce_scatter ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_184 MPI_Reduce_scatter ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Reduce_scatter
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_185() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(datarep, read_conversion_fn, write_conversion_fn, dtype_file_extent_fn, extra_state&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: datarep
|
|
|
|
external :: read_conversion_fn
|
|
|
|
external :: write_conversion_fn
|
|
|
|
external :: dtype_file_extent_fn
|
|
|
|
integer, intent(in) :: extra_state
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Register_datarep small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_185 MPI_Register_datarep
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Register_datarep
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_186() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Request_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_186 MPI_Request_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Request_free
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_187() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(request, flag, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: request
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Request_get_status small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_187 MPI_Request_get_status
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Request_get_status
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_188() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(ibuf, count, datatype, dest, tag, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: ibuf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Rsend medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_188 MPI_Rsend ${rank} CH "character${dim}"
|
|
|
|
output_188 MPI_Rsend ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_188 MPI_Rsend ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_188 MPI_Rsend ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_188 MPI_Rsend ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Rsend
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_189() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Rsend_init medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_189 MPI_Rsend_init ${rank} CH "character${dim}"
|
|
|
|
output_189 MPI_Rsend_init ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_189 MPI_Rsend_init ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_189 MPI_Rsend_init ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_189 MPI_Rsend_init ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Rsend_init
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_190() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, recvbuf, count, datatype, op, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: op
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Scan large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_190 MPI_Scan ${rank} CH "character${dim}"
|
|
|
|
output_190 MPI_Scan ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_190 MPI_Scan ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_190 MPI_Scan ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_190 MPI_Scan ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Scan
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_191() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, sendcount, sendtype, recvbuf, recvcount, &
|
|
|
|
recvtype, root, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcount
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: recvcount
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Scatter large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_191 MPI_Scatter ${rank} CH "character${dim}"
|
|
|
|
output_191 MPI_Scatter ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_191 MPI_Scatter ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_191 MPI_Scatter ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_191 MPI_Scatter ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Scatter
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_192() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, sendcounts, displs, sendtype, recvbuf, &
|
|
|
|
recvcount, recvtype, root, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcounts
|
|
|
|
integer, intent(in) :: displs
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: recvcount
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Scatterv large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_192 MPI_Scatterv ${rank} CH "character${dim}"
|
|
|
|
output_192 MPI_Scatterv ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_192 MPI_Scatterv ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_192 MPI_Scatterv ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_192 MPI_Scatterv ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Scatterv
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_193() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Send medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_193 MPI_Send ${rank} CH "character${dim}"
|
|
|
|
output_193 MPI_Send ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_193 MPI_Send ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_193 MPI_Send ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_193 MPI_Send ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Send
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_194() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Send_init medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_194 MPI_Send_init ${rank} CH "character${dim}"
|
|
|
|
output_194 MPI_Send_init ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_194 MPI_Send_init ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_194 MPI_Send_init ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_194 MPI_Send_init ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Send_init
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_195() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(sendbuf, sendcount, sendtype, dest, sendtag, &
|
|
|
|
recvbuf, recvcount, recvtype, source, recvtag, comm, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: sendbuf
|
|
|
|
integer, intent(in) :: sendcount
|
|
|
|
integer, intent(in) :: sendtype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: sendtag
|
|
|
|
${type}, intent(out) :: recvbuf
|
|
|
|
integer, intent(in) :: recvcount
|
|
|
|
integer, intent(in) :: recvtype
|
|
|
|
integer, intent(in) :: source
|
|
|
|
integer, intent(in) :: recvtag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Sendrecv large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_195 MPI_Sendrecv ${rank} CH "character${dim}"
|
|
|
|
output_195 MPI_Sendrecv ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_195 MPI_Sendrecv ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_195 MPI_Sendrecv ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_195 MPI_Sendrecv ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Sendrecv
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_196() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, sendtag, &
|
|
|
|
source, recvtag, comm, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(inout) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: sendtag
|
|
|
|
integer, intent(in) :: source
|
|
|
|
integer, intent(in) :: recvtag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Sendrecv_replace medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_196 MPI_Sendrecv_replace ${rank} CH "character${dim}"
|
|
|
|
output_196 MPI_Sendrecv_replace ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_196 MPI_Sendrecv_replace ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_196 MPI_Sendrecv_replace ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_196 MPI_Sendrecv_replace ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Sendrecv_replace
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_197() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(x, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: x
|
|
|
|
integer, intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_SIZEOF trivial
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_197 MPI_SIZEOF ${rank} CH "character${dim}"
|
|
|
|
output_197 MPI_SIZEOF ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_197 MPI_SIZEOF ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_197 MPI_SIZEOF ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_197 MPI_SIZEOF ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_SIZEOF
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_198() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Ssend medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_198 MPI_Ssend ${rank} CH "character${dim}"
|
|
|
|
output_198 MPI_Ssend ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_198 MPI_Ssend ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_198 MPI_Ssend ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_198 MPI_Ssend ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Ssend
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_199() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(buf, count, datatype, dest, tag, &
|
|
|
|
comm, request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: buf
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: dest
|
|
|
|
integer, intent(in) :: tag
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Ssend_init medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_199 MPI_Ssend_init ${rank} CH "character${dim}"
|
|
|
|
output_199 MPI_Ssend_init ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_199 MPI_Ssend_init ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_199 MPI_Ssend_init ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_199 MPI_Ssend_init ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Ssend_init
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_200() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(request, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: request
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Start small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_200 MPI_Start
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Start
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_201() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_requests, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(*), intent(inout) :: array_of_requests
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Startall small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_201 MPI_Startall
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Startall
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_202() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(status, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(in) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Status_set_cancelled small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_202 MPI_Status_set_cancelled
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Status_set_cancelled
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_203() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(status, datatype, count, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Status_set_elements small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_203 MPI_Status_set_elements
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Status_set_elements
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_204() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(request, flag, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: request
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Test small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_204 MPI_Test
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Test
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_205() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(status, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(in) :: status
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Test_cancelled small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_205 MPI_Test_cancelled
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Test_cancelled
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_206() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_requests, flag, array_of_statuses, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(count), intent(inout) :: array_of_requests
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-21 01:18:04 +04:00
|
|
|
integer, dimension(count, MPI_STATUS_SIZE), intent(inout) :: array_of_statuses
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Testall small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_206 MPI_Testall
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Testall
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_207() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_requests, index, flag, status&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(count), intent(inout) :: array_of_requests
|
|
|
|
integer, intent(out) :: index
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Testany small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_207 MPI_Testany
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Testany
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_208() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(incount, array_of_requests, outcount, array_of_indices, array_of_statuses&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: incount
|
|
|
|
integer, dimension(incount), intent(inout) :: array_of_requests
|
|
|
|
integer, intent(out) :: outcount
|
|
|
|
integer, dimension(*), intent(out) :: array_of_indices
|
|
|
|
integer, dimension(incount, MPI_STATUS_SIZE), intent(inout) :: array_of_statuses
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Testsome small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_208 MPI_Testsome
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Testsome
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_209() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Topo_test small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_209 MPI_Topo_test
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Topo_test
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_210() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: type
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_commit small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_210 MPI_Type_commit
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_commit
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_211() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, oldtype, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_contiguous small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_211 MPI_Type_contiguous
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_contiguous
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_212() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(size, rank, ndims, gsize_array, distrib_array, &
|
|
|
|
darg_array, psize_array, order, oldtype, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: size
|
|
|
|
integer, intent(in) :: rank
|
|
|
|
integer, intent(in) :: ndims
|
|
|
|
integer, dimension(*), intent(in) :: gsize_array
|
|
|
|
integer, dimension(*), intent(in) :: distrib_array
|
|
|
|
integer, dimension(*), intent(in) :: darg_array
|
|
|
|
integer, dimension(*), intent(in) :: psize_array
|
|
|
|
integer, intent(in) :: order
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_darray small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_212 MPI_Type_create_darray
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_darray
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_213() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(p, r, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: p
|
|
|
|
integer, intent(in) :: r
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_f90_complex small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_213 MPI_Type_create_f90_complex
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_f90_complex
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_214() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(r, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: r
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_f90_integer small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_214 MPI_Type_create_f90_integer
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_f90_integer
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_215() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(p, r, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: p
|
|
|
|
integer, intent(in) :: r
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_f90_real small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_215 MPI_Type_create_f90_real
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_f90_real
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_216() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_blocklengths, array_of_displacements, oldtype, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(*), intent(in) :: array_of_blocklengths
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), dimension(*), intent(in) :: array_of_displacements
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_hindexed small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_216 MPI_Type_create_hindexed
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_hindexed
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_217() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, blocklength, stride, oldtype, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: blocklength
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: stride
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_hvector small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_217 MPI_Type_create_hvector
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_hvector
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_218() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, blocklength, array_of_displacements, oldtype, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: blocklength
|
|
|
|
integer, dimension(*), intent(in) :: array_of_displacements
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_indexed_block small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_218 MPI_Type_create_indexed_block
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_indexed_block
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_219() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type_copy_attr_fn, type_delete_attr_fn, type_keyval, extra_state, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: type_copy_attr_fn
|
|
|
|
external :: type_delete_attr_fn
|
|
|
|
integer, intent(out) :: type_keyval
|
|
|
|
integer, intent(in) :: extra_state
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_keyval small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_219 MPI_Type_create_keyval
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_keyval
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_220() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(oldtype, lb, extent, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: lb
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: extent
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_resized small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_220 MPI_Type_create_resized
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_resized
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_221() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_block_lengths, array_of_displacements, array_of_types, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(*), intent(in) :: array_of_block_lengths
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), dimension(*), intent(in) :: array_of_displacements
|
|
|
|
integer, dimension(*), intent(in) :: array_of_types
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_struct small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_221 MPI_Type_create_struct
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_struct
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_222() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(ndims, size_array, subsize_array, start_array, order, &
|
|
|
|
oldtype, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: ndims
|
|
|
|
integer, dimension(*), intent(in) :: size_array
|
|
|
|
integer, dimension(*), intent(in) :: subsize_array
|
|
|
|
integer, dimension(*), intent(in) :: start_array
|
|
|
|
integer, intent(in) :: order
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_create_subarray small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_222 MPI_Type_create_subarray
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_create_subarray
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_223() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, type_keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: type
|
|
|
|
integer, intent(in) :: type_keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_delete_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_223 MPI_Type_delete_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_delete_attr
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_224() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, newtype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_dup small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_224 MPI_Type_dup
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_dup
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_225() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, extent, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
integer, intent(out) :: extent
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_extent small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_225 MPI_Type_extent
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_extent
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_226() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: type
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_226 MPI_Type_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_free
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_227() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type_keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: type_keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_free_keyval small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_227 MPI_Type_free_keyval
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_free_keyval
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_228() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, type_keyval, attribute_val, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
integer, intent(in) :: type_keyval
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: attribute_val
|
2006-04-21 08:31:49 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_get_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_228 MPI_Type_get_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_get_attr
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_229() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(mtype, max_integers, max_addresses, max_datatypes, array_of_integers, &
|
|
|
|
array_of_addresses, array_of_datatypes, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: mtype
|
|
|
|
integer, intent(in) :: max_integers
|
|
|
|
integer, intent(in) :: max_addresses
|
|
|
|
integer, intent(in) :: max_datatypes
|
|
|
|
integer, dimension(*), intent(out) :: array_of_integers
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), dimension(*), intent(out) :: array_of_addresses
|
|
|
|
integer, dimension(*), intent(out) :: array_of_datatypes
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_get_contents small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_229 MPI_Type_get_contents
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_get_contents
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_230() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, num_integers, num_addresses, num_datatypes, combiner&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
integer, intent(out) :: num_integers
|
|
|
|
integer, intent(out) :: num_addresses
|
|
|
|
integer, intent(out) :: num_datatypes
|
|
|
|
integer, intent(out) :: combiner
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_get_envelope small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_230 MPI_Type_get_envelope
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_get_envelope
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_231() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, lb, extent, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: lb
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: extent
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_get_extent small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_231 MPI_Type_get_extent
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_get_extent
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_232() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, type_name, resultlen, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
character(len=*), intent(out) :: type_name
|
|
|
|
integer, intent(out) :: resultlen
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_get_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_232 MPI_Type_get_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_get_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_233() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(datatype, true_lb, true_extent, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: true_lb
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: true_extent
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_get_true_extent small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_233 MPI_Type_get_true_extent
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_get_true_extent
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_234() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_blocklengths, array_of_displacements, oldtype, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(*), intent(in) :: array_of_blocklengths
|
|
|
|
integer, dimension(*), intent(in) :: array_of_displacements
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_hindexed small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_234 MPI_Type_hindexed
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_hindexed
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_235() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, blocklength, stride, oldtype, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: blocklength
|
|
|
|
integer, intent(in) :: stride
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_hvector small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_235 MPI_Type_hvector
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_hvector
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_236() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_blocklengths, array_of_displacements, oldtype, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(*), intent(in) :: array_of_blocklengths
|
|
|
|
integer, dimension(*), intent(in) :: array_of_displacements
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_indexed small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_236 MPI_Type_indexed
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_indexed
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_237() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, lb, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
integer, intent(out) :: lb
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_lb small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_237 MPI_Type_lb
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_lb
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_238() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(typeclass, size, type, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: typeclass
|
|
|
|
integer, intent(in) :: size
|
|
|
|
integer, intent(out) :: type
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_match_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_238 MPI_Type_match_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_match_size
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_239() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, type_keyval, attr_val, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-05-15 21:13:20 +04:00
|
|
|
integer, intent(in) :: type
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type_keyval
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: attr_val
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_set_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_239 MPI_Type_set_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_set_attr
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_240() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, type_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: type
|
|
|
|
character(len=*), intent(in) :: type_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_set_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_240 MPI_Type_set_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_set_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_241() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(type, size, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: type
|
|
|
|
integer, intent(out) :: size
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_size small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_241 MPI_Type_size
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_size
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_242() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_blocklengths, array_of_displacements, array_of_types, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(*), intent(in) :: array_of_blocklengths
|
|
|
|
integer, dimension(*), intent(in) :: array_of_displacements
|
|
|
|
integer, dimension(*), intent(in) :: array_of_types
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_struct small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_242 MPI_Type_struct
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_struct
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_243() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(mtype, ub, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: mtype
|
|
|
|
integer, intent(out) :: ub
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_ub small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_243 MPI_Type_ub
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_ub
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_244() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, blocklength, stride, oldtype, newtype&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, intent(in) :: blocklength
|
|
|
|
integer, intent(in) :: stride
|
|
|
|
integer, intent(in) :: oldtype
|
|
|
|
integer, intent(out) :: newtype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Type_vector small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_244 MPI_Type_vector
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Type_vector
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_245() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(inbuf, insize, position, outbuf, outcount, &
|
|
|
|
datatype, comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: inbuf
|
|
|
|
integer, intent(in) :: insize
|
|
|
|
integer, intent(inout) :: position
|
|
|
|
${type}, intent(out) :: outbuf
|
|
|
|
integer, intent(in) :: outcount
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Unpack large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_245 MPI_Unpack ${rank} CH "character${dim}"
|
|
|
|
output_245 MPI_Unpack ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_245 MPI_Unpack ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_245 MPI_Unpack ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_245 MPI_Unpack ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Unpack
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_246() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(datarep, inbuf, insize, position, outbuf, &
|
|
|
|
outcount, datatype, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: datarep
|
|
|
|
${type}, intent(in) :: inbuf
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: insize
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(inout) :: position
|
|
|
|
${type}, intent(out) :: outbuf
|
|
|
|
integer, intent(in) :: outcount
|
|
|
|
integer, intent(in) :: datatype
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Unpack_external large
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_246 MPI_Unpack_external ${rank} CH "character${dim}"
|
|
|
|
output_246 MPI_Unpack_external ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_246 MPI_Unpack_external ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_246 MPI_Unpack_external ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_246 MPI_Unpack_external ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Unpack_external
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_247() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(request, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: request
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Wait small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_247 MPI_Wait
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Wait
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_248() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_requests, array_of_statuses, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(count), intent(inout) :: array_of_requests
|
|
|
|
integer, dimension(count, MPI_STATUS_SIZE), intent(inout) :: array_of_statuses
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Waitall small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_248 MPI_Waitall
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Waitall
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_249() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(count, array_of_requests, index, status, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
integer, dimension(count), intent(inout) :: array_of_requests
|
|
|
|
integer, intent(out) :: index
|
|
|
|
integer, dimension(MPI_STATUS_SIZE), intent(inout) :: status
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Waitany small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_249 MPI_Waitany
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Waitany
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_250() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(incount, array_of_requests, outcount, array_of_indices, array_of_statuses&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: incount
|
|
|
|
integer, dimension(incount), intent(inout) :: array_of_requests
|
|
|
|
integer, intent(out) :: outcount
|
|
|
|
integer, dimension(*), intent(out) :: array_of_indices
|
|
|
|
integer, dimension(incount, MPI_STATUS_SIZE), intent(inout) :: array_of_statuses
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Waitsome small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_250 MPI_Waitsome
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Waitsome
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_251() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, errorcode, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(in) :: errorcode
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_call_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_251 MPI_Win_call_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_call_errhandler
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_252() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_complete small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_252 MPI_Win_complete
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_complete
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_253() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
rank=$2
|
|
|
|
type=$4
|
|
|
|
proc="$1$2D$3"
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${proc}(base, size, disp_unit, info, comm, &
|
|
|
|
win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
${type}, intent(in) :: base
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: size
|
|
|
|
integer, intent(in) :: disp_unit
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${proc}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_create medium
|
|
|
|
|
|
|
|
for rank in $allranks
|
|
|
|
do
|
|
|
|
case "$rank" in 0) dim='' ; esac
|
|
|
|
case "$rank" in 1) dim=', dimension(:)' ; esac
|
|
|
|
case "$rank" in 2) dim=', dimension(:,:)' ; esac
|
|
|
|
case "$rank" in 3) dim=', dimension(:,:,:)' ; esac
|
|
|
|
case "$rank" in 4) dim=', dimension(:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 5) dim=', dimension(:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 6) dim=', dimension(:,:,:,:,:,:)' ; esac
|
|
|
|
case "$rank" in 7) dim=', dimension(:,:,:,:,:,:,:)' ; esac
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_253 MPI_Win_create ${rank} CH "character${dim}"
|
|
|
|
output_253 MPI_Win_create ${rank} L "logical${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
for kind in $ikinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_253 MPI_Win_create ${rank} I${kind} "integer*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $rkinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_253 MPI_Win_create ${rank} R${kind} "real*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
for kind in $ckinds
|
|
|
|
do
|
2006-04-28 02:46:48 +04:00
|
|
|
output_253 MPI_Win_create ${rank} C${kind} "complex*${kind}${dim}"
|
2006-04-11 07:33:38 +04:00
|
|
|
done
|
|
|
|
done
|
|
|
|
end MPI_Win_create
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_254() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(function, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: function
|
|
|
|
integer, intent(out) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_create_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_254 MPI_Win_create_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_create_errhandler
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_255() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win_copy_attr_fn, win_delete_attr_fn, win_keyval, extra_state, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
external :: win_copy_attr_fn
|
|
|
|
external :: win_delete_attr_fn
|
|
|
|
integer, intent(out) :: win_keyval
|
|
|
|
integer, intent(in) :: extra_state
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_create_keyval small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_255 MPI_Win_create_keyval
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_create_keyval
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_256() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, win_keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: win
|
|
|
|
integer, intent(in) :: win_keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_delete_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_256 MPI_Win_delete_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_delete_attr
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_257() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(assert, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: assert
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_fence small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_257 MPI_Win_fence
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_fence
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_258() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_free small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_258 MPI_Win_free
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_free
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_259() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win_keyval, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: win_keyval
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_free_keyval small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_259 MPI_Win_free_keyval
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_free_keyval
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_260() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, win_keyval, attribute_val, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(in) :: win_keyval
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: attribute_val
|
2006-04-21 08:31:49 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_get_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_260 MPI_Win_get_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_get_attr
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_261() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_get_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_261 MPI_Win_get_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_get_errhandler
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_262() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, group, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: group
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_get_group small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_262 MPI_Win_get_group
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_get_group
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_263() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, win_name, resultlen, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
|
|
|
character(len=*), intent(out) :: win_name
|
|
|
|
integer, intent(out) :: resultlen
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_get_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_263 MPI_Win_get_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_get_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_264() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(lock_type, rank, assert, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: lock_type
|
|
|
|
integer, intent(in) :: rank
|
|
|
|
integer, intent(in) :: assert
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_lock small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_264 MPI_Win_lock
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_lock
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_265() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, assert, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(in) :: assert
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_post small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_265 MPI_Win_post
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_post
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_266() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, win_keyval, attribute_val, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-05-15 21:13:20 +04:00
|
|
|
integer, intent(in) :: win
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win_keyval
|
|
|
|
integer(kind=MPI_ADDRESS_KIND), intent(in) :: attribute_val
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_set_attr small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_266 MPI_Win_set_attr
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_set_attr
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_267() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, errhandler, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: win
|
|
|
|
integer, intent(in) :: errhandler
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_set_errhandler small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_267 MPI_Win_set_errhandler
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_set_errhandler
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_268() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, win_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: win
|
|
|
|
character(len=*), intent(in) :: win_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_set_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_268 MPI_Win_set_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_set_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_269() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(group, assert, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: group
|
|
|
|
integer, intent(in) :: assert
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_start small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_269 MPI_Win_start
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_start
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_270() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, flag, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
2006-04-28 02:46:48 +04:00
|
|
|
logical, intent(out) :: flag
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_test small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_270 MPI_Win_test
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_test
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_271() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(rank, win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: rank
|
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_unlock small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_271 MPI_Win_unlock
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_unlock
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_272() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(win, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: win
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Win_wait small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_272 MPI_Win_wait
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Win_wait
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_273() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(port_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: port_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Close_port small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_273 MPI_Close_port
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Close_port
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_274() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(service_name, info, port_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: service_name
|
|
|
|
integer, intent(in) :: info
|
|
|
|
character(len=*), intent(out) :: port_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Lookup_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_274 MPI_Lookup_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Lookup_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_275() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(info, port_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: info
|
|
|
|
character(len=*), intent(out) :: port_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Open_port small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_275 MPI_Open_port
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Open_port
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_276() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(service_name, info, port_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: service_name
|
|
|
|
integer, intent(in) :: info
|
|
|
|
character(len=*), intent(in) :: port_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Publish_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_276 MPI_Publish_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Publish_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_277() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(service_name, info, port_name, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: service_name
|
|
|
|
integer, intent(in) :: info
|
|
|
|
character(len=*), intent(in) :: port_name
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Unpublish_name small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_277 MPI_Unpublish_name
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Unpublish_name
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_278() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(comm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(inout) :: comm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Comm_disconnect small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_278 MPI_Comm_disconnect
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_disconnect
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_279() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(parent, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(out) :: parent
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Comm_get_parent small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_279 MPI_Comm_get_parent
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_get_parent
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_280() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(fd, intercomm, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: fd
|
|
|
|
integer, intent(out) :: intercomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Comm_join small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_280 MPI_Comm_join
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_join
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_281() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(port_name, info, root, comm, newcomm&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: port_name
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: newcomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Comm_accept small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_281 MPI_Comm_accept
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_accept
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_282() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(port_name, info, root, comm, newcomm&
|
|
|
|
, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: port_name
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: newcomm
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Comm_connect small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_282 MPI_Comm_connect
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_connect
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_283() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
|
|
|
subroutine ${procedure}(command, argv, maxprocs, info, root, &
|
|
|
|
comm, intercomm, array_of_errcodes, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
character(len=*), intent(in) :: command
|
|
|
|
character(len=*), dimension(*), intent(in) :: argv
|
|
|
|
integer, intent(in) :: maxprocs
|
|
|
|
integer, intent(in) :: info
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: intercomm
|
|
|
|
integer, dimension(*), intent(out) :: array_of_errcodes
|
|
|
|
integer, intent(out) :: ierr
|
|
|
|
end subroutine ${procedure}
|
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Comm_spawn small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_283 MPI_Comm_spawn
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_spawn
|
|
|
|
|
|
|
|
#------------------------------------------------------------------------
|
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_284() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
2006-04-21 01:18:04 +04:00
|
|
|
subroutine ${procedure}(count, array_of_commands, array_of_argv, array_of_maxprocs, array_of_info, &
|
2006-04-11 07:33:38 +04:00
|
|
|
root, comm, intercomm, array_of_errcodes, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
character(len=*), dimension(*), intent(in) :: array_of_commands
|
|
|
|
character(len=*), dimension(count,*), intent(in) :: array_of_argv
|
|
|
|
integer, dimension(*), intent(in) :: array_of_maxprocs
|
|
|
|
integer, dimension(*), intent(in) :: array_of_info
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: intercomm
|
|
|
|
integer, dimension(*), intent(out) :: array_of_errcodes
|
|
|
|
integer, intent(out) :: ierr
|
2006-04-21 01:18:04 +04:00
|
|
|
end subroutine ${procedure}
|
2006-04-11 07:33:38 +04:00
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
|
|
|
start MPI_Comm_spawn_multiple small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_284 MPI_Comm_spawn_multipleN
|
2006-04-21 01:18:04 +04:00
|
|
|
end MPI_Comm_spawn_multiple
|
2006-04-11 07:33:38 +04:00
|
|
|
|
2006-04-21 01:18:04 +04:00
|
|
|
#------------------------------------------------------------------------
|
2006-04-11 07:33:38 +04:00
|
|
|
|
2006-04-28 02:46:48 +04:00
|
|
|
output_285() {
|
2006-04-11 07:33:38 +04:00
|
|
|
if test "$output" = "0"; then
|
|
|
|
return 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
procedure=$1
|
|
|
|
cat <<EOF
|
|
|
|
|
2006-04-21 01:18:04 +04:00
|
|
|
subroutine ${procedure}(count, array_of_commands, array_of_argv, array_of_maxprocs, array_of_info, &
|
2006-04-11 07:33:38 +04:00
|
|
|
root, comm, intercomm, array_of_errcodes, ierr)
|
2006-05-20 06:15:49 +04:00
|
|
|
include 'mpif-common.h'
|
2006-04-11 07:33:38 +04:00
|
|
|
integer, intent(in) :: count
|
|
|
|
character(len=*), dimension(*), intent(in) :: array_of_commands
|
|
|
|
integer, intent(in) :: array_of_argv
|
|
|
|
integer, dimension(*), intent(in) :: array_of_maxprocs
|
|
|
|
integer, dimension(*), intent(in) :: array_of_info
|
|
|
|
integer, intent(in) :: root
|
|
|
|
integer, intent(in) :: comm
|
|
|
|
integer, intent(out) :: intercomm
|
|
|
|
integer, dimension(*), intent(out) :: array_of_errcodes
|
|
|
|
integer, intent(out) :: ierr
|
2006-04-21 01:18:04 +04:00
|
|
|
end subroutine ${procedure}
|
2006-04-11 07:33:38 +04:00
|
|
|
|
|
|
|
EOF
|
|
|
|
}
|
|
|
|
|
2006-04-21 01:18:04 +04:00
|
|
|
start MPI_Comm_spawn_multiple small
|
2006-04-28 02:46:48 +04:00
|
|
|
output_285 MPI_Comm_spawn_multipleAN
|
2006-04-11 07:33:38 +04:00
|
|
|
end MPI_Comm_spawn_multiple
|