<?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 OpenCL compilation crashes in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777678#M272</link>
    <description>Hi All,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The following code crashes the compiler:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;[cpp]kernel void helloWorld(global const char* text, global int* retVal) {

	for(int i = 0; i &amp;lt; 1; i++) {
		char c = text&lt;I&gt;;
		if (c == 2) {
			i += 1;
		} else if (c == 3) {
			//If this is commented, the kernel is compiled
			i += 1;
		} else if (c != '\n' &amp;amp;&amp;amp; c != '\r' &amp;amp;&amp;amp; c != '\t') {
			retVal[1]++;
		}
	}
}[/cpp] &lt;SPAN class="sectionbodytext"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;BR /&gt;My initial thought was I was using incorrect types etc., but then I discovered that if the 9th line is commented out, the code compiles with no problem whatsoever.&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;BR /&gt;If anybody has some clues, there would be much appreciated.&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;BR /&gt;I'm running this on Windows 7. I'm using Intel OpenCL SDK offline compiler. The following is the SDK log:&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;BR /&gt;Using default instruction set architecture.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Intel OpenCL CPU device was found!&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device name:    Intel Core i5-2557M CPU @ 1.70GHz&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device version: OpenCL 1.1 (Build 31360.31441)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device vendor: Intel Corporation&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device profile: FULL_PROFILE&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 26 Jul 2012 20:08:38 GMT</pubDate>
    <dc:creator>yagecheetah</dc:creator>
    <dc:date>2012-07-26T20:08:38Z</dc:date>
    <item>
      <title>OpenCL compilation crashes</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777678#M272</link>
      <description>Hi All,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The following code crashes the compiler:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;[cpp]kernel void helloWorld(global const char* text, global int* retVal) {

	for(int i = 0; i &amp;lt; 1; i++) {
		char c = text&lt;I&gt;;
		if (c == 2) {
			i += 1;
		} else if (c == 3) {
			//If this is commented, the kernel is compiled
			i += 1;
		} else if (c != '\n' &amp;amp;&amp;amp; c != '\r' &amp;amp;&amp;amp; c != '\t') {
			retVal[1]++;
		}
	}
}[/cpp] &lt;SPAN class="sectionbodytext"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/I&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;BR /&gt;My initial thought was I was using incorrect types etc., but then I discovered that if the 9th line is commented out, the code compiles with no problem whatsoever.&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;BR /&gt;If anybody has some clues, there would be much appreciated.&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;/DIV&gt;&lt;DIV class="sectionbodytext"&gt;&lt;BR /&gt;I'm running this on Windows 7. I'm using Intel OpenCL SDK offline compiler. The following is the SDK log:&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;BR /&gt;Using default instruction set architecture.&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Intel OpenCL CPU device was found!&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device name:    Intel Core i5-2557M CPU @ 1.70GHz&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device version: OpenCL 1.1 (Build 31360.31441)&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device vendor: Intel Corporation&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;Device profile: FULL_PROFILE&lt;/DIV&gt;&lt;DIV id="_mcePaste"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 26 Jul 2012 20:08:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777678#M272</guid>
      <dc:creator>yagecheetah</dc:creator>
      <dc:date>2012-07-26T20:08:38Z</dc:date>
    </item>
    <item>
      <title>OpenCL compilation crashes</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777679#M273</link>
      <description>Thanks alot. i see an issue, we will update you soon.</description>
      <pubDate>Thu, 26 Jul 2012 20:22:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777679#M273</guid>
      <dc:creator>Brijender_B_Intel</dc:creator>
      <dc:date>2012-07-26T20:22:44Z</dc:date>
    </item>
    <item>
      <title>OpenCL compilation crashes</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777680#M274</link>
      <description>Thanks for providing the code. This issue has been fixed and will be in available in the next release.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghu</description>
      <pubDate>Mon, 30 Jul 2012 07:23:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777680#M274</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-07-30T07:23:19Z</dc:date>
    </item>
    <item>
      <title>OpenCL compilation crashes</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777681#M275</link>
      <description>Hi Raghu,&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks for a prompt fix - could you also clarify which software it is related to? Is it full open CL sdk, or is there a separate update for a particular dlls? Is the release date already decided, and if not, is there an early access to nightly builds?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Many thanks,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Michael&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Jul 2012 08:17:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777681#M275</guid>
      <dc:creator>yagecheetah</dc:creator>
      <dc:date>2012-07-30T08:17:33Z</dc:date>
    </item>
    <item>
      <title>OpenCL compilation crashes</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777682#M276</link>
      <description>Hi Michael,&lt;BR /&gt;&lt;BR /&gt;It'll be a full SDK release. I don't have a date yet, but will post here once I get more details. Alternately, you can watch the official Intel OpenCL SDK site for any announcements including access to Beta or this Forum.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Raghu</description>
      <pubDate>Mon, 30 Jul 2012 08:32:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/OpenCL-compilation-crashes/m-p/777682#M276</guid>
      <dc:creator>Raghupathi_M_Intel</dc:creator>
      <dc:date>2012-07-30T08:32:16Z</dc:date>
    </item>
  </channel>
</rss>

