<?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 On compilation getting rpath error in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/On-compilation-getting-rpath-error/m-p/924929#M13677</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am writing this test code :&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;#include "offload.h"&lt;/P&gt;
&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; char cdir[128];&lt;BR /&gt; int ndevices, devnum;&lt;/P&gt;
&lt;P&gt;getcwd(cdir,sizeof(cdir));&lt;BR /&gt; ndevices = _Offload_number_of_devices();&lt;BR /&gt; devnum = _Offload_get_device_number();&lt;BR /&gt; printf("\n Hello...%s %d %d \n",cdir,ndevices,devnum);&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;and compiling&amp;nbsp;&lt;/P&gt;
&lt;P&gt;icc -o hello hello.c -loffload&lt;/P&gt;
&lt;P&gt;compiles succesfully&lt;/P&gt;
&lt;P&gt;However, when i am compiling as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;icc -o hello hello.c -loffload &lt;STRONG&gt;-mmic&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;x86_64-k1om-linux-ld: warning: libcoi_device.so.0, needed by /home/opt/intel/composer_xe_2013.1.117/compiler/lib/mic/liboffload.so.5, not found &lt;STRONG&gt;(try using -rpath or -rpath-link)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;but, ideally it should&amp;nbsp;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;/B&gt;Builds an application that runs natively on Intel(R) MIC Architecture.&lt;/P&gt;
&lt;P&gt;PLaese, let me know what i am missing.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arpit&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2013 07:19:44 GMT</pubDate>
    <dc:creator>Arpit_S_</dc:creator>
    <dc:date>2013-04-09T07:19:44Z</dc:date>
    <item>
      <title>On compilation getting rpath error</title>
      <link>https://community.intel.com/t5/Software-Archive/On-compilation-getting-rpath-error/m-p/924929#M13677</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am writing this test code :&lt;/P&gt;
&lt;P&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/P&gt;
&lt;P&gt;#include "offload.h"&lt;/P&gt;
&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt; char cdir[128];&lt;BR /&gt; int ndevices, devnum;&lt;/P&gt;
&lt;P&gt;getcwd(cdir,sizeof(cdir));&lt;BR /&gt; ndevices = _Offload_number_of_devices();&lt;BR /&gt; devnum = _Offload_get_device_number();&lt;BR /&gt; printf("\n Hello...%s %d %d \n",cdir,ndevices,devnum);&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;and compiling&amp;nbsp;&lt;/P&gt;
&lt;P&gt;icc -o hello hello.c -loffload&lt;/P&gt;
&lt;P&gt;compiles succesfully&lt;/P&gt;
&lt;P&gt;However, when i am compiling as&amp;nbsp;&lt;/P&gt;
&lt;P&gt;icc -o hello hello.c -loffload &lt;STRONG&gt;-mmic&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;x86_64-k1om-linux-ld: warning: libcoi_device.so.0, needed by /home/opt/intel/composer_xe_2013.1.117/compiler/lib/mic/liboffload.so.5, not found &lt;STRONG&gt;(try using -rpath or -rpath-link)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;but, ideally it should&amp;nbsp;&lt;/B&gt;&lt;/P&gt;
&lt;P&gt;&lt;B&gt;&lt;/B&gt;Builds an application that runs natively on Intel(R) MIC Architecture.&lt;/P&gt;
&lt;P&gt;PLaese, let me know what i am missing.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arpit&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2013 07:19:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/On-compilation-getting-rpath-error/m-p/924929#M13677</guid>
      <dc:creator>Arpit_S_</dc:creator>
      <dc:date>2013-04-09T07:19:44Z</dc:date>
    </item>
    <item>
      <title>The offload APIs (_Offload</title>
      <link>https://community.intel.com/t5/Software-Archive/On-compilation-getting-rpath-error/m-p/924930#M13678</link>
      <description>&lt;P&gt;The offload APIs (_Offload_number_of_devices, _Offload_get_device_number) are not usable in native code. Native code (-mmic) does not use any of the offload extensions.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2013 08:16:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/On-compilation-getting-rpath-error/m-p/924930#M13678</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2013-04-09T08:16:40Z</dc:date>
    </item>
  </channel>
</rss>

