Skip to content

Commit b916d15

Browse files
author
Jonathan Rocher
committed
typo
1 parent 0e5ca83 commit b916d15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py_open_cl_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
queue = cl.CommandQueue(ctx)
1313

1414
# 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)
15+
a_dev = cl.Buffer(ctx, cl.mem_flags.READ_WRITE, size = a.nbytes)
1616
cl.enqueue_write_buffer(queue, a_dev, a)
1717

1818
# create the pyopencl function a little like weave.inline

0 commit comments

Comments
 (0)