Out of resources problem

Out of resources problem

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?


2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

When you allocate memory using clCreateBuffer, did you make sure the call returned success? You can query the max local and global memory using clGetDeviceInfo by passing the appropriate param_name.

Hope this helps.


Leave a Comment

Please sign in to add a comment. Not a member? Join today