<?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 The program you are running in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024542#M39571</link>
    <description>&lt;P&gt;The program you are running is in UPC? If I understand what you are saying, you have a demo program in UPC that has been compiled elsewhere and you want to run it on the coprocessor.&lt;/P&gt;

&lt;P&gt;In this case, the executable you have would not be a valid executable for the coprocessor. The Intel Xeon processor and the Intel Xeon Phi coprocessor are not binary compatible. You would need a version of the UPC compiler compiled especially for the coprocessor - either a cross compiler that runs on the host or a compiler than runs natively on the coprocessor. Alternately you could use a preprocessor that will turn the UPC code into C code.&lt;/P&gt;

&lt;P&gt;Am I right in my understanding or am I completely lost?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2015 08:05:53 GMT</pubDate>
    <dc:creator>Frances_R_Intel</dc:creator>
    <dc:date>2015-07-28T08:05:53Z</dc:date>
    <item>
      <title>Using micnativeloadex, how to use args ?</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024540#M39569</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am a very beginner with the Intel Phi, and I am trying to do something that is maybe not possible.&lt;/P&gt;

&lt;P&gt;I have this binary file called upcDemo&lt;/P&gt;

&lt;P&gt;And I run it this way: upcrun -n 12 upcDemo&amp;nbsp;&lt;/P&gt;

&lt;P&gt;(This will run the program on 12 threads)&lt;/P&gt;

&lt;P&gt;I have tried many syntax with&amp;nbsp;micnativeloadex...but I got errors, here is what I tried:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ micnativeloadex upcc -a "-n 12 upcDemo"
Either the supplied binary isn't a regular file, or its size is zero.&lt;/PRE&gt;

&lt;PRE class="brush:bash;"&gt;$ micnativeloadex upcc -a "-n 12 ./upcDemo"
Either the supplied binary isn't a regular file, or its size is zero.&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Note: it is possible that the problem is in the binary file...&lt;/P&gt;

&lt;P&gt;Is it the correct syntax ? For info, upcrun, is just like mpirun: it is a program you call to run your program.&lt;/P&gt;

&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:22:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024540#M39569</guid>
      <dc:creator>Jeremie_Lagraviere</dc:creator>
      <dc:date>2015-07-24T08:22:29Z</dc:date>
    </item>
    <item>
      <title>you're not explaining what</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024541#M39570</link>
      <description>&lt;P&gt;you're not explaining what "upcc" does ;)&lt;/P&gt;

&lt;P&gt;As for arguments, you seem to have the commandline correct, but I am not sure how the mic programm "upcc" would find the program "upcDemo": when you run a program using micnativeloadx it is copied over to a temporary location. A small test program provides more insight:&lt;/P&gt;

&lt;PRE class="brush:cpp;"&gt;#include &amp;lt;stdio.h&amp;gt;

int main(int argc, char **argv)
{
	int i;

    printf("arguments = ");
    for (i=0; i&amp;lt;argc; i++) printf("%s ", argv&lt;I&gt;);
    printf("\n");

    return 0;
}
&lt;/I&gt;&lt;/PRE&gt;

&lt;P&gt;compile it on the host , then run it on the Phi using micnativeloadx:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ icc -mmic -o args args.c

$ micnativeloadex ./args -a "-n 12 foo bar"
arguments = /tmp/coi_procs/1/5390/args -n 12 foo bar 

&lt;/PRE&gt;

&lt;P&gt;Perhaps you can specify an absolute path for the upcDemo program&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2015 08:38:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024541#M39570</guid>
      <dc:creator>JJK</dc:creator>
      <dc:date>2015-07-24T08:38:47Z</dc:date>
    </item>
    <item>
      <title>The program you are running</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024542#M39571</link>
      <description>&lt;P&gt;The program you are running is in UPC? If I understand what you are saying, you have a demo program in UPC that has been compiled elsewhere and you want to run it on the coprocessor.&lt;/P&gt;

&lt;P&gt;In this case, the executable you have would not be a valid executable for the coprocessor. The Intel Xeon processor and the Intel Xeon Phi coprocessor are not binary compatible. You would need a version of the UPC compiler compiled especially for the coprocessor - either a cross compiler that runs on the host or a compiler than runs natively on the coprocessor. Alternately you could use a preprocessor that will turn the UPC code into C code.&lt;/P&gt;

&lt;P&gt;Am I right in my understanding or am I completely lost?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 08:05:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024542#M39571</guid>
      <dc:creator>Frances_R_Intel</dc:creator>
      <dc:date>2015-07-28T08:05:53Z</dc:date>
    </item>
    <item>
      <title>Yep you are totally right :)</title>
      <link>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024543#M39572</link>
      <description>&lt;P&gt;Yep you are totally right :)&lt;/P&gt;

&lt;P&gt;I have a Intel Phi compatible version of the UPC Compiler from Berkeley.&lt;/P&gt;

&lt;P&gt;However it requires some tuning to have it working on the Intel Phi...In other words, so far, I have very limited results with UPC over Intel Phi.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2015 08:56:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Using-micnativeloadex-how-to-use-args/m-p/1024543#M39572</guid>
      <dc:creator>Jeremie_Lagraviere</dc:creator>
      <dc:date>2015-07-28T08:56:46Z</dc:date>
    </item>
  </channel>
</rss>

