Re: [OMPI users] Fortran vs C reductions

2016-02-08 Thread Jeff Squyres (jsquyres)
On Feb 8, 2016, at 8:59 AM, Brian Taylor wrote: > I want a program that's using Fortran MPI types to **FAIL** when built > against an MPI library that doesn't support Fortran, preferably at compile > time, with a very loud "NO FORTRAN SUPPORT!!!" error message. I don't > expect, nor want, any

Re: [OMPI users] Fortran vs C reductions

2016-02-08 Thread Brian Taylor
On Mon, Feb 8, 2016 at 12:31 AM, Jeff Hammond wrote: > >> > BTW: is there a reason you don't want to just use the C datatypes? The >> fundamental output of the index is an integer value -- casting it to a >> float of some flavor doesn't fundamentally change its value. >> >> The code in question

Re: [OMPI users] Fortran vs C reductions

2016-02-08 Thread Jeff Hammond
> > > > BTW: is there a reason you don't want to just use the C datatypes? The > fundamental output of the index is an integer value -- casting it to a > float of some flavor doesn't fundamentally change its value. > > The code in question is not mine. I have suggested to the developers that > th

Re: [OMPI users] Fortran vs C reductions

2016-02-07 Thread Brian Taylor
On Sun, Feb 7, 2016 at 8:29 AM, Jeff Squyres (jsquyres) wrote: > > On Feb 4, 2016, at 9:46 PM, Brian Taylor wrote: > > > > Thanks for the explanation, Jeff. I'm not surprised to hear that using a Fortran type from C in this manner is potentially buggy and not portable. However, assuming that th

Re: [OMPI users] Fortran vs C reductions

2016-02-07 Thread Jeff Squyres (jsquyres)
On Feb 4, 2016, at 9:46 PM, Brian Taylor wrote: > > Thanks for the explanation, Jeff. I'm not surprised to hear that using a > Fortran type from C in this manner is potentially buggy and not portable. > However, assuming that the C and Fortran types are interoperable, is there > any guarante

Re: [OMPI users] Fortran vs C reductions

2016-02-04 Thread Brian Taylor
On Thu, Feb 4, 2016 at 12:28 PM, Jeff Squyres (jsquyres) wrote: > > On Feb 4, 2016, at 12:02 PM, Brian Taylor wrote: > > > > I have a question about the standards compliance of OpenMPI. Is the following program valid according to the MPI standard? > > > > #include > > #include > > > > int main

Re: [OMPI users] Fortran vs C reductions

2016-02-04 Thread Jeff Squyres (jsquyres)
On Feb 4, 2016, at 12:02 PM, Brian Taylor wrote: > > I have a question about the standards compliance of OpenMPI. Is the > following program valid according to the MPI standard? > > #include > #include > > int main(int argc, char **argv) > { > int rank; > double in[2], out[2]; > > MP