In my program, I sometimes got the error when using "clEnqueueWriteBuffer" and "clEnqueueReadBuffer". I am very confused that I have already allocate memory on the device using "clCreateBuffer". So I think these two functions do not allocate new space so that there should not be such errors.
Another thing is that I was wondering that how large is the maximum memories on an Intel OpenCL device. And what is that separately for local and global memory?