Hi Jean-Matthieu, Thank you! It seems that both bugs are fixed in 10.9.
On Mon, Nov 25, 2013 at 6:32 PM, Jean-Matthieu Etancelin <[email protected]> wrote: > Hello, > > Here is the output for the two scripts (Python 2.7.5) on HD 6770M device: > > $ ipython t_reduce.py > Choose device(s): > [0] <pyopencl.Device 'Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz' on 'Apple' > at 0xffffffff> > [1] <pyopencl.Device 'ATI Radeon HD 6770M' on 'Apple' at 0x1021b00> > Choice, comma-separated [0]:1 > Set the environment variable PYOPENCL_CTX='1' to avoid being asked again. > [(3L, (6L,), 9L)] > > $ ipython t_cbrng.py > Choose device(s): > [0] <pyopencl.Device 'Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz' on 'Apple' > at 0xffffffff> > [1] <pyopencl.Device 'ATI Radeon HD 6770M' on 'Apple' at 0x1021b00> > Choice, comma-separated [0]:1 > Set the environment variable PYOPENCL_CTX='1' to avoid being asked again. > /usr/local/lib/python2.7/site-packages/pyopencl/__init__.py:57: > CompilerWarning: Built kernel retrieved from cache. Original from-source > build had warnings: > Build on <pyopencl.Device 'ATI Radeon HD 6770M' on 'Apple' at 0x1021b00> > succeeded, but said: > > <program source>:517:30: warning: unused variable 'next_ctr' > _module0_Counter next_ctr = > _module0_get_next_unused_counter(st); > ^ > > warn(text, CompilerWarning) > (-2.0032926249999998, 9.9931568585707691) > > > Best regards, > Jean-Matthieu > > Le 25 nov. 2013 à 04:58, Bogdan Opanchuk <[email protected]> a écrit : > > 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 > > _______________________________________________ PyOpenCL mailing list [email protected] http://lists.tiker.net/listinfo/pyopencl
