- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the info :)

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page