PyOpenCL-Tutorial icon indicating copy to clipboard operation
PyOpenCL-Tutorial copied to clipboard

Swapped buffer and target array in example 021

Open OllePenttinen opened this issue 5 years ago • 0 comments

Thank you so much for your contribution related to pyOpenCL. Helps a lot. I tried your example https://github.com/benshope/PyOpenCL-Tutorial/blob/master/021_array_sum.py

but the variables seem to have been swapped on line 39?

cl.enqueue_copy(queue, cl_arrays[x], np_arrays[x])

should probably read:

cl.enqueue_copy(queue, np_arrays[x], cl_arrays[x])

Best regards Olle

OllePenttinen avatar Jan 29 '20 09:01 OllePenttinen