ian75013 / opencl-book-samples

Automatically exported from code.google.com/p/opencl-book-samples
0 stars 0 forks source link

Typo (p. 255) #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 metaphys...@googlemail.com on 2 Nov 2011 at 11:34