List Info

Thread: LAM: (no subject)




LAM: (no subject)
country flaguser name
Germany
2007-09-04 05:12:58
Hi all,

I am trying to compile a simple MPI program using Intel
Fortran 9.01.45 with
LAM/MPI but I get "undefined reference" for the
MPI commands. The machine is a
64bit Opteron cluster. The compilation flags are:

/opt/intel/fce/9.1.045/bin/ifort -I/opt/lam/include
-fexceptions -pthread
-L/opt/lam/lib -llammpio -llamf77mpi -lmpi -llam -lutil -O
test_mpi.f

and the error message:

" /tmp/ifort5NlM0x.o(.text+0x34): In function
`MAIN__':
test_mpi.f: undefined reference to `mpi_init_'
/tmp/ifort5NlM0x.o(.text+0x4a):test_mpi.f: undefined
reference to
`mpi_comm_rank_'
/tmp/ifort5NlM0x.o(.text+0x60):test_mpi.f: undefined
reference to
`mpi_comm_size_'
/tmp/ifort5NlM0x.o(.text+0x10b):test_mpi.f: undefined
reference to
`mpi_finalize_' "

Does anybody has any idea for this problem?

Best,
Vagelis Harmandaris

------------------------------------------------------------
----
This message was sent using IMP, the Internet Messaging
Program.
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

Re: LAM: (no subject)
country flaguser name
United States
2007-09-04 08:21:15
harmandampip-mainz.mpg.de wrote:
> Hi all,
> 
> I am trying to compile a simple MPI program using Intel
Fortran 9.01.45 with
> LAM/MPI but I get "undefined reference" for
the MPI commands. The machine is a
> 64bit Opteron cluster. The compilation flags are:
> 
> /opt/intel/fce/9.1.045/bin/ifort -I/opt/lam/include
-fexceptions -pthread
> -L/opt/lam/lib -llammpio -llamf77mpi -lmpi -llam -lutil
-O test_mpi.f
> 
> and the error message:
> 
> " /tmp/ifort5NlM0x.o(.text+0x34): In function
`MAIN__':
> test_mpi.f: undefined reference to `mpi_init_'
> /tmp/ifort5NlM0x.o(.text+0x4a):test_mpi.f: undefined
reference to
> `mpi_comm_rank_'
> /tmp/ifort5NlM0x.o(.text+0x60):test_mpi.f: undefined
reference to
> `mpi_comm_size_'
> /tmp/ifort5NlM0x.o(.text+0x10b):test_mpi.f: undefined
reference to
> `mpi_finalize_' "
The most obvious idea is that you linked against a liblamf77
built with
some other compiler.  The normal way to build a lam MPI
Fortran
application is by first building mpif77 with the Fortran
compiler you
intend to use, then use mpif77 (with the ifort environment
variables
set) to perform the compile and link.
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )