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

compiler-construction, macos, makefile, opencl

Solution

I beleive nVidia under OpenCL suggests you just use the Apple drivers it provides by default. To compile an OpenCL program through gcc on OS X you simply use:

gcc -o foo foo.c -framework OpenCL

Problem

I was able to follow instructions and compiled CUDA 3.0 but cannot compile OpenCL that goes with it on Mac OS X 10.6.3?

Original source