3

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.

Community
  • 1
  • 1
AlexNoir
  • 789
  • 3
  • 8
  • 20

2 Answers2

4

ATI Radeon HD 6750M is supported. May be you should try this sample code

https://developer.apple.com/library/mac/samplecode/OpenCL_Hello_World_Example/Introduction/Intro.html

For command line compile:

xcrun clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -framework OpenCL hello.c -o hello

Or you can refer to this to have a list of supported OpenCL devices on your machine How can i test for OpenCL compability?

Community
  • 1
  • 1
javacom
  • 43
  • 2
1

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

javacom
  • 26
  • 1