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 ad7aa43 commit 0e5ca83Copy full SHA for 0e5ca83
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.bytes)
16
cl.enqueue_write_buffer(queue, a_dev, a)
17
18
# create the pyopencl function a little like weave.inline
0 commit comments