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 agoIs the "CL_INVALID_KERNEL" error generated by clSetKernelArg() or clEnqueueNDRangeKernel()? CL_INVALID_KERNEL points to an invalid kernel object, I highly doubt your problem has anything to do with using cl_float4. Are you correctly creating your program from a pre-compiled binary using clCreateProgramWithBinary (instead of clCreateProgramWithSource), and then creating your kernel from that program using clCreateKernel()?