On Wed, 3 Feb 2016 10:29:43 -0600
Brian Paterni <[email protected]> wrote:

> > One example in the book walks through computing a histogram of an image,
> > but while the example code provided (in C) works and produces the
> > expected output histogram, my attempt to translate the same program into
> > Python raises some question. the kernel runs and produces results that
> > resembles the reference histogram, only values are much, much larger
> > than expected.

Are you not mixing int32 and int64 ?
if you play on linux64, python works with int64 for int while the
OpenCL is likely to consider them as 32bits only.

_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to