We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e5ca83 commit b916d15Copy full SHA for b916d15
py_open_cl_demo.py
@@ -12,7 +12,7 @@
12
queue = cl.CommandQueue(ctx)
13
14
# Allocate a chunk of memory of the size of a and copy the data
15
-a_dev = cl.Buffer(ctx, cl.mem_flags.READ_WRITE, size = a.bytes)
+a_dev = cl.Buffer(ctx, cl.mem_flags.READ_WRITE, size = a.nbytes)
16
cl.enqueue_write_buffer(queue, a_dev, a)
17
18
# create the pyopencl function a little like weave.inline
0 commit comments