<?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 Can you also confirm that you in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947058#M18529</link>
    <description>&lt;P&gt;Can you also confirm that you have started the mpss before executing the code. To start the mpss use "service mpss start".&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 May 2013 22:00:20 GMT</pubDate>
    <dc:creator>Sumedh_N_Intel</dc:creator>
    <dc:date>2013-05-01T22:00:20Z</dc:date>
    <item>
      <title>Unavailbe target while runing offload sample codes</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947056#M18527</link>
      <description>&lt;P&gt;I installed drivers for Xeon phi and the /opt/intel/mic/bin/micinfo can return correct information. Also I am able to log on to the accelerator and run programe in native model.&lt;/P&gt;
&lt;P&gt;But every time when I try to excute the offload&amp;nbsp;sample programs in /opt/intel/composerxe/Samples/en-US/C++/mic_samples/intro_sampleC, it always return the result that the number of device it can be&amp;nbsp;detected is 0 and the offload to accelerator failed (run at host instead of at the accelerator). Could anyone help me to fix that problem? Seems my Xeon Phi cards works fine because I can log in and run a native code, but the&amp;nbsp;accelerator can't be detected within the offload samples program.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 21:33:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947056#M18527</guid>
      <dc:creator>Chong_C_</dc:creator>
      <dc:date>2013-05-01T21:33:30Z</dc:date>
    </item>
    <item>
      <title>Did you build the code using</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947057#M18528</link>
      <description>&lt;P&gt;Did you build the code using the Makefile in that directory using the command&lt;/P&gt;
&lt;P&gt;make mic&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 21:54:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947057#M18528</guid>
      <dc:creator>Frances_R_Intel</dc:creator>
      <dc:date>2013-05-01T21:54:40Z</dc:date>
    </item>
    <item>
      <title>Can you also confirm that you</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947058#M18529</link>
      <description>&lt;P&gt;Can you also confirm that you have started the mpss before executing the code. To start the mpss use "service mpss start".&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 22:00:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947058#M18529</guid>
      <dc:creator>Sumedh_N_Intel</dc:creator>
      <dc:date>2013-05-01T22:00:20Z</dc:date>
    </item>
    <item>
      <title>can you log on to the card</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947059#M18530</link>
      <description>&lt;P&gt;can you log on to the card and check if coi_daemon is running.&lt;BR /&gt;&lt;BR /&gt;On MIC do&lt;BR /&gt;ps -a | grep coi&lt;BR /&gt;&amp;nbsp;4710 micuser&amp;nbsp; 327:54 /bin/coi_daemon --coiuser=micuser&lt;/P&gt;</description>
      <pubDate>Wed, 01 May 2013 22:04:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947059#M18530</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2013-05-01T22:04:44Z</dc:date>
    </item>
    <item>
      <title>Quote:Ravi Narayanaswamy</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947060#M18531</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Ravi Narayanaswamy (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;can you log on to the card and check if coi_daemon is running.&lt;/P&gt;
&lt;P&gt;On MIC do&lt;BR /&gt;ps -a | grep coi&lt;BR /&gt;&amp;nbsp;4710 micuser&amp;nbsp; 327:54 /bin/coi_daemon --coiuser=micuser&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks for reply, I type the commend at mic and got this result:&lt;/P&gt;
&lt;P&gt;4639 micuser 0:00 /bin/coi_daemon --coiuser=micuser&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I use the Makefile in the sample code folder and executed 'service MPSS start' before running the sample codes for offload. But the program can not detect the accelerator.&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 15:07:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947060#M18531</guid>
      <dc:creator>Chong_C_</dc:creator>
      <dc:date>2013-05-02T15:07:43Z</dc:date>
    </item>
    <item>
      <title>What the version of MPSS and</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947061#M18532</link>
      <description>&lt;P&gt;What the version of MPSS and the version of Intel composer that use are using? Also, it would be helpful if you can show the output from the command "micinfo".&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 15:57:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947061#M18532</guid>
      <dc:creator>Loc_N_Intel</dc:creator>
      <dc:date>2013-05-02T15:57:51Z</dc:date>
    </item>
    <item>
      <title>Quote:loc-nguyen (Intel)</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947062#M18533</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;loc-nguyen (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;What the version of MPSS and the version of Intel composer that use are using? Also, it would be helpful if you can show the output from the command "micinfo".&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;My&amp;nbsp;OS and MPSS version information is:&lt;/P&gt;
&lt;P&gt;System Info&lt;BR /&gt;&amp;nbsp;&amp;nbsp;HOST OS&amp;nbsp;&amp;nbsp;&amp;nbsp;: Linux&lt;BR /&gt;&amp;nbsp;&amp;nbsp;OS Version&amp;nbsp;&amp;nbsp;: 2.6.32-71.el6.x86_64&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Driver Version&amp;nbsp;&amp;nbsp;: 5889-16&lt;BR /&gt;&amp;nbsp;&amp;nbsp;MPSS Version&amp;nbsp;&amp;nbsp;: 2.1.5889-16&lt;BR /&gt;&amp;nbsp;&amp;nbsp;Host Physical Memory&amp;nbsp;: 65944 MB&lt;/P&gt;
&lt;P&gt;The intel composer I used is CPP_studio_xe_2013_update2. The output of the micinfo is too long so I attached it in the following txt file. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 16:33:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947062#M18533</guid>
      <dc:creator>Chong_C_</dc:creator>
      <dc:date>2013-05-02T16:33:05Z</dc:date>
    </item>
    <item>
      <title>Quote:Ravi Narayanaswamy</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947063#M18534</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Ravi Narayanaswamy (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;can you log on to the card and check if coi_daemon is running.&lt;/P&gt;
&lt;P&gt;On MIC do&lt;BR /&gt;ps -a | grep coi&lt;BR /&gt;&amp;nbsp;4710 micuser&amp;nbsp; 327:54 /bin/coi_daemon --coiuser=micuser&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;My coi_daemon is running but with&lt;/P&gt;
&lt;P&gt;4639 micuser &lt;STRONG&gt;0:00&lt;/STRONG&gt; /bin/coi_daemon --coiuser=micuser&lt;/P&gt;
&lt;P&gt;is the &lt;STRONG&gt;'0:00'&lt;/STRONG&gt; indicate that the coi_daemon is running incorrectly? Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2013 17:01:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947063#M18534</guid>
      <dc:creator>Chong_C_</dc:creator>
      <dc:date>2013-05-02T17:01:15Z</dc:date>
    </item>
    <item>
      <title>Ravi asked about the coi</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947064#M18535</link>
      <description>&lt;P&gt;Ravi asked about the coi_daemon because it is responsible for listening for offload connections requests. If the coi_daemon is not running, then offload requests will fail. The 0:00 implies that the daemon is running but has not handled any requests. It does not necessarily mean that there is something wrong with the daemon itself.&lt;/P&gt;
&lt;P&gt;The sample code that comes with the compiler includes a lot of tests to demonstrate features. Let's back off a bit and try something simpler. What happens if you compile this with simply "icc offloadtest.c -o offloadtest", then run it.&lt;/P&gt;
&lt;P&gt;[cpp]&lt;/P&gt;
&lt;P&gt;#include &amp;lt;offload.h&amp;gt;&lt;/P&gt;
&lt;P&gt;__attribute__((target(mic))) void chk_target00();&lt;/P&gt;
&lt;P&gt;int main(int argc, char* argv[])&lt;BR /&gt;{&lt;BR /&gt; int num_devices = 0;&lt;BR /&gt; int offload_mode = 0;&lt;BR /&gt; int target_ok;&lt;BR /&gt; int i;&lt;/P&gt;
&lt;P&gt;printf("Checking for Intel(R) Xeon Phi(TM) (Target CPU) devices...\n\n");&lt;/P&gt;
&lt;P&gt;#ifdef __INTEL_OFFLOAD&lt;BR /&gt; num_devices = _Offload_number_of_devices();&lt;BR /&gt; printf("Number of Target devices installed: %d\n\n",num_devices);&lt;BR /&gt;#else&lt;BR /&gt; printf("Compiler failed to set __INTEL_OFFLOAD\n");&lt;BR /&gt;#endif&lt;/P&gt;
&lt;P&gt;#pragma noinline&lt;BR /&gt; for (i = 0; i &amp;lt; num_devices; i++) {&lt;/P&gt;
&lt;P&gt;target_ok = 0;&lt;BR /&gt; #pragma offload target(mic: i) in(i)&lt;BR /&gt; chk_target00();&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;__attribute__((target(mic))) void chk_target00()&lt;BR /&gt;{&lt;BR /&gt; int retval;&lt;/P&gt;
&lt;P&gt;#ifdef __MIC__&lt;BR /&gt; printf("Ran on coprocessor\n");&lt;BR /&gt; #else&lt;BR /&gt; printf("Ran on host\n");&lt;BR /&gt; #endif&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;[/cpp]&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 00:37:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947064#M18535</guid>
      <dc:creator>Frances_R_Intel</dc:creator>
      <dc:date>2013-05-03T00:37:11Z</dc:date>
    </item>
    <item>
      <title>Hi Frances Roth,</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947065#M18536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Frances Roth,&lt;/P&gt;
&lt;P&gt;I have the same problem, i have downloaded and run your program, it cannot detect any mic cards. However, the native program can run successfully. Do you know what's wrong?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2013 08:12:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947065#M18536</guid>
      <dc:creator>Mian_L_</dc:creator>
      <dc:date>2013-05-03T08:12:52Z</dc:date>
    </item>
    <item>
      <title>Quote:Frances Roth (Intel)</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947066#M18537</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Frances Roth (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Ravi asked about the coi_daemon because it is responsible for listening for offload connections requests. If the coi_daemon is not running, then offload requests will fail. The 0:00 implies that the daemon is running but has not handled any requests. It does not necessarily mean that there is something wrong with the daemon itself.&lt;/P&gt;
&lt;P&gt;The sample code that comes with the compiler includes a lot of tests to demonstrate features. Let's back off a bit and try something simpler. What happens if you compile this with simply "icc offloadtest.c -o offloadtest", then run it.&lt;/P&gt;
&lt;P&gt;#include &amp;lt;offload.h&amp;gt; __attribute__((target(mic))) void chk_target00(); int main(int argc, char* argv[]) { int num_devices = 0; int offload_mode = 0; int target_ok; int i; printf("Checking for Intel(R) Xeon Phi(TM) (Target CPU) devices...nn"); #ifdef __INTEL_OFFLOAD num_devices = _Offload_number_of_devices(); printf("Number of Target devices installed: %dnn",num_devices); #else printf("Compiler failed to set __INTEL_OFFLOADn"); #endif #pragma noinline for (i = 0; i &amp;lt; num_devices; i++) { target_ok = 0; #pragma offload target(mic: i) in(i) chk_target00(); } } __attribute__((target(mic))) void chk_target00() { int retval; #ifdef __MIC__ printf("Ran on coprocessorn"); #else printf("Ran on hostn"); #endif }&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you for the reply, I try to run the program, it returns that 0 device is detected.&lt;/P&gt;
&lt;P&gt;I re-check the status&amp;nbsp;of the device by log on to the mic card and run a sample openmp code with 240 threads in native model. It seems that in native model&amp;nbsp;the&amp;nbsp;accelerator works fine.&amp;nbsp;The only problem is it can not&amp;nbsp;be detected by the host when run the offload code. Is that&amp;nbsp;the problem caused by my host operation system's environment? Thanks&amp;nbsp;again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 21:06:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947066#M18537</guid>
      <dc:creator>Chong_C_</dc:creator>
      <dc:date>2013-05-07T21:06:46Z</dc:date>
    </item>
    <item>
      <title>Is you env setup correctly.</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947067#M18538</link>
      <description>&lt;P&gt;Is you env setup correctly.&lt;/P&gt;
&lt;P&gt;check this link&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/comment/1734754#comment-1734754"&gt;http://software.intel.com/en-us/comment/1734754#comment-1734754&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2013 22:14:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947067#M18538</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2013-05-07T22:14:23Z</dc:date>
    </item>
    <item>
      <title>The best way to make sure</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947068#M18539</link>
      <description>&lt;P&gt;The best way to make sure everything in your compile/runtime environment is set up properly is to execute:&lt;/P&gt;
&lt;P&gt;source /opt/intel/composerxe/bin/compilervars.sh intel64&lt;/P&gt;
&lt;P&gt;But if that doesn't work, can you try rerunning the commands:&lt;/P&gt;
&lt;P&gt;[bash]&lt;/P&gt;
&lt;P&gt;service mpss stop&lt;/P&gt;
&lt;P&gt;micctrl --initdefaults&lt;/P&gt;
&lt;P&gt;service mpss start&lt;/P&gt;
&lt;P&gt;[/bash]&lt;/P&gt;
&lt;P&gt;You will have run that command "micctrl --initdefaults" as part of your original MPSS install but rerunning the command should recheck for any changes. Then make sure you have sourced the compilervars script, recompile your code and rerun it.&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 17:44:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947068#M18539</guid>
      <dc:creator>Frances_R_Intel</dc:creator>
      <dc:date>2013-05-08T17:44:06Z</dc:date>
    </item>
    <item>
      <title>Quote:Ravi Narayanaswamy</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947069#M18540</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Ravi Narayanaswamy (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Is you env setup correctly.&lt;/P&gt;
&lt;P&gt;check this link&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/comment/1734754#comment-1734754"&gt;http://software.intel.com/en-us/comment/1734754#comment-1734754&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you for the reply, I tried to run the "compilervars.sh interl64", it didn't report any error. But after I&amp;nbsp;excuted the .sh file, when I type&lt;/P&gt;
&lt;P&gt;echo $MIC_LD_LIBRARY_PATH,&lt;/P&gt;
&lt;P&gt;I got nothing (a blank return).&amp;nbsp; I think that may be the problem you mentioned (incorrect setup of MIC_LD_LIBRARY_PATH).&lt;/P&gt;
&lt;P&gt;How can I fix that problem? I executed the /opt/intel/composer_xe_2013.2.146/bin/compilervars.sh intel64 multiple time, but the PATH and env values are&amp;nbsp;still not setup correctly. Seems the compilervars.sh&amp;nbsp;didn't change anything.&lt;/P&gt;
&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 21:26:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947069#M18540</guid>
      <dc:creator>Chong_C_</dc:creator>
      <dc:date>2013-05-08T21:26:06Z</dc:date>
    </item>
    <item>
      <title>Quote:Frances Roth (Intel)</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947070#M18541</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Frances Roth (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The best way to make sure everything in your compile/runtime environment is set up properly is to execute:&lt;/P&gt;
&lt;P&gt;source /opt/intel/composerxe/bin/compilervars.sh intel64&lt;/P&gt;
&lt;P&gt;But if that doesn't work, can you try rerunning the commands:&lt;/P&gt;
&lt;P&gt;service mpss stop micctrl --initdefaults service mpss start&lt;/P&gt;
&lt;P&gt;You will have run that command "micctrl --initdefaults" as part of your original MPSS install but rerunning the command should recheck for any changes. Then make sure you have sourced the compilervars script, recompile your code and rerun it.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Problem fixed by source the compilervars script. Thank you so much!&lt;/P&gt;
&lt;P&gt;Basically, after install the Intel composer, I should source the script instead of&amp;nbsp;change the path and the environment variable manuallyy. Missing environment setting will make the compiler working for native model but&amp;nbsp;inactive for the&amp;nbsp;offload model.&lt;/P&gt;
&lt;P&gt;I think this is a common mistake for the beginner of the intel composer&amp;nbsp;user like me (I use gcc instead of icc before&amp;nbsp;since gcc is free). Hopefully&amp;nbsp;the discuss in this topic will help other&amp;nbsp;people. Thank you&amp;nbsp;again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 22:13:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947070#M18541</guid>
      <dc:creator>Chong_C_</dc:creator>
      <dc:date>2013-05-08T22:13:49Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947071#M18542</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I had the same problem while trying to run the sample code available at&amp;nbsp;/opt/intel/composerxe/Samples/en_US/C++/mic_samples/intro_sampleC/.&lt;/P&gt;

&lt;P&gt;Here is the error I get:&lt;/P&gt;

&lt;P&gt;$ ./intro_sampleC.out&lt;BR /&gt;
	Samples started&lt;BR /&gt;
	Checking for Intel(R) Xeon Phi(TM) (Target CPU) devices...&lt;/P&gt;

&lt;P&gt;getting number of devices&lt;BR /&gt;
	Number of Target devices installed: 0&lt;/P&gt;

&lt;P&gt;Offload sections will execute on: Host CPU (fallback mode)&lt;/P&gt;

&lt;P&gt;PASS Sample01&lt;BR /&gt;
	PASS Sample02&lt;BR /&gt;
	PASS Sample03&lt;BR /&gt;
	PASS Sample04&lt;BR /&gt;
	PASS Sample05&lt;BR /&gt;
	PASS Sample06&lt;BR /&gt;
	*** FAIL Sample07 - target unavailable&lt;BR /&gt;
	PASS Sample08&lt;BR /&gt;
	PASS Sample09&lt;BR /&gt;
	PASS Sample10&lt;BR /&gt;
	PASS Sample11&lt;BR /&gt;
	*** FAIL Sample12 - target unavailable&lt;BR /&gt;
	*** FAIL Sample13 - target unavailable&lt;BR /&gt;
	*** FAIL Sample14 - target unavailable&lt;BR /&gt;
	Samples complete&lt;/P&gt;

&lt;P&gt;I am able to run native code and I have set my MIC_LD_LIBRARY_PATH by running&amp;nbsp;&lt;/P&gt;

&lt;P&gt;$&amp;nbsp;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 11.80555534362793px; line-height: 12.499999046325684px;"&gt;source /opt/intel/composerxe/bin/compilervars.sh intel64&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Arial, Helvetica, sans-serif; font-size: 11.80555534362793px; line-height: 12.499999046325684px;"&gt;Here is my&amp;nbsp;&lt;/SPAN&gt;MIC_LD_LIBRARY_PATH:&lt;/P&gt;

&lt;P&gt;$ echo $MIC_LD_LIBRARY_PATH&lt;BR /&gt;
	/opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/mic:/opt/intel/composer_xe_2013_sp1.1.106/mpirt/lib/mic:/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/mic/coi/device-linux-release/lib:/opt/intel/mic/myo/lib:/opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/mic:/opt/intel/composer_xe_2013_sp1.1.106/mkl/lib/mic:/opt/intel/composer_xe_2013_sp1.1.106/tbb/lib/mic&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Also, the coi_daemon is running but the user is different:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;$ ps -a|grep coi&lt;BR /&gt;
	&amp;nbsp;6101 root &amp;nbsp; &amp;nbsp; &amp;nbsp; 0:00 /bin/coi_daemon&lt;/P&gt;

&lt;P&gt;Could that be the issue? If yes, how do I change that?&lt;/P&gt;

&lt;P&gt;Thanks and regards,&lt;/P&gt;

&lt;P&gt;Sanchit&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2014 15:47:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Unavailbe-target-while-runing-offload-sample-codes/m-p/947071#M18542</guid>
      <dc:creator>Sanchit_Misra</dc:creator>
      <dc:date>2014-01-24T15:47:36Z</dc:date>
    </item>
  </channel>
</rss>

