OpenCl code works on a machine but I am getting CL_INVALID_KERNEL_ARGS on another

Viewed 1956

I had the following code, which works well on a machine but I when I try to run it on another machine with better graphics card I am getting errors:

global[0] = 512; global[1] = 512;
local [0] = 16; local [1] = 16;
ciErrNum = clEnqueueNDRangeKernel(commandQueue, myKernel, 2, NULL, global, local, 0, NULL, &event);

Errors:

Error @ clEnqueueNDRangeKernel: CL_INVALID_KERNEL_ARGS
Error @ clWaitForEvents: CL_INVALID_KERNEL_ARGS

Any idea what is the problem?

1 Answers
Related