LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Neil Storer (Neil.Storer_at_[hidden])
Date: 2004-04-07 02:59:26


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 |
    +-----------------------------------------------------------------+