OpenCL kernel error: cvms_element_build_from_source

I have written a few OpenCL kernels in the last few years. My code works on Windows, Linux and OS X. It works on my MacBook Pro (NVIDIO GeForce GT 650M). It used to work on my Mac Pro (AMD ATI Radeon HD 5870), but after upgrading to Yosemite I get the error "cvms_element_build_from_source" on the call to clBuildProgram. I have all of the updates for OS X including the latest Xcode and command line utilities.

Posted on Dec 14, 2014 11:56 AM

Reply
3 replies

Apr 13, 2016 2:35 PM in response to mgrogue

I found out that if you add this to your command line:


export CL_LOG_ERRORS="stdout"


Then run your program, you can see more information.


[CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: Build Program driver returned (517)

Break on OpenCLErrorBreak to debug.

OpenCL Warning : clBuildProgram failed: could not build program for 0x1021b00 (ATI Radeon HD 5870) (err:-2)

Break on OpenCLWarningBreak to debug.

[CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:

Error returned by cvms_element_build_from_source


I don't know why clGetProgramBuildInfo() did not return that. Hopefully I can figure out why it thinks the device is unavailable.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

OpenCL kernel error: cvms_element_build_from_source

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.