<?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 INTEL_OPENCL_BUILD_RULES : error : internal error in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119923#M5469</link>
    <description>&lt;P&gt;Any tips on what to do when ioc32 and ioc64 die with an "internal error"?&lt;/P&gt;

&lt;P&gt;This is what both the command line and VS2013 return when using the latest Intel OpenCL API release (6.1.0.1600):&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;ioc32 -cmd=build -input=abc.cl -device=gpu -bo="-cl-std=CL2.0 -cl-fast-relaxed-math -cl-no-signed-zeros -cl-mad-enable -cl-denorms-are-zero"
Using build options: -cl-std=CL2.0 -cl-fast-relaxed-math -cl-no-signed-zeros -cl-mad-enable -cl-denorms-are-zero
OpenCL Intel(R) Graphics device was found!
Device name: Intel(R) Iris(TM) Pro Graphics 6200
Device version: OpenCL 2.0
Device vendor: Intel(R) Corporation
Device profile: FULL_PROFILE
fcl build 1 succeeded.
fcl build 2 succeeded.
Error: internal error.

Build failed!
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2016 22:37:13 GMT</pubDate>
    <dc:creator>allanmac1</dc:creator>
    <dc:date>2016-07-06T22:37:13Z</dc:date>
    <item>
      <title>INTEL_OPENCL_BUILD_RULES : error : internal error</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119923#M5469</link>
      <description>&lt;P&gt;Any tips on what to do when ioc32 and ioc64 die with an "internal error"?&lt;/P&gt;

&lt;P&gt;This is what both the command line and VS2013 return when using the latest Intel OpenCL API release (6.1.0.1600):&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;ioc32 -cmd=build -input=abc.cl -device=gpu -bo="-cl-std=CL2.0 -cl-fast-relaxed-math -cl-no-signed-zeros -cl-mad-enable -cl-denorms-are-zero"
Using build options: -cl-std=CL2.0 -cl-fast-relaxed-math -cl-no-signed-zeros -cl-mad-enable -cl-denorms-are-zero
OpenCL Intel(R) Graphics device was found!
Device name: Intel(R) Iris(TM) Pro Graphics 6200
Device version: OpenCL 2.0
Device vendor: Intel(R) Corporation
Device profile: FULL_PROFILE
fcl build 1 succeeded.
fcl build 2 succeeded.
Error: internal error.

Build failed!
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 22:37:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119923#M5469</guid>
      <dc:creator>allanmac1</dc:creator>
      <dc:date>2016-07-06T22:37:13Z</dc:date>
    </item>
    <item>
      <title>After some debugging... it's</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119924#M5470</link>
      <description>&lt;P&gt;After some debugging... it's even more confounding. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;The .cl file contains 32 kernels and ioc32 merrily builds the first 6 with the rest commented out. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;IOC also builds all kernels individually with the remaining commented out.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Finally, splitting the original .cl file into 32 individual files also results in all .cl programs successfully building.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Is there some sort of size limitation in IOC? &amp;nbsp;The attached PNG shows the compiled kernel sizes.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;It's bugs like this that just kill productivity.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="kernels_split.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/8945i0BB71DF1B9B1BD92/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="kernels_split.png" alt="kernels_split.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 01:01:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119924#M5470</guid>
      <dc:creator>allanmac1</dc:creator>
      <dc:date>2016-07-07T01:01:00Z</dc:date>
    </item>
    <item>
      <title>And.... I found it.  </title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119925#M5471</link>
      <description>&lt;P&gt;And.... I found it. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;I had a pointer hiding in a struct and after hoisting it to the kernel functions argument list the 32 kernel CL program compiles just fine.&lt;/P&gt;

&lt;P&gt;Apparently that mistake breaks the compiler.&lt;/P&gt;

&lt;P&gt;My bad!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 23:58:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119925#M5471</guid>
      <dc:creator>allanmac1</dc:creator>
      <dc:date>2016-07-07T23:58:03Z</dc:date>
    </item>
    <item>
      <title>Thanks for this report.  I'm</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119926#M5472</link>
      <description>&lt;P&gt;Thanks for this report. &amp;nbsp;I'm starting to reproduce here in the hope of improving this behavior in a future release.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2016 13:43:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/INTEL-OPENCL-BUILD-RULES-error-internal-error/m-p/1119926#M5472</guid>
      <dc:creator>Jeffrey_M_Intel1</dc:creator>
      <dc:date>2016-07-13T13:43:44Z</dc:date>
    </item>
  </channel>
</rss>

