I have a little doubt and I really need your help.
My problem is this:
I create an opencl buffer as follows:
d_sample = clCreateBuffer(context, CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR,
sizeof(float) * (1 * 3 * 224 * 224), NULL, &status);
checkError(status, "Failed to create buffer d_sample");
Then I have 1 array full of values like my_array 
And I want to pass these values from my array to the buffer.
How can I do it?