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-06 20:53:40


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:

> 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

Shall I change them all, or is there any workaround ?
Thanks again.
Best Regards,
/ST

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

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 |
    +-----------------------------------------------------------------+
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/