[Pw_forum] Problem on compiling espresso-4.3.2

Giovanni Cantele giovanni.cantele at spin.cnr.it
Tue Jul 17 11:02:43 CEST 2012


On Jul 17, 2012, at 10:51 AM, Mahdi Faghih nasiri wrote:

> Dear all,
>  When I tried to compile espresso-4.3.2 with composer_xe_2011_sp1.6.233, the error "cannot find -lmkl_em64t_nothread" came out.
> i use this command for installing QE from link below:
> http://www.democritos.it/pipermail/pw_forum/2011-February/019440.html
> 
> ./configure BLAS_LIBS="-L/tmp/espresso-4.3.2/install -L/opt/intel/mkl/lib/intel64 -lmkl_em64t_nothread" LAPACK_LIBS="-L/tmp/espresso-4.3.2/install -L/opt/intel/mkl/lib/intel64"
> make all
> 
> i think mkl library changed in this version.
> Please help me to resolve it, thank you in advance!
> 
>  
> Mahdi Faghih nasiri
> MSC,
> Guilan University,
> Rasht, Iran.


try either of the following:
1) modify your make.sys according to the following lines:
LDFLAGS        = -static-intel -Wl,--start-group /opt/intel/mkl/lib/intel64//libmkl_intel_lp64.a /opt/intel/mkl/lib/intel64//libmkl_sequential.a /opt/intel/mkl/lib/intel64//libmkl_core.a -Wl,--end-group -lpthread -lm
BLAS_LIBS      =   -lmkl_intel_lp64  -lmkl_sequential -lmkl_core
LAPACK_LIBS    =

2) run the configure script using:
./configure LDFLAGS="-Wl,--start-group ${MKL_PATH}/libmkl_intel_lp64.a ${MKL_PATH}/libmkl_sequential.a ${MKL_PATH}/libmkl_core.a -Wl,--end-group -lpthread -lm"
where MKL_PATH=/opt/intel/mkl/lib/intel64

Anyhow, you can also refer to the following link:
http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
where, by selecting the INTEL compiler/mkl version you use and your platform, the correct way of linking to mkl
is shown.

Giocanni


--

**** PLEASE NOTICE THE NEW E-MAIL ADDRESS: giovanni.cantele at spin.cnr.it

Giovanni Cantele, PhD
CNR-SPIN
c/o Dipartimento di Scienze Fisiche
Universita' di Napoli "Federico II"
Complesso Universitario M. S. Angelo - Ed. 6
Via Cintia, I-80126, Napoli, Italy
Phone: +39 081 676910
Skype contact: giocan74

ResearcherID: http://www.researcherid.com/rid/A-1951-2009
Web page: http://people.na.infn.it/~cantele
                     http://www.nanomat.unina.it

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20120717/751e2b1e/attachment.html>


More information about the users mailing list