Forum Discussion
Altera_Forum
Honored Contributor
9 years agoObtaining CL_INVALID_KERNEL error when setting cl_float4 as a kernel argument
Hello, I have got a question about the function 'clSetKernelArg()' and the error code 'CL_INVALID_KERNEL'. My problem: My kernel function takes nine parameters. When I try to set the k...
Altera_Forum
Honored Contributor
9 years agoIt's a small thing, but check the index value you set in each call of clSetKernelArg. If you accidentally use the same index (from a copy/paste), you will have an issue. cl_float4 should work fine.