views:

213

answers:

2

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
+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