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?
+1
A:
Take a look at clBuildProgram
in http://www.khronos.org/files/opencl-quick-reference-card.pdf. I believe the program must be compiled for each graphics card with you would like to target, much like each CPU architecture.
Kendall Hopkins
2010-05-05 04:13:56
+3
A:
I beleive nVidia under OpenCl suggests you just use the apple drivers it provides by default. To compile an opencl program through gcc on osx you simply use:
gcc -o foo foo.c -framework OpenCL
Jonathan Lisic
2010-05-10 13:33:05