configure with openmpi

Having trouble compiling the Yambo source? Using an unusual architecture? Problems with the "configure" script? Problems in GPU architectures? This is the place to look.

Moderators: Davide Sangalli, andrea.ferretti, myrta gruning, andrea marini, Daniele Varsano, Conor Hogan, Nicola Spallanzani

Forum rules
If you have trouble compiling Yambo, please make sure to list:
(1) the compiler (vendor and release: e.g. intel 10.1)
(2) the architecture (e.g. 64-bit IBM SP5)
(3) if the problems occur compiling in serial/in parallel
(4) the version of Yambo (revision number/major release version)
(5) the relevant compiler error message
Post Reply
sdwang
Posts: 287
Joined: Fri Apr 09, 2010 12:30 pm

configure with openmpi

Post by sdwang » Tue Oct 05, 2010 12:25 pm

I want to compile yambo v-3.2.1 with openmpi-1.2.1, but I do not kown what is correct in ./configure.For example, I compile with mpich , I can type:
./configure --with-iotk=/home/sdwang/espresso-4.1.2/iotk/ --with-p2y=4.0 --with-mpi=/usr/local/mpich/lib/libmpichf90.a
But for opemmpi, I type
./configure --with-iotk=/home/sdwang/espresso-4.1.2/iotk/ --with-p2y=4.0 --with-mpi=/home/sdwang/openmpi/lib/libmpi_f90.la, it complaits:
>>>[Linking yambo]<<<
make[1]: Entering directory `/home/sdwang/yambo-3.2.1-r.448/driver'
yambo_driver.F
/home/sdwang/openmpi/lib/libmpi_f90.la: file not recognized: File format not recognized
make[1]: *** [yambo] Error 1
make[1]: Leaving directory `/home/sdwang/yambo-3.2.1-r.448/driver'
make: *** [yambo] Error 2

I do not kown what is correct in openmpi for --with-mpi=/home/sdwang/openmpi/lib/...(what I should write here?)

Thanks!
SDWang
S. D. Wang
IMU,HOHHOT,CHINA
E-mail: sdwang@imu.edu.cn

User avatar
Conor Hogan
Posts: 111
Joined: Tue Mar 17, 2009 12:17 pm
Contact:

Re: configure with openmpi

Post by Conor Hogan » Tue Oct 05, 2010 12:38 pm

I have to admit I've no idea what an ".la" file is - is it a library file like ".a"? How do you use it when linking other (simple) parallel codes?
Dr. Conor Hogan
CNR-ISM, via Fosso del Cavaliere, 00133 Roma, Italy;
Department of Physics and European Theoretical Spectroscopy Facility (ETSF),
University of Rome "Tor Vergata".

sdwang
Posts: 287
Joined: Fri Apr 09, 2010 12:30 pm

Re: configure with openmpi

Post by sdwang » Tue Oct 05, 2010 12:59 pm

Conor Hogan wrote:I have to admit I've no idea what an ".la" file is - is it a library file like ".a"? How do you use it when linking other (simple) parallel codes?
When I ls in directory ./lib, it include
libmca_common_sm.la libmpi_f77.la libmpi.la libopen-pal.la libotf.a
libmca_common_sm.so libmpi_f77.so libmpi.so libopen-pal.so libotf.la
libmca_common_sm.so.1 libmpi_f77.so.0 libmpi.so.0 libopen-pal.so.0 libvt.a
libmca_common_sm.so.1.0.0 libmpi_f77.so.0.0.0 libmpi.so.0.0.1 libopen-pal.so.0.0.0 libvt.fmpi.a
libmpi_cxx.la libmpi_f90.la libopenmpi_malloc.la libopen-rte.la libvt.mpi.a
libmpi_cxx.so libmpi_f90.so libopenmpi_malloc.so libopen-rte.so mpi.mod
libmpi_cxx.so.0 libmpi_f90.so.0 libopenmpi_malloc.so.0 libopen-rte.so.0 openmpi
libmpi_cxx.so.0.0.0 libmpi_f90.so.0.0.0 libopenmpi_malloc.so.0.0.0 libopen-rte.so.0.0.0

So what is the file I should use?
S. D. Wang
IMU,HOHHOT,CHINA
E-mail: sdwang@imu.edu.cn

User avatar
myrta gruning
Posts: 240
Joined: Tue Mar 17, 2009 11:38 am
Contact:

Re: configure with openmpi

Post by myrta gruning » Tue Oct 05, 2010 3:14 pm

Dear Shudong Wang

maybe you can refer to the openmpi documentation. Looking at the ls of the dir I cannot really say.

Regards,
Myrta
Dr Myrta Grüning
School of Mathematics and Physics
Queen's University Belfast - Northern Ireland

http://www.researcherid.com/rid/B-1515-2009

Post Reply