From 3df19661301dda100e67238119f52555087476aa Mon Sep 17 00:00:00 2001 From: Shahzaib Gill <shahzaibgill@gmail.com> Date: Sat, 8 Oct 2016 15:39:01 -0400 Subject: [PATCH] Fixed typo --- examples/median-filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/median-filter.py b/examples/median-filter.py index 02448e0b..010e2851 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) -- GitLab