<?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 Static linking error: undefined reference to `MKLMPI_Get_wrappers' in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Static-linking-error-undefined-reference-to-MKLMPI-Get-wrappers/m-p/1097806#M23668</link>
    <description>&lt;P&gt;I am able to dynamically link the intel libraries and my application runs perfectly. But when I try to statically link, l I receive the error:&lt;/P&gt;

&lt;P&gt;/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_core.a(mkl_get_mpi_wrappers_static.o): In function `mkl_serv_get_mpi_wrappers':&lt;BR /&gt;
	mkl_get_mpi_wrappers.c:(.text+0x4b): undefined reference to `MKLMPI_Get_wrappers'&lt;/P&gt;

&lt;P&gt;I followed the link advisor and my link line looks like:&lt;/P&gt;

&lt;P&gt;mpiifort -w -O3 -qopenmp -i8 -I/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/include -static-intel -nofor-main -o ccx_2.11_MT ccx_2.11.o ccx_2.11_MT.a ../../../ARPACK/libarpack_INTEL.a -Wl,--start-group /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_intel_ilp64.a /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_core.a /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm -ldl&lt;/P&gt;

&lt;P&gt;Any suggestions on where the issue may be?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 01 Oct 2016 05:16:35 GMT</pubDate>
    <dc:creator>Ferris_H_</dc:creator>
    <dc:date>2016-10-01T05:16:35Z</dc:date>
    <item>
      <title>Static linking error: undefined reference to `MKLMPI_Get_wrappers'</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Static-linking-error-undefined-reference-to-MKLMPI-Get-wrappers/m-p/1097806#M23668</link>
      <description>&lt;P&gt;I am able to dynamically link the intel libraries and my application runs perfectly. But when I try to statically link, l I receive the error:&lt;/P&gt;

&lt;P&gt;/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_core.a(mkl_get_mpi_wrappers_static.o): In function `mkl_serv_get_mpi_wrappers':&lt;BR /&gt;
	mkl_get_mpi_wrappers.c:(.text+0x4b): undefined reference to `MKLMPI_Get_wrappers'&lt;/P&gt;

&lt;P&gt;I followed the link advisor and my link line looks like:&lt;/P&gt;

&lt;P&gt;mpiifort -w -O3 -qopenmp -i8 -I/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/include -static-intel -nofor-main -o ccx_2.11_MT ccx_2.11.o ccx_2.11_MT.a ../../../ARPACK/libarpack_INTEL.a -Wl,--start-group /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_intel_ilp64.a /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_core.a /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm -ldl&lt;/P&gt;

&lt;P&gt;Any suggestions on where the issue may be?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2016 05:16:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Static-linking-error-undefined-reference-to-MKLMPI-Get-wrappers/m-p/1097806#M23668</guid>
      <dc:creator>Ferris_H_</dc:creator>
      <dc:date>2016-10-01T05:16:35Z</dc:date>
    </item>
    <item>
      <title>I see you use mpiifort. Does</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Static-linking-error-undefined-reference-to-MKLMPI-Get-wrappers/m-p/1097807#M23669</link>
      <description>&lt;P&gt;Hi Ferris,&lt;/P&gt;

&lt;P&gt;I see you use mpiifort. Does this mean you use MKL cluster stuff like Cluster Sparse Solver?&lt;BR /&gt;
	If so you need also include MKL BLACS library in link-line. E.g.:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;mpiifort -w -O3 -qopenmp -i8 -I$MKLROOT/include \
    -static-intel -nofor-main -o ccx_2.11_MT ccx_2.11.o ccx_2.11_MT.a \
    ../../../ARPACK/libarpack_INTEL.a \
    -Wl,--start-group \
        $MKLROOT/lib/intel64/libmkl_intel_ilp64.a \
        $MKLROOT/lib/intel64/libmkl_core.a \
        $MKLROOT/lib/intel64/libmkl_intel_thread.a \
        $MKLROOT/lib/intel64/libmkl_blacs_intelmpi_ilp64.a \
    -Wl,--end-group -lpthread -lm -ldl&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2016 08:39:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Static-linking-error-undefined-reference-to-MKLMPI-Get-wrappers/m-p/1097807#M23669</guid>
      <dc:creator>Evarist_F_Intel</dc:creator>
      <dc:date>2016-10-01T08:39:32Z</dc:date>
    </item>
    <item>
      <title>Thanks, that worked! I must</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Static-linking-error-undefined-reference-to-MKLMPI-Get-wrappers/m-p/1097808#M23670</link>
      <description>&lt;P&gt;Thanks, that worked! I must have had a wrong selection in the link advisor . I just tried it again and it now does show all the same libraries you suggested.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2016 15:10:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Static-linking-error-undefined-reference-to-MKLMPI-Get-wrappers/m-p/1097808#M23670</guid>
      <dc:creator>Ferris_H_</dc:creator>
      <dc:date>2016-10-01T15:10:54Z</dc:date>
    </item>
  </channel>
</rss>

