<?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 Executable launched using micnativeloadex does not seem to detect environment variables in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Executable-launched-using-micnativeloadex-does-not-seem-to/m-p/1064913#M55779</link>
    <description>&lt;P&gt;Hello Intel Team,&lt;/P&gt;

&lt;P&gt;I wrote a simple "hello world" application to familiarize myself with the Phi.&amp;nbsp; All it does is spit out omp_get_num_threads() inside and outside of an openmp parallel region.&amp;nbsp; I am attempting to control the number and placement of threads as described here:&amp;nbsp; &lt;A href="https://software.intel.com/en-us/articles/openmp-thread-affinity-control"&gt;https://software.intel.com/en-us/articles/openmp-thread-affinity-control&lt;/A&gt;.&amp;nbsp; For example, I tried&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;export MIC_ENV_PREFIX=PHI
export PHI_KMP_AFFINITY=scatter,verbose
export PHI_OMP_NUM_THREADS=60 (or 120, 180, etc)&lt;/PRE&gt;

&lt;P&gt;However, when i run my application using&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt; micnativeloadex ./representative.x&lt;/PRE&gt;

&lt;P&gt;, the usual "verbose" output does not appear, and the calls to omp_get_num_threads() inevitably return either 1 outside of an OpenMP parallel region or 236 within a parallel region.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;My assumption is that I have misunderstood something about how to pass environment variables to the coprocessor.&amp;nbsp; Any ideas?&lt;/P&gt;

&lt;P&gt;Much appreciated, Michael&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 23:30:46 GMT</pubDate>
    <dc:creator>Michael_C_13</dc:creator>
    <dc:date>2016-07-18T23:30:46Z</dc:date>
    <item>
      <title>Executable launched using micnativeloadex does not seem to detect environment variables</title>
      <link>https://community.intel.com/t5/Software-Archive/Executable-launched-using-micnativeloadex-does-not-seem-to/m-p/1064913#M55779</link>
      <description>&lt;P&gt;Hello Intel Team,&lt;/P&gt;

&lt;P&gt;I wrote a simple "hello world" application to familiarize myself with the Phi.&amp;nbsp; All it does is spit out omp_get_num_threads() inside and outside of an openmp parallel region.&amp;nbsp; I am attempting to control the number and placement of threads as described here:&amp;nbsp; &lt;A href="https://software.intel.com/en-us/articles/openmp-thread-affinity-control"&gt;https://software.intel.com/en-us/articles/openmp-thread-affinity-control&lt;/A&gt;.&amp;nbsp; For example, I tried&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;export MIC_ENV_PREFIX=PHI
export PHI_KMP_AFFINITY=scatter,verbose
export PHI_OMP_NUM_THREADS=60 (or 120, 180, etc)&lt;/PRE&gt;

&lt;P&gt;However, when i run my application using&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt; micnativeloadex ./representative.x&lt;/PRE&gt;

&lt;P&gt;, the usual "verbose" output does not appear, and the calls to omp_get_num_threads() inevitably return either 1 outside of an OpenMP parallel region or 236 within a parallel region.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;My assumption is that I have misunderstood something about how to pass environment variables to the coprocessor.&amp;nbsp; Any ideas?&lt;/P&gt;

&lt;P&gt;Much appreciated, Michael&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 23:30:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Executable-launched-using-micnativeloadex-does-not-seem-to/m-p/1064913#M55779</guid>
      <dc:creator>Michael_C_13</dc:creator>
      <dc:date>2016-07-18T23:30:46Z</dc:date>
    </item>
    <item>
      <title>Hi Michael,</title>
      <link>https://community.intel.com/t5/Software-Archive/Executable-launched-using-micnativeloadex-does-not-seem-to/m-p/1064914#M55780</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;

&lt;P&gt;With micnativeloadex, you can pass the environment variables to the remote application with the switch -e. For example, if you want your remote&amp;nbsp;OMP application running with 32 OMP threads:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ micnativeloadex&amp;nbsp; app.mic -e "OMP_NUM_THREADS=32"&lt;/PRE&gt;

&lt;P&gt;where app.mic is the MIC native application.&amp;nbsp;For more information on usage, type "micnativeloadex -h"&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 16:28:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Executable-launched-using-micnativeloadex-does-not-seem-to/m-p/1064914#M55780</guid>
      <dc:creator>Loc_N_Intel</dc:creator>
      <dc:date>2016-07-19T16:28:13Z</dc:date>
    </item>
    <item>
      <title>That works, thanks!</title>
      <link>https://community.intel.com/t5/Software-Archive/Executable-launched-using-micnativeloadex-does-not-seem-to/m-p/1064915#M55781</link>
      <description>&lt;P&gt;That works, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 17:56:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Executable-launched-using-micnativeloadex-does-not-seem-to/m-p/1064915#M55781</guid>
      <dc:creator>Michael_C_13</dc:creator>
      <dc:date>2016-07-19T17:56:10Z</dc:date>
    </item>
  </channel>
</rss>

