<?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 Out of memory error from clBuildProgram in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028219#M3535</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;After adding too many lines to my kernels, clBuildProgram() is returning the error&amp;nbsp;CL_BUILD_PROGRAM_FAILURE&amp;nbsp;from the driver.&amp;nbsp;clGetProgramBuildInfo() returns the string "Error: out of memory." and nothing else. If I remove enough lines of code from my OpenCL code, the error goes away.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;If I change the device from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;CL_DEVICE_TYPE_GPU to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;CL_DEVICE_TYPE_CPU the error goes away. The total number of lines of code in my program is about 900.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Processor: 2.2 Ghz Intel Core i7&lt;/P&gt;

&lt;P&gt;Graphics: Intel Iris Pro 1536MB&lt;/P&gt;

&lt;P&gt;OSX 10.10.5&lt;/P&gt;

&lt;P&gt;I'm using whatever comes standard with that version of OSX, I haven't installed anything else, not even XCode.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;My problem seems to be identical to that of this person:&amp;nbsp;https://software.intel.com/en-us/forums/opencl/topic/559994&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I'm trying to get clearance to post the source code, but in the meantime any ideas?&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2015 00:13:11 GMT</pubDate>
    <dc:creator>Jorge_R_3</dc:creator>
    <dc:date>2015-09-16T00:13:11Z</dc:date>
    <item>
      <title>Out of memory error from clBuildProgram</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028219#M3535</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;After adding too many lines to my kernels, clBuildProgram() is returning the error&amp;nbsp;CL_BUILD_PROGRAM_FAILURE&amp;nbsp;from the driver.&amp;nbsp;clGetProgramBuildInfo() returns the string "Error: out of memory." and nothing else. If I remove enough lines of code from my OpenCL code, the error goes away.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;If I change the device from&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;CL_DEVICE_TYPE_GPU to&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;CL_DEVICE_TYPE_CPU the error goes away. The total number of lines of code in my program is about 900.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Processor: 2.2 Ghz Intel Core i7&lt;/P&gt;

&lt;P&gt;Graphics: Intel Iris Pro 1536MB&lt;/P&gt;

&lt;P&gt;OSX 10.10.5&lt;/P&gt;

&lt;P&gt;I'm using whatever comes standard with that version of OSX, I haven't installed anything else, not even XCode.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;My problem seems to be identical to that of this person:&amp;nbsp;https://software.intel.com/en-us/forums/opencl/topic/559994&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;I'm trying to get clearance to post the source code, but in the meantime any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 00:13:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028219#M3535</guid>
      <dc:creator>Jorge_R_3</dc:creator>
      <dc:date>2015-09-16T00:13:11Z</dc:date>
    </item>
    <item>
      <title>Jorge,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028220#M3536</link>
      <description>&lt;P&gt;Jorge,&lt;/P&gt;

&lt;P&gt;OSX is not the platform we support on this forum: you will need to submit the issue to the Apple folks. However, if you can share your kernel (or send me a private message with the kernel attached) I can try to see if the issue is reproducible on the Windows driver. OSX driver shares some code with Windows driver, but Apple does add some 'special sauce'.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 00:21:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028220#M3536</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-09-16T00:21:43Z</dc:date>
    </item>
    <item>
      <title>All of my code is here:</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028221#M3537</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;All of my code is here:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dl.dropboxusercontent.com/u/4205810/deleteme/rccl.tgz" target="_blank"&gt;https://dl.dropboxusercontent.com/u/4205810/deleteme/rccl.tgz&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It builds from a bash script, not a makefile or anything. If you can't get it to build that way, you can try just building the kernels on your own. The kernels are in a few separate files, you should be able to just concatenate them into one big file in the following order: shared_structures.h, shared_operators.c, cpoly.cl, jacobi.cl, rc.cl&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2015 16:47:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028221#M3537</guid>
      <dc:creator>Jorge_R_3</dc:creator>
      <dc:date>2015-09-16T16:47:43Z</dc:date>
    </item>
    <item>
      <title>Jorge,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028222#M3538</link>
      <description>&lt;P&gt;Jorge,&lt;/P&gt;

&lt;P&gt;Just tested your code on the latest driver on Windows 10: your code builds successfully for both CPU and GPU. So come to the dark side :)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 23:07:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028222#M3538</guid>
      <dc:creator>Robert_I_Intel</dc:creator>
      <dc:date>2015-10-12T23:07:54Z</dc:date>
    </item>
    <item>
      <title>Thanks for the info :)</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028223#M3539</link>
      <description>&lt;P&gt;Thanks for the info :)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 00:14:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/Out-of-memory-error-from-clBuildProgram/m-p/1028223#M3539</guid>
      <dc:creator>Jorge_R_3</dc:creator>
      <dc:date>2015-10-13T00:14:52Z</dc:date>
    </item>
  </channel>
</rss>

