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
|