<?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 MKL with XCode: image not found in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910413#M12110</link>
    <description>&lt;P&gt;Art,&lt;/P&gt;
&lt;P&gt;Pleased forgive me for the delayed response. Actually I was nt asking a question, just noticed the behavior as described in my previous post. In the meantime I checked a few things and here s my comments:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;1) You can t simply call the script for setting the environment variables:&lt;/P&gt;
&lt;P&gt;First I tried something like opening a Terminal window and then calling the script:&lt;/P&gt;
&lt;P&gt;/opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh&lt;/P&gt;
&lt;P&gt;However the environment variables would still be undefined (echo $MKLROOT or echo $DYLD_LIBRARY_PATH would yield to empty strings). Then I realized that you actually have to source the script using something like:&lt;/P&gt;
&lt;P&gt;source/opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh&lt;/P&gt;
&lt;P&gt;This time the environment variables would be correctly set.&lt;/P&gt;
&lt;P&gt;2) In order to avoid the source command each time I opened a terminal window, I created a .bash_profile in my home directory and added the source command in the file:&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;#! /bin/sh&lt;/DIV&gt;
&lt;DIV&gt;# .bash_profile&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;source /opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Tested it and works fine.&lt;/P&gt;
&lt;P&gt;3) However, even if I source the script before launching XCode, the debugger will still complain with an "image not found" message. You really have to set DYLD_LIBRARY_PATH inside XCode as mentioned in my previous post in order for gdb to find the libraries.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2010 19:48:50 GMT</pubDate>
    <dc:creator>Anwar_Ludin</dc:creator>
    <dc:date>2010-01-26T19:48:50Z</dc:date>
    <item>
      <title>MKL with XCode: image not found</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910409#M12106</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Using XCode and following the MKL user s guide, I ve dynamically linked the MKL libraries to my application (called SmartOptions). When trying to debug the application, I got the following error (debug console):&lt;/P&gt;
&lt;P&gt;Loading program into debugger... Program loaded. &lt;SPAN style="font-weight: bold;"&gt;run&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;SPAN style="font-weight: normal; line-height: 16px;"&gt;[Switching to process 21256]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Running&lt;/P&gt;
&lt;P&gt;&lt;B&gt;dyld: Library not loaded: libmkl_intel_ilp64.dylibReferenced from: /Users/aludin/Documents/SmartOptions/build/Debug/SmartOptions.app/Contents/MacOS/SmartOptionsReason: image not found&lt;/B&gt;&lt;/P&gt;
&lt;DIV&gt;Using the otool, i got the following output: otool -L SmartOptions:&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV id="_mcePaste"&gt;SmartOptions:&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;
&lt;DIV&gt;libmkl_intel_ilp64.dylib (compatibility version 0.0.0, current version 0.0.0)&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;libmkl_sequential.dylib (compatibility version 0.0.0, current version 0.0.0)&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;libmkl_core.dylib (compatibility version 0.0.0, current version 0.0.0)&lt;/DIV&gt;
otool -L SmartOptionsSmartOptions:	libmkl_intel_ilp64.dylib (compatibility version 0.0.0, current version 0.0.0)	libmkl_sequential.dylib (compatibility version 0.0.0, current version 0.0.0)	libmkl_core.dylib (compatibility version 0.0.0, current version 0.0.0)&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;By setting theDYLD_LIBRARY_PATH environment variable (Group &amp;amp; Files-&amp;gt; Executables-&amp;gt;SmartOptions-&amp;gt;dbl click-&amp;gt;arguments Tab) to/opt/intel/Compiler/11.1/080/Frameworks/mkl/lib/em64t, then the application launches correctly.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2010 19:37:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910409#M12106</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2010-01-20T19:37:12Z</dc:date>
    </item>
    <item>
      <title>MKL with XCode: image not found</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910410#M12107</link>
      <description>&lt;P&gt;anwar,&lt;/P&gt;
&lt;P&gt;yes, before running any application you have to setting up all environment variables which are related MKL. the easiest way to do that - to launch mklvarsem64t.sh scripts from &lt;ROOT&gt;\tools\environment directory.&lt;/ROOT&gt;&lt;/P&gt;
&lt;P&gt;--Gennady&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 07:29:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910410#M12107</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-01-21T07:29:08Z</dc:date>
    </item>
    <item>
      <title>MKL with XCode: image not found</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910411#M12108</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It is rightwhen use dynamic linkinglibrary, please make sure the DYLD_LIBRARY_PATH is defined so that exactly the dynamic librariesare found and used at run time.&lt;/P&gt;
&lt;P&gt;We mentioned that inuserguide or KB in sporadic places.&lt;/P&gt;
&lt;P&gt;for example, &lt;A href="http://software.intel.com/en-us/articles/dyld-library-not-loadedlibiomp5dylib/"&gt;http://software.intel.com/en-us/articles/dyld-library-not-loadedlibiomp5dylib/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I will ask our doc team to hightligh it inKB or user guide.&lt;/P&gt;
&lt;P&gt;Thank you a lotfor the sharing.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ying&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 07:49:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910411#M12108</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-01-21T07:49:27Z</dc:date>
    </item>
    <item>
      <title>MKL with XCode: image not found</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910412#M12109</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It is correct that you should set DYLD_LIBRARY_PATH environment variable to full path to directory that contains dynamic libraries.&lt;/P&gt;
&lt;P&gt;Could you please specify your question more precisely? It is unclear from description above.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Art&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2010 08:13:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910412#M12109</guid>
      <dc:creator>Artem_V_Intel</dc:creator>
      <dc:date>2010-01-21T08:13:45Z</dc:date>
    </item>
    <item>
      <title>MKL with XCode: image not found</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910413#M12110</link>
      <description>&lt;P&gt;Art,&lt;/P&gt;
&lt;P&gt;Pleased forgive me for the delayed response. Actually I was nt asking a question, just noticed the behavior as described in my previous post. In the meantime I checked a few things and here s my comments:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;1) You can t simply call the script for setting the environment variables:&lt;/P&gt;
&lt;P&gt;First I tried something like opening a Terminal window and then calling the script:&lt;/P&gt;
&lt;P&gt;/opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh&lt;/P&gt;
&lt;P&gt;However the environment variables would still be undefined (echo $MKLROOT or echo $DYLD_LIBRARY_PATH would yield to empty strings). Then I realized that you actually have to source the script using something like:&lt;/P&gt;
&lt;P&gt;source/opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh&lt;/P&gt;
&lt;P&gt;This time the environment variables would be correctly set.&lt;/P&gt;
&lt;P&gt;2) In order to avoid the source command each time I opened a terminal window, I created a .bash_profile in my home directory and added the source command in the file:&lt;/P&gt;
&lt;P&gt;
&lt;/P&gt;&lt;DIV id="_mcePaste"&gt;#! /bin/sh&lt;/DIV&gt;
&lt;DIV&gt;# .bash_profile&lt;/DIV&gt;
&lt;DIV id="_mcePaste"&gt;source /opt/intel/Compiler/11.1/080/Frameworks/mkl/tools/environment/mklvarsem64t.sh&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Tested it and works fine.&lt;/P&gt;
&lt;P&gt;3) However, even if I source the script before launching XCode, the debugger will still complain with an "image not found" message. You really have to set DYLD_LIBRARY_PATH inside XCode as mentioned in my previous post in order for gdb to find the libraries.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 19:48:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910413#M12110</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2010-01-26T19:48:50Z</dc:date>
    </item>
    <item>
      <title>MKL with XCode: image not found</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910414#M12111</link>
      <description>&lt;P&gt;Hello Anwar,&lt;/P&gt;
&lt;P&gt;Iagree completelywith your previous post and would like to add some small comment.&lt;/P&gt;
&lt;P&gt;In case of multithreaded version of MKL you should also add path to the compiler 'lib' directory in DYLD_LIBRARY_PATH like this:&lt;/P&gt;
&lt;P&gt;DYLD_LIBRARY_PATH=/opt/intel/Compiler/11.1/080/Frameworks/mkl/lib/em64t:/opt/intel/Compiler/11.1/080/lib&lt;/P&gt;
&lt;P&gt;It is needed because 'lib' directory of the compiler contains libiomp5.dylib library.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Art&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2010 09:15:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910414#M12111</guid>
      <dc:creator>Artem_V_Intel</dc:creator>
      <dc:date>2010-01-27T09:15:25Z</dc:date>
    </item>
    <item>
      <title>MKL with XCode: image not found</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910415#M12112</link>
      <description>&lt;P&gt;Thankseveryone's comments. &lt;BR /&gt;&lt;BR /&gt;The notes should be added in user guide of the latest MKL release, MKL 10.2.6 or corresponding compiler version: &lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/which-version-of-ipp--mkl--tbb-is-installed-with-intel-compiler-professional-edition/"&gt;http://software.intel.com/en-us/articles/which-version-of-ipp--mkl--tbb-is-installed-with-intel-compiler-professional-edition/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ying &lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2010 02:43:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-with-XCode-image-not-found/m-p/910415#M12112</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2010-10-20T02:43:52Z</dc:date>
    </item>
  </channel>
</rss>

