Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi HRZ,
thank you for your answer. The 'CL_INVALID_KERNEL' error is generated by clSetKernelArg(). After each call of this function the returned cl_int value is checked for errors. There is none for the first eight parameters, but for the ninth (cl_float4). If the order of setting kernel arguments is changed, it is again successful until the cl_float4 argument. The program is obtained from a pre-compiled binary by using clCreateProgramWithBinary() in combination with clBuildProgram(). Afterwards the kernel is created with clCreateKernel().