George is correct that the Fortran bindings are optional, but the datatype declarations are not.
I've raised the question in the MPI Forum Fortran Working Group: http://lists.mpi-forum.org/mpiwg-fortran/2016/02/1722.php -----Original Message----- From: Jed Brown <j...@jedbrown.org> Reply: Open MPI Users <us...@open-mpi.org> Date: February 10, 2016 at 1:09:39 AM To: Gilles Gouaillardet <gil...@rist.or.jp>, Open MPI Users <us...@open-mpi.org> Subject: Re: [OMPI users] OMPI users] Fortran vs C reductions > Gilles Gouaillardet writes: > >> implementation. Must I compile in support for being called with > >> MPI_DOUBLE_COMPLEX? > >> > > does that really matter ? > > Possibly. For example, if the library needed to define some static > data, its setup might involve communicating values before being called > with that particular type. That setup phase would fail if the Fortran > type is invalid. > > > i assume your library and the user code are built with the same OpenMPI. > > if there is no Fortran support, then you are compiling code that cannot > > be invoked (e.g. dead code), > > and though that is not the most elegant thing to do, that does not sound > > like a showstopper to me. > > > > so yes, compile in support for being called with Fortran predefined > > datatypes, > > worst case scenario is you generate broken dead code. > > No, worst case is that the library crashes at run-time, e.g., during > setup of some sort. > > I don't have a specific library with this behavior, but I can fill in > the details to scientifically justify such a thing. > > Anyway, my suggestion is to either make a compile-time error so that a > configure script can test its validity or make it possible to query at > run-time whether the type/object is valid. The latter would have the > advantage that you could rebuild MPI to add Fortran support and > dependent projects would not need to be rebuilt because they saw the > same environment. I think that would involve new function(s). > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2016/02/28483.php -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/