[Pw_forum] Installation Problems: Can not found MKL

2010-05-07 Thread Weiguang Chen
Hi, All

I am installing espresso-4.1.3 in intel cluster. I have installed the latest
intel compiler(v11.069) and MKL(the same as compiler).
I compiled with configure like this: ./configure -enable-shared
LIBDIRS="/home/software/intel/Compiler/11.1/069/lib/intel64
/home/software/intel/Compiler/11.1/069/mkl/lib/em64t"
--prefix=/home/software/espresso F77=ifort CC=icc

But shows as follow:
checking whether Fortran files must be preprocessed... no
checking how to get verbose linking output from ifort... -v
checking for Fortran libraries of ifort...
-L/home/software/intel/Compiler/11.1/069/lib/intel64
-L/home/software/intel/Compiler/11.1/069/ipp/em64t/lib
-L/home/software/intel/Compiler/11.1/069/mkl/lib/em64t
-L/home/software/intel/Compiler/11.1/069/tbb/intel64/cc4.1.0_libc2.4_kernel2.6.16.21/lib
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../.. -L/lib64 -L/lib
-L/usr/lib64 -L/usr/lib -lifport -lifcore -limf -lsvml -lm -lipgo -lirc
-lpthread -lgcc_s -lirc_s -ldl
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, no
extra underscore
checking for library containing dgemm... no
in /opt/intel/mkl/*/lib/em64t: checking for library containing dgemm... no
in /opt/intel/mkl*/lib/em64t: checking for library containing dgemm... no
checking for library containing dgemm... no
in /usr/local/lib: checking for library containing dgemm... no
checking for library containing dgemm... no
in /usr/local/lib: checking for library containing dgemm... no
checking for library containing dspev... no
in /usr/local/lib: checking for library containing dspev... no
setting BLAS_LIBS... ../flib/blas.a
setting LAPACK_LIBS... ../flib/lapack.a
checking for library containing dfftw_execute_dft... -lfftw3
setting FFT_LIBS... -lfftw3
setting MASS_LIBS...
checking for library containing mpi_init... none required
setting MPI_LIBS...
checking for library containing mpi_init... (cached) none required
setting DFLAGS... -D__INTEL -D__FFTW3 -D__MPI -D__PARA
setting IFLAGS... -I../include
setting FDFLAGS... $(DFLAGS)
checking for ranlib... ranlib
setting RANLIB... ranlib
configure: creating ./config.status
config.status: creating include/fft_defs.h
config.status: creating make.sys
config.status: creating configure.msg
config.status: creating include/c_defs.h
config.status: include/c_defs.h is unchanged

ESPRESSO can take advantage of several optimized numerical libraries
(essl, fftw, mkl...). This configure script attempts to find them,
but may fail if they have been installed in non-standard locations.
If a required library is not found, the local copy will be compiled.

The following libraries have been found:
BLAS_LIBS=../flib/blas.a
LAPACK_LIBS=../flib/lapack.a
FFT_LIBS= -lfftw3
Please check if this is what you expect.

If any libraries are missing, you may specify a list of directories
to search and retry, as follows:
./configure LIBDIRS="list of directories, separated by spaces"

Parallel environment detected successfully.
Configured for compilation of parallel executables.

For more info, read the ESPRESSO User's Guide (Doc/users-guide.tex).

configure: success


It seems not found the MKL. What's the problem? How to solve it?

Thanks

Weiguang
-
*
*Chen, Weiguang   (PhD Student)
*   Laboratory of Condensed Matter Theory and Computatational Materials &
*   School of Physics and Engineering
*   75 North University Road, Physics Building  Rm#202
*   Zhengzhou University, Zhengzhou, 450052 Henan, China
*
*   Tel: 86-13203730117? 86-13783677861; Fax: 86-371-67767758;
*   Email: chenweiguang82 at gmail.com

-- next part --
An HTML attachment was scrubbed...
URL: 
http://www.democritos.it/pipermail/pw_forum/attachments/20100507/57a50a7a/attachment.htm
 


[Pw_forum] Installation Problems: Can not found MKL

2010-05-07 Thread Giovanni Cantele

> Hi, All
> I am installing espresso-4.1.3 in intel cluster. I have installed the
> latest
> intel compiler(v11.069) and MKL(the same as compiler).
> I compiled with configure like this: ./configure -enable-shared
> LIBDIRS="/home/software/intel/Compiler/11.1/069/lib/intel64
> /home/software/intel/Compiler/11.1/069/mkl/lib/em64t"
> --prefix=/home/software/espresso F77=ifort CC=icc
> It seems not found the MKL. What's the problem? How to solve it?
> Thanks
> Weiguang


try linking as follows:
LDFLAGS="-L$MKL_PATH $MKL_PATH/libmkl_solver_lp64_sequential.a
-Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core
-Wl,--end-group -lpthread"


also have a look here:
http://www.quantum-espresso.org/user_guide/node13.html#SECTION00036350

Finally, here
http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/
you can get hel on the correct way of linking to mkl.

Giovanni



-- 
Giovanni Cantele, PhD
CNR-SPIN and 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 - Fax:   +39 081 676346
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