[PyOpenCL] bug in enqueue_nd_range_kernel
David Garcia
david.rigel at gmail.com
Sat May 15 10:20:56 PDT 2010
Be aware that according to the OpenCL 1.0 spec, global_offset must be
zero. So while a nonzero global offset may work on some
implementations, it may fail in others.
Cheers,
David
On Sat, May 15, 2010 at 5:00 AM, 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()
>
> Best regards, Andrew Karpushin.
> Skype: reven-dfg
>
> _______________________________________________
> PyOpenCL mailing list
> PyOpenCL at tiker.net
> http://lists.tiker.net/listinfo/pyopencl
>
>
More information about the PyOpenCL
mailing list