When to use the OpenCL API scalar data types?
I have been having trouble understanding when to use the OpenCL API data types like cl_float, cl_uchar, etc., which can be found here: http://www.khronos.org/registry/cl/sdk/1.0/docs/man/xhtml/scalarDataTypes.html The examples I have seen that involve copying a buffer to the device look like this: float data[DATA_SIZE]; // original data set given to device //Create the input and output arrays in device memory for our calculation input = clCreateBuffer(context, CL_MEM_READ_ONLY, sizeof(float) * count, NULL, // Write our data set into the input array in device memory err = clEnqueueWriteBuffer