Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] undefined reference to `mpi_allreduce_ and several mpi references

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] undefined reference to `mpi_allreduce_ and several mpi references


Chronological Thread 
  • From: Alain Jacques <ajs.jacques@gmail.com>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] undefined reference to `mpi_allreduce_ and several mpi references
  • Date: Mon, 27 Apr 2009 20:49:39 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=HMlNGH0DjnTicdELQmC1I9T6BCp+IW4tLP34GAprAedPR8Fjpfu52TdSFgNe+pX+hO xQjbnvNQ3UWK80lcf/2KHX6OO3lQPP3fx5v6j1dX0HZU/xP4TpCDz+GppczfpDIMCtA7 MyMQ08KttsUhUuRHtpzuFzbnAPBhQib5CaQ4I=

cpadilla@uach.mx wrote:
f6dcbbc847fb.49f5a589@uach.mx" type="cite">
Please note that abini[sp] will be built with the LAM compiler 
wrapper  
(mpif90), and that's what you should see on the output of make.

Then if you want to compile with ifort, you'll have to make sure 
that  
LAM has been built with ifort as well.
    

I'm not sure what compiler was used. 

mpif90 -showme is your friend.

f6dcbbc847fb.49f5a589@uach.mx" type="cite">
LAM was installed by Oscar software automatically. After installation it creates LAM directory but I don't use any fortran compiler. I installed ifort later because was a prerequisite for abinit.  
So let me understand,  to get everything work together I must compile everything with same compiler? If this is true, I have to follow either of these steps:
  

mpif90 is a kind of wrapper around the actual compiler. So your mpi toolchain and compiler have to be in agreement.

f6dcbbc847fb.49f5a589@uach.mx" type="cite">
1. Use mpif90 instead of ifort as compiler? So I need to clean everything and execute with this fortran compiler.
  

probably the easiest solution as long as mpif90 is related to a reasonably recent gcc/gfortran compiler (4.2.x and 4.3.x are nice, 4.1.x may work).

f6dcbbc847fb.49f5a589@uach.mx" type="cite">
or

Compile openmpi with ifort and then use instead of LAM to make sure that both products were compiled with same product.
  

probably the cleanest solution. Check PATH and LD_LIBRARY_PATH to avoid mixing mpi toolchains.


Alain





Archive powered by MHonArc 2.6.15.

Top of Page