I have not got any response over this issue yet.
At least can you guys provide me with some hint how to interpret error codes in OpenCL?
In my case i am getting error code -36 and it is leaving me with no clue.
Looking forward to some hints to get around this error.
I am getting invalid command queue, at least the following error code is saying so:
Program object initialized.
alloc[osgOpenCL::Buffer::alloc()] "": something went wrong while mapping the device linear memory for 1D :-36
launch OpenCL kernel execution was not successful.
But the command queue creation is successful. I did not get any error message while creating the command queue.
What else might have went wrong?
You can find the meaning of -36 in cl.h file, located in AMDAPP/include/CL/ folder.
Invalid queue should mean the queue variable passed to clEnqueueMapbuffer is invalid. Does the queue and buffer belong to the same context? Probably just check the value of queue variable, before passing it inside the API.