I have encountered a strange syntax inside armaments list of OpenCL host-code. However, I do not have any problem with my hostcode functionality but it is strange for me what does it mean at all and why it pass the arguments in this way.
clSetKernelArg(kernel, 0, sizeof(cl_mem), (void *)&c_mem_obj);
To the best of my knowledge, it is type cast. am i wrong ?
i believe it does not have any special purpose since the clSetKernelArg API already accept only pointer.
It is really helpful to have a more technical explanation.
thanks, jimbo