<?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 Leon, 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-when/m-p/1145799#M26678</link>
    <description>&lt;P&gt;Hi Leon,&lt;/P&gt;

&lt;P&gt;It seems&amp;nbsp;the perl shell don't recognize the &amp;nbsp;$DYLD_LIBRARY_PATH , while&amp;nbsp;under&amp;nbsp;the command&amp;nbsp;is bash shell, which is recognize the path.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1) how do you setting the path?&amp;nbsp; are you run&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;$echo $DYLD_LIBRARY_PATH&lt;/P&gt;

&lt;P&gt;2) how do you write the perl script?&lt;/P&gt;

&lt;P&gt;there are some ways as the forum topic&amp;nbsp; or &lt;A href="https://software.intel.com/en-us/articles/dyld-library-not-loadedlibiomp5dylib/" target="_blank"&gt;https://software.intel.com/en-us/articles/dyld-library-not-loadedlibiomp5dylib/&lt;/A&gt;&lt;BR /&gt;
	​ mainly 3 kind of type&lt;BR /&gt;
	​1. set correct environment&lt;BR /&gt;
	​2. recompile your application with -rpath , point to specific path .&amp;nbsp;&amp;nbsp; or recompile with mkl static library, you don't need consider the run-time path.&lt;BR /&gt;
	​3. add the path in exe file. off-line.&lt;BR /&gt;
	&lt;BR /&gt;
	​Basically, the No.1 is more easily, let's try it first. if possible, please try&lt;BR /&gt;
	&amp;gt; define the DYLD_LIBRARY_PATH variable in the /etc/launchd.conf file​&lt;BR /&gt;
	&amp;gt; &lt;A href="https://www.nntp.perl.org/group/perl.beginners/2010/05/msg113072.html" target="_blank"&gt;https://www.nntp.perl.org/group/perl.beginners/2010/05/msg113072.html&lt;/A&gt; , write the path in your perl script file.&lt;/P&gt;

&lt;P&gt;​Best Regards,&lt;BR /&gt;
	​Ying&lt;/P&gt;

&lt;P&gt;&lt;A href="https://superuser.com/questions/282450/where-do-i-set-dyld-library-path-on-mac-os-x-and-is-it-a-good-idea" target="_blank"&gt;https://superuser.com/questions/282450/where-do-i-set-dyld-library-path-on-mac-os-x-and-is-it-a-good-idea&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 02:24:43 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2018-06-28T02:24:43Z</dc:date>
    <item>
      <title>dyld: Library not loaded: @rpath/libmkl_intel_lp64.dylib when running scripts</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib-when/m-p/1145798#M26677</link>
      <description>&lt;DIV class="post-text" itemprop="text"&gt;
	&lt;P&gt;I tried to run a series of simulations using GROMACS 4.6.5 on MAC PRO in which intel composer_xe_2013 was installed. If I manually submit an individual job using commands in a terminal, I do not have any problems. However, If I want to submit a series of job using PERL scripts to run these commands, I always get the error message&lt;/P&gt;

	&lt;PRE class="default prettyprint prettyprinted" style=""&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;dyld&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Library&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;not&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; loaded&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;@rpath&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;/&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;libmkl_intel_lp64&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;dylib&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;

	&lt;P&gt;The $DYLD_LIBRARY_PATH has been set and can be visited.&lt;/P&gt;

	&lt;P&gt;I do not know what is going wrong here. I read discussion at &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/747922" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/747922&lt;/A&gt;. I am not very sure how to set the library link properly. Do I need to recompile GROMACS or just simply set " link with&amp;nbsp;libiomp5.dylib&amp;nbsp;and&amp;nbsp;mkl lib path" which was stated in above link? if I run "icc -o dgemm_example&amp;nbsp;dgemm_example.c&amp;nbsp;-L$MKLROOT/lib -Wl,-rpath,$MKLROOT/lib -Wl,-rpath,$MKLROOT/../compiler/lib&amp;nbsp;-mkl " as suggested in that discussion, how do I backup the original setting in case I failed and had a chance to recover the original setting? Any further information and help would be sincerely appreciated.&lt;/P&gt;

	&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Jun 2018 04:59:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib-when/m-p/1145798#M26677</guid>
      <dc:creator>Leon_W_1</dc:creator>
      <dc:date>2018-06-26T04:59:16Z</dc:date>
    </item>
    <item>
      <title>Hi Leon,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib-when/m-p/1145799#M26678</link>
      <description>&lt;P&gt;Hi Leon,&lt;/P&gt;

&lt;P&gt;It seems&amp;nbsp;the perl shell don't recognize the &amp;nbsp;$DYLD_LIBRARY_PATH , while&amp;nbsp;under&amp;nbsp;the command&amp;nbsp;is bash shell, which is recognize the path.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;1) how do you setting the path?&amp;nbsp; are you run&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;$echo $DYLD_LIBRARY_PATH&lt;/P&gt;

&lt;P&gt;2) how do you write the perl script?&lt;/P&gt;

&lt;P&gt;there are some ways as the forum topic&amp;nbsp; or &lt;A href="https://software.intel.com/en-us/articles/dyld-library-not-loadedlibiomp5dylib/" target="_blank"&gt;https://software.intel.com/en-us/articles/dyld-library-not-loadedlibiomp5dylib/&lt;/A&gt;&lt;BR /&gt;
	​ mainly 3 kind of type&lt;BR /&gt;
	​1. set correct environment&lt;BR /&gt;
	​2. recompile your application with -rpath , point to specific path .&amp;nbsp;&amp;nbsp; or recompile with mkl static library, you don't need consider the run-time path.&lt;BR /&gt;
	​3. add the path in exe file. off-line.&lt;BR /&gt;
	&lt;BR /&gt;
	​Basically, the No.1 is more easily, let's try it first. if possible, please try&lt;BR /&gt;
	&amp;gt; define the DYLD_LIBRARY_PATH variable in the /etc/launchd.conf file​&lt;BR /&gt;
	&amp;gt; &lt;A href="https://www.nntp.perl.org/group/perl.beginners/2010/05/msg113072.html" target="_blank"&gt;https://www.nntp.perl.org/group/perl.beginners/2010/05/msg113072.html&lt;/A&gt; , write the path in your perl script file.&lt;/P&gt;

&lt;P&gt;​Best Regards,&lt;BR /&gt;
	​Ying&lt;/P&gt;

&lt;P&gt;&lt;A href="https://superuser.com/questions/282450/where-do-i-set-dyld-library-path-on-mac-os-x-and-is-it-a-good-idea" target="_blank"&gt;https://superuser.com/questions/282450/where-do-i-set-dyld-library-path-on-mac-os-x-and-is-it-a-good-idea&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 02:24:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/dyld-Library-not-loaded-rpath-libmkl-intel-lp64-dylib-when/m-p/1145799#M26678</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-06-28T02:24:43Z</dc:date>
    </item>
  </channel>
</rss>

