<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Try the Intel link advisor settings [
<a class="moz-txt-link-freetext" href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor">https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor</a>
]. In other words, try changing R_LIBS to:<br>
<br>
current:R_LIBS:$(MKLROOT)/lib/intel64/libmkl_lapack95_lp64.a <font
color="#ff0000">-Wl,--start-group</font>
$(MKLROOT)/lib/intel64/libmkl_intel_lp64.a
$(MKLROOT)/lib/intel64/libmkl_intel_thread.a <font
color="#ff0000">-Wl,--end-group</font>
$(MKLROOT)/lib/intel64/libmkl_core.a <font color="#ff0000">-openmp
-lpthread -lm</font><br>
<br>
On 5/20/2015 4:34 PM, Nilton wrote:<br>
</div>
<blockquote
cite="mid:CANHAFZ4oq8uPc7wSEjnQVFhu1sNprU+9bW_M42fLZkSbLgDrGQ@mail.gmail.com"
type="cite">
<div dir="ltr">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:
<div><br>
</div>
<div>
<div>current:FOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip
-DINTEL_VML -traceback -assume buffered_io</div>
<div>current:FPOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip
-DINTEL_VML -traceback -assume buffered_io</div>
<div>current:FFTW_OPT:</div>
<div>current:FFTW_LIBS: </div>
<div>current:LDFLAGS:$(FOPT)
-L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -pthread</div>
<div>current:DPARALLEL:'-DParallel'</div>
<div>current:R_LIBS:-lmkl_lapack95_lp64 -lmkl_intel_lp64
-lmkl_intel_thread -lmkl_core -openmp -lpthread</div>
<div>current:RP_LIBS:-lmkl_scalapack_lp64 -lmkl_blacs_lp64
$(R_LIBS)</div>
<div>current:MPIRUN:mpirun -np _NP_ -machinefile _HOSTS_
_EXEC_</div>
<div>current:MKL_TARGET_ARCH:intel64</div>
<div> </div>
<div>But, if I try to use the equivalent library in not shared
version, like this:</div>
<div><br>
</div>
<div>
<div>"current:FOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip
-DINTEL_VML -traceback -assume buffered_io</div>
<div>current:FPOPT:-FR -mp1 -w -prec_div -pc80 -pad -ip
-DINTEL_VML -traceback -assume buffered_io</div>
<div>current:FFTW_OPT:</div>
<div>current:FFTW_LIBS:</div>
<div>current:LDFLAGS:$(FOPT)
-L$(MKLROOT)/lib/$(MKL_TARGET_ARCH) -pthread</div>
<div>current:DPARALLEL:'-DParallel'</div>
<div>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</div>
<div>current:RP_LIBS:-lmkl_scalapack_lp64 -lmkl_blacs_lp64
$(R_LIBS)</div>
<div>current:MPIRUN:mpirun -np _NP_ -machinefile _HOSTS_
_EXEC_</div>
<div>current:MKL_TARGET_ARCH:intel64"</div>
<div><br>
</div>
<div>I got a lot of errors mensage like this:</div>
<div><br>
</div>
<div>...undefined reference to ...bla, bla. </div>
<div><br>
</div>
<div>That is, the compiler don't recongnize the reference in
*.f files.</div>
<div><br>
</div>
<div>Any one could help me with that issue? </div>
<div>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.</div>
<div><br>
</div>
<div>Thanks a lot in advance,</div>
<div>Nilton</div>
<div><br>
</div>
-- <br>
<div class="gmail_signature">Nilton S. Dantas
<div>Diretor do Núcleo de Inovação Tecnológica<br>
Universidade Estadual de Feira de Santana<br>
Departamento de Ciências Exatas<br>
Área de Informática<br>
Av. Transnordestina, S/N, Bairro Novo Horizonte<br>
CEP 44036900 - Feira de Santana, Bahia, Brasil<br>
Tel./Fax +55 75 31618086<br>
<a moz-do-not-send="true"
href="http://www.uefs.br/portal" target="_blank">http://www2.ecomp.uefs.br/</a><br>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</body>
</html>