Search code examples
openclosx-mavericks

Running the hello world OpenCL example on mac os x 10.9 Mavericks


I am trying to run the example that apple has posted in his developer library:

https://developer.apple.com/library/mac/documentation/Performance/Conceptual/OpenCL_MacProgGuide/ExampleHelloWorld/Example_HelloWorld.html#//apple_ref/doc/uid/TP40008312-CH112-SW2

I could not compile the example from the command line, until I read this thread:

How to set up Xcode to run OpenCL code, and how to verify the kernels before building

which I found very useful and helpful. But I am still having problem when I try to run it. It gives me the following output:

Created a dispatch queue using the ATI Radeon HD 6750M
Abort trap: 6

Do I have to run the executable with a specific flag? It is related to my GPU? By the way, I am using a MacBookPro from early 2011 on Mac OSX 10.9.1 Mavericks.


Solution

  • Mac computers: OpenCL and OpenGL support in OS X Mavericks see here http://support.apple.com/kb/HT5942