[PyOpenCL] bug in enqueue_nd_range_kernel

Andreas Kloeckner lists at informa.tiker.net
Tue May 18 14:39:20 PDT 2010


On Sat, 15 May 2010 13:00:08 +0400, Andrew Karpushin <reven86 at gmail.com> wrote:
> Hi.
> 
> I think there is a typo at wrap_cl.hpp, line 2321 (
> http://git.tiker.net/pyopencl.git/blob/HEAD:/src/wrapper/wrap_cl.hpp#l2321)
> Instead of
>        if (work_dim != len(py_local_work_size))
> there should be:
>        if (work_dim != len(py_global_work_offset))
> 
> The problem occurred, when I tried to enqueue kernel, specifing
> 'global_offset' parameter and no 'local_size' parameter, and got an
> exception:
>     TypeError: object of type 'NoneType' has no len()

David's comments notwithstanding, you are obviously correct. Thanks for
the report, fixed in git.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20100518/c6839e47/attachment.pgp>


More information about the PyOpenCL mailing list