[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bgl-discuss] more MPI link problems




If you're making MPI calls from Fortran you presumably need

-lfmpich.rts

in your link line.

Cheers,

Tom

On Thu, 6 Oct 2005, Rob Ross wrote:

It can't be this easy, but you don't really have "mpi_init()" in the code right? It's "MPI_Init()".

Probably it's something more tricky than this, but I had to make sure.

Rob

Katie Antypas wrote:
Hi,

We am having trouble linking to the mpi library for a code which is not FLASH. These same linker lines work for our FLASH code so we are a bit stumped.

Our LD line and error messages are below.

Thanks for any help,

Katie


FC = blrts_xlf -I/bgl/BlueLight/ppcfloor/bglsys/include CC = blrts_xlc -I/bgl/BlueLight/ppcfloor/bglsys/include CPP = blrts_xlC -E -I/bgl/BlueLight/ppcfloor/bglsys/include


LD = blrts_xlf -L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts -lmsglayer.rts -ldevices.rts -lrts.rts -ldevices.rts


main.o: In function `main':
main.o(.text+0xa4): undefined reference to `mpi_init'
main.o(.text+0xc8): undefined reference to `mpi_comm_rank'
main.o(.text+0xdc): undefined reference to `mpi_comm_size'
main.o(.text+0x1914): undefined reference to `mpi_finalize'
main.o: In function `glblmax':
main.o(.text+0x2c50): undefined reference to `mpi_allreduce'
main.o: In function `glbldmax':
main.o(.text+0x2cd4): undefined reference to `mpi_allreduce'
main.o: In function `glblsum':
main.o(.text+0x2d58): undefined reference to `mpi_allreduce'
main.o: In function `glbldsum':
main.o(.text+0x2e00): undefined reference to `mpi_allreduce'
main.o: In function `layout':
main.o(.text+0x4d40): undefined reference to `mpi_comm_rank'
main.o(.text+0x4d50): undefined reference to `mpi_comm_size'
bdrys.o: In function `xbdrys':
bdrys.o(.text+0xa8): undefined reference to `mpi_irecv'
bdrys.o(.text+0xe4): undefined reference to `mpi_irecv'
bdrys.o(.text+0x130): undefined reference to `mpi_irecv'
bdrys.o(.text+0x174): undefined reference to `mpi_irecv'

etc...



- -------------------------------------------------------------------- To add or remove yourself from this mailing list, use the 'notifyme' command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.


- -------------------------------------------------------------------- To add or remove yourself from this mailing list, use the 'notifyme' command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.