[PyOpenCL] PyOpenCL and compyte - status?
Andreas Kloeckner
lists at informa.tiker.net
Wed Nov 23 17:00:36 PST 2011
On Wed, 23 Nov 2011 11:14:04 +0100, Tomasz Rybak <bogomips at post.pl> wrote:
I still have this problem in current git
> 937f3996f0598cda5a1923ad2baebd0916e43c48
>
> ============================= test session starts
> ==============================
> platform linux2 -- Python 2.7.2 -- pytest-1.3.4
> test path 1: test_array.py
>
> test_array.py E
>
> ==================================== ERRORS
> ====================================
> ERROR collecting /usr/src/cuda/pyopencl/pyopencl-2011.1.2
> +git20111122/test/test_array.py
> test_array.py:669: in <module>
> > register_dtype(mmc_dtype, "minmax_collector")
> /usr/lib/python2.7/dist-packages/pyopencl/compyte/dtypes.py:50: in
> register_dtype
> > % (dtype, DTYPE_TO_NAME[dtype], ", ".join(c_names)))
> E RuntimeError: dtype '[('cur_min', '<i4'), ('cur_max',
> '<i4'), ('pad', '<i4')]' already registered (as 'minmax_collector', new
> names 'minmax_collector')
> =========================== 1 error in 0.22 seconds
> ============================
Oh. Looks like Pytest < 2.0 executes the test file multiple times. Fine,
should be fixed in git now, too.
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.tiker.net/pipermail/pyopencl/attachments/20111123/89159763/attachment.pgp>
More information about the PyOpenCL
mailing list