253444c6d0
1. New mpifort wrapper compiler: you can utilize mpif.h, use mpi, and use mpi_f08 through this one wrapper compiler 1. mpif77 and mpif90 still exist, but are sym links to mpifort and may be removed in a future release 1. The mpi module has been re-implemented and is significantly "mo' bettah" 1. The mpi_f08 module offers many, many improvements over mpif.h and the mpi module This stuff is coming from a VERY long-lived mercurial branch (3 years!); it'll almost certainly take a few SVN commits and a bunch of testing before I get it correctly committed to the SVN trunk. == More details == Craig Rasmussen and I have been working with the MPI-3 Fortran WG and Fortran J3 committees for a long, long time to make a prototype MPI-3 Fortran bindings implementation. We think we're at a stable enough state to bring this stuff back to the trunk, with the goal of including it in OMPI v1.7. Special thanks go out to everyone who has been incredibly patient and helpful to us in this journey: * Rolf Rabenseifner/HLRS (mastermind/genius behind the entire MPI-3 Fortran effort) * The Fortran J3 committee * Tobias Burnus/gfortran * Tony !Goetz/Absoft * Terry !Donte/Oracle * ...and probably others whom I'm forgetting :-( There's still opportunities for optimization in the mpi_f08 implementation, but by and large, it is as far along as it can be until Fortran compilers start implementing the new F08 dimension(..) syntax. Note that gfortran is currently unsupported for the mpi_f08 module and the new mpi module. gfortran users will a) fall back to the same mpi module implementation that is in OMPI v1.5.x, and b) not get the new mpi_f08 module. The gfortran maintainers are actively working hard to add the necessary features to support both the new mpi_f08 module and the new mpi module implementations. This will take some time. As mentioned above, ompi/mpi/f77 and ompi/mpi/f90 no longer exist. All the fortran bindings implementations have been collated under ompi/mpi/fortran; each implementation has its own subdirectory: {{{ ompi/mpi/fortran/ base/ - glue code mpif-h/ - what used to be ompi/mpi/f77 use-mpi-tkr/ - what used to be ompi/mpi/f90 use-mpi-ignore-tkr/ - new mpi module implementation use-mpi-f08/ - new mpi_f08 module implementation }}} There's also a prototype 6-function-MPI implementation under use-mpi-f08-desc that emulates the new F08 dimension(..) syntax that isn't fully available in Fortran compilers yet. We did that to prove it to ourselves that it could be done once the compilers fully support it. This directory/implementation will likely eventually replace the use-mpi-f08 version. Other things that were done: * ompi_info grew a few new output fields to describe what level of Fortran support is included * Existing Fortran examples in examples/ were renamed; new mpi_f08 examples were added * The old Fortran MPI libraries were renamed: * libmpi_f77 -> libmpi_mpifh * libmpi_f90 -> libmpi_usempi * The configury for Fortran was consolidated and significantly slimmed down. Note that the F77 env variable is now IGNORED for configure; you should only use FC. Example: {{{ shell$ ./configure CC=icc CXX=icpc FC=ifort ... }}} All of this work was done in a Mercurial branch off the SVN trunk, and hosted at Bitbucket. This branch has got to be one of OMPI's longest-running branches. Its first commit was Tue Apr 07 23:01:46 2009 -0400 -- it's over 3 years old! :-) We think we've pulled in all relevant changes from the OMPI trunk (e.g., Fortran implementations of the new MPI-3 MPROBE stuff for mpif.h, use mpi, and use mpi_f08, and the recent Fujitsu Fortran patches). I anticipate some instability when we bring this stuff into the trunk, simply because it touches a LOT of code in the MPI layer in the OMPI code base. We'll try our best to make it as pain-free as possible, but please bear with us when it is committed. This commit was SVN r26283.
794 строки
20 KiB
Fortran
794 строки
20 KiB
Fortran
! -*- fortran -*-
|
|
!
|
|
! Copyright (c) 2006-2012 Cisco Systems, Inc. All rights reserved.
|
|
! Copyright (c) 2007 Los Alamos National Security, LLC. All rights
|
|
! reserved.
|
|
! $COPYRIGHT$
|
|
!
|
|
! Additional copyrights may follow
|
|
!
|
|
! $HEADER$
|
|
|
|
|
|
interface MPI_File_call_errhandler
|
|
|
|
subroutine MPI_File_call_errhandler(fh, errorcode, ierr)
|
|
integer, intent(in) :: fh
|
|
integer, intent(in) :: errorcode
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_call_errhandler
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_close
|
|
|
|
subroutine MPI_File_close(fh, ierr)
|
|
integer, intent(inout) :: fh
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_close
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_create_errhandler
|
|
|
|
subroutine MPI_File_create_errhandler(function, errhandler, ierr)
|
|
external :: function
|
|
integer, intent(out) :: errhandler
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_create_errhandler
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_delete
|
|
|
|
subroutine MPI_File_delete(filename, info, ierr)
|
|
character(len=*), intent(in) :: filename
|
|
integer, intent(in) :: info
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_delete
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_amode
|
|
|
|
subroutine MPI_File_get_amode(fh, amode, ierr)
|
|
integer, intent(in) :: fh
|
|
integer, intent(out) :: amode
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_amode
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_atomicity
|
|
|
|
subroutine MPI_File_get_atomicity(fh, flag, ierr)
|
|
integer, intent(in) :: fh
|
|
logical, intent(out) :: flag
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_atomicity
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_byte_offset
|
|
|
|
subroutine MPI_File_get_byte_offset(fh, offset, disp, ierr)
|
|
include 'mpif-config.h'
|
|
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 MPI_File_get_byte_offset
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_errhandler
|
|
|
|
subroutine MPI_File_get_errhandler(file, errhandler, ierr)
|
|
integer, intent(in) :: file
|
|
integer, intent(out) :: errhandler
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_errhandler
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_group
|
|
|
|
subroutine MPI_File_get_group(fh, group, ierr)
|
|
integer, intent(in) :: fh
|
|
integer, intent(out) :: group
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_group
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_info
|
|
|
|
subroutine MPI_File_get_info(fh, info_used, ierr)
|
|
integer, intent(in) :: fh
|
|
integer, intent(out) :: info_used
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_info
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_position
|
|
|
|
subroutine MPI_File_get_position(fh, offset, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: offset
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_position
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_position_shared
|
|
|
|
subroutine MPI_File_get_position_shared(fh, offset, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: offset
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_position_shared
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_size
|
|
|
|
subroutine MPI_File_get_size(fh, size, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(out) :: size
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_size
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_type_extent
|
|
|
|
subroutine MPI_File_get_type_extent(fh, datatype, extent, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer, intent(in) :: datatype
|
|
integer(kind=MPI_ADDRESS_KIND), intent(out) :: extent
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_get_type_extent
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_get_view
|
|
|
|
subroutine MPI_File_get_view(fh, disp, etype, filetype, datarep&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
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 MPI_File_get_view
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_iread
|
|
|
|
subroutine MPI_File_iread(fh, buf, count, datatype, request&
|
|
, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: request
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_iread
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_iread_at
|
|
|
|
subroutine MPI_File_iread_at(fh, offset, buf, count, datatype, &
|
|
request, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: request
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_iread_at
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_iread_shared
|
|
|
|
subroutine MPI_File_iread_shared(fh, buf, count, datatype, request&
|
|
, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: request
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_iread_shared
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_iwrite
|
|
|
|
subroutine MPI_File_iwrite(fh, buf, count, datatype, request&
|
|
, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: request
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_iwrite
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_iwrite_at
|
|
|
|
subroutine MPI_File_iwrite_at(fh, offset, buf, count, datatype, &
|
|
request, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: request
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_iwrite_at
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_iwrite_shared
|
|
|
|
subroutine MPI_File_iwrite_shared(fh, buf, count, datatype, request&
|
|
, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: request
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_iwrite_shared
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_open
|
|
|
|
subroutine MPI_File_open(comm, filename, amode, info, fh&
|
|
, ierr)
|
|
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 MPI_File_open
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_preallocate
|
|
|
|
subroutine MPI_File_preallocate(fh, size, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: size
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_preallocate
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read
|
|
|
|
subroutine MPI_File_read(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_all
|
|
|
|
subroutine MPI_File_read_all(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_all
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_all_begin
|
|
|
|
subroutine MPI_File_read_all_begin(fh, buf, count, datatype, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_all_begin
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_all_end
|
|
|
|
subroutine MPI_File_read_all_end(fh, buf, status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_all_end
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_at
|
|
|
|
subroutine MPI_File_read_at(fh, offset, buf, count, datatype, &
|
|
status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_at
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_at_all
|
|
|
|
subroutine MPI_File_read_at_all(fh, offset, buf, count, datatype, &
|
|
status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_at_all
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_at_all_begin
|
|
|
|
subroutine MPI_File_read_at_all_begin(fh, offset, buf, count, datatype&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_at_all_begin
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_at_all_end
|
|
|
|
subroutine MPI_File_read_at_all_end(fh, buf, status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_at_all_end
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_ordered
|
|
|
|
subroutine MPI_File_read_ordered(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_ordered
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_ordered_begin
|
|
|
|
subroutine MPI_File_read_ord_begin(fh, buf, count, datatype, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_ord_begin
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_ordered_end
|
|
|
|
subroutine MPI_File_read_ordered_end(fh, buf, status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_ordered_end
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_read_shared
|
|
|
|
subroutine MPI_File_read_shared(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@ :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_read_shared
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_seek
|
|
|
|
subroutine MPI_File_seek(fh, offset, whence, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
integer, intent(in) :: whence
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_seek
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_seek_shared
|
|
|
|
subroutine MPI_File_seek_shared(fh, offset, whence, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
integer, intent(in) :: whence
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_seek_shared
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_set_atomicity
|
|
|
|
subroutine MPI_File_set_atomicity(fh, flag, ierr)
|
|
integer, intent(in) :: fh
|
|
logical, intent(in) :: flag
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_set_atomicity
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_set_errhandler
|
|
|
|
subroutine MPI_File_set_errhandler(file, errhandler, ierr)
|
|
integer, intent(in) :: file
|
|
integer, intent(in) :: errhandler
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_set_errhandler
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_set_info
|
|
|
|
subroutine MPI_File_set_info(fh, info, ierr)
|
|
integer, intent(in) :: fh
|
|
integer, intent(in) :: info
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_set_info
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_set_size
|
|
|
|
subroutine MPI_File_set_size(fh, size, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: size
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_set_size
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_set_view
|
|
|
|
subroutine MPI_File_set_view(fh, disp, etype, filetype, datarep, &
|
|
info, ierr)
|
|
include 'mpif-config.h'
|
|
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 MPI_File_set_view
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_sync
|
|
|
|
subroutine MPI_File_sync(fh, ierr)
|
|
integer, intent(in) :: fh
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_sync
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write
|
|
|
|
subroutine MPI_File_write(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_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 MPI_File_write
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_all
|
|
|
|
subroutine MPI_File_write_all(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_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 MPI_File_write_all
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_all_begin
|
|
|
|
subroutine MPI_File_write_all_begin(fh, buf, count, datatype, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_write_all_begin
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_all_end
|
|
|
|
subroutine MPI_File_write_all_end(fh, buf, status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_write_all_end
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_at
|
|
|
|
subroutine MPI_File_write_at(fh, offset, buf, count, datatype, &
|
|
status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_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 MPI_File_write_at
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_at_all
|
|
|
|
subroutine MPI_File_write_at_all(fh, offset, buf, count, datatype, &
|
|
status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_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 MPI_File_write_at_all
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_at_all_begin
|
|
|
|
subroutine MPI_File_wr_at_all_begin(fh, offset, buf, count, datatype&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
integer(kind=MPI_OFFSET_KIND), intent(in) :: offset
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_wr_at_all_begin
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_at_all_end
|
|
|
|
subroutine MPI_File_write_at_all_end(fh, buf, status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_write_at_all_end
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_ordered
|
|
|
|
subroutine MPI_File_write_ordered(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_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 MPI_File_write_ordered
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_ordered_begin
|
|
|
|
subroutine MPI_File_write_ordered_begin(fh, buf, count, datatype, ierr)
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, intent(in) :: count
|
|
integer, intent(in) :: datatype
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_write_ordered_begin
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_ordered_end
|
|
|
|
subroutine MPI_File_write_ordered_end(fh, buf, status, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_TYPE@, intent(in) :: buf
|
|
integer, dimension(MPI_STATUS_SIZE), intent(out) :: status
|
|
integer, intent(out) :: ierr
|
|
end subroutine MPI_File_write_ordered_end
|
|
|
|
end interface
|
|
|
|
|
|
interface MPI_File_write_shared
|
|
|
|
subroutine MPI_File_write_shared(fh, buf, count, datatype, status&
|
|
, ierr)
|
|
include 'mpif-config.h'
|
|
integer, intent(in) :: fh
|
|
@OMPI_FORTRAN_IGNORE_TKR_PREDECL@ buf
|
|
@OMPI_FORTRAN_IGNORE_TKR_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 MPI_File_write_shared
|
|
|
|
end interface
|