diff --git a/examples/median-filter.py b/examples/median-filter.py index 02448e0be32d83b2f95bda3c62d74b46b693845b..010e2851d7ee9567732ac45b4a46d08d2d8fb212 100644 --- a/examples/median-filter.py +++ b/examples/median-filter.py @@ -91,7 +91,7 @@ img_g = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=img) result_g = cl.Buffer(ctx, mf.WRITE_ONLY, img.nbytes) width_g = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=np.int32(img.shape[1])) height_g = cl.Buffer(ctx, mf.READ_ONLY | mf.COPY_HOST_PTR, hostbuf=np.int32(img.shape[0])) -# Call Kernel. Automatically takes care of blob/grid distribution +# Call Kernel. Automatically takes care of block/grid distribution prg.medianFilter(queue, img.shape, None , img_g, result_g, width_g, height_g) result = np.empty_like(img) cl.enqueue_copy(queue, result, result_g)