Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] OpenMPI with NAG compiler and gcc 4.6
From: Ning Li (ning.li_at_[hidden])
Date: 2011-07-11 04:17:15

Hi Jeff,

I am willing to help test OpenMPI with the NAG compiler from time to time but not sure how. If you could give me specific instructions I am very happy to help.

As for this technical issue, I did some research online. It appears that a later version of Libtool (probably 2.2.10+) added support to NAG Fortran compiler. There are discussions at

The relevant section of code (which I found from Libtool 2.4) looks like:

        # NAG Fortran compiler
        _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
        _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
        _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'

The basic idea here is that nagfor calls gcc (not ld directly) for linking so there are two stages of parameter passing, so the rather strange looking '-Wl,-Wl,,' flag.

I can see that in OpenMPI 1.5.3 source, the $OPENMPI_DIR/config/libtool.m4 file does not contain the above code. I have not nuch experience using Libtool so I don't know how to fix this. Simply adding the new code does not seem to work.

Best regards,


Date: Thu, 7 Jul 2011 20:32:21 -0400
From: Jeff Squyres<jsquyres_at_[hidden]>
Subject: Re: [OMPI users] OpenMPI with NAG compiler and gcc 4.6

> Sorry for the delay in replying.:-\
> I'm afraid we don't test with the NAG compiler.:-(
> Would this be something that the NAG would be willing to do for the Open MPI community? Companies like Absoft do -- we have a light test suite that can be fully automated (i.e., run via cron). Ping me offline if you would be able to do this.
> I suspect that the version of Libtool we're using doesn't fully understand the NAG compiler. We get many of the compile-time options by extracting them from Libtool.
> We use Libtool 2.2.6b for OMPI v1.5. Do you know if that version of Libtool supports the NAG compiler well, or if a more recent version supports it better? Libtool made some fairly major changes late in the 2.2.x series that we don't really want to have to adapt to in the v1.5 series if we don't have to (i.e., we planned to adapt to them for the v1.7 series). But perhaps we could patch our Libtool for NAG...?

The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.