LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Michael Sabielny (sabielny_at_[hidden])
Date: 2003-04-03 01:11:54


Am Donnerstag, 3. April 2003 01:43 schrieb Liu, Junhui:
> Hi,
>
> We installed Redhat8.0 and have the Lam/MPI installed. I can use the mpif77
> to compile my fortran MPI code, but when I use the Portland f90 fortran
> compiler, such as pgf90, I got messages such as
>
> my_mpi.o: In function `MAIN_':
> my_mpi.o(.text+0x38): undefined reference to `mpi_init_'
> my_mpi.o(.text+0x57): undefined reference to `mpi_comm_size_'
> my_mpi.o(.text+0x76): undefined reference to `mpi_comm_rank_'
> my_mpi.o(.text+0x1ff): undefined reference to `mpi_send_'
> my_mpi.o(.text+0x257): undefined reference to `mpi_recv_'
> my_mpi.o(.text+0x337): undefined reference to `mpi_finalize_'
> I would appreciate any help.
>
> Thanks.
>
> Junhui
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/

It seems, that you have to compile the LAM-MPI Software for usage with
Portland f90 by yourself. From my experience LAM on any Linux distribution is
made for gcc and g77 and not for any other compiler.

Check your LAM-MPT with: mpif77 -showme
                                mpicc -showme
Play around with: export LAMHF77=f90
Maybe this will work.

Regards,
Michael Sabielny