diff --git a/examples/demo.py b/examples/demo.py index b6a1693901dc6e9675082e348c9fdb76818bed49..62c0f7ee5fe975f0d4097be41396b558e82eec50 100644 --- a/examples/demo.py +++ b/examples/demo.py @@ -16,7 +16,9 @@ a_g = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=a_np) b_g = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=b_np) prg = cl.Program(ctx, """ -__kernel void sum(__global const float *a_g, __global const float *b_g, __global float *res_g) { +__kernel void sum( + __global const float *a_g, __global const float *b_g, __global float *res_g) +{ int gid = get_global_id(0); res_g[gid] = a_g[gid] + b_g[gid]; }