Skip to content

Commit 67f2bbd

Browse files
author
Jonathan Rocher
committed
typo
1 parent eb877e3 commit 67f2bbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

py_open_cl_demo.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
cl.enqueue_write_buffer(queue, a_dev, a)
1717

1818
# create the pyopencl function a little like weave.inline
19-
# Just in Time compiler
19+
# Just in Time compiler.
20+
# Notice the way we index into the array a: get_global_id
2021
prg = cl.Program(ctx, """
21-
_kernel void twice(_global float *a)
22+
__kernel void twice(_global float *a)
2223
{ a[ get_global_id (0)] *= 2;}
2324
""").build()
2425

0 commit comments

Comments
 (0)