List Info

Thread: Re: LAM: Undefined MPI symbols linker error with XLF




Re: LAM: Undefined MPI symbols linker error with XLF
country flaguser name
United States
2007-07-09 16:50:09
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.thompsonvanderbilt.edu">aaron.p.thompsonvanderbilt.edu



On Jul 9, 2007, at 3:07 PM, lam-requestlam-mpi.org">lam-requestlam-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-bounceslam-mpi.org">lam-bounceslam-mpi.org [ lam-bounceslam-mpi.org">mailto:lam-bounceslam-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.thompsonvanderbilt.edu" style="color: blue; text-decoration: underline; ">aaron.p.thompsonvanderbilt.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

Re: LAM: Undefined MPI symbols linker error with XLF
country flaguser name
United States
2007-07-09 21:15:48
Your best bet is to recompile LAM/MPI using the xlf Fortran 

compiler.  That way, all the symbols will be properly
"mangled" and  
you won't have to deal with trying to use compiler options
to bend  
XLF to your will (which I've usually found goes badly for
me).

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.thompsonvanderbilt.edu
>
>
>
> On Jul 9, 2007, at 3:07 PM, lam-requestlam-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-bounceslam-mpi.org
[mailto:lam-bounceslam-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.thompsonvanderbilt.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
>
> _______________________________________________
> This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

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


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

Re: LAM: Undefined MPI symbols linker error with XLF
country flaguser name
United States
2007-07-10 00:21:26
Aaron,
 
Brian's advice about using  XLF is right on.
 
Joe

________________________________

From: lam-bounceslam-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.thompsonvanderbilt.edu



On Jul 9, 2007, at 3:07 PM, lam-requestlam-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-bounceslam-mpi.org [mailto:lam-bounceslam-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.thompsonvanderbilt.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



_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
  
[1-3]

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