AnsweredAssumed Answered

Kernel works on cpu but not on gpu

Question asked by gkaran on Apr 9, 2012
Latest reply on Apr 11, 2012 by

Hi there. A few days ago I started writing some code in OpenCL (never used it before) and I have the following problem. I have a kernel which when executed in the CPU works fine but when it runs in the GPU it gives me false results and leads to a segmentation fault after a while.

You can see the kernel here:


What especially gives me the problem is the last small loop which updates the values. Why can this happen? What am I doing wrong?