Just some more information:
I am using ATI Radeon 5450 and Visual Studio 2010 Professional.
I am setting global arrays like this:
status = clSetKernelArg(kernel, 6, sizeof(cl_mem), (void *)cand_sym_d);
and I am setting const arguments like this:
status = clSetKernelArg(kernel, 3, sizeof(int), (void *)&LIST_SIZE);
They look fine to me. I do not know how to go about debugging it! Is there a kernel debugger available that works with Visual Studio?
add & to cand_sym_d. you need pass pointer at mem object not object itself.
Ohhh...thanks a lot nou. I forgot that it is a struct type variable and not a float array. Thanks again!