Out of resources problem

Out of resources problem

Ritratto di Rui Z.

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!

2 post / 0 new
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione
Ritratto di Raghu Muthyalampalli (Intel)

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

Accedere per lasciare un commento.