There's quite a barrier to being able to assist you with this. Can you reduce the problem to a minimal example of a C implementation and Python implementation (ideally calling the exact same kernel) that manifests the problem you're having? It would be best if you just used a toy kernel to do this that does barely anything.
Experience would suggest this will either point you yourself to the correct solution or allows someone a much better chance of seeing the problem and helping you. Cheers, Henry On 03/02/16 16:29, Brian Paterni wrote: > Re-sending this message, this time while subscribed to the list. > Hopefully it makes it through this time. > > On Fri, Jan 22, 2016 at 3:28 PM, Brian Paterni <[email protected]> wrote: >> Hi, >> >> In short, I'm doing some research on OpenCL, and to possibly avoid the >> verbosity of C or C++, I'm exploring my options with pyopencl. Further, >> to get up to speed with OpenCL, I'm working through examples in >> Heterogeneous Computing with OpenCL 2.0. >> >> 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. >> >> The code I'm working with is located at >> >> https://github.com/bpaterni/4800.research >> >> which contains 2 branches. The Python implementations are located in >> branch 'pyopencl' whereas C implementations are located in master. >> >> I'm curious to know if I've misunderstood some aspect of pyopencl during >> python reimplementation and would very much appreciate any help with >> this issue I'm having. >> >> Thank You :) > > _______________________________________________ > PyOpenCL mailing list > [email protected] > http://lists.tiker.net/listinfo/pyopencl > _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
