How can I compile Open CL on Mac OS X 10.6.3?

I was able to follow the instructions and compiled CUDA 3.0, but can’t compile OpenCL, which comes with it on Mac OS X 10.6.3?

+5
source share
2 answers

I believe that nVidia under OpenCL offers you to use only the Apple drivers that it provides by default. To compile an OpenCL program through gcc on OS X, you simply use:

gcc -o foo foo.c -framework OpenCL 
+16
source

Take a look at clBuildProgram at http://www.khronos.org/files/opencl-quick-reference-card.pdf . I believe that the program should be compiled for each video card with which you would like to target, like every processor architecture.

+1
source

All Articles