OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

Out of resources problem

Rui_Z_
Beginner
308 Views

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?

Thanks!

0 Kudos
1 Reply
Raghupathi_M_Intel
308 Views
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. Raghu
0 Kudos
Reply