<?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 Hello Ravi, in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/buffer-write-failed/m-p/1046505#M48240</link>
    <description>&lt;P&gt;Hello Ravi,&lt;BR /&gt;
	&lt;BR /&gt;
	Thank you for the immediate response, it turned out to be a reference to an extern variable that was resolved when i defined a local copy of that variable.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Nov 2015 23:45:53 GMT</pubDate>
    <dc:creator>nikolaos_s_1</dc:creator>
    <dc:date>2015-11-03T23:45:53Z</dc:date>
    <item>
      <title>buffer write failed</title>
      <link>https://community.intel.com/t5/Software-Archive/buffer-write-failed/m-p/1046503#M48238</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
	&lt;BR /&gt;
	I am trying to offload a whole program on mic by doing the following:&lt;BR /&gt;
	&lt;BR /&gt;
	int mymain(int argc,char *argv[]){&lt;/P&gt;

&lt;P&gt;...&lt;/P&gt;

&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;&amp;nbsp;int main(int argc,char *argv[]){&lt;/P&gt;

&lt;P&gt;#pragma offload target(mic) in(argv:length(argc))&amp;nbsp;&lt;/P&gt;

&lt;P&gt;mymain(argc,argv);&lt;/P&gt;

&lt;P&gt;}&lt;/P&gt;

&lt;P&gt;I get the following error:&amp;nbsp;&lt;/P&gt;

&lt;P&gt;offload error: buffer write failed (error code 6)&lt;BR /&gt;
	&lt;BR /&gt;
	Could you please help me?&lt;BR /&gt;
	&lt;BR /&gt;
	Best,&lt;BR /&gt;
	Nikos&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 22:12:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/buffer-write-failed/m-p/1046503#M48238</guid>
      <dc:creator>nikolaos_s_1</dc:creator>
      <dc:date>2015-11-03T22:12:36Z</dc:date>
    </item>
    <item>
      <title>which version of the compiler</title>
      <link>https://community.intel.com/t5/Software-Archive/buffer-write-failed/m-p/1046504#M48239</link>
      <description>&lt;P&gt;which version of the compiler are you using.&lt;/P&gt;

&lt;P&gt;with 16.0 compiler I do not get the error&lt;/P&gt;

&lt;P&gt;&amp;nbsp;cat test.c&lt;BR /&gt;
	__declspec(target(mic))&lt;BR /&gt;
	int mymain(int argc,char *argv[]){&lt;BR /&gt;
	&amp;nbsp; printf("hello world\n");&lt;BR /&gt;
	}&lt;BR /&gt;
	int main(int argc,char *argv[]){&lt;BR /&gt;
	#pragma offload target(mic) in(argv:length(argc))&lt;BR /&gt;
	mymain(argc,argv);&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	icc test.c&lt;BR /&gt;
	test.c(3): warning #266: *MIC* function "printf" declared implicitly&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; printf("hello world\n");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; ^&lt;/P&gt;

&lt;P&gt;&amp;nbsp;./a.out&lt;BR /&gt;
	hello world&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 23:41:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/buffer-write-failed/m-p/1046504#M48239</guid>
      <dc:creator>Ravi_N_Intel</dc:creator>
      <dc:date>2015-11-03T23:41:02Z</dc:date>
    </item>
    <item>
      <title>Hello Ravi,</title>
      <link>https://community.intel.com/t5/Software-Archive/buffer-write-failed/m-p/1046505#M48240</link>
      <description>&lt;P&gt;Hello Ravi,&lt;BR /&gt;
	&lt;BR /&gt;
	Thank you for the immediate response, it turned out to be a reference to an extern variable that was resolved when i defined a local copy of that variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 23:45:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/buffer-write-failed/m-p/1046505#M48240</guid>
      <dc:creator>nikolaos_s_1</dc:creator>
      <dc:date>2015-11-03T23:45:53Z</dc:date>
    </item>
  </channel>
</rss>

