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 <[email protected]> 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 > [email protected] > http://lists.tiker.net/listinfo/pyopencl > > _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
