I urinate my feet with OpenCL. I am sure this problem is not specific to OpenCL.
the top of my main file looks like this:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <OpenCL/opencl.h>
cl_device_id device_id;
int err = clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU, 1, &device_id, NULL);
I do it on Snow Leopard. I can create and run Apple examples using Xcode. I can also compile and run the NVIDIA sample code by doing make.
How to compile code without using XCODE?
source
share