Hi Pongsak, Thank you! Could you please run the second script as well (t_cbrng.py)? It seems that whatever the bug in reduction was, Apple got it fixed... maybe it's time to upgrade then.
Best regards, Bogdan On Mon, Nov 25, 2013 at 10:29 AM, Pongsak Suvanpong <[email protected]> wrote: > Hello > > this is the output > > psksvp@abydos:~/Workspace$ python3 t_reduce.py > Choose device(s): > [0] <pyopencl.Device 'Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz' on 'Apple' at > 0xffffffff> > [1] <pyopencl.Device 'HD Graphics 4000' on 'Apple' at 0x1024400> > Choice, comma-separated [0]:1 > Set the environment variable PYOPENCL_CTX='1' to avoid being asked again. > [(3, (6,), 9)] > > > My device is the HD4000 GPU. > > psksvp > > On 25 Nov 2013, at 12:47 am, Bogdan Opanchuk <[email protected]> wrote: > >> Hello guys, >> >> If it is not too much trouble, could someone with Mavericks run these >> two scripts (with a GPU device) and tell me the output? I'm getting a >> strange results on 10.8, and the expected behavior on Linux+Tesla, and >> I've read that OpenCL in 10.9 got updated. >> >> In case you are interested what they do: >> - t_reduce.py runs a reduction of an array of 3 elements of a nested >> struct dtype. For some reason, if I initialize the zero element as {0, >> {0}, 0}, I get wrong results, and if I write 0 separately to each of >> its fields, the results are correct. >> - t_cbrng.py uses a counter-based RNG to generate 2M normally >> distributed floats. If I compile it with '-cl-fast-relaxed-math' >> option, the mean&std are correct (-2 and 10), and if I compile it with >> default options, both mean and std are off. >> >> Thank you in advance. >> >> Best regards, >> Bogdan >> <t_cbrng.py><t_reduce.py>_______________________________________________ >> PyOpenCL mailing list >> [email protected] >> http://lists.tiker.net/listinfo/pyopencl > > > _______________________________________________ > PyOpenCL mailing list > [email protected] > http://lists.tiker.net/listinfo/pyopencl _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
