Sumeet002 / opencl-book-samples

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

Errata: Buffer arg comment should say "written to", ch 7, pg 273 #31

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
errata for the book:
ch 7, pg 273, shaded code snippet says:
cl_int  clEnqueueWriteBufferRect(
                              cl_command_queue command_queue,
                              cl_mem buffer,
                              cl_bool blocking_write,
                              const size_t buffer_origin[3],
                              const size_t host_origin[3],
                              const size_t region[3],
                              size_t buffer_row_pitch,
                              size_t buffer_slice_pitch,
                              size_t host_row_pitch,
                              size_t host_slice_pitch,
                              void * ptr,
                              cl_uint num_events_in_wait_list,
                              const cl_event * event_wait_list,
                              cl_event * event)

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 1:27