<?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 What you haven't shown is how in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925478#M13759</link>
    <description>&lt;P&gt;What you haven't shown is how you compiled the source file to produce that binary; however, I suspect you perhaps used something similar to this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ifort -mmic -o int_sin.x int_sin.f90&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;That command-line produces a native Xeon Phi™ executable that will only run directly on the coprocessor and not your host system. When run on the host it fails as you showed.&lt;/P&gt;

&lt;P&gt;I’m not sure what your exact interest is, however, you could review the &lt;A href="http://software.intel.com/en-us/composerxe2013SP1_xp_f" target="_blank"&gt;&lt;STRONG&gt;Getting Started Tutorial: Using the Intel® Xeon Phi™ Coprocessor &lt;/STRONG&gt;&lt;/A&gt;for information about using the offload language extensions or &lt;A href="http://software.intel.com/en-us/articles/building-a-native-application-for-intel-xeon-phi-coprocessors" target="_blank"&gt;&lt;STRONG&gt;Building a Native Application for Intel® Xeon Phi™ Coprocessors &lt;/STRONG&gt;&lt;/A&gt;article for details about building and running native applications.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2014 18:05:23 GMT</pubDate>
    <dc:creator>Kevin_D_Intel</dc:creator>
    <dc:date>2014-02-25T18:05:23Z</dc:date>
    <item>
      <title>Unable to run execs</title>
      <link>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925477#M13758</link>
      <description>&lt;P&gt;We've just acquired a MIC and I'm doing some tests, unsuccessfully so far.&lt;/P&gt;

&lt;P&gt;I'm compiling the int_sin.f90 that's in the directory /opt/intel/composerxe/Samples/en_US/Fortran/optimize.&lt;/P&gt;

&lt;P&gt;This creates me the binary file in_sin.x and when I try to execute it I get:&lt;/P&gt;

&lt;P&gt;$ ./int_sin.x&lt;BR /&gt;
	-bash: ./int_sin.x: cannot execute binary file&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Some useful info about the file and my linux version:&lt;/P&gt;

&lt;PRE class="lang-bsh prettyprint prettyprinted"&gt;
&lt;CODE&gt;&lt;SPAN class="pln"&gt;$file int_sin&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;x
int_sin&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;x&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; ELF &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;64&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;bit LSB executable&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; version &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;1&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;SYSV&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; dynamically linked &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;uses shared libs&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;),&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;for&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; GNU&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;/&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Linux&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;2.4&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; not stripped



$uname &lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;a
&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;Linux&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; centos6 &lt;/SPAN&gt;&lt;SPAN class="lit"&gt;2.6&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;32&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;-&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;358.23&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="lit"&gt;2.el6.x86&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;_64 &lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2014 17:50:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925477#M13758</guid>
      <dc:creator>jivifair</dc:creator>
      <dc:date>2014-02-25T17:50:59Z</dc:date>
    </item>
    <item>
      <title>What you haven't shown is how</title>
      <link>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925478#M13759</link>
      <description>&lt;P&gt;What you haven't shown is how you compiled the source file to produce that binary; however, I suspect you perhaps used something similar to this:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;ifort -mmic -o int_sin.x int_sin.f90&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;That command-line produces a native Xeon Phi™ executable that will only run directly on the coprocessor and not your host system. When run on the host it fails as you showed.&lt;/P&gt;

&lt;P&gt;I’m not sure what your exact interest is, however, you could review the &lt;A href="http://software.intel.com/en-us/composerxe2013SP1_xp_f" target="_blank"&gt;&lt;STRONG&gt;Getting Started Tutorial: Using the Intel® Xeon Phi™ Coprocessor &lt;/STRONG&gt;&lt;/A&gt;for information about using the offload language extensions or &lt;A href="http://software.intel.com/en-us/articles/building-a-native-application-for-intel-xeon-phi-coprocessors" target="_blank"&gt;&lt;STRONG&gt;Building a Native Application for Intel® Xeon Phi™ Coprocessors &lt;/STRONG&gt;&lt;/A&gt;article for details about building and running native applications.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:05:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925478#M13759</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-02-25T18:05:23Z</dc:date>
    </item>
    <item>
      <title>yes, that was exactly the one</title>
      <link>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925479#M13760</link>
      <description>&lt;P&gt;yes, that was exactly the one that I used it. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:40:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925479#M13760</guid>
      <dc:creator>jivifair</dc:creator>
      <dc:date>2014-02-25T18:40:44Z</dc:date>
    </item>
    <item>
      <title>You're welcome and thank you</title>
      <link>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925480#M13761</link>
      <description>&lt;P&gt;You're welcome and thank you for the Best Reply tag.&lt;/P&gt;

&lt;P&gt;I also forgot to add to my earlier reply that Offload specific Samples are provided with the Composer XE products demonstrating the offload language extensions. They can be found under:&lt;/P&gt;

&lt;P&gt;Fortran code examples: &lt;EM&gt;&lt;STRONG&gt;&amp;lt;install-dir&amp;gt;/Samples/en_US/Fortran/mic_samples/LEO_Fortran_intro/&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;
	C code examples: &lt;EM&gt;&lt;STRONG&gt;&amp;lt;install_dir&amp;gt;/Samples/en_US/C++/mic_samples/intro_sampleC/&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;There is more info about those in the &lt;A href="http://software.intel.com/en-us/articles/offload-programming-fortran-and-c-code-examples" target="_blank"&gt;&lt;STRONG&gt;Offload Programming: Fortran and C Code Example &lt;/STRONG&gt;&lt;/A&gt;article.&lt;/P&gt;

&lt;P&gt;Wish you well going forward!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 18:53:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unable-to-run-execs/m-p/925480#M13761</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-02-25T18:53:15Z</dc:date>
    </item>
  </channel>
</rss>

