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?
Is this a driver bug? Driver is 266.58