Somehow Brian's email didn't come through right in my mailing list digest and his email is hidden.  Brian, would you mind re-sending me your "right-on" email?

Thank you!

Aaron Thompson
Vanderbilt University
aaron.p.thompson@vanderbilt.edu



On Jul 10, 2007, at 11:37 AM, lam-request@lam-mpi.org wrote:

Send lam mailing list submissions to
lam@lam-mpi.org

To subscribe or unsubscribe via the World Wide Web, visit
http://www.lam-mpi.org/mailman/listinfo.cgi/lam
or, via email, send a message with subject or body 'help' to
lam-request@lam-mpi.org

You can reach the person managing the list at
lam-owner@lam-mpi.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lam digest..."
Today's Topics:

   1. Re: Undefined MPI symbols linker error with XLF (Brian Barrett)
   2. Re: Running MPI program in a cluster (Brian Barrett)
   3. Re: Undefined MPI symbols linker error with XLF (Joe Griffin)
   4. Undefined reference to MPI_INIT (Viding Markus)


Brian

On Jul 9, 2007, at 3:50 PM, Aaron Thompson wrote:

Joe,
I'm not too familiar with Fortran, I'm only compiling a program  
from source (DLPOLY).  Could you tell me what compiler flags I  
could try or where I could look?  I didn't see anything too likely  
in the xlf manual.

Thank you,

Aaron Thompson
Vanderbilt University
aaron.p.thompson@vanderbilt.edu



On Jul 9, 2007, at 3:07 PM, lam-request@lam-mpi.org wrote:

Aaron,

Instead of trying to correct it with LDFLAGS at load time, Can you  
use compiler
options for your code to match the MPI entry points?

Joe


From: lam-bounces@lam-mpi.org [mailto:lam-bounces@lam-mpi.org] On  
Behalf Of Aaron Thompson
Sent: Monday, July 09, 2007 11:43 AM
To: General LAM/MPI mailing list
Subject: Re: LAM: Undefined MPI symbols linker error with XLF

Underscores could be the issue.  My program is calling MPI  
functions in all caps with no underscoring, e.g. MPI_SEND .  I  
tried adding -fno_underscoring to my LDFLAGS, but that didn't  
help.  Are there any other flags can I try using?

Thank you,

Aaron Thompson
Vanderbilt University


Could your problem be Case or leading or trailing underscores?

Some code has:

MPI_Send
mpi_send
mpi_send_
_mpi_send_

The code and MPI libs need to have the same Case and underscore  
policy.

Regards,
joe Griffin

_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/

-- 
   Brian Barrett
   LAM/MPI Developer
   Make today a LAM/MPI day!







I use the lamboot comand to set up the LAM enviroment in a single  
computer,
i.e., "lamboot -v". I am running a simple master slave program and  
it runs
alright when I use the "mpirun -np 2 main" command. I then try to  
set up a
simple cluster with only 2 computers making the hostfile as you  
guys told in
the user guide pdf. It seems to boot fine. The strange thing is  
that when I
run my program in a single computer with 2 processes it runs way  
faster then
when I run it with process 0 in machine 0 and process 1 in machine  
1. Any
idea why this happens? Any help would be appreciated.

This isn't totally unexpected, especially if one of the processes  
doesn't require much CPU time or you are on an SMP machine.  When  
processes are on the same node, LAM/MPI will use shared memory for  
communication.  If your cluster only has ethernet, bandwidth is  
halved and latency can easily be two or three orders of magnitude  
higher when compared to shared memory.  If your application uses lots  
of short messages, the disparity between shared memory and TCP  
performance can be really easy to see.


Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI Developer
   Make today a LAM/MPI day!






From: "Joe Griffin" <joe.griffin@mscsoftware.com>
Date: July 10, 2007 1:21:26 AM EDT
To: "General LAM/MPI mailing list" <lam@lam-mpi.org>
Subject: Re: LAM: Undefined MPI symbols linker error with XLF
Reply-To: General LAM/MPI mailing list <lam@lam-mpi.org>


Aaron,

Brian's advice about using  XLF is right on.

Joe

________________________________

From: lam-bounces@lam-mpi.org on behalf of Aaron Thompson
Sent: Mon 7/9/2007 2:50 PM
To: General LAM/MPI mailing list
Subject: Re: LAM: Undefined MPI symbols linker error with XLF


Joe,
I'm not too familiar with Fortran, I'm only compiling a program from source (DLPOLY).  Could you tell me what compiler flags I could try or where I could look?  I didn't see anything too likely in the xlf manual.

Thank you,

Aaron Thompson
Vanderbilt University
aaron.p.thompson@vanderbilt.edu



On Jul 9, 2007, at 3:07 PM, lam-request@lam-mpi.org wrote:



Aaron,

 

Instead of trying to correct it with LDFLAGS at load time, Can you use compiler
options for your code to match the MPI entry points?

 

Joe

 

 


________________________________

From: lam-bounces@lam-mpi.org [mailto:lam-bounces@lam-mpi.org] On Behalf Of Aaron Thompson
Sent: Monday, July 09, 2007 11:43 AM
To: General LAM/MPI mailing list
Subject: Re: LAM: Undefined MPI symbols linker error with XLF

 

Underscores could be the issue.  My program is calling MPI functions in all caps with no underscoring, e.g. MPI_SEND .  I tried adding -fno_underscoring to my LDFLAGS, but that didn't help.  Are there any other flags can I try using?

 

Thank you,

 

Aaron Thompson
Vanderbilt University
aaron.p.thompson@vanderbilt.edu

 

 


Could your problem be Case or leading or trailing underscores?

 

Some code has:

 

MPI_Send
mpi_send
mpi_send_
_mpi_send_

 

The code and MPI libs need to have the same Case and underscore policy.

 

Regards,
joe Griffin


<winmail.dat>
From: Viding Markus <markus.viding@kockums.se>
Date: July 10, 2007 11:37:21 AM EDT
To: "'lam@lam-mpi.org'" <lam@lam-mpi.org>
Cc: "'support@absoft.com'" <support@absoft.com>
Subject: LAM: Undefined reference to MPI_INIT
Reply-To: General LAM/MPI mailing list <lam@lam-mpi.org>


Hi,

 

I am running LAM/MPI 7.1.3 with a Linux 2.4.21-27 kernel. The compiler I am using is an Absoft Fortran 95 10.0. Trying to run a simple Hello world:

 

PROGRAM HELLO

INCLUDE 'mpif.h'

 

INTEGER :: RANK, SIZE, IERR

 

CALL MPI_INIT(IERR)

CALL MPI_COMM_RANK(MPI_COMM_WORLD,RANK,IERR)

CALL MPI_COMM_SIZE(MPI_COMM_WORLD,SIZE,IERR)

 

PRINT *, 'Hello! I am ', RANK, 'of', SIZE

 

CALL MPI_FINALIZE(IERR)

STOP

END PROGRAM

 

------------------------------------

 

When running mpif77 -showme, I get:

 

F95 -I/opt/lam/lam-7_1_3/include -L/opt/lam/lam-7_1_3/lib -llammpio -llamf77mpi -lmpi -llam -laio -laio -lutil -lpthread -pthread -ldl

 
 

When trying to compile the application this is what happens.

 

[mavi4915@tor10 Multi]$ mpif77 Hello.f90

/tmp/a9IZW7/Hello.o(.text+0x2f): In function `MAIN__':

: undefined reference to `MPI_INIT'

/tmp/a9IZW7/Hello.o(.text+0x4d): In function `MAIN__':

: undefined reference to `MPI_COMM_RANK'

/tmp/a9IZW7/Hello.o(.text+0x6b): In function `MAIN__':

: undefined reference to `MPI_COMM_SIZE'

/tmp/a9IZW7/Hello.o(.text+0x1bf): In function `MAIN__':

: undefined reference to `MPI_FINALIZE'

collect2: ld returned 1 exit status

link failed.

mpif77: No such file or directory

 

I read that it could have to do with the compiler used when installing LAM and the compiler used when compiling the application. So, I installed LAM forcing it to use f95 when configuring:

 

./configure FC=f95 -with-fc=f95 -prefix=/opt/lam/lam-7_1_3/

 

Any suggestions what to try next??