<?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 Thanks a lot Artem and Kevin! in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006390#M32276</link>
    <description>&lt;P&gt;Thanks a lot Artem and Kevin! After setting &amp;nbsp;LD_LIBRARY_PATH to&amp;nbsp;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 18px;"&gt;/opt/intel/intel_software/composer_xe_2015.1.133/compiler/lib/mic,&amp;nbsp;&lt;STRONG&gt;it worked.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2015 04:11:54 GMT</pubDate>
    <dc:creator>Azamat_M_</dc:creator>
    <dc:date>2015-02-12T04:11:54Z</dc:date>
    <item>
      <title>shared library load issue</title>
      <link>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006387#M32273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to run an executable in mic. I built it in a host with the following command:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;icpc -mmic -std=c++0x main.cpp.&lt;/P&gt;

&lt;P&gt;The code uses&amp;nbsp;_Cilk_spawn and&amp;nbsp;_Cilk_sync functions. When I copied the executable to the mic, and tried to run it, saw following error:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;./a.out: error while loading shared libraries: libcilkrts.so.5: cannot open shared object file: No such file or directory&lt;/P&gt;

&lt;P&gt;I set LD_LIBRARY_PATH env variable:&lt;/P&gt;

&lt;P&gt;[root@mic0 tmp]# echo $LD_LIBRARY_PATH&lt;BR /&gt;
	/opt/intel/intel_software/composer_xe_2015.1.133/compiler/lib/intel64/:/usr/lib64/:/lib64/&lt;/P&gt;

&lt;P&gt;Following is the output of 'ldd' command in the host if I built main.cpp without -mmic flag:&lt;/P&gt;

&lt;P&gt;[root@xphidev2 sort]# ldd a.out&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;linux-vdso.so.1 =&amp;gt; &amp;nbsp;(0x00007fff457d8000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x00007f8c9bd26000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libcilkrts.so.5 =&amp;gt; /opt/intel/intel_software/composer_xe_2015.1.133/compiler/lib/intel64/libcilkrts.so.5 (0x00007f8c9bae6000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libstdc++.so.6 =&amp;gt; /lib64/libstdc++.so.6 (0x00007f8c9b7df000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libgcc_s.so.1 =&amp;gt; /lib64/libgcc_s.so.1 (0x00007f8c9b5c9000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007f8c9b207000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007f8c9b003000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libpthread.so.0 =&amp;gt; /lib64/libpthread.so.0 (0x00007f8c9ade7000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;/lib64/ld-linux-x86-64.so.2 (0x00007f8c9c034000)&lt;/P&gt;

&lt;P&gt;And this is the output of 'ldd' command for the executable in mic which is built with -mmic flag:&lt;/P&gt;

&lt;P&gt;[root@mic0 tmp]# ldd a.out&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;linux-vdso.so.1 =&amp;gt; &amp;nbsp;(0x00007fff3ffff000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x00007fdff0577000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&lt;STRONG&gt; &amp;nbsp;libcilkrts.so.5 =&amp;gt; not found&lt;/STRONG&gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libstdc++.so.6 =&amp;gt; /usr/lib64/libstdc++.so.6 (0x00007fdff027d000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libgcc_s.so.1 =&amp;gt; /lib64/libgcc_s.so.1 (0x00007fdff006b000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007fdfefd13000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007fdfefb0f000)&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;/lib64/ld-linux-k1om.so.2 (0x00007fdff07a6000)&lt;/P&gt;

&lt;P&gt;Tried even to copy&amp;nbsp;&lt;SPAN style="line-height: 19.5120010375977px;"&gt;libcilkrts.so.5 library manually to /lib64/, /usr/lib64/, but didn't help. Struggling with this for 2 days. I'd appreciate if somebody helped me.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="line-height: 19.5120010375977px;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 13:37:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006387#M32273</guid>
      <dc:creator>Azamat_M_</dc:creator>
      <dc:date>2015-02-11T13:37:26Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006388#M32274</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
	Have you tried to copy to the MIC card libcilkrts.so.5 with correct architecture (elf64-k1om)?&lt;BR /&gt;
	There's compiler/lib/mic/ folder with MIC specific compiler libraries.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 13:53:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006388#M32274</guid>
      <dc:creator>Artem_R_Intel1</dc:creator>
      <dc:date>2015-02-11T13:53:52Z</dc:date>
    </item>
    <item>
      <title>With your /opt/intel area</title>
      <link>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006389#M32275</link>
      <description>&lt;P&gt;With your &lt;STRONG&gt;/opt/intel&lt;/STRONG&gt; area available on the card, as Artem eluded to, set the &lt;STRONG&gt;LD_LIBRARY_PATH&lt;/STRONG&gt; to refer to the “&lt;STRONG&gt;mic&lt;/STRONG&gt;” libraries. The “&lt;STRONG&gt;intel64&lt;/STRONG&gt;” to which you pointed to are for use on the host only.&lt;/P&gt;

&lt;P&gt;So, use the path: &lt;STRONG&gt;/opt/intel/intel_software/composer_xe_2015.1.133/compiler/lib/mic&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 21:50:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006389#M32275</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-02-11T21:50:42Z</dc:date>
    </item>
    <item>
      <title>Thanks a lot Artem and Kevin!</title>
      <link>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006390#M32276</link>
      <description>&lt;P&gt;Thanks a lot Artem and Kevin! After setting &amp;nbsp;LD_LIBRARY_PATH to&amp;nbsp;&lt;SPAN style="font-weight: 700; font-size: 12px; line-height: 18px;"&gt;/opt/intel/intel_software/composer_xe_2015.1.133/compiler/lib/mic,&amp;nbsp;&lt;STRONG&gt;it worked.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 04:11:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006390#M32276</guid>
      <dc:creator>Azamat_M_</dc:creator>
      <dc:date>2015-02-12T04:11:54Z</dc:date>
    </item>
    <item>
      <title>Glad to hear that.</title>
      <link>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006391#M32277</link>
      <description>&lt;P&gt;Glad to hear that.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 10:45:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/shared-library-load-issue/m-p/1006391#M32277</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2015-02-12T10:45:31Z</dc:date>
    </item>
  </channel>
</rss>

