LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: ST Wong (ST_at_[hidden])
Date: 2004-04-07 03:57:07


Hi,

I see. I built the LAM library with default options, i.e. without "-q
extname". In fact, the program I tested with comes from a software
package. In the this package, all MPI calls are terminated with "_".

Thanks for your help.
Best Regards,
/ST

-----Original Message-----
From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf
Of Neil Storer
Sent: Wednesday, April 07, 2004 3:59 PM
To: General LAM/MPI mailing list
Subject: Re: LAM: pls help: LAM on AIX

ST Wong wrote:
> Hi,
>
> Thanks for your help.
>
> I changed to mpif77 but the result is the same. However, if I change
> MPI_INIT_ to MPI_Init, the first line of error is gone:
>

The AIX compiler folds UPPER case routine names to LOWER case unless you
specify
the "-U" option which "Suppresses lowercase folding of Fortran code", so
(unless
you specify "-U", changing the case from UPPER to LOWER should have no
effect
(you could even call it as "MpI_iNiT" if you wanted to - FORTRAN only,
NOT C/C++).

HOWEVER you have terminated "MPI_INIT" with an underscore ("_") which
you have
removed when you converted the case and this is the problem.

If you built the LAM libraries without '-q extname' (the DEFAULT, same
as '-q
noextname') then the names in the libraries will NOT be terminated with
a '_'.

If you built the LAM libraries with a '-q extname' the names in the
libraries
will have an '_' appended.

I assume you did NOT use '-q extname', in which case you shouldn't have
an '_'
when you call the routines and you shouldn't compile your own code with
'-q
extname'.

Regards
        Neil

-- 
+-----------------+---------------------------------+------------------+
| Neil Storer     |    Head: Systems S/W Section    | Operations Dept. |
+-----------------+---------------------------------+------------------+
| ECMWF,          | email: neil.storer_at_[hidden]    |    //=\\  //=\\  |
| Shinfield Park, | Tel:   (+44 118) 9499353        |   //   \\//   \\ |
| Reading,        |        (+44 118) 9499000 x 2353 | ECMWF            |
| Berkshire,      | Fax:   (+44 118) 9869450        | ECMWF            |
| RG2 9AX,        |                                 |   \\   //\\   // |
| UK              | URL:   http://www.ecmwf.int/    |    \\=//  \\=//  |
+--+--------------+---------------------------------+----------------+-+
    | ECMWF is the European Centre for Medium-Range Weather Forecasts |
    +-----------------------------------------------------------------+
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/