<?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 Dear Ying, thanks for the in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955365#M15463</link>
    <description>&lt;P&gt;Dear Ying, thanks for the hint. Indeed that was the problem! Using the flag --no-as-needed links in "iomp5", which it did not before. Thanks a lot for the help and blame the Ubuntu/gcc people for this stupid move :-)&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2014 16:50:37 GMT</pubDate>
    <dc:creator>Juan_Jose_Garcia_Rip</dc:creator>
    <dc:date>2014-01-13T16:50:37Z</dc:date>
    <item>
      <title>Ubuntu + gcc-4.8 problems</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955358#M15456</link>
      <description>Hi,

I have two sets of computers. One has Ubuntu 12.04, the other one 13.10. The former works fine with Intel MKL 11.0, the later gives some weird link errors. The command line is the same on both platforms, and in both I am using mklvars.sh to get the appropriate paths. Any hints?

g++ -m64 -I/opt/intel/mkl/include -I/home/jjgarcia/mps-bundle/include -g -O2 -O2 -o exp_1.exe exp_1.cc -lmps -L/home/jjgarcia/mps-bundle/lib -ltensor -L/home/jjgarcia/mps-bundle/lib -L/opt/intel/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -ldl -lpthread

/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_ok_to_fork
/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_end_single
/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_ordered
...</description>
      <pubDate>Fri, 10 Jan 2014 21:14:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955358#M15456</guid>
      <dc:creator>Juan_Jose_Garcia_Rip</dc:creator>
      <dc:date>2014-01-10T21:14:44Z</dc:date>
    </item>
    <item>
      <title>/opt/intel/mkl/lib/intel64</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955359#M15457</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_ok_to_fork&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_end_single&lt;/SPAN&gt;&lt;BR style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;" /&gt;
	&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;/opt/intel/mkl/lib/intel64/libmkl_intel_thread.so: undefined reference to `__kmpc_ordered&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;all of these references are defined in &amp;nbsp;libiomp5.so which is situated &amp;nbsp;into &amp;nbsp;&amp;lt;composer_xe_install_path&amp;gt;/&lt;STRONG&gt;compiler/lib&lt;/STRONG&gt;/(intel64/ia32)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 05:23:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955359#M15457</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-01-11T05:23:40Z</dc:date>
    </item>
    <item>
      <title>Sorry that I forgot to</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955360#M15458</link>
      <description>&lt;P&gt;Sorry that I forgot to mention this, but this MKL is part of Composer 2013 and of course we have the compiler libraries in path (LD_LIBRARY_PATH). So _that_ is not the problem. In particular, while there should be no need to add it due to the environment variables, the following line also does not work&lt;/P&gt;

&lt;P&gt;&lt;FONT size="3"&gt;g++ -m64 -L/opt/intel/composerxe/lib/intel64/ -I/opt/intel/mkl/include -I/home/jjgarcia/mps-bundle/include -g -O2 -O2 -o exp_1.exe exp_1.cc -lmps -L/home/jjgarcia/mps-bundle/lib -ltensor -L/home/jjgarcia/mps-bundle/lib -L/opt/intel/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -ldl -lpthread&lt;/FONT&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 08:42:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955360#M15458</guid>
      <dc:creator>Juan_Jose_Garcia_Rip</dc:creator>
      <dc:date>2014-01-11T08:42:12Z</dc:date>
    </item>
    <item>
      <title> </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955361#M15459</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;if you would add -v you may get some insight about how you should clean up the link command.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 12:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955361#M15459</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2014-01-11T12:01:00Z</dc:date>
    </item>
    <item>
      <title>I don't see the path to the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955362#M15460</link>
      <description>&lt;P&gt;I don't see the path to the directory where libiomp5*.* are located.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 14.399999618530273px;"&gt;g++ -m64 -L/opt/intel/composerxe/lib/intel64/ &amp;nbsp; --&amp;gt; &amp;nbsp;may be it shoud be like the follow :&amp;nbsp;g++ -m64 -L/opt/intel/composerxe/&lt;STRONG&gt;compiler/&lt;/STRONG&gt;lib/intel64/&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 14:55:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955362#M15460</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-01-11T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Please note that I may not be</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955363#M15461</link>
      <description>&lt;P&gt;Please note that I may not be as dumb as you might assume :-) I checked the paths. The environments in both machines are the same and they include the compiler libraries as well as MKL. The only difference between both machines is that one was upgraded to 13.10 and the other one wasn't.&lt;/P&gt;

&lt;P&gt;The path I provided does contain the iomp library:&lt;/P&gt;

&lt;P&gt;$ ls /opt/intel/composerxe/lib/intel64/*omp5*&lt;BR /&gt;
	/opt/intel/composerxe/lib/intel64/libiomp5.a&lt;BR /&gt;
	/opt/intel/composerxe/lib/intel64/libiomp5.dbg&lt;BR /&gt;
	/opt/intel/composerxe/lib/intel64/libiomp5.so&lt;/P&gt;

&lt;P&gt;Thus it is most obscure that the output of gcc below does not show any hint of why this library is not recognized. From the log file attached,&lt;/P&gt;

&lt;P&gt;$ g++ -v -m64 -L/opt/intel/composerxe/lib/intel64/ -I/opt/intel/mkl/include -I/home/jjgarcia/mps-bundle/include -g -O2 -O2 -o exp_1.exe exp_1.cc -lmps -L/home/jjgarcia/mps-bundle/lib -ltensor -L/home/jjgarcia/mps-bundle/lib -L/opt/intel/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -ldl -lpthread -Wl,--verbose&lt;BR /&gt;
	....&lt;BR /&gt;
	&lt;STRONG&gt;attempt to open /opt/intel/composerxe/lib/intel64//libiomp5.so succeeded&lt;BR /&gt;
	-liomp5 (/opt/intel/composerxe/lib/intel64//libiomp5.so)&lt;/STRONG&gt;&lt;BR /&gt;
	...&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2014 21:30:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955363#M15461</guid>
      <dc:creator>Juan_Jose_Garcia_Rip</dc:creator>
      <dc:date>2014-01-11T21:30:13Z</dc:date>
    </item>
    <item>
      <title>Hi Juan Jose</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955364#M15462</link>
      <description>&lt;P&gt;Hi Juan Jose&lt;/P&gt;

&lt;P&gt;Could it because same reasons in&amp;nbsp;http://software.intel.com/en-us/forums/topic/499216? &amp;nbsp;I just check one --as-needed in your log_0.txt file.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;We suspect some&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;GCC versions on Ubuntu deployed this observable --as-needed behavior as default for binary-startup-time optimization reasons.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Could you please try the command: &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;g++ -v -m64 -L/opt/intel/composerxe/lib/intel64/ -I/opt/intel/mkl/include -I/home/jjgarcia/mps-bundle/include -g -O2 -O2 -o exp_1.exe exp_1.cc -lmps -L/home/jjgarcia/mps-bundle/lib -ltensor -L/home/jjgarcia/mps-bundle/lib -L/opt/intel/mkl/lib/intel64 &lt;STRONG&gt;-Wl, --no-as-needed&lt;/STRONG&gt; &amp;nbsp;-lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -ldl -lpthread -Wl,--verbose&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;and see if it can work&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 18px;"&gt;Best Regards,&lt;BR /&gt;
	Ying&amp;nbsp;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2014 08:34:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955364#M15462</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2014-01-13T08:34:06Z</dc:date>
    </item>
    <item>
      <title>Dear Ying, thanks for the</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955365#M15463</link>
      <description>&lt;P&gt;Dear Ying, thanks for the hint. Indeed that was the problem! Using the flag --no-as-needed links in "iomp5", which it did not before. Thanks a lot for the help and blame the Ubuntu/gcc people for this stupid move :-)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2014 16:50:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Ubuntu-gcc-4-8-problems/m-p/955365#M15463</guid>
      <dc:creator>Juan_Jose_Garcia_Rip</dc:creator>
      <dc:date>2014-01-13T16:50:37Z</dc:date>
    </item>
  </channel>
</rss>

