<?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: Undefined reference in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848721#M6405</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;Roberta,&lt;BR /&gt;For linking Intel64 libraries, you need to link lp64 or ilp64 libraries.&lt;BR /&gt;Please try to link the following linking lines:&lt;BR /&gt; $MKLPATH/libmkl_solver_ilp64.a -Wl,--start-group $MKLPATH/libmkl_intel_ilp64.a $MKLPATH/libmkl_intel_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group -openmp -lpthread&lt;BR /&gt; Where MKLPATH environment variable should point to the directory with MKL libraries&lt;BR /&gt; --Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It should be possible to use the fully dynamic link equivalent of this; as the integrated MKL in the 11.0 compiler is used, it should not then be necessary to specify any MKLPATH.&lt;BR /&gt;It looks like the originally quoted library selection may have been based partly on some earlier version of MKL.&lt;BR /&gt;The ifort -openmp option already inserts the -lpthread reference, so that is redundant. &lt;BR /&gt;</description>
    <pubDate>Wed, 29 Apr 2009 13:59:21 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2009-04-29T13:59:21Z</dc:date>
    <item>
      <title>Undefined reference</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848719#M6403</link>
      <description>We are running into some undefined references errors when compiling:&lt;BR /&gt;mpif90 -o pxa-lnxem64.x sizes.o COMS.o CALL_FORWARD_C.o chord.o dersig.o dertau.o drdnor.o evecl.o evec2.o intsr1.o INVERSE_C.o IO_COEF.o lancos3e.o matr.o max1d2.o mist.o mpi_parameter.o multsend.o pwk.o REC_SORT.o scvd.o sig1.o STRING.o zolgrid.o ITER_GL1CAR_C.o ITER_GL1CAR_C_IN_FR.o ITER_GL1CAR_MC.o ITER_GL1CAR_M.o MAIN.o max2_5ce1.o -lmkl_solver -lmkl_lapack -lmkl_intel_thread -lmkl_em64t -lguide -lpthread -lmpi &lt;BR /&gt;&lt;BR /&gt;/opt/intel/Compiler/11.0/081/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail /opt/intel/Compiler/11.0/081/mkl/lib/em64t/libmkl_lapack.so: undefined reference to `mkl_serv_load_fun' &lt;BR /&gt;/opt/intel/Compiler/11.0/081/mkl/lib/em64t/libmkl_lapack.so: undefined reference to `mkl_serv_load_thread_fun' &lt;BR /&gt;/opt/intel/Compiler/11.0/081/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `mkl_serv_load_lapack_fun' &lt;BR /&gt;/opt/intel/Compiler/11.0/081/mkl/lib/em64t/libmkl_intel_thread.so: undefined reference to `mkl_serv_load_lapack_dll' &lt;BR /&gt;/opt/intel/Compiler/11.0/081/mkl/lib/em64t/libmkl_lapack.so: undefined reference to `mkl_serv_load_dll' make[1]: *** [pixelinv] Error 1 &lt;BR /&gt;make[1]: Leaving directory `/people4/jliu17/WORKS/2.5D_FD/Inversion_MPI' make: *** [lnxem64] Error 2 &lt;BR /&gt;&lt;BR /&gt;Any thoughts on what might be missing here? &lt;BR /&gt;&lt;BR /&gt;Thanks!! &lt;BR /&gt;Roberta</description>
      <pubDate>Tue, 28 Apr 2009 19:16:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848719#M6403</guid>
      <dc:creator>Roberta_G_</dc:creator>
      <dc:date>2009-04-28T19:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848720#M6404</link>
      <description>&lt;BR /&gt;
&lt;P&gt;Roberta,&lt;BR /&gt;For linking Intel64 libraries, you need to link lp64 or ilp64 libraries.&lt;BR /&gt;Please try to link the following linking lines:&lt;BR /&gt;$MKLPATH/libmkl_solver_ilp64.a -Wl,--start-group $MKLPATH/libmkl_intel_ilp64.a $MKLPATH/libmkl_intel_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group -openmp -lpthread&lt;BR /&gt;Where MKLPATH environment variable should point to the directory with MKL libraries&lt;BR /&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2009 03:48:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848720#M6404</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2009-04-29T03:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848721#M6405</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/334681"&gt;Gennady Fedorov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;&lt;BR /&gt;
&lt;P&gt;Roberta,&lt;BR /&gt;For linking Intel64 libraries, you need to link lp64 or ilp64 libraries.&lt;BR /&gt;Please try to link the following linking lines:&lt;BR /&gt; $MKLPATH/libmkl_solver_ilp64.a -Wl,--start-group $MKLPATH/libmkl_intel_ilp64.a $MKLPATH/libmkl_intel_thread.a $MKLPATH/libmkl_core.a -Wl,--end-group -openmp -lpthread&lt;BR /&gt; Where MKLPATH environment variable should point to the directory with MKL libraries&lt;BR /&gt; --Gennady&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It should be possible to use the fully dynamic link equivalent of this; as the integrated MKL in the 11.0 compiler is used, it should not then be necessary to specify any MKLPATH.&lt;BR /&gt;It looks like the originally quoted library selection may have been based partly on some earlier version of MKL.&lt;BR /&gt;The ifort -openmp option already inserts the -lpthread reference, so that is redundant. &lt;BR /&gt;</description>
      <pubDate>Wed, 29 Apr 2009 13:59:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848721#M6405</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-29T13:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848722#M6406</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;&lt;BR /&gt;&lt;BR /&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; It should be possible to use the fully dynamic link equivalent of this; as the integrated MKL in the 11.0 compiler is used, it should not then be necessary to specify any MKLPATH.&lt;BR /&gt;It looks like the originally quoted library selection may have been based partly on some earlier version of MKL.&lt;BR /&gt;The ifort -openmp option already inserts the -lpthread reference, so that is redundant. &lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;tim18,&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;I would like to add some comments since this question came from me.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;First, I changed the library link a little, and finally the link goes like the following and it works. But the warning is not likely.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;mpif90 -o pxa-lnxem64.x sizes.o COMS.o CALL_FORWARD_C.o chord.o dersig.o dertau.o drdnor.o evecl.o evec2.o intsr1.o INVERSE_C.o IO_COEF.o lancos3e.o matr.o max1d2.o mist.o mpi_parameter.o multsend.o pwk.o REC_SORT.o scvd.o sig1.o STRING.o zolgrid.o ITER_GL1CAR_C.o ITER_GL1CAR_C_IN_FR.o ITER_GL1CAR_MC.o ITER_GL1CAR_M.o MAIN.o max2_5ce1.o &lt;SPAN style="color: #ff0000;"&gt;-lmkl_solver -lmkl_em64t -lguide -lpthread &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;-llibimf -llibm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ffff;"&gt;/opt/intel/Compiler/11.0/081/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail&lt;/SPAN&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Second, I have an other code basicly same as this code but without any MPI functions. In other words, it is a sequential version of this code. I used the same link options as those shown in Roberta's post but without the &lt;SPAN style="color: #ff0000;"&gt;-lmpi .&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;It works without any problems.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Third, when I submit my job by using qsub, how can I define the thread number, i.e. MKL_NUM_THREADS ? In bash shell, I used "MKL_NUM_THREADS=1; export MKL_NUM_THREADS". It works only for the sequential code, but not the MPI version.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks,&lt;/DIV&gt;
&lt;DIV&gt;J.L.&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Apr 2009 21:02:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848722#M6406</guid>
      <dc:creator>joey_hylton</dc:creator>
      <dc:date>2009-04-29T21:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848723#M6407</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/139396"&gt;joey_hylton&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV&gt;mpif90 -o pxa-lnxem64.x sizes.o COMS.o CALL_FORWARD_C.o chord.o dersig.o dertau.o drdnor.o evecl.o evec2.o intsr1.o INVERSE_C.o IO_COEF.o lancos3e.o matr.o max1d2.o mist.o mpi_parameter.o multsend.o pwk.o REC_SORT.o scvd.o sig1.o STRING.o zolgrid.o ITER_GL1CAR_C.o ITER_GL1CAR_C_IN_FR.o ITER_GL1CAR_MC.o ITER_GL1CAR_M.o MAIN.o max2_5ce1.o &lt;SPAN style="color: #ff0000;"&gt;-lmkl_solver -lmkl_em64t -lguide -lpthread &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;-llibimf -llibm&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #00ffff;"&gt;/opt/intel/Compiler/11.0/081/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail&lt;/SPAN&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
If you're not attempting to use &lt;FENV.H&gt; or IEEE_arithmetic functionality, you probably don't need to be concerned about that warning.   It may come from use of the multiple math libraries, which people sometimes do in order to get some functions from each.    That also seems outside the scope of this forum. Did you mean -limf -lm ?&lt;BR /&gt;&lt;BR /&gt;You could put the environment variables in your mpi command line by appropriate option such as -genv or other means described in the docs for the mpi of your choice. This would be getting more into the territory of the HPC forum. If you are combining mkl_thread with MPI, you must consider the degree to which your MPI supports it and which special requirements it imposes, as well as whether it requires adherence to the standard about replacing MPI_INIT by MPI_INIT_THREAD.&lt;BR /&gt;Intel MPI I_MPI_PIN_DOMAIN has been tested with mkl_thread.&lt;BR /&gt;&lt;/FENV.H&gt;</description>
      <pubDate>Wed, 29 Apr 2009 22:08:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848723#M6407</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-04-29T22:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848724#M6408</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; If you're not attempting to use &lt;FENV.H&gt; or IEEE_arithmetic functionality, you probably don't need to be concerned about that warning.   It may come from use of the multiple math libraries, which people sometimes do in order to get some functions from each.    That also seems outside the scope of this forum. Did you mean -limf -lm ?&lt;BR /&gt;&lt;BR /&gt;You could put the environment variables in your mpi command line by appropriate option such as -genv or other means described in the docs for the mpi of your choice. This would be getting more into the territory of the HPC forum. If you are combining mkl_thread with MPI, you must consider the degree to which your MPI supports it and which special requirements it imposes, as well as whether it requires adherence to the standard about replacing MPI_INIT by MPI_INIT_THREAD.&lt;BR /&gt;Intel MPI I_MPI_PIN_DOMAIN has been tested with mkl_thread.&lt;BR /&gt;&lt;/FENV.H&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
tim,
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Thanks for the reply.&lt;/DIV&gt;
&lt;DIV&gt;I don't use&lt;FENV.H&gt; in my code. But I am not sure Pardiso uses it or not.&lt;/FENV.H&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;For setting MKL_NUM_THREADS, it didn't work with passing env by MPI. We are searching for other solutions.&lt;/DIV&gt;
&lt;DIV&gt;You might notice that I try to set MKL_NUM_THREADS=1. In our code, we only use the PARDISO solver, so we tried to use sequential solvers such as MKL_SOLVER_lp64_SEQUENTIAL . However, when we tried to link them, there are always errors complain failing to find some function/subroutines, which is okay if we not try to use sequential ones. We didn't find anything about how to link with sequential libraries in the mklman.pdf.&lt;/DIV&gt;
&lt;DIV&gt;Do you have any ideas about this?&lt;BR /&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;DIV&gt;Linking libraries&lt;BR /&gt;MKLLIBSEM64 = -lmkl_solver_lp64_sequential -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_intel_thread -lguide -lpthread -llibimf -llibm&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error message&lt;BR /&gt;&lt;BR /&gt;/opt/intel/Compiler/11.0/081/lib/intel64/libimf.so: warning: warning: feupdateenv is not implemented and will always fail&lt;BR /&gt;lancos3e.o: In function `lancz_':&lt;BR /&gt;lancos3e.f:(.text+0x8e3): undefined reference to `timer_pardiso_'&lt;BR /&gt;lancos3e.f:(.text+0x954): undefined reference to `pardiso_'&lt;BR /&gt;lancos3e.f:(.text+0xc24): undefined reference to `pardiso_'&lt;BR /&gt;lancos3e.f:(.text+0x1080): undefined reference to `pardiso_'&lt;BR /&gt;lancos3e.f:(.text+0x1d3b): undefined reference to `pardiso_'&lt;BR /&gt;make[1]: *** [pixelinv] Error 1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Apr 2009 20:58:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848724#M6408</guid>
      <dc:creator>joey_hylton</dc:creator>
      <dc:date>2009-04-30T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Undefined reference</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848725#M6409</link>
      <description>There is a new MKL link line advisor tool available in MKL KB located here&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;--Vipin&lt;BR /&gt;</description>
      <pubDate>Mon, 25 May 2009 17:40:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Undefined-reference/m-p/848725#M6409</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2009-05-25T17:40:03Z</dc:date>
    </item>
  </channel>
</rss>

