Re: [OMPI users] NAG Fortran 2018 bindings with Open MPI 4.1.2

2021-12-23 Thread Wadud Miah via users
You can contact NAG support at supp...@nag.co.uk but they will look into
this in the new year.

Regards,

On Thu, 23 Dec 2021, 13:18 Matt Thompson via users, <
users@lists.open-mpi.org> wrote:

> Oh. Yes, I am on macOS. The Linux cluster I work on doesn't have NAG 7.1
> on it...mainly because I haven't asked for it. Until NAG fix the bug we are
> seeing, I figured why bother the admins.
>
> Still, it does *seem* like it should work. I might ask NAG support about
> it.
>
> On Wed, Dec 22, 2021 at 6:28 PM Tom Kacvinsky  wrote:
>
>> On Wed, Dec 22, 2021 at 5:45 PM Tom Kacvinsky  wrote:
>> >
>> > On Wed, Dec 22, 2021 at 4:11 PM Matt Thompson 
>> wrote:
>> > >
>> > > All,
>> > >
>> > > When I build Open MPI with NAG, I have to pass in:
>> > >
>> > >   FCFLAGS"=-mismatch_all -fpp"
>> > >
>> > > this flag tells nagfor to downgrade some errors with interfaces to
>> warnings:
>> > >
>> > >-mismatch_all
>> > >  Further downgrade consistency checking of procedure
>> argument lists so that calls to routines in the same file which are
>> > >  incorrect will produce warnings instead of error
>> messages.  This option disables -C=calls.
>> > >
>> > > The fpp flag is how you tell NAG to do preprocessing (it doesn't
>> automatically do it with .F90 files).
>> > >
>> > > I also have to pass in a lot of other flags as seen here:
>> > >
>> > >
>> https://github.com/mathomp4/parcelmodulefiles/blob/main/Compiler/nag-7.1_7101/openmpi/4.1.2.lua
>> > >
>> > > Now I hadn't yet tried NAG 7.1 with Open MPI because NAG 7.1 has a
>> bug with a library I depend on, but it does promise better F2008 support.
>> To see what happens, I tried myself and added --enable-mpi-fortran=all, but:
>> > >
>> > > checking if building Fortran 'use mpi_f08' bindings... no
>> > > configure: error: Cannot build requested Fortran bindings, aborting
>> > >
>> > > Unfortunately, the NAG Fortran guru I work with is off until the new
>> year. When he comes back, I might ask him about this. He might know
>> something we can do to make NAG happy with mpif08.
>> > >
>> >
>> > The very curious thing about this is that NAG 7.1 is that mpif08
>> > configured properly with the macOS (Intel architecture) flavor of
>> > it.  But as this thread seems to indicate, it barfs on Linux.  Just
>> > an extra data point.
>> >
>>
>> I'd like to recall that statement, I was not looking at the config.log
>> carefully enough.  I see this still, even on macOS
>>
>> checking if building Fortran 'use mpi_f08' bindings... no
>>
>
>
> --
> Matt Thompson
>“The fact is, this is about us identifying what we do best and
>finding more ways of doing less of it better” -- Director of Better
> Anna Rampton
>


[OMPI users] NAG Fortran 2018 bindings with Open MPI 4.1.2

2021-12-22 Thread Wadud Miah via users
Hi,

I tried using the NAG compiler 7.2 which is fully Fortran 2008 compliant,
but the Open MPI configure script shows that it will not build the Fortran
2008 MPI bindings:

$ FC=nagfor ./configure --prefix=/usr/local/openmpi-4.1.2
[ ... ]
checking if building Fortran 'use mpi_f08' bindings... no
Build MPI Fortran bindings: mpif.h, use mpi

Could someone please look into this?

Cheers,