Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Jorge_R_3
Beginner
84 Views

Out of memory error from clBuildProgram

After adding too many lines to my kernels, clBuildProgram() is returning the error CL_BUILD_PROGRAM_FAILURE from the driver. 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. If I change the device from CL_DEVICE_TYPE_GPU to CL_DEVICE_TYPE_CPU the error goes away. The total number of lines of code in my program is about 900.

Processor: 2.2 Ghz Intel Core i7

Graphics: Intel Iris Pro 1536MB

OSX 10.10.5

I'm using whatever comes standard with that version of OSX, I haven't installed anything else, not even XCode.

My problem seems to be identical to that of this person: https://software.intel.com/en-us/forums/opencl/topic/559994

I'm trying to get clearance to post the source code, but in the meantime any ideas?

0 Kudos
4 Replies
Robert_I_Intel
Employee
84 Views

Jorge,

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'.

 

Jorge_R_3
Beginner
84 Views

All of my code is here:

https://dl.dropboxusercontent.com/u/4205810/deleteme/rccl.tgz

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

Thanks.

Robert_I_Intel
Employee
84 Views

Jorge,

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 :)

Jorge_R_3
Beginner
84 Views

Thanks for the info :)