Page 1 of 1

configure with openmpi

Posted: Tue Oct 05, 2010 12:25 pm
by sdwang
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

Re: configure with openmpi

Posted: Tue Oct 05, 2010 12:38 pm
by Conor Hogan
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?

Re: configure with openmpi

Posted: Tue Oct 05, 2010 12:59 pm
by sdwang
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?

Re: configure with openmpi

Posted: Tue Oct 05, 2010 3:14 pm
by myrta gruning
Dear Shudong Wang

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

Regards,
Myrta