Bug#920497: [Pkg-opencl-devel] Bug#920497: clblas: *ger out of bounds memory access under pocl

Rebecca N. Palmer rebecca_palmer at zoho.com
Tue Jan 18 20:15:17 GMT 2022


Yes - it's still there with current sid.

For libgpuarray/pygpu, a workaround is to use libclblast instead of 
libclblas.

clblas, and its other non-meta reverse dependency (arrayfire), are 
currently not in testing due to other bugs.  Given this, this bug may 
not be worth further attention.
-------------- next part --------------
(per-test 'ok' lines omitted; pocl-opencl-icd:amd64 1.8-3, libclblas2:amd64 2.12-1+b3)

test1 at rnpalmer-laptop:/$ DEVICE=opencl0:0 python3 -m nose -v /usr/lib/python3/dist-packages/pygpu/tests/test_blas.py:test_ger
*** Testing for pthread-Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
Ran 37 tests in 5.285s

OK
test1 at rnpalmer-laptop:/$ DEVICE=opencl0:0 python3 -m nose -v /usr/lib/python3/dist-packages/pygpu/tests/test_blas.py:test_ger
*** Testing for pthread-Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
pygpu.tests.test_blas.test_ger(4, 5, 'float32', 'f', 1, 1, False, False) ... malloc_consolidate(): invalid chunk size
Aborted
test1 at rnpalmer-laptop:/$ DEVICE=opencl0:0 python3 -m nose -v /usr/lib/python3/dist-packages/pygpu/tests/test_blas.py:test_ger
*** Testing for pthread-Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz

pygpu.tests.test_blas.test_ger(4, 5, 'float32', 'f', 1, 1, False, False) ... corrupted size vs. prev_size
Aborted

#empty the cache:
test1 at rnpalmer-laptop:/$ rm -r ~/.cache/pocl

test1 at rnpalmer-laptop:/$ DEVICE=opencl0:0 python3 -m nose -v /usr/lib/python3/dist-packages/pygpu/tests/test_blas.py:test_ger
*** Testing for pthread-Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
pygpu.tests.test_blas.test_ger(4, 5, 'float32', 'f', 1, 1, True, False) ... munmap_chunk(): invalid pointer
Aborted
test1 at rnpalmer-laptop:/$ DEVICE=opencl0:0 python3 -m nose -v /usr/lib/python3/dist-packages/pygpu/tests/test_blas.py:test_ger
*** Testing for pthread-Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz
pygpu.tests.test_blas.test_ger(4, 5, 'float32', 'f', 1, 1, True, True) ... FAIL

======================================================================
FAIL: pygpu.tests.test_blas.test_ger(4, 5, 'float32', 'f', 1, 1, True, True)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/lib/python3/dist-packages/pygpu/tests/test_blas.py", line 25, in f
    func(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pygpu/tests/test_blas.py", line 202, in ger
    numpy.testing.assert_allclose(cr, numpy.asarray(gr), rtol=1e-6)
  File "/usr/lib/python3/dist-packages/numpy/testing/_private/utils.py", line 1530, in assert_allclose
    assert_array_compare(compare, actual, desired, err_msg=str(err_msg),
  File "/usr/lib/python3/dist-packages/numpy/testing/_private/utils.py", line 844, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Not equal to tolerance rtol=1e-06, atol=0

Mismatched elements: 12 / 20 (60%)
Max absolute difference: 1.2221766e+24
Max relative difference: 1.
 x: array([[48.46542 , 55.424015, 48.59693 , 26.831478, 30.579884],
       [25.003803, 19.17932 , 27.053566, 17.550718, 18.006367],
       [48.984207, 52.76725 , 52.501797, 31.092972, 29.112951],...
 y: array([[ 4.846542e+01,  5.542402e+01,  4.859693e+01,  2.683148e+01,
         3.057988e+01],
       [ 3.536883e+01,  1.917932e+01,  3.883647e+01, -1.222177e+24,...

----------------------------------------------------------------------
Ran 37 tests in 2.237s

FAILED (failures=1)


More information about the debian-science-maintainers mailing list