Closed kgiray closed 6 years ago
I'm afraid without more information it is difficult to say, as there are many things that could be going wrong. Bear in mind that it may not necessarily be the read that is causing the problem - one of the earlier commands may have caused the problem, but it appears at this point because you have indicated a synchronous read with the TRUE flag.
Common things which can cause it are:
You might try running it in a different provider (e.g. a software provider), and see if it gives you more information when it crashes.
Thanks @m8pple, I believe the issue was about using double precision numbers at GPU.
I am running the Gaussian Blur at GPU,
Everything works fine until the read, here is my read command
queue.enqueueReadBuffer(buffOutput, CL_TRUE, 0, cbBuffer, &outputPixels[0] );
and declaration of outputPixels is as follows
std::vector outputPixels(w*h, 0);
and cbBuffer is defined as
size_t cbBuffer=w*h;
when queue.enqueueReadBuffer is executed it raises a exception : clEnqueueReadBuffer, do you have any idea why this might happen?