Transition from OpenCL C++ Wrapper to OpenCL: Problem with memory allocation

Discussion created by sakuri on Apr 7, 2011
Latest reply on Apr 9, 2011 by tweenk


till today I have used C++ bindings for OpenCL and everything was working just fine. Today I have rewritten my code so it is completely in C.

And now I am getting error "CL_MEM_OBJECT_ALLOCATION_FAILURE" when creating buffers. I probably do not have enough memory because when I have commented some calls for buffer creation the error has occured later then before.

But I do not get it because with C++ bindings everything worked just fine and I did not have any memory problems and in the new code I do not create more buffers then before.

The code itself is rather complilcated - for creating the buffer I call other functions which creates and returns the buffer. So maybe passing buffers like this with C causes some problems?

Any idea where could be the problem?

Thanks a lot