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-06 07:26:08


Hi,

You haven't told the loader (via f77) which libraries contain the LAM MPI
routines nor where the LAM MPI libraries are.

Use "mpif77" instead. This invokes the loader with the LAM MPI libraries.

Make sure you have the location of the LAM binaries in your PATH, e.g.

        PATH=/usr/local/lam/bin:$PATH ; export $PATH
        mpif77 -qnoextname -qmaxmem=-1 -o test test.F

See the User's Guide on the LAM-MPI website.

Regards
        Neil

ST Wong wrote:
> Hi all,
>
> I'm compiling an MPI program in Fortran on AIX 4.3.3 using native f77.
> I use :
>
> f77 -qnoextname -qmaxmem=-1 -o test test.F
>
> which returns unresolved symbols for MPI function calls, e.g.
>
> ld: 0711-317 ERROR: Undefined symbol: .mpi_init
> ld: 0711-317 ERROR: Undefined symbol: .mpi_comm_rank
> ld: 0711-317 ERROR: Undefined symbol: .mpi_comm_size
>
> where the MPI functions are called in capital letters. Shall I use -U
> (subpress converting symbols into lower case) and rename the call to
> something like MPI_Init, MPI_Comm_rank, MPI_Comm_size instead ? Or is
> there is any workaround?
>
> Thanks a lot.
> Sincerely,
> ST Wong
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/

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