<?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 Hugo, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149886#M27025</link>
    <description>&lt;P&gt;Hi Hugo,&lt;/P&gt;

&lt;P&gt;"-mkl" is threaded dynamic linking with MKL, you have to set environmental variable. Please&amp;nbsp;Run shell script file to set environment variables, for example, setting lib path for compilers and libraries:&lt;/P&gt;

&lt;P&gt;$source /opt/intel/compilers_and_libraries_2018.*.***/mac/bin/compilervars.sh &amp;lt;ia32|intel64&amp;gt;&lt;/P&gt;

&lt;P&gt;or you could export $DYLD_LIBRARY_PATH by yourself.&lt;/P&gt;

&lt;P&gt;export DYLD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.*.***/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.*.***/mac/mkl/lib:$DYLD_LIBRARY_PATH&lt;/P&gt;

&lt;P&gt;Please follow these articles to view detail info:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode"&gt;Compiling and linking MKL with Xcode*&lt;/A&gt;&lt;BR /&gt;
	&lt;A href="https://registrationcenter.intel.com/irc_nas/2690/mkl_userguide_mac.pdf"&gt;Intel® Math Kernel Library for Mac OS* X User's Guide&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 01:37:13 GMT</pubDate>
    <dc:creator>Zhen_Z_Intel</dc:creator>
    <dc:date>2017-11-02T01:37:13Z</dc:date>
    <item>
      <title>dyld: Library not loaded: @rpath/libmkl_intel_lp64.dylib</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149883#M27022</link>
      <description>&lt;P&gt;I am on High Sierra (OS X 10.13), and this is my first time I am using the Intel MKL. I want to compile the example shown here&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/mkl-tutorial-c-multiplying-matrices-using-dgemm"&gt;https://software.intel.com/en-us/mkl-tutorial-c-multiplying-matrices-using-dgemm&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;using MKL 2018. As suggested by the example, I create a file with the name: &lt;SPAN style="color: rgb(102, 102, 102); font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 13px;"&gt;dgemm_example.c&lt;/SPAN&gt;, and then I compile it using&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13.008000373840332px;"&gt;icc -mkl dgemm_example.c -o dgemm_example&lt;/PRE&gt;

&lt;P&gt;When running it:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;./dgemm_example&lt;/PRE&gt;

&lt;P&gt;I get the following message:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;dyld: Library not loaded: @rpath/libmkl_intel_lp64.dylib
  Referenced from: /Users/hesquivel/Desktop/./dgemm_example
  Reason: image not found
Abort trap: 6&lt;/PRE&gt;

&lt;P&gt;I was wondering how to make this library be loaded and avoid the error.&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Hugo&lt;/P&gt;

&lt;P&gt;PS: I am using a MacBookPro14,3 (Intel Core i7, 3.1 GHz, Mid 2017).&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 16:02:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149883#M27022</guid>
      <dc:creator>Hugo</dc:creator>
      <dc:date>2017-10-31T16:02:51Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149884#M27023</link>
      <description>&lt;P style="font-size: 13.008px;"&gt;Hi,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;1. Please check with&amp;nbsp;&lt;SPAN style="font-size: 12px;"&gt;DYLD_LIBRARY_PATH, if lib path of MKL and compiler are set correctly.&lt;BR /&gt;
	2. Please try to link with&amp;nbsp;&lt;/SPAN&gt;libiomp5.dylib&amp;nbsp;and&lt;SPAN style="font-size: 12px;"&gt;&amp;nbsp;mkl lib path,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;
	icc -o dgemm_example&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;dgemm_example.c&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em;"&gt;-L$MKLROOT/lib -Wl,-rpath,$MKLROOT/lib -Wl,-rpath,$MKLROOT/../compiler/lib&amp;nbsp;&lt;/SPAN&gt;-mkl&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Best regards,&lt;BR /&gt;
	Fiona&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 02:37:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149884#M27023</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-11-01T02:37:21Z</dc:date>
    </item>
    <item>
      <title>Hi Fiona,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149885#M27024</link>
      <description>&lt;P&gt;Hi Fiona,&lt;/P&gt;

&lt;P&gt;By executing:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;echo $DYLD_LIBRARY_PATH&lt;/PRE&gt;

&lt;P&gt;I get nothing.&lt;/P&gt;

&lt;P&gt;Compiling dgemm_example.c with your command line makes the executable run as expected.&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;icc -o dgemm_example dgemm_example.c -L/opt/intel/mkl/lib -Wl,-rpath,/opt/intel/mkl/lib -Wl,-rpath,/opt/intel/mkl/../compiler/lib -mkl&lt;/PRE&gt;

&lt;P&gt;I was wondering how I should define DYLD_LIBRARY_PATH to make the missing library be added automatically.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;Hugo&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 12:23:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149885#M27024</guid>
      <dc:creator>Hugo</dc:creator>
      <dc:date>2017-11-01T12:23:27Z</dc:date>
    </item>
    <item>
      <title>Hi Hugo,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149886#M27025</link>
      <description>&lt;P&gt;Hi Hugo,&lt;/P&gt;

&lt;P&gt;"-mkl" is threaded dynamic linking with MKL, you have to set environmental variable. Please&amp;nbsp;Run shell script file to set environment variables, for example, setting lib path for compilers and libraries:&lt;/P&gt;

&lt;P&gt;$source /opt/intel/compilers_and_libraries_2018.*.***/mac/bin/compilervars.sh &amp;lt;ia32|intel64&amp;gt;&lt;/P&gt;

&lt;P&gt;or you could export $DYLD_LIBRARY_PATH by yourself.&lt;/P&gt;

&lt;P&gt;export DYLD_LIBRARY_PATH=/opt/intel/compilers_and_libraries_2018.*.***/mac/compiler/lib:/opt/intel/compilers_and_libraries_2018.*.***/mac/mkl/lib:$DYLD_LIBRARY_PATH&lt;/P&gt;

&lt;P&gt;Please follow these articles to view detail info:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/intel-math-kernel-library-for-mac-os-compiling-and-linking-with-xcode"&gt;Compiling and linking MKL with Xcode*&lt;/A&gt;&lt;BR /&gt;
	&lt;A href="https://registrationcenter.intel.com/irc_nas/2690/mkl_userguide_mac.pdf"&gt;Intel® Math Kernel Library for Mac OS* X User's Guide&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 01:37:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149886#M27025</guid>
      <dc:creator>Zhen_Z_Intel</dc:creator>
      <dc:date>2017-11-02T01:37:13Z</dc:date>
    </item>
    <item>
      <title>Hi Fiona,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149887#M27026</link>
      <description>&lt;P&gt;Hi Fiona,&lt;/P&gt;

&lt;P&gt;Thanks a lot for the details and support. I think I am ready to begin using MKL on High Sierra.&lt;/P&gt;

&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Hugo&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 12:59:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1149887#M27026</guid>
      <dc:creator>Hugo</dc:creator>
      <dc:date>2017-11-02T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1345160#M32473</link>
      <description>&lt;P&gt;Hi Fiona,&lt;/P&gt;
&lt;P&gt;Can you give an update for the new file structure in the newest oneapi compiler?&amp;nbsp; It's confusing to see old posts to new file structures.&amp;nbsp; For one thing, /path/to/&lt;SPAN&gt;mac/bin/compilervars.sh scripts no longer exists so you cannot run it.&amp;nbsp; Was this replaced by&amp;nbsp;/opt/intel/oneapi/setvars.sh I am assuming?&amp;nbsp; Then also from&amp;nbsp;$MKLROOT which is&amp;nbsp;/opt/intel/oneapi/mkl and there are two versions of the compiler 2021.4.0 and latest so should it be&amp;nbsp;$MKLROOT/latest/lib or $MKLROOT/../compiler/latest/lib?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Lastely if compiling instruction are cmake .. &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make check and we get this error message during make check.&amp;nbsp; How far back do we need to go to set these variables.&amp;nbsp; I can check that myself but it would be nice is moderators and employees actually run the code provided in the forums if Intel has the ability to do that.&amp;nbsp; I think we need support (and this isn't just Intel) to go the extra mile to actually run the code that post in these forums.&amp;nbsp; If you already did that than you can disregard this comment &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Brian&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Dec 2021 08:23:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib/m-p/1345160#M32473</guid>
      <dc:creator>bjwiley233</dc:creator>
      <dc:date>2021-12-19T08:23:54Z</dc:date>
    </item>
  </channel>
</rss>

