Your message dated Sun, 11 Sep 2016 19:49:34 +0000 with message-id <[email protected]> and subject line Bug#826025: fixed in pyopencl 2016.1+git20160809-1 has caused the Debian Bug report #826025, regarding python-pyopencl: pyopencl.enqueue_copy() host to image2d broken. to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 826025: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=826025 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: python-pyopencl Version: 2015.2.4-1 Severity: important Dear Maintainer, copying a host buffer to a 2D device image will fail. The problem can be reproduced by the minimal example below. A further code example will be shown that does not throw an error yet still won't actually copy. The problem seems to be related to the recent switch of pyopencl from boost to cffi and can be fixed by upgrading to the latest upstream release of pyopencl (verfied by "pip install pyopencl") The problem also affects python3-pyopencl and is as well solved by using the latest pyopencl release through pip3. This might also solve bug #819448. kind regards, Jonas ### CODE EXAMPLE: ### from numpy import zeros, ones_like, float32 import pyopencl as cl mf = cl.mem_flags host_buffer = zeros((128, 128), dtype=float32) device_image = cl.Image(ctx, mf.READ_WRITE, cl.ImageFormat(cl.channel_order.INTENSITY, cl.channel_type.FLOAT), shape=(128, 128)) cl.enqueue_copy(que, device_image, host_buffer, origin=(0, 0), region=(128, 128)) --------------------------------------------------------------------------- LogicError Traceback (most recent call last) <ipython-input-11-075d353c4950> in <module>() ----> 1 cl.enqueue_copy(que, imageD, imageH, origin=(0, 0), region=(512, 256)) /usr/lib/python2.7/dist-packages/pyopencl/__init__.pyc in enqueue_copy(queue, dest, src, **kwargs) 1526 1527 return _cl._enqueue_write_image( -> 1528 queue, dest, origin, region, src, **kwargs) 1529 else: 1530 raise ValueError("invalid dest mem object type") /usr/lib/python2.7/dist-packages/pyopencl/cffi_cl.pyc in _enqueue_write_image(queue, mem, origin, region, hostbuf, row_pitch, slice_pitch, wait_for, is_blocking) 1515 _event, queue.ptr, mem.ptr, origin, origin_l, region, region_l, 1516 c_buf, row_pitch, slice_pitch, c_wait_for, num_wait_for, -> 1517 bool(is_blocking), NannyEvent._handle(hostbuf, c_ref))) 1518 return NannyEvent._create(_event[0]) 1519 /usr/lib/python2.7/dist-packages/pyopencl/cffi_cl.pyc in _handle_error(error) 547 _lib.free_pointer(error.msg) 548 _lib.free_pointer(error) --> 549 raise e 550 551 # }}} LogicError: clenqueuereadimage failed: INVALID_VALUE by adding a third dimension to origin and region, the command will execute without error: cl.enqueue_copy(que, device_image, host_buffer, origin=(0, 0, 0), region=(128, 128, 1)) yet no data will be actually copied, which can be verfied by attempting to copy the data back from the device to the host: host_buffer_2 = ones_like(host_buffer) cl.enqueue_copy(que, host_buffer_2, device_image, origin=(0, 0, 0), region=(128, 128, 1)) host_buffer_2 should now have equal contents as host_buffer, yet it doesn't. -- System Information: Debian Release: stretch/sid APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.5.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages python-pyopencl depends on: ii amd-opencl-icd [opencl-icd] 1:15.9-4~deb8u2 ii libc6 2.22-9 ii libgcc1 1:6.1.1-4 ii libstdc++6 6.1.1-4 ii nvidia-opencl-icd [opencl-icd] 352.79-7 ii ocl-icd-libopencl1 [libopencl1] 2.2.9-1 ii pocl-opencl-icd [opencl-icd] 0.12-2 ii python 2.7.11-1 ii python-appdirs 1.4.0-2 ii python-cffi 1.6.0-1 pn python-cffi-backend-api-9729 <none> ii python-decorator 4.0.6-1 ii python-numpy [python-numpy-abi9] 1:1.11.0-1 ii python-pkg-resources 20.10.1-1 ii python-pytools 2016.1-1 ii python-six 1.10.0-3 pn python:any <none> Versions of packages python-pyopencl recommends: ii python-mako 1.0.4+ds1-1 ii python-opengl 3.1.0+dfsg-1 ii python-pyopencl-doc 2015.2.4-1 Versions of packages python-pyopencl suggests: pn python-imaging-tk <none> ii python-matplotlib 1.5.1-1+b2 pn python-pyopencl-dbg <none> pn python-pytest <none> -- no debconf information
--- End Message ---
--- Begin Message ---Source: pyopencl Source-Version: 2016.1+git20160809-1 We believe that the bug you reported is fixed in the latest version of pyopencl, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Tomasz Rybak <[email protected]> (supplier of updated pyopencl package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Format: 1.8 Date: Sun, 11 Sep 2016 14:41:38 +0200 Source: pyopencl Binary: python-pyopencl python-pyopencl-dbg python3-pyopencl python3-pyopencl-dbg python-pyopencl-doc Architecture: source amd64 all Version: 2016.1+git20160809-1 Distribution: unstable Urgency: low Maintainer: Tomasz Rybak <[email protected]> Changed-By: Tomasz Rybak <[email protected]> Description: python-pyopencl - Python module to access OpenCL parallel computation API python-pyopencl-dbg - Python module to access OpenCL API (debug extensions) python-pyopencl-doc - module to access OpenCL parallel computation API (documentation) python3-pyopencl - Python 3 module to access OpenCL parallel computation API python3-pyopencl-dbg - Python 3 module to access OpenCL API (debug extensions) Closes: 826025 833149 Changes: pyopencl (2016.1+git20160809-1) unstable; urgency=low . * New upstream release (Closes: #826025) * Move to pybuild as build system, simplifying d/rules. * Update Standards-Version to 3.9.8; no changes necessary. * Build Sphinx documentation using Python 3, rebuild with new Sphinx. * Update debian/copyright links, after change in upstream. * Drop dependency on python-cffi - path by Stefano Rivera (Closes: #833149). * Mako is used during building documentation so add it as build-dependency. * Change dependency to opencl-c-headers. * Use debian/clean to clean CFFI-related build files. * Add new software license to debian/copyright. * Update debian/copyright links as upstream changed them. * Refresh patches. Checksums-Sha1: ba65170ede4403165c24ca3f23ccf3f4a1699901 2725 pyopencl_2016.1+git20160809-1.dsc 7e86165ed6512da6b9922b3d484b370161551380 276008 pyopencl_2016.1+git20160809.orig.tar.xz 5645eac4513436ccb3dc9a1b09a7626323858af1 12508 pyopencl_2016.1+git20160809-1.debian.tar.xz f7f0ec2a9c4b2bded98afde84afe51578b58ef14 5862248 python-pyopencl-dbg_2016.1+git20160809-1_amd64.deb c1157575f1a3a1812f027e73a38eeb6a8503f6a7 141086 python-pyopencl-doc_2016.1+git20160809-1_all.deb fd91cec18ebd8f80cc7ee520e5201d19230e649a 312184 python-pyopencl_2016.1+git20160809-1_amd64.deb 5f4527063aef6210dc337a4f589ed91343020101 5861772 python3-pyopencl-dbg_2016.1+git20160809-1_amd64.deb 1e8e644079d49bfacd4824e23762554048e5cdb8 313072 python3-pyopencl_2016.1+git20160809-1_amd64.deb Checksums-Sha256: 6cbc1609c8061855f836cedbe7b6ee5cc541fc40942c6f07829137c0b7d0268e 2725 pyopencl_2016.1+git20160809-1.dsc 459618256b0d70a154908f04f83a8627c12bef32326107bd93082889e12d395b 276008 pyopencl_2016.1+git20160809.orig.tar.xz d21fc42a43584cefbe9089a4590fb47778c277ad9a1b4a3c9636825528c88ab7 12508 pyopencl_2016.1+git20160809-1.debian.tar.xz ab86a230a057374811e7f24f517630bea8f547f7eb24169840e88a85daba811c 5862248 python-pyopencl-dbg_2016.1+git20160809-1_amd64.deb 7b432ac2a4bc57ca3944a2f0080bfdcfc52fe627df7ad4ac8d78131ee8d90364 141086 python-pyopencl-doc_2016.1+git20160809-1_all.deb e66009a748a13cb34801e95661095fc9304d1b3625a6f7d37de16de4c955704f 312184 python-pyopencl_2016.1+git20160809-1_amd64.deb aa8f173bf755878cf70c3f8f66fe519700d406b7525be2bde70e8064e6e81197 5861772 python3-pyopencl-dbg_2016.1+git20160809-1_amd64.deb efc5fbdca7d393da0fa96a8d74e1aad06623e6e0b54cf52c28cb46b65b69880c 313072 python3-pyopencl_2016.1+git20160809-1_amd64.deb Files: 42baa252bee109d685719269636405cc 2725 python optional pyopencl_2016.1+git20160809-1.dsc 1a5464a7169a8fa0a17e7168f42c6eea 276008 python optional pyopencl_2016.1+git20160809.orig.tar.xz 271ed415ecc3220c2e135928b165b2bc 12508 python optional pyopencl_2016.1+git20160809-1.debian.tar.xz f20e01d9149d3f7f1fb4683081ee7d36 5862248 debug extra python-pyopencl-dbg_2016.1+git20160809-1_amd64.deb 8b3dabd8c6e5cf12acfec2466f1687cd 141086 doc optional python-pyopencl-doc_2016.1+git20160809-1_all.deb ad3675c0937a90658984aad01846aab2 312184 python optional python-pyopencl_2016.1+git20160809-1_amd64.deb 15c24e2ea978ae67083c5397dde4ab30 5861772 debug extra python3-pyopencl-dbg_2016.1+git20160809-1_amd64.deb bbf17e0ca55bb98f2ede659a3c27ffcf 313072 python optional python3-pyopencl_2016.1+git20160809-1_amd64.deb -----BEGIN PGP SIGNATURE----- iQIcBAEBCAAGBQJX1bQZAAoJEMZU+zMq1ZhgNT4P/0dy8TG8O8/Zpy5DoiyiV/TA UafvyK5RdM1IKN1nm6tWKqVHrdWuzu83ahPPtQAspYv2H1ACjjLqLynm/P/5pcaZ 9MOuaCHmpCpci9S44GI5OtpNX7jbN74uMxJDtJx/kbLmba6qcwyuwtvaG9UPyn9F uPrbcJRYYlE5kub5eWORZaYFPi701JGdIM7XJDZ/Hy95ZR89j7uEL/2jAlepqTow IYyw7aoSZenBK7NfI0AWF6RBartVUCzoG03C3lVQAjtFyDohvPgVJzlR2u5NOD6P ocRsUgx8yUeFe4akbIeWGepcT7kBL8bRL/PjF775Y9G5rqR/N+muEASAk3/frJBJ 9otrjRsKPocx46UxTjHywnQhNcu5v1SaQ+5EjcxCea3RnrgsZ/bjECDIcr1dFSTN NU2qrlFwqLg/AXiqk0ynqprPuy2fxQcNQyN0UxTVia+usp3kki3lb3x1WuqmljfI Wj06EWWAudvs2Of0KDZN2pkmSf0KZaiQF+dxQjHgnEyV5QQzKphO3UM2cCqtqOUP imRWMIG8Uo4VpQZg+nAr1znyEM29L/3Yoj80d3+i1ilgGHFqg9ixWfqvCRx8wb48 V9kdXiETfMjXb041MBENvdjF1ia3Tj/jHdSrqyj+bQLtJgjr4mwARvfdISE6e660 TKWC5HdXOcR7e6qpcjlJ =PyAZ -----END PGP SIGNATURE-----
--- End Message ---

