I tried to allocate more memory than my device is capable of and my kernels stopped working (produced only zeroes), but I never get any errors from OpenCL. I expected clCreateBuffer zu return a CL_MEM_OBJECT_ALLOCATION_FAILURE error code but this doesn’t happen.
What is the correct way to do error checking if I try to allocate a new block that doesn’t fit onto the device?
That was an awesome tip you gave me there, somehow I forgot to implement my empty notify function with anything useful, the messages reported there are of good help External Image