[Wien] The correct choice of mkl libraries to compile wien2k

Gavin Abo gsabo at crimson.ua.edu
Thu May 21 01:17:35 CEST 2015


Try the Intel link advisor settings [ 
https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor 
].  In other words, try changing R_LIBS to:

current:R_LIBS:$(MKLROOT)/lib/intel64/libmkl_lapack95_lp64.a 
-Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_lp64.a 
$(MKLROOT)/lib/intel64/libmkl_intel_thread.a -Wl,--end-group 
$(MKLROOT)/lib/intel64/libmkl_core.a -openmp -lpthread -lm

On 5/20/2015 4:34 PM, Nilton wrote:
> Dear wien2k users, I am to try to compile the last version of wien2k, 
> 14.2, with intel composer 2011.2.137. The compilation it is ok to 
> shared library and in that case I am using that options:
>
> current:FOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML 
> -traceback -assume buffered_io
> current:FPOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML 
> -traceback -assume buffered_io
> current:FFTW_OPT:
> current:FFTW_LIBS:
> current:LDFLAGS:$(FOPT) -L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -pthread
> current:DPARALLEL:'-DParallel'
> current:R_LIBS:-lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_intel_thread 
> -lmkl_core -openmp -lpthread
> current:RP_LIBS:-lmkl_scalapack_lp64 -lmkl_blacs_lp64 $(R_LIBS)
> current:MPIRUN:mpirun -np _NP_ -machinefile _HOSTS_ _EXEC_
> current:MKL_TARGET_ARCH:intel64
> But, if I try to use the equivalent library in not shared version, 
> like this:
>
> "current:FOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML 
> -traceback -assume buffered_io
> current:FPOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip -DINTEL_VML 
> -traceback -assume buffered_io
> current:FFTW_OPT:
> current:FFTW_LIBS:
> current:LDFLAGS:$(FOPT) -L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -pthread
> current:DPARALLEL:'-DParallel'
> current:R_LIBS:$(MKLROOT)/lib/intel64/libmkl_lapack95_lp64.a 
> $(MKLROOT)/lib/intel64/libmkl_intel_lp64.a 
> $(MKLROOT)/lib/intel64/libmkl_intel_thread.a 
> $(MKLROOT)/lib/intel64/libmkl_core.a
> current:RP_LIBS:-lmkl_scalapack_lp64 -lmkl_blacs_lp64 $(R_LIBS)
> current:MPIRUN:mpirun -np _NP_ -machinefile _HOSTS_ _EXEC_
> current:MKL_TARGET_ARCH:intel64"
>
> I got a lot of errors mensage like this:
>
> ...undefined reference to ...bla, bla.
>
> That is, the compiler don't recongnize the reference in *.f files.
>
> Any one could help me with that issue?
> The static library is better to me because I am using a rocks cluster 
> sistem in which I can't to export the shared libraries.
>
> Thanks a lot in advance,
> Nilton
>
> -- 
> Nilton S. Dantas
> Diretor do Núcleo de Inovação Tecnológica
> Universidade Estadual de Feira de Santana
> Departamento de Ciências Exatas
> Área de Informática
> Av. Transnordestina, S/N, Bairro Novo Horizonte
> CEP 44036900 - Feira de Santana, Bahia, Brasil
> Tel./Fax +55 75 31618086
> http://www2.ecomp.uefs.br/ <http://www.uefs.br/portal>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20150520/146bd50c/attachment.html>


More information about the Wien mailing list