Forum Discussion
Altera_Forum
Honored Contributor
8 years agoGetting CL_OUT_OF_RESOURCES with clenqueuewritebuffer API
Hi, I am transferring one 4k frame(3840x2160) from Host to device. My device global memory is 2GB. We are creating memory object of size 3968 * 2272. If I am using clcreatebuffer, with CL_MEM_RE...
Altera_Forum
Honored Contributor
8 years agoIn both the cases, the buffer is created and initialized with data.
You could choose first case if you want create buffer and initialize only once in whole program. You could use clEnqueueWriteBuffer if you want to update the buffer values with new data set more than once. I see a size difference in both the cases. You have intialized the buffer with 3968 * 2272 and the you are writing the buffer with 3968 * 2272 *size(pixel). May be you are getting out of order error because of that