lppcom / opencl-book-samples

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

Buffer arg comment should say "written to", ch 7, pg 259 #30

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
errata for the book:
ch 7, pg259, shaded code snippet says:
cl_int clEnqueueWriteBuffer(cl_command_queuecommand_queue,
                              cl_mem buffer,
                              cl_bool blocking_write,
                              size_t offset,
                              size_t cb,
                              void * ptr,
                              cl_uint num_events_in_wait_list,
                              const cl_event * event_wait_list,
                              cl_event *event)
command_queue   The command-queue in which the write com-
mand will be queued.
buffer A valid buffer object, which will be read from. 

I think the comment for the buffer arg should say "which will be written to", 
because you are enqueueing a write op. and reading from the buffer pointed to 
by "ptr", which is correctly described.

Original issue reported on code.google.com by rikmor...@gmail.com on 5 Sep 2011 at 12:03