<?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: OneAPI MKL static link fails using ifort in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368684#M32912</link>
    <description>&lt;P&gt;I was hoping you could offer suggestions that we might try since it worked with previous versions of the Intel software, works when linking a shared object, and works with the shared libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can write a reproducer but that would take a couple days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a place I can upload my .a files?&amp;nbsp; Would that be helpful?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
    <pubDate>Mon, 14 Mar 2022 20:23:34 GMT</pubDate>
    <dc:creator>Multipath</dc:creator>
    <dc:date>2022-03-14T20:23:34Z</dc:date>
    <item>
      <title>OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368582#M32910</link>
      <description>&lt;P&gt;I initially posted this question to the Intel FORTRAN Compiler forum but it probably belongs here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT size="4" class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;We are having problems using the FORTRAN compiler to perform a static link of MKL. Here is what works and fails:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;&lt;STRONG class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;WORKS:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;1. Using ld to create a shared object version of our library and including:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;2. Using ifort to create a program and including the&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;-qmkl=sequential&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;flag.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;However this ignores the specified .a versions and uses the .so versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;FAILS:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;Using ifort to create a program and using the recommendations of the Link Line Advisor&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;-Wl,--start-group&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;-Wl,--end-group&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;This produces pages of errors of the form:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;/Intel/Linux/oneapi/compiler/2022.0.2/linux/bin/intel64/ifort ld: fmslib.a(rsdaf.o): in function `rsdaf_.h': rsdaf.f:(.text+0x21c7): undefined reference to `dscal_' ld: rsdaf.f:(.text+0x2282): undefined reference to `daxpy_' ld: fmslib.a(rsdaf.o): in function `rsdaf_.A':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;rsdaf.f:(.text+0x5ea8): undefined reference to `dscal_'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;ld: rsdaf.f:(.text+0x5f5f): undefined reference to `daxpy_' ld: fmslib.a(rndaf.o): in function `rndaf_.h':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;rndaf.f:(.text+0x2249): undefined reference to `dscal_' ld: rndaf.f:(.text+0x2304): undefined reference to `daxpy_'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;ld: fmslib.a(rndaf.o): in function `rndaf_.A':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;rndaf.f:(.text+0x602d): undefined reference to `dscal_'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;ld: rndaf.f:(.text+0x60e4): undefined reference to `daxpy_' ld: fmslib.a(chdaf.o): in function `chdaf_.h': chdaf.f:(.text+0x21e8): undefined reference to `dscal_' ld: chdaf.f:(.text+0x22fc): undefined reference to `daxpy_'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;ld: fmslib.a(chdaf.o): in function `chdaf_.A':&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;chdaf.f:(.text+0x5c81): undefined reference to `dscal_'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="sub_section_element_selectors"&gt;ld: chdaf.f:(.text+0x5d93): undefined reference to `daxpy_'&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;&lt;SPAN class="sub_section_element_selectors"&gt;...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;The link line that fails is&lt;SPAN&gt;ifort -auto -threads -reentrancy threaded -fpic -ftz -nofor-main -ldl -o MatrixWarrior_dbg MatrixWarrior.o mw.a fmsnoshr.a fmslib.a fmsint.a fmslib.a fmsint.a yesgpu.a fmslib.a fmsint.a fmslib.a fmsint.a yesgpu.a -Wl,--start-group /Nvidia/Linux/cuda-11.4/lib64/libculibos.a /Nvidia/Linux/cuda-11.4/lib64/libcublas_static.a /Nvidia/Linux/cuda-11.4/lib64/libcublasLt_static.a /Nvidia/Linux/cuda-11.4/lib64/libculibos.a /Nvidia/Linux/cuda-11.4/lib64/libcudart_static.a -lrt -Wl,--end-group /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libimf.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libirc.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libifport.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libsvml.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libirng.a /lib/x86_64-linux-gnu/libc-2.31.so /usr/lib/x86_64-linux-gnu/libc_nonshared.a /lib/x86_64-linux-gnu/libstdc++.so.6 -L /lib/x86_64-linux-gnu -L /usr/lib/gcc/x86_64-linux-gnu/9 -Wl,--start-group /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a -Wl,--end-group -Wl,--start-group /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -ldl -lm&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;If I simply add&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;-qmkl=sequential&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;to the link line it works&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;ls -al MatrixWarrior_dbg -rwxrwxr-x 1 ron ron 134192944 Mar 14 07:19 MatrixWarrior_dbg&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;BR /&gt;ldd MatrixWarrior_dbg&lt;BR /&gt;linux-vdso.so.1 (0x00007fffeedfa000)&lt;BR /&gt;libdl.so.2 =&amp;gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f8326566000)&lt;BR /&gt;&lt;STRONG class="sub_section_element_selectors"&gt;libmkl_intel_lp64.so.2&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&amp;gt; /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.so.2 (0x00007f83256c6000)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG class="sub_section_element_selectors"&gt;libmkl_sequential.so.2&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&amp;gt; /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.so.2 (0x00007f8323cac000)&lt;BR /&gt;&lt;STRONG class="sub_section_element_selectors"&gt;libmkl_core.so.2&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;=&amp;gt; /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.so.2 (0x00007f831f8f5000)&lt;BR /&gt;librt.so.1 =&amp;gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007f831f8eb000)&lt;BR /&gt;libc.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007f831f6f9000) libstdc++.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f831f517000)&lt;BR /&gt;libpthread.so.0 =&amp;gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f831f4f4000) libm.so.6 =&amp;gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007f831f3a5000) /lib64/ld-linux-x86-64.so.2 (0x00007f8326588000) libgcc_s.so.1 =&amp;gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f831f388000)&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;but it uses the shared object version of MKL.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&lt;FONT face="Courier, Courier" size="4" class="sub_section_element_selectors"&gt;Any suggestions?&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 14:34:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368582#M32910</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-14T14:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368654#M32911</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you provide us with a test code so that we can reproduce the error?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Khang&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 18:32:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368654#M32911</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-03-14T18:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368684#M32912</link>
      <description>&lt;P&gt;I was hoping you could offer suggestions that we might try since it worked with previous versions of the Intel software, works when linking a shared object, and works with the shared libraries.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can write a reproducer but that would take a couple days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a place I can upload my .a files?&amp;nbsp; Would that be helpful?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 20:23:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368684#M32912</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-14T20:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368766#M32913</link>
      <description>&lt;P&gt;I have created an archive which contains all the files you will need to perform this link:&amp;nbsp; It does not contain the Intel compiler libraries or MKL, which I assume you have (or may want to change).&amp;nbsp; Where can I upload it (302 MB)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;302767113 Mar 14 17:36 testlink.tar.gz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It contains the following script listed below:&lt;/P&gt;
&lt;P&gt;F:/FMS/ver80/Linux/CUDA114/testlink &amp;gt;cat testlink.ksh&lt;BR /&gt;#&lt;BR /&gt;# Choose one of the following:&lt;BR /&gt;mklSequential="" #Fails&lt;BR /&gt;mklSequential="-qmkl=sequential" #Works but produces a shared mkl version&lt;/P&gt;
&lt;P&gt;#Compiler&lt;BR /&gt;echo "FORTRAN Compiler Used:"&lt;BR /&gt;which ifort&lt;BR /&gt;echo ""&lt;BR /&gt;COMMAND="ifort "&lt;BR /&gt;COMMAND="$COMMAND -auto -threads -reentrancy threaded "&lt;BR /&gt;COMMAND="$COMMAND -fpic -ftz -nofor-main -ldl "&lt;BR /&gt;COMMAND="$COMMAND $mklSequential "&lt;BR /&gt;#COMMAND="$COMMAND -Wl,-verbose "&lt;BR /&gt;#COMMAND="$COMMAND -Wl,--verbose "&lt;BR /&gt;#&lt;BR /&gt;#FMSlib Software&lt;BR /&gt;COMMAND="$COMMAND -o MatrixWarrior_dbg MatrixWarrior.o"&lt;BR /&gt;COMMAND="$COMMAND mw.a "&lt;BR /&gt;COMMAND="$COMMAND fmsnoshr.a fmslib.a fmsint.a fmslib.a fmsint.a yesgpu.a "&lt;BR /&gt;#&lt;BR /&gt;#Nvidia Software&lt;BR /&gt;COMMAND="$COMMAND -Wl,--start-group "&lt;BR /&gt;COMMAND="$COMMAND libculibos.a"&lt;BR /&gt;COMMAND="$COMMAND libcublas_static.a "&lt;BR /&gt;COMMAND="$COMMAND libcublasLt_static.a"&lt;BR /&gt;COMMAND="$COMMAND libculibos.a"&lt;BR /&gt;COMMAND="$COMMAND libcudart_static.a "&lt;BR /&gt;COMMAND="$COMMAND -lrt "&lt;BR /&gt;COMMAND="$COMMAND -Wl,--end-group "&lt;BR /&gt;#&lt;BR /&gt;#Intel Compiler Software&lt;BR /&gt;#Will need to edit this for your machine&lt;BR /&gt;dirIntel="/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin"&lt;BR /&gt;COMMAND="$COMMAND $dirIntel/libimf.a"&lt;BR /&gt;COMMAND="$COMMAND $dirIntel/libirc.a "&lt;BR /&gt;COMMAND="$COMMAND $dirIntel/libifport.a "&lt;BR /&gt;COMMAND="$COMMAND $dirIntel/libirng.a "&lt;BR /&gt;#&lt;BR /&gt;#Intel MKL Softward&lt;BR /&gt;#Will need to edit this for your machine&lt;BR /&gt;dirmkl="/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64"&lt;BR /&gt;COMMAND="$COMMAND -Wl,--start-group "&lt;BR /&gt;COMMAND="$COMMAND $dirmkl/libmkl_intel_lp64.a "&lt;BR /&gt;COMMAND="$COMMAND $dirmkl/libmkl_sequential.a "&lt;BR /&gt;COMMAND="$COMMAND $dirmkl/libmkl_core.a "&lt;BR /&gt;COMMAND="$COMMAND -Wl,--end-group "&lt;BR /&gt;#&lt;BR /&gt;#Linux Software&lt;BR /&gt;COMMAND="$COMMAND /lib/x86_64-linux-gnu/libc-2.31.so "&lt;BR /&gt;COMMAND="$COMMAND /usr/lib/x86_64-linux-gnu/libc_nonshared.a "&lt;BR /&gt;COMMAND="$COMMAND /lib/x86_64-linux-gnu/libstdc++.so.6 "&lt;BR /&gt;COMMAND="$COMMAND -L /lib/x86_64-linux-gnu "&lt;BR /&gt;COMMAND="$COMMAND -L /usr/lib/gcc/x86_64-linux-gnu/9 "&lt;BR /&gt;COMMAND="$COMMAND -lpthread -ldl -lm "&lt;BR /&gt;echo ""&lt;BR /&gt;echo "$COMMAND"&lt;BR /&gt;echo ""&lt;BR /&gt;$COMMAND&lt;BR /&gt;echo ""&lt;BR /&gt;COMMAND="ls -al MatrixWarrior_dbg"&lt;BR /&gt;echo "$COMMAND"&lt;BR /&gt;echo ""&lt;BR /&gt;$COMMAND&lt;BR /&gt;COMMAND="ldd MatrixWarrior_dbg"&lt;BR /&gt;echo "$COMMAND"&lt;BR /&gt;echo ""&lt;BR /&gt;$COMMAND&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 00:48:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1368766#M32913</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-15T00:48:33Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1369338#M32918</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;There is an option to attach the file when you create a forum message.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://isvc.file.force.com/servlet/rtaImage?refid=0EM4U000002PNVD" /&gt;&lt;/P&gt;&lt;P&gt;However, yours is 302MB which is much larger than the maximum allowed size of 77MB.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My suggestion is to create a priority support ticket so that you can securely send the file to us.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Feb 2026 14:36:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1369338#M32918</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2026-02-18T14:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1369459#M32919</link>
      <description>&lt;P&gt;Hi Khang -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created a version with the Nvidia software stubbed out which shows the same MKL link problem.&amp;nbsp; It is smaller (2MB) so should upload.&amp;nbsp; Naturally when built it will not run.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 21:12:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1369459#M32919</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-16T21:12:19Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1369466#M32920</link>
      <description>&lt;P&gt;Thank you, I will take a look and will let you know should I need more info.&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 Mar 2022 21:28:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1369466#M32920</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-03-16T21:28:39Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1370914#M32938</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I modified the script file to match with the folders on my system for the compiler, mkl folder.  I also changed the folder of the file libstdc++.so.6 to get the code to compile and link.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I was able to compile and link with no error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Let me try it on another system to make sure.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Mar 2022 09:06:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1370914#M32938</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-03-22T09:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1371021#M32941</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;
&lt;P&gt;That is good news.&lt;/P&gt;
&lt;P&gt;I have attached another file which will actually run if it builds.&amp;nbsp; It is small (does not include the Nvidia software).&lt;/P&gt;
&lt;P&gt;On my system this fails to link, although it says it can find the MKL files. (./testlink.ksh | grep mkl)&lt;/P&gt;
&lt;P&gt;If I copy the 3 MKL files to the local directory (and change their path), it works.&lt;/P&gt;
&lt;P&gt;I have tried all the options including -L, -l, -Wl,--sttart-group ... -Wl,--end-group and nothing seems to fix it.&lt;/P&gt;
&lt;P&gt;Is there an environment variable that needs to be set for ld to open the files during the link?&lt;/P&gt;
&lt;P&gt;Thanks, Ron&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 14:54:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1371021#M32941</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-22T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1371145#M32942</link>
      <description>&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I did try the new code and I didn't see any issue relating to linking to oneMKL.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Mar 2022 00:06:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1371145#M32942</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-03-23T00:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1371416#M32945</link>
      <description>&lt;P&gt;First, a slight correction to the script.&amp;nbsp; libFMS should be&lt;/P&gt;
&lt;P&gt;libFMS="mw.a fmsnoshr.a fmslib.a fmsint.a nogpu.a fmslib.a fmsint.a "&lt;/P&gt;
&lt;P&gt;instead of&lt;/P&gt;
&lt;P&gt;libFMS="mw.a fmsnoshr.a fmslib.a fmsint.a nogpu.a "&lt;/P&gt;
&lt;P&gt;do to circular references and a static link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the problem may be related to installing the software in a directory that is different than the default (which is different from my&amp;nbsp; case and your test),&amp;nbsp; I installed it at&lt;/P&gt;
&lt;P&gt;/Intel/Linux/oneapi&lt;/P&gt;
&lt;P&gt;with the MKL files of interest&lt;/P&gt;
&lt;P&gt;-rw-r--r-- 1 ron ron 34415724 Nov 12 05:40 /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a&lt;BR /&gt;-rw-r--r-- 1 ron ron 38539080 Nov 12 05:40 /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a&lt;BR /&gt;-rw-r--r-- 1 ron ron 577561212 Nov 12 05:40 /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a&lt;/P&gt;
&lt;P&gt;I cannot understand why these files are not searched by ld during the link.&lt;/P&gt;
&lt;P&gt;When I run&lt;/P&gt;
&lt;P&gt;IntelDir="/Intel/Linux/oneapi"&lt;BR /&gt;env &amp;gt; env1.txt&lt;BR /&gt;COMMAND="source $IntelDir/setvars.sh"&lt;BR /&gt;echo $COMMAND&lt;BR /&gt;$COMMAND&lt;BR /&gt;env &amp;gt; env2.txt&lt;BR /&gt;diff env2.txt env1.txt&lt;/P&gt;
&lt;P&gt;to look at the environment variables that are set by setvar.sh, they correctly show /Intel/Linux/oneapi as the root directory.&amp;nbsp; The ones containing MKL are&lt;/P&gt;
&lt;P&gt;&amp;lt; PKG_CONFIG_PATH=/Intel/Linux/oneapi/vtune/2022.0.0/include/pkgconfig/lib64:/Intel/Linux/oneapi/vpl/2022.0.0/lib/pkgconfig:/Intel/Linux/oneapi/tbb/2021.5.1/env/../lib/pkgconfig:/Intel/Linux/oneapi/mpi/2021.5.1/lib/pkgconfig:&lt;STRONG&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/pkgconfig&lt;/STRONG&gt;:/Intel/Linux/oneapi/ippcp/2021.5.1/lib/pkgconfig:/Intel/Linux/oneapi/inspector/2022.0.0/include/pkgconfig/lib64:/Intel/Linux/oneapi/dpl/2021.6.0/lib/pkgconfig:/Intel/Linux/oneapi/dnnl/2022.0.2/cpu_dpcpp_gpu_dpcpp/../lib/pkgconfig:/Intel/Linux/oneapi/dal/2021.5.3/lib/pkgconfig:/Intel/Linux/oneapi/compiler/2022.0.2/lib/pkgconfig:/Intel/Linux/oneapi/ccl/2021.5.1/lib/pkgconfig:/Intel/Linux/oneapi/advisor/2022.0.0/include/pkgconfig/lib64:&lt;BR /&gt;&amp;lt; LIBRARY_PATH=/Intel/Linux/oneapi/vpl/2022.0.0/lib:/Intel/Linux/oneapi/tbb/2021.5.1/env/../lib/intel64/gcc4.8:/Intel/Linux/oneapi/mpi/2021.5.1//libfabric/lib:/Intel/Linux/oneapi/mpi/2021.5.1//lib/release:/Intel/Linux/oneapi/mpi/2021.5.1//lib:&lt;STRONG&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64&lt;/STRONG&gt;:/Intel/Linux/oneapi/ipp/2021.5.2/lib/intel64:/Intel/Linux/oneapi/ippcp/2021.5.1/lib/intel64:/Intel/Linux/oneapi/ipp/2021.5.2/lib/intel64:/Intel/Linux/oneapi/dnnl/2022.0.2/cpu_dpcpp_gpu_dpcpp/lib:/Intel/Linux/oneapi/dal/2021.5.3/lib/intel64:/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin:/Intel/Linux/oneapi/compiler/2022.0.2/linux/lib:/Intel/Linux/oneapi/clck/2021.5.0/lib/intel64:/Intel/Linux/oneapi/ccl/2021.5.1/lib/cpu_gpu_dpcpp&lt;BR /&gt;&amp;lt; LD_LIBRARY_PATH=/Intel/Linux/oneapi/vpl/2022.0.0/lib:/Intel/Linux/oneapi/tbb/2021.5.1/env/../lib/intel64/gcc4.8:/Intel/Linux/oneapi/mpi/2021.5.1//libfabric/lib:/Intel/Linux/oneapi/mpi/2021.5.1//lib/release:/Intel/Linux/oneapi/mpi/2021.5.1//lib:&lt;STRONG&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64:&lt;/STRONG&gt;/Intel/Linux/oneapi/itac/2021.5.0/slib:/Intel/Linux/oneapi/ipp/2021.5.2/lib/intel64:/Intel/Linux/oneapi/ippcp/2021.5.1/lib/intel64:/Intel/Linux/oneapi/ipp/2021.5.2/lib/intel64:/Intel/Linux/oneapi/dnnl/2022.0.2/cpu_dpcpp_gpu_dpcpp/lib:/Intel/Linux/oneapi/debugger/2021.5.0/gdb/intel64/lib:/Intel/Linux/oneapi/debugger/2021.5.0/libipt/intel64/lib:/Intel/Linux/oneapi/debugger/2021.5.0/dep/lib:/Intel/Linux/oneapi/dal/2021.5.3/lib/intel64:/Intel/Linux/oneapi/compiler/2022.0.2/linux/lib:/Intel/Linux/oneapi/compiler/2022.0.2/linux/lib/x64:/Intel/Linux/oneapi/compiler/2022.0.2/linux/lib/oclfpga/host/linux64/lib:/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin:/Intel/Linux/oneapi/ccl/2021.5.1/lib/cpu_gpu_dpcpp&lt;BR /&gt;&amp;lt; MKLROOT=/Intel/Linux/oneapi/mkl/2022.0.2&lt;BR /&gt;&amp;lt; NLSPATH=&lt;STRONG&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/locale/%l_%t/%N:&lt;/STRONG&gt;/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/locale/%l_%t/%N&lt;BR /&gt;&amp;lt; PATH=/Intel/Linux/oneapi/vtune/2022.0.0/bin64:/Intel/Linux/oneapi/vpl/2022.0.0/bin:/Intel/Linux/oneapi/mpi/2021.5.1//libfabric/bin:/Intel/Linux/oneapi/mpi/2021.5.1//bin:&lt;STRONG&gt;/Intel/Linux/oneapi/mkl/2022.0.2/bin/intel64&lt;/STRONG&gt;:/Intel/Linux/oneapi/itac/2021.5.0/bin:/opt/intel/oneapi/intelpython/latest/bin:/opt/intel/oneapi/intelpython/latest/condabin:/Intel/Linux/oneapi/inspector/2022.0.0/bin64:/Intel/Linux/oneapi/dpcpp-ct/2022.0.0/bin:/Intel/Linux/oneapi/dev-utilities/2021.5.2/bin:/Intel/Linux/oneapi/debugger/2021.5.0/gdb/intel64/bin:/Intel/Linux/oneapi/compiler/2022.0.2/linux/lib/oclfpga/bin:/Intel/Linux/oneapi/compiler/2022.0.2/linux/bin/intel64:/Intel/Linux/oneapi/compiler/2022.0.2/linux/bin:/Intel/Linux/oneapi/clck/2021.5.0/bin/intel64:/Intel/Linux/oneapi/advisor/2022.0.0/bin64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin&lt;BR /&gt;&amp;lt; CPATH=/Intel/Linux/oneapi/vpl/2022.0.0/include:/Intel/Linux/oneapi/tbb/2021.5.1/env/../include:/Intel/Linux/oneapi/mpi/2021.5.1//include:&lt;STRONG&gt;/Intel/Linux/oneapi/mkl/2022.0.2/include:&lt;/STRONG&gt;/Intel/Linux/oneapi/ipp/2021.5.2/include:/Intel/Linux/oneapi/ippcp/2021.5.1/include:/Intel/Linux/oneapi/ipp/2021.5.2/include:/Intel/Linux/oneapi/dpl/2021.6.0/linux/include:/Intel/Linux/oneapi/dpcpp-ct/2022.0.0/include:/Intel/Linux/oneapi/dnnl/2022.0.2/cpu_dpcpp_gpu_dpcpp/lib:/Intel/Linux/oneapi/dev-utilities/2021.5.2/include:/Intel/Linux/oneapi/dal/2021.5.3/include:/Intel/Linux/oneapi/ccl/2021.5.1/include/cpu_gpu_dpcpp&lt;/P&gt;
&lt;P&gt;So&amp;nbsp; LIBRARY_PATH, LD_LIBRARY_PATH and PATH all include the correct directory to search.&lt;/P&gt;
&lt;P&gt;During the first output of the link the following messages occur:&lt;/P&gt;
&lt;P&gt;attempt to open /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a succeeded /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a&lt;/P&gt;
&lt;P&gt;attempt to open /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a succeeded /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a&lt;/P&gt;
&lt;P&gt;attempt to open /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a succeeded&lt;BR /&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a&lt;/P&gt;
&lt;P&gt;which would indicate that ld can find the files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However later in the link, all references to entry points in these files are undefined.&lt;/P&gt;
&lt;P&gt;I have tried several options to pass the files through ifort, including the one in the script,&lt;/P&gt;
&lt;P&gt;COMMAND="$COMMAND -Wl,--start-group "&lt;BR /&gt;COMMAND="$COMMAND $dirMKL/libmkl_intel_lp64.a "&lt;BR /&gt;COMMAND="$COMMAND $dirMKL/libmkl_sequential.a "&lt;BR /&gt;COMMAND="$COMMAND $dirMKL/libmkl_core.a "&lt;BR /&gt;COMMAND="$COMMAND -Wl,--end-group "&lt;/P&gt;
&lt;P&gt;but nothing seems to work.&lt;/P&gt;
&lt;P&gt;The one option that &lt;STRONG&gt;does work&lt;/STRONG&gt; is to move the 3 files to the local directory and search for them there.&lt;/P&gt;
&lt;P&gt;So I am at a loss why ld does not look in these files?&lt;/P&gt;
&lt;P&gt;does ifort assume they are installed in the default directory?&lt;/P&gt;
&lt;P&gt;Is there some other environment variable that can be set?&lt;/P&gt;
&lt;P&gt;Thanks, Ron&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>Wed, 23 Mar 2022 17:22:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1371416#M32945</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-23T17:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1372440#M32947</link>
      <description>&lt;P&gt;Hi Khang -&lt;/P&gt;
&lt;P&gt;I ran some more tests and found the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MKLROOT is correctly defined as&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;/Intel/Linux/oneapi/mkl/2022.0.2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;in setvar.sh&lt;/P&gt;
&lt;P&gt;However the directory containing the files&lt;/P&gt;
&lt;P&gt;$MKLROOT/lib/intel64&lt;/P&gt;
&lt;P&gt;is not defined in PATH.&lt;/P&gt;
&lt;P&gt;If I define the directory in PATH or include&lt;/P&gt;
&lt;P&gt;-L$MKLROOT/lib/intel64&lt;/P&gt;
&lt;P&gt;it helps.&lt;/P&gt;
&lt;P&gt;If I include the following on the ifort line&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-lmkl_intel_lp64&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-lmkl_sequential&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-lmkl_core&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;it looks for the .so version of these files and fails.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I remove the .so version of these files it works.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;When I specify the full path name of these files to ifort, it finds them during the first phase but does not search them later to get the definition of the unsatisfied externals, even with the directory defined in PATH or -L.&amp;nbsp; It does find them if the files are in the local directory.&lt;/P&gt;
&lt;P&gt;If I use ld directly and specify the full path name with the files in $MKLROOT/lib/intel64 directory, it works.&lt;/P&gt;
&lt;P&gt;How can I get ifort to search these files during the second phase of linking without changing the distribution?&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ron&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 15:27:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1372440#M32947</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-28T15:27:31Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373370#M32953</link>
      <description>&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Can you provide the following information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Full ifort command with full output (error and not error).&lt;/LI&gt;&lt;LI&gt;Method used to install oneMKL (apt, yum, oneapi installer etc. Toolkit or standalone, python or regular)&lt;/LI&gt;&lt;LI&gt;Output of command: $ls -lah /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2022 18:01:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373370#M32953</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-03-31T18:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373396#M32954</link>
      <description>&lt;P&gt;Hi Khang -&lt;/P&gt;
&lt;P&gt;We download the offline version of the BaseKit and HPCKit&lt;/P&gt;
&lt;P&gt;We added the mkl directory to PATH.&lt;/P&gt;
&lt;P&gt;Attached are files containing the 3 cases:&lt;/P&gt;
&lt;P&gt;Case 1:&lt;/P&gt;
&lt;P&gt;This case uses the full path names of the MKL libraries.&amp;nbsp; They are found during the first part of the link but not when looking for external definitions. (This one seems strange to me).&lt;/P&gt;
&lt;P&gt;Script: testlink2.ksh&lt;/P&gt;
&lt;P&gt;Output: testlink2.out&lt;/P&gt;
&lt;P&gt;Case 2:&lt;/P&gt;
&lt;P&gt;This script uses MKL names without the lib or .a extensions.&amp;nbsp; It works but uses the .so version of the files.&lt;/P&gt;
&lt;P&gt;Script: testlink.ksh&lt;/P&gt;
&lt;P&gt;Output: testlinkSO.out&lt;/P&gt;
&lt;P&gt;Directory: mkldir_shared.txt&lt;/P&gt;
&lt;P&gt;Case 3:&lt;/P&gt;
&lt;P&gt;The .so version of the MKL files were moved to a subdirectory.&amp;nbsp; This script is the same as Case 2 but this time it finds the .a version of the files.&lt;/P&gt;
&lt;P&gt;Script: Same as Case 2:&lt;/P&gt;
&lt;P&gt;Output: testlinkA.out&lt;/P&gt;
&lt;P&gt;Directory: mkldir_noshared.txt&lt;/P&gt;
&lt;P&gt;Subdirectory: shared.txt&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 20:02:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373396#M32954</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-03-31T20:02:41Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373428#M32955</link>
      <description>&lt;P&gt;Thanks Ron!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Mar 2022 21:44:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373428#M32955</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-03-31T21:44:37Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373471#M32956</link>
      <description>&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am escalating the issue to the mkl developer so that they can take a closer look since there is no obvious issue with static linking oneMKL to your code.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I will let you know if we discover something about this issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Apr 2022 01:50:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373471#M32956</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-04-01T01:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373608#M32958</link>
      <description>&lt;P&gt;Hi Khang -&lt;/P&gt;
&lt;P&gt;The Fortran compiler group might also want to take a look at this.&amp;nbsp; For Case 1, where the paths to the MKL files are explicitly specified, should work.&amp;nbsp; There is no reason that it finds them during the first part of the link and then cannot search them during the second part.&lt;/P&gt;
&lt;P&gt;For Cases 2 and 3 the .so and .a files either need to be stored in different directories or the compiler/linker need to have an option to select between .so and .a&lt;/P&gt;
&lt;P&gt;Thanks, Ron&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 13:42:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373608#M32958</guid>
      <dc:creator>Multipath</dc:creator>
      <dc:date>2022-04-01T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373673#M32959</link>
      <description>&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for the note.  &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Apr 2022 17:54:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1373673#M32959</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-04-01T17:54:11Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1378564#M33060</link>
      <description>&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We checked it again and were not able to reproduce the error. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;These are the comments:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On Linux, dynamic linking is the default of -qmkl (see&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compiler-reference/compiler-options/compiler-option-details/advanced-optimization-options/qmkl-qmkl.html" rel="noopener noreferrer" target="_blank"&gt;here&lt;/A&gt;). So linking with dynamic libraries is expected when the customer specified -qmkl=sequential.&lt;/LI&gt;&lt;LI&gt;Based on the customer's description:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;B&gt;Using ld to create a shared object version of our library&lt;/B&gt;&amp;nbsp;&lt;B&gt;and including&lt;/B&gt;:&lt;/P&gt;&lt;P&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a&lt;/P&gt;&lt;P&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a&lt;/P&gt;&lt;P&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a&lt;/P&gt;&lt;P&gt;it's not clear to me what the customer did exactly and if this has an effect on linking.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In testlink2.out provided by the customer:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ld: mode elf_x86_64&lt;/P&gt;&lt;P&gt;attempt to open /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o succeeded&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o&lt;/P&gt;&lt;P&gt;attempt to open /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o succeeded&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o&lt;/P&gt;&lt;P&gt;attempt to open /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o succeeded&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o&lt;/P&gt;&lt;P&gt;&lt;B&gt;attempt to open /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a succeeded&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;attempt to open /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a succeeded&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;attempt to open /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a succeeded&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;/Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a&lt;/B&gt;&lt;/P&gt;&lt;P&gt;attempt to open /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libimf.a succeeded&lt;/P&gt;&lt;P&gt;/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libimf.a&lt;/P&gt;&lt;P&gt;attempt to open /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libirc.a succeeded&lt;/P&gt;&lt;P&gt;/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libirc.a&lt;/P&gt;&lt;P&gt;attempt to open /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libifport.a succeeded&lt;/P&gt;&lt;P&gt;/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libifport.a&lt;/P&gt;&lt;P&gt;attempt to open /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libsvml.a succeeded&lt;/P&gt;&lt;P&gt;/Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libsvml.a&lt;/P&gt;&lt;P&gt;attempt to open /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libdl.so failed&lt;/P&gt;&lt;P&gt;attempt to open /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libdl.a failed&lt;/P&gt;&lt;P&gt;attempt to open /lib/x86_64-linux-gnu/libdl.so succeeded&lt;/P&gt;&lt;P&gt;/lib/x86_64-linux-gnu/libdl.so&lt;/P&gt;&lt;P&gt;attempt to open MatrixWarrior.o succeeded&lt;/P&gt;&lt;P&gt;MatrixWarrior.o&lt;/P&gt;&lt;P&gt;it looks strange to me that it searches mkl libraries (and oneapi compiler libraries) right at the beginning when the linker doesn't know what symbols need to be resolved. This is the output I got:&lt;/P&gt;&lt;P&gt;ld: mode elf_x86_64&lt;/P&gt;&lt;P&gt;attempt to open /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o succeeded&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o&lt;/P&gt;&lt;P&gt;attempt to open /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o succeeded&lt;/P&gt;&lt;P&gt;/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/crti.o&lt;/P&gt;&lt;P&gt;attempt to open /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o&lt;/P&gt;&lt;P&gt;succeeded/usr/lib/gcc/x86_64-linux-gnu/9/crtbeginS.o&lt;/P&gt;&lt;P&gt;attempt to open /lib/x86_64-linux-gnu/libdl.so succeeded&lt;/P&gt;&lt;P&gt;/lib/x86_64-linux-gnu/libdl.so&lt;/P&gt;&lt;P&gt;attempt to open MatrixWarrior.o succeeded&lt;/P&gt;&lt;P&gt;MatrixWarrior.o&lt;/P&gt;&lt;P&gt;Maybe double-check with the customer if the files used to generate testlink2.out are the same as the ones&amp;nbsp;attached.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the customer's link line,&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ifort -auto -threads -reentrancy threaded -fpic -ftz -nofor-main -ldl -o MatrixWarrior_dbg MatrixWarrior.o mw.a fmsnoshr.a fmslib.a fmsint.a fmslib.a fmsint.a yesgpu.a fmslib.a fmsint.a fmslib.a fmsint.a yesgpu.a -Wl,--start-group /Nvidia/Linux/cuda-11.4/lib64/libculibos.a /Nvidia/Linux/cuda-11.4/lib64/libcublas_static.a /Nvidia/Linux/cuda-11.4/lib64/libcublasLt_static.a /Nvidia/Linux/cuda-11.4/lib64/libculibos.a /Nvidia/Linux/cuda-11.4/lib64/libcudart_static.a -lrt -Wl,--end-group /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libimf.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libirc.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libifport.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libsvml.a /Intel/Linux/oneapi/compiler/2022.0.2/linux/compiler/lib/intel64_lin/libirng.a /lib/x86_64-linux-gnu/libc-2.31.so /usr/lib/x86_64-linux-gnu/libc_nonshared.a /lib/x86_64-linux-gnu/libstdc++.so.6 -L /lib/x86_64-linux-gnu -L /usr/lib/gcc/x86_64-linux-gnu/9 -Wl,--start-group /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a -Wl,--end-group -Wl,--start-group /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_intel_lp64.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_sequential.a /Intel/Linux/oneapi/mkl/2022.0.2/lib/intel64/libmkl_core.a -Wl,--end-group -lpthread -ldl -lm&lt;/P&gt;&lt;P&gt;there are multiple instances of Wl,--start-group and end-group&amp;nbsp;(and duplicated mkl libraries). Maybe check with the customer if this is the intended usage.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Apr 2022 17:45:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1378564#M33060</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-04-20T17:45:22Z</dc:date>
    </item>
    <item>
      <title>Re:OneAPI MKL static link fails using ifort</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1389412#M33221</link>
      <description>&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Any news on this?&lt;/P&gt;&lt;P&gt;We haven't heard from you since we last posted a message back in Apr 20th.&lt;/P&gt;&lt;P&gt;Since there is no news we are going to close this issue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Jun 2022 01:22:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/OneAPI-MKL-static-link-fails-using-ifort/m-p/1389412#M33221</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2022-06-02T01:22:19Z</dc:date>
    </item>
  </channel>
</rss>

