<?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 Just to be sure, you are also in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Offload-error/m-p/919478#M13222</link>
    <description>&lt;P&gt;Just to be sure, you are also running this program on a cluster node with Xeon Phi installed on it (one of the nodeXX-mic machines?).&amp;nbsp; On those machines, "mic0" usually stands for the first Xeon Phi card installed on that machine, "mic1" for the second, etc.&amp;nbsp; You can't offload from one machine to a Xeon Phi card on another machine, which is what Kevin is getting at above.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2014 21:22:11 GMT</pubDate>
    <dc:creator>Charles_C_Intel1</dc:creator>
    <dc:date>2014-02-25T21:22:11Z</dc:date>
    <item>
      <title>Offload error</title>
      <link>https://community.intel.com/t5/Software-Archive/Offload-error/m-p/919476#M13220</link>
      <description>&lt;P&gt;Dear all, I'm a novice for MIC programming and I encountered a offload error when I want to run an example code on the host and offload part of the code to MIC cores for multithread-computing based on OpenMP. The offload error is: cannot offload to MIC - device is not available Out cluster has 8 mic nodes with the naming convention of nodeXX-mic0 (XX = 09~16). I think if I want to run the code, I have to specify which node to use, right? How can I do it? I searched for the internet and I didn't find an applicable answer. It would be great if I could get your help. For your convenience, part of the sample code is attached. Thanks very much. #include &lt;STDIO.H&gt;#include &lt;STDLIB.H&gt;#include &lt;STRING.H&gt;#include &lt;OMP.H&gt;#include &lt;SYS time.h=""&gt;#include &lt;OFFLOAD.H&gt;#define FLOPS_ARRAY_SIZE (1024*512) #define MAXFLOPS_ITERS 100000000 #define LOOP_COUNT 128 // Floating pt ops per inner loop iteration #define FLOPSPERCALC 2 // define some arrays - 64 byte aligned for fast cache access __declspec (target (mic)) float fa[FLOPS_ARRAY_SIZE] __attribute__((align(64))); __declspec (target (mic)) float fb[FLOPS_ARRAY_SIZE] __attribute__((align(64))); // int main(int argc, char *argv[] ) { ....... // // initialize the compute arrays // #pragma offload target (mic) #pragma omp parallel #pragma omp master numthreads = omp_get_num_threads(); printf("Initializing\r\n"); #pragma omp parallel for for(i=0; i&lt;/OFFLOAD.H&gt;&lt;/SYS&gt;&lt;/OMP.H&gt;&lt;/STRING.H&gt;&lt;/STDLIB.H&gt;&lt;/STDIO.H&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2014 21:24:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offload-error/m-p/919476#M13220</guid>
      <dc:creator>Cheng_C_</dc:creator>
      <dc:date>2014-02-19T21:24:08Z</dc:date>
    </item>
    <item>
      <title>The error you encountered</title>
      <link>https://community.intel.com/t5/Software-Archive/Offload-error/m-p/919477#M13221</link>
      <description>&lt;P&gt;The error you encountered occurs because by default the program is built with “&lt;STRONG&gt;mandatory&lt;/STRONG&gt;” offload; meaning, when no coprocessor is available for offload, the program issues the error you received and exits. So, for whatever the reason (coprocessors were not booted? or were not properly acquired?) there was no coprocessor available to your program when run and therefore it failed to offload.&lt;/P&gt;

&lt;P&gt;The &lt;STRONG&gt;&lt;EM&gt;#pragma offload&lt;/EM&gt;&lt;/STRONG&gt; does not require specifying a specific coprocessor (i.e. target-number) in the &lt;STRONG&gt;target() &lt;/STRONG&gt;clause.&amp;nbsp; It does afford the ability to provide a &lt;STRONG&gt;&lt;EM&gt;target-number&lt;/EM&gt;&lt;/STRONG&gt; which is an integer expression whose value is interpreted as described in the User Guide under the &lt;STRONG&gt;offload pragma&lt;/STRONG&gt; description &lt;A href="http://software.intel.com/en-us/node/462904" target="_blank"&gt;here&lt;/A&gt;. This value specified has no relation to coprocessor network (host) name, like the naming convention that you described is used for your cluster.&lt;/P&gt;

&lt;P&gt;You should check with your sys-administrator or other users&amp;nbsp;on how to acquire or reserve a specific coprocessor within your cluster for use with offloading. Once you determine how to do that, you should be able to run your offload program.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2014 10:48:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offload-error/m-p/919477#M13221</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2014-02-20T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Just to be sure, you are also</title>
      <link>https://community.intel.com/t5/Software-Archive/Offload-error/m-p/919478#M13222</link>
      <description>&lt;P&gt;Just to be sure, you are also running this program on a cluster node with Xeon Phi installed on it (one of the nodeXX-mic machines?).&amp;nbsp; On those machines, "mic0" usually stands for the first Xeon Phi card installed on that machine, "mic1" for the second, etc.&amp;nbsp; You can't offload from one machine to a Xeon Phi card on another machine, which is what Kevin is getting at above.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2014 21:22:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Offload-error/m-p/919478#M13222</guid>
      <dc:creator>Charles_C_Intel1</dc:creator>
      <dc:date>2014-02-25T21:22:11Z</dc:date>
    </item>
  </channel>
</rss>

