opencl-book-samples icon indicating copy to clipboard operation
opencl-book-samples copied to clipboard

Typo (p. 255)

Open GoogleCodeExporter opened this issue 9 years ago • 0 comments

There is a typo in the second line of the source code listing:

"buffer = clCreate(..."

In general the code is a bit confusing since the mentioned intention is to 
create sub-buffers. That particular part is missing in the code. One can only 
imagine that the sub-buffers are created elsewhere and then used here:

"errNum = clSetKernelArg(kernel, 0, sizeof(cl_mem), (void *)&buffers[i]);"

Except for those little errors it is a really nice book!

Thank you and regards,
Martin


Original issue reported on code.google.com by [email protected] on 2 Nov 2011 at 11:34

GoogleCodeExporter avatar Mar 14 '15 09:03 GoogleCodeExporter