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