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
Original issue reported on code.google.com by
rikmor...@gmail.com
on 5 Sep 2011 at 1:27