Bug#946422: silx: autopkgtest regression: pocl error
PICCA Frederic-Emmanuel
frederic-emmanuel.picca at synchrotron-soleil.fr
Thu Dec 19 10:59:27 GMT 2019
looking in picca at sixs7:~/Debian/silx/silx/silx/opencl/test/test_addition.py
def setUp(self):
if ocl is None:
return
self.shape = 4096
self.data = numpy.random.random(self.shape).astype(numpy.float32)
self.d_array_img = pyopencl.array.to_device(self.queue, self.data)
self.d_array_5 = pyopencl.array.zeros_like(self.d_array_img) - 5
self.program = pyopencl.Program(self.ctx, get_opencl_code("addition")).build()
I found that commenting this line
# self.d_array_5 = pyopencl.array.zeros_like(self.d_array_img) - 5
remove the pocl issue.
I remove everythings from the unit test.
@unittest.skipUnless(ocl, "pyopencl is missing")
def test_add(self):
self.assetTrue(True)
that means, only ther setUp and the tearDown are done.
with the line uncomment
(sid_amd64-dchroot)picca at barriere:~$ PYOPENCL_COMPILER_OUTPUT=1 PYTHONPATH=silx-0.11.0+dfsg/.pybuild/cpython3_3.7_silx/build python3 test.py -v
pocl error: lt_dlopen("(null)") or lt_dlsym() failed with 'can't close resident module'.
note: missing symbols in the kernel binary might be reported as 'file not found' errors.
Aborted
with the line commented
(sid_amd64-dchroot)picca at barriere:~$ PYOPENCL_COMPILER_OUTPUT=1 PYTHONPATH=silx-0.11.0+dfsg/.pybuild/cpython3_3.7_silx/build python3 test.py -v
.Maximum valid workgroup size 0 on device <pyopencl.Device 'pthread-Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz' on 'Portable Computing Language' at 0x260e300>
----------------------------------------------------------------------
Ran 1 test in 0.013s
OK
Test suite succeeded
If now I do not import silx.io before there is no issue with or without the commented line
(sid_amd64-dchroot)picca at barriere:~$ PYOPENCL_COMPILER_OUTPUT=1 PYTHONPATH=silx-0.11.0+dfsg/.pybuild/cpython3_3.7_silx/build python3 test.py -v
.Maximum valid workgroup size 0 on device <pyopencl.Device 'pthread-Intel(R) Xeon(R) CPU E5-2640 v2 @ 2.00GHz' on 'Portable Computing Language' at 0x2c2dd30>
----------------------------------------------------------------------
Ran 1 test in 0.021s
OK
Test suite succeeded
So what is going on when executing this line ???
self.d_array_5 = pyopencl.array.zeros_like(self.d_array_img) - 5
More information about the debian-science-maintainers
mailing list