<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Help: undefined refenerce when using IFort 9.1 .043 and MKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-undefined-refenerce-when-using-IFort-9-1-043-and-MKL-9-1/m-p/916162#M12613</link>
    <description>I would suggest you replace your link options from -lsvml on by&lt;BR /&gt;-xW /opt/intel/mkl/9.1.021/lib/32/libmkl_lapack.a  /opt/intel/mkl/9.1.021/lib/32/libmkl_ia32.a&lt;BR /&gt;For the following reasons:&lt;BR /&gt;a) lapack depends on BLAS functions contained in the base MKL library, so the library search order is important. That is related to the error you show.&lt;BR /&gt;b) if you are linking static against all ifort libraries, you should not be linking dynamic against the MKL copy of libguide.so. That could conflict with the ifort libguide.a (which is already included by -openmp). If you really mean to use MKL dynamic libraries, change .a to .so, but don't request a search for libguide.so.&lt;BR /&gt;c) the effect of -xW is to ask ifort to link against svml libraries in the supported manner.&lt;BR /&gt;&lt;BR /&gt;Further comment:&lt;BR /&gt;Option -mp1 is obsolete from ifort 9.1 on. You could remove -mp1 -prec_div and use -fp-model precise -ftz, if you are looking for standards compliance except for abrupt underflow. None of these options have any effect at link time.&lt;BR /&gt;</description>
    <pubDate>Fri, 13 Jul 2007 16:50:50 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2007-07-13T16:50:50Z</dc:date>
    <item>
      <title>Help: undefined refenerce when using IFort 9.1 .043 and MKL 9.1.021 to compile</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-undefined-refenerce-when-using-IFort-9-1-043-and-MKL-9-1/m-p/916161#M12612</link>
      <description>Dear all,&lt;BR /&gt;&lt;BR /&gt;I am a new user to ifort and mkl. When I try to use the following setting to compile , it keeps generating undefined reference error:&lt;BR /&gt;&lt;BR /&gt;O Compiler options: -FR -mp1 -w -prec_div -pad -ip&lt;BR /&gt; L Linker Flags: -no-ipo -L/opt/intel/fc/9.1.043/lib -i-static -openmp -lsvml&lt;BR /&gt; P Preprocessor flags '-DParallel'&lt;BR /&gt; R R_LIB (LAPACK+BLAS): -L/opt/intel/mkl/9.1.021/lib/32 -lmkl_ia32 -lmkl_lapack -lguide&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;compile log:&lt;BR /&gt;rm -f *.o _tmp_.* *.P .real .complex *~ *.mod&lt;BR /&gt;if [ -f .complex ]; then &lt;BR /&gt; make clean; &lt;BR /&gt; fi&lt;BR /&gt;touch .real&lt;BR /&gt;make TYPE='REAL' TYPE_COMMENT='!_REAL' ./aim&lt;BR /&gt;make[1]: Entering directory `/home/xiaolin79/Desktop/wien2k/wien2k/SRC_aim'&lt;BR /&gt;moduls.frc: REAL version extracted&lt;BR /&gt;ifort -FR -mp1 -w -prec_div -pad -ip -c moduls_tmp.f&lt;BR /&gt;mv moduls_tmp.o moduls.o&lt;BR /&gt;rm moduls_tmp.f&lt;BR /&gt;ifort -FR -mp1 -w -prec_div -pad -ip -c charge.f&lt;BR /&gt;ifort -FR -mp1 -w -prec_div -pad -ip -c gbass.f&lt;BR /&gt;ifort -FR -mp1 -w -prec_div -pad -ip -c gener.f&lt;BR /&gt;...........&lt;BR /&gt;critic.o surf.o integrho.o follow.o interp.o cputim.o jacobi.o ludcmp.o spline.o doit.o dtdtylm.o sumdd.o hrhosphe.o matprod.o readcs.o dipole.o rho.o cossin.o intlib.o davint.o d1mach.o sortag.o follown.o SplineFit.o CheckCSpline.o -no-ipo -L/opt/intel/fc/9.1.043/lib -i-static -openmp -lsvml -L/opt/intel/mkl/9.1.021/lib/32 -lmkl_ia32 -lmkl_lapack -lguide&lt;BR /&gt;/opt/intel/mkl/9.1.021/lib/32/libmkl_lapack.so: undefined reference to `chemm'&lt;BR /&gt;/opt/intel/mkl/9.1.021/lib/32/libmkl_lapack.so: undefined reference to `dtbsv'&lt;BR /&gt;/opt/intel/mkl/9.1.021/lib/32/libmkl_lapack.so: undefined reference to `dgemv'&lt;BR /&gt;/opt/intel/mkl/9.1.021/lib/32/libmkl_lapack.so: undefined reference to `dpotrf_u_small'&lt;BR /&gt;........&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for your kind help.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jul 2007 14:34:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-undefined-refenerce-when-using-IFort-9-1-043-and-MKL-9-1/m-p/916161#M12612</guid>
      <dc:creator>xiaofang79</dc:creator>
      <dc:date>2007-07-13T14:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help: undefined refenerce when using IFort 9.1 .043 and MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-undefined-refenerce-when-using-IFort-9-1-043-and-MKL-9-1/m-p/916162#M12613</link>
      <description>I would suggest you replace your link options from -lsvml on by&lt;BR /&gt;-xW /opt/intel/mkl/9.1.021/lib/32/libmkl_lapack.a  /opt/intel/mkl/9.1.021/lib/32/libmkl_ia32.a&lt;BR /&gt;For the following reasons:&lt;BR /&gt;a) lapack depends on BLAS functions contained in the base MKL library, so the library search order is important. That is related to the error you show.&lt;BR /&gt;b) if you are linking static against all ifort libraries, you should not be linking dynamic against the MKL copy of libguide.so. That could conflict with the ifort libguide.a (which is already included by -openmp). If you really mean to use MKL dynamic libraries, change .a to .so, but don't request a search for libguide.so.&lt;BR /&gt;c) the effect of -xW is to ask ifort to link against svml libraries in the supported manner.&lt;BR /&gt;&lt;BR /&gt;Further comment:&lt;BR /&gt;Option -mp1 is obsolete from ifort 9.1 on. You could remove -mp1 -prec_div and use -fp-model precise -ftz, if you are looking for standards compliance except for abrupt underflow. None of these options have any effect at link time.&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jul 2007 16:50:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Help-undefined-refenerce-when-using-IFort-9-1-043-and-MKL-9-1/m-p/916162#M12613</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-07-13T16:50:50Z</dc:date>
    </item>
  </channel>
</rss>

