<?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 Hi, Alexey in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-mkl-serv-iface-allocate-deallocate/m-p/1000349#M18467</link>
    <description>&lt;P&gt;Hi, Alexey&lt;/P&gt;

&lt;P&gt;The problem is in the link-line.&lt;/P&gt;

&lt;P&gt;Please include&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;$(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_ilp64.a in --start-group ... --end-group, i.e.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;MKL =&amp;nbsp; $(MKLROOT)/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_ilp64.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_intel_thread.a &lt;STRONG&gt;$(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -Wl,--end-group&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;-lpthread -lm&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;BTW, do not you forget -i8 (or similar) option in FFLAGS? Since you use ilp64 mode, intergers are expected to be a size of 8 bytes.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;And finally, if mpif90 stands for MPI driver over GNU Fortran you probably need to link against libmkl_gf_ilp64.a, rather than libmkl_intel_ilp64.a.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;MKL Link Line Adviser can help with linking:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt; (however, it doesn't include blacs lib inside the group, which is incorrect).&lt;/P&gt;</description>
    <pubDate>Thu, 05 Feb 2015 15:53:34 GMT</pubDate>
    <dc:creator>Evarist_F_Intel</dc:creator>
    <dc:date>2015-02-05T15:53:34Z</dc:date>
    <item>
      <title>undefined reference to mkl_serv_iface_allocate(deallocate)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-mkl-serv-iface-allocate-deallocate/m-p/1000348#M18466</link>
      <description>&lt;P&gt;Hallo,&lt;/P&gt;

&lt;P&gt;I have very strange problem with mkl libraries.&lt;/P&gt;

&lt;P&gt;Compiling the code with following options:&lt;/P&gt;

&lt;P&gt;MPIF90=mpif90 -mcmodel=medium -openmp -I$(MKLROOT)/include&lt;/P&gt;

&lt;P&gt;FFLAGS = -c -O3 -g&lt;/P&gt;

&lt;P&gt;MKL =&amp;nbsp; $(MKLROOT)/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_ilp64.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_intel_thread.a -Wl,--end-group $(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -lpthread -lm&lt;/P&gt;

&lt;P&gt;and trying to use blacs_get and blacs_initgrid routines in my code, I am getting very strange errors, wich are not described elsewhere:&lt;/P&gt;

&lt;P&gt;libmkl_blacs_intelmpi_ilp64.a(blacs_extended.o): In function `MKL_BLACS_Deallocate':&lt;/P&gt;

&lt;P&gt;blacs_extended.c:(.text+0x241): undefined reference to `mkl_serv_iface_deallocate'&lt;/P&gt;

&lt;P&gt;libmkl_blacs_intelmpi_ilp64.a(blacs_extended.o): In function `MKL_BLACS_ALLOCATE':&lt;/P&gt;

&lt;P&gt;blacs_extended.c:(.text+0x265): undefined reference to `mkl_serv_iface_allocate'&lt;/P&gt;

&lt;P&gt;I will be very thankfull for any help.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Alexey&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2015 15:23:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-mkl-serv-iface-allocate-deallocate/m-p/1000348#M18466</guid>
      <dc:creator>Alexey_K_</dc:creator>
      <dc:date>2015-02-05T15:23:16Z</dc:date>
    </item>
    <item>
      <title>Hi, Alexey</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-mkl-serv-iface-allocate-deallocate/m-p/1000349#M18467</link>
      <description>&lt;P&gt;Hi, Alexey&lt;/P&gt;

&lt;P&gt;The problem is in the link-line.&lt;/P&gt;

&lt;P&gt;Please include&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;$(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_ilp64.a in --start-group ... --end-group, i.e.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;MKL =&amp;nbsp; $(MKLROOT)/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_ilp64.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_intel_thread.a &lt;STRONG&gt;$(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_ilp64.a -Wl,--end-group&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;-lpthread -lm&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;BTW, do not you forget -i8 (or similar) option in FFLAGS? Since you use ilp64 mode, intergers are expected to be a size of 8 bytes.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;And finally, if mpif90 stands for MPI driver over GNU Fortran you probably need to link against libmkl_gf_ilp64.a, rather than libmkl_intel_ilp64.a.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;MKL Link Line Adviser can help with linking:&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt; (however, it doesn't include blacs lib inside the group, which is incorrect).&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2015 15:53:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-mkl-serv-iface-allocate-deallocate/m-p/1000349#M18467</guid>
      <dc:creator>Evarist_F_Intel</dc:creator>
      <dc:date>2015-02-05T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Hallo Evarist,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-mkl-serv-iface-allocate-deallocate/m-p/1000350#M18468</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Hallo Evarist,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thank you very much for your help.&lt;/P&gt;

&lt;P&gt;I got the line for the library linking from the Intel MKL Library Link Advisor. I did this again, and get the same result:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;$(MKLROOT)/lib/intel64/libmkl_blas95_ilp64.a $(MKLROOT)/lib/intel64/libmkl_lapack95_ilp64.a $(MKLROOT)/lib/intel64/libmkl_scalapack_ilp64.a -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_ilp64.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_intel_thread.a -Wl,&lt;STRONG&gt;--end-group $(MKLROOT)/lib/intel64/libmkl_blacs_intelmpi_ilp64&lt;/STRONG&gt;.a -lpthread -lm&lt;/P&gt;

&lt;P&gt;It seems that there is a bug in Library Link Advisor which should be fixed.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;

&lt;P&gt;Alexey&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2015 16:43:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/undefined-reference-to-mkl-serv-iface-allocate-deallocate/m-p/1000350#M18468</guid>
      <dc:creator>Alexey_K_</dc:creator>
      <dc:date>2015-02-05T16:43:14Z</dc:date>
    </item>
  </channel>
</rss>

