<?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 You probably need to set LD in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049733#M21095</link>
    <description>&lt;P&gt;You probably need to set LD_LIBRARY_PATH to include MKL. I know this is needed on Linux, not sure if the variable is the same name on OS X. I am moving your question to the MKL forum where the experts there can help you.&lt;/P&gt;</description>
    <pubDate>Fri, 01 May 2015 17:13:45 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2015-05-01T17:13:45Z</dc:date>
    <item>
      <title>Compile or executing problem with ifort on Mac OS X*</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049730#M21092</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I have just installed&amp;nbsp;Intel® Parallel Studio XE Composer Edition for Fortran OS X* (m_fcompxe_2015.3.187.dmg), and I have just used it to compile my program on Mac OS 10.9.5 . It seems that there is no problem for compiling, creating the executable file (actually, there are still some warnings). However, error message came when I executed it... I really have no idea what is going on. Would you give me some comments on it ?&lt;/P&gt;

&lt;P&gt;Here are some messages when I compile my program:&lt;/P&gt;

&lt;P&gt;ifort -O2 -xSSSE3 -shared-intel -auto -openmp &amp;nbsp;-c &amp;nbsp;patom.f90 -L/opt/intel/mkl/lib/ -L/Users/mac/intel_ode/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -liode_intel64 -lm -I/opt/intel/mkl/include/intel64 -I/Users/mac/intel_ode/include&lt;BR /&gt;
	ifort -O2 -xSSSE3 -shared-intel -auto -openmp &amp;nbsp;-c sub19.f90&lt;BR /&gt;
	ifort -O2 -xSSSE3 -shared-intel -auto -openmp &amp;nbsp;-o &amp;nbsp;b.e patom.o sub19.o -L/opt/intel/mkl/lib/ -L/Users/mac/intel_ode/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -liode_intel64 -lm -I/opt/intel/mkl/include/intel64 -I/Users/mac/intel_ode/include&lt;BR /&gt;
	ipo: warning #11062: /Users/mac/intel_ode/lib/intel64/libiode_intel64.a is an archive, but has no symbols (this can happen if ar is used where xiar is needed)&lt;BR /&gt;
	ld: warning: ignoring file /Users/mac/intel_ode/lib/intel64/libiode_intel64.a, file was built for archive which is not the architecture being linked (x86_64): /Users/mac/intel_ode/lib/intel64/libiode_intel64.a&lt;/P&gt;

&lt;P&gt;Here are the error messages after I execute the executable file:&lt;/P&gt;

&lt;P&gt;dyld: Library not loaded: libmkl_intel_lp64.dylib&lt;BR /&gt;
	&amp;nbsp; Referenced from: /Users/mac/programming/Mac/patom2.2/./b.e&lt;BR /&gt;
	&amp;nbsp; Reason: image not found&lt;BR /&gt;
	Trace/BPT trap: 5&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;p.s.: this program works when I compile it on the Linux using ifort.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 02:12:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049730#M21092</guid>
      <dc:creator>Belmiro_C_1</dc:creator>
      <dc:date>2015-05-01T02:12:29Z</dc:date>
    </item>
    <item>
      <title>There seems to be a problem</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049731#M21093</link>
      <description>&lt;P&gt;There seems to be a problem with how iode_intel64.a was built, but you don't show the steps for that. The error message suggests that perhaps ar was used instead of xiar (if the library was compiled with -ipo), but that's just a guess.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 14:56:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049731#M21093</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-05-01T14:56:37Z</dc:date>
    </item>
    <item>
      <title>Steve,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049732#M21094</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Steve,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks for your rely!&lt;/P&gt;

&lt;P&gt;Now, I make my program(which is just print out "Hello") and makefile simpler, and also ignore the intel ODE solver subroutine:&lt;/P&gt;

&lt;P&gt;Here is the messages when compiling&lt;/P&gt;

&lt;P&gt;ifort -O2 -xSSSE3 -auto -c &amp;nbsp;test.f90 -L/opt/intel/mkl/lib/ -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread &amp;nbsp;-lm -I/opt/intel/mkl/include/intel64&lt;BR /&gt;
	ifort -O2 -xSSSE3 -auto -c sub19.f90&lt;BR /&gt;
	ifort -O2 -xSSSE3 -auto -o &amp;nbsp;b.e test.o sub19.o -L/opt/intel/mkl/lib/ -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread &amp;nbsp;-lm -I/opt/intel/mkl/include/intel64&lt;/P&gt;

&lt;P&gt;Again, the executable can be created. However, when I execute it, it fails.&lt;/P&gt;

&lt;P&gt;Here is the error message:&lt;/P&gt;

&lt;P&gt;dyld: Library not loaded: libmkl_intel_lp64.dylib&lt;BR /&gt;
	&amp;nbsp; Referenced from: /Users/mac/programming/Mac/test/./b.e&lt;BR /&gt;
	&amp;nbsp; Reason: image not found&lt;BR /&gt;
	Trace/BPT trap: 5&lt;/P&gt;

&lt;P&gt;Do you know what is the problem???&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 16:39:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049732#M21094</guid>
      <dc:creator>Belmiro_C_1</dc:creator>
      <dc:date>2015-05-01T16:39:09Z</dc:date>
    </item>
    <item>
      <title>You probably need to set LD</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049733#M21095</link>
      <description>&lt;P&gt;You probably need to set LD_LIBRARY_PATH to include MKL. I know this is needed on Linux, not sure if the variable is the same name on OS X. I am moving your question to the MKL forum where the experts there can help you.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 17:13:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049733#M21095</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-05-01T17:13:45Z</dc:date>
    </item>
    <item>
      <title>Please check the environment</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049734#M21096</link>
      <description>&lt;P&gt;Please check the environment variable DYLD_LIBRARY_PATH.&amp;nbsp;&amp;nbsp; It should contain the file directory where libmkl_intel_lp64.dylib can be found.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; --Lorri&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2015 17:14:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049734#M21096</guid>
      <dc:creator>Lorri_M_Intel</dc:creator>
      <dc:date>2015-05-01T17:14:51Z</dc:date>
    </item>
    <item>
      <title>Steve and Lorri,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049735#M21097</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Steve and Lorri,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I am grateful for your relies! It works!! Thank you very much!!!&lt;/P&gt;

&lt;P&gt;Besides, I have one more question about the ifort for Mac. I used to set "mcmodel" for my code. However, it seems that ifort for Mac does not support this option. Here is the error message:&lt;/P&gt;

&lt;P&gt;ifort -O2 -xSSSE3 -mcmodel=medium -shared-intel -auto -openmp &amp;nbsp;-c &amp;nbsp;test.f90 -L/opt/intel/composer_xe_2015.3.187/mkl/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread &amp;nbsp;-lm -I/opt/intel/composer_xe_2015.3.187/mkl/include&lt;BR /&gt;
	ifort: command line warning #10152: option '-mcmodel medium' not supported&lt;BR /&gt;
	ifort -O2 -xSSSE3 -mcmodel=medium -shared-intel -auto -openmp &amp;nbsp;-c sub19.f90&lt;BR /&gt;
	ifort: command line warning #10152: option '-mcmodel medium' not supported&lt;BR /&gt;
	ifort -O2 -xSSSE3 -mcmodel=medium -shared-intel -auto -openmp &amp;nbsp;-o &amp;nbsp;b.e test.o sub19.o -L/opt/intel/composer_xe_2015.3.187/mkl/lib -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread &amp;nbsp;-lm -I/opt/intel/composer_xe_2015.3.187/mkl/include&lt;BR /&gt;
	ifort: command line warning #10152: option '-mcmodel medium' not supported&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But, I did see this option in the manual!! Would you tell me why I cannot use it in ifort for Mac ? (it works when I compile it in Linux)&lt;/P&gt;

&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 02:59:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049735#M21097</guid>
      <dc:creator>Belmiro_C_1</dc:creator>
      <dc:date>2015-05-04T02:59:43Z</dc:date>
    </item>
    <item>
      <title>OS X doesn't need (nor</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049736#M21098</link>
      <description>&lt;P&gt;OS X doesn't need (nor support) -mcmodel.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 15:17:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049736#M21098</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-05-04T15:17:43Z</dc:date>
    </item>
    <item>
      <title>Quote:Steve Lionel (Intel)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049737#M21099</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Steve Lionel (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;OS X doesn't need (nor support) -mcmodel.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Does that mean that, in effect, mcmodel=medium (or something else) is the default and only option for Mac?&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 15:35:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049737#M21099</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-05-04T15:35:14Z</dc:date>
    </item>
    <item>
      <title>As I understand it, yes. At</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049738#M21100</link>
      <description>&lt;P&gt;As I understand it, yes. At least medium, if not large.&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2015 23:36:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049738#M21100</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2015-05-04T23:36:38Z</dc:date>
    </item>
    <item>
      <title>Thanks Steve.  </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049739#M21101</link>
      <description>&lt;P&gt;Thanks Steve. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;We are supposed &amp;nbsp;to &amp;nbsp;addressed the link problem : &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;dyld: Library not loaded: libmkl_intel_lp64.dylib &amp;nbsp;in user guide or some articles.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I found one:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://software.intel.com/en-us/articles/quick-link-intel-mkl-in-xcode-ide-a-fortran-sample" target="_blank"&gt;https://software.intel.com/en-us/articles/quick-link-intel-mkl-in-xcode-ide-a-fortran-sample&lt;/A&gt;&lt;/P&gt;

&lt;H3 style="box-sizing: border-box; font-size: 24px; line-height: 1.2; margin-bottom: 20px; font-family: intel-clear, Arial, Tahoma, Helvetica, sans-serif; font-weight: 200; color: rgb(0, 174, 239);"&gt;6. Troubleshooting&lt;/H3&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&lt;STRONG style="box-sizing: border-box;"&gt;&amp;nbsp;dyld: Library not loaded: libmkl_intel_lp64.dylib&lt;/STRONG&gt;&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;Please either set&amp;nbsp;the environment variable&amp;nbsp;DYLD_LIBRARY_PATH in Xcode environment as step 5&amp;nbsp; or&amp;nbsp;use mkl environment setting tool before run the executable file in Command line windows, i.e .&lt;/P&gt;

&lt;P style="box-sizing: border-box; margin-bottom: 20px; line-height: 1.4; color: rgb(102, 102, 102); font-family: Arial, Tahoma, Helvetica, sans-serif; font-size: 14px;"&gt;&amp;gt;source /opt/intel/composer_xe_2013/mkl/bin/mklvars.sh intel 64&lt;BR style="box-sizing: border-box;" /&gt;
	&amp;gt; executable&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2015 01:45:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049739#M21101</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2015-05-05T01:45:56Z</dc:date>
    </item>
    <item>
      <title>Thank you very much Ying!!! </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049740#M21102</link>
      <description>&lt;P&gt;Thank you very much Ying!!!&amp;nbsp;&lt;/P&gt;

&lt;P&gt;It works ~ !!&lt;/P&gt;</description>
      <pubDate>Sat, 16 May 2015 08:47:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compile-or-executing-problem-with-ifort-on-Mac-OS-X/m-p/1049740#M21102</guid>
      <dc:creator>Belmiro_C_1</dc:creator>
      <dc:date>2015-05-16T08:47:58Z</dc:date>
    </item>
  </channel>
</rss>

