[Pkg-opencl-devel] Bug#768090: beignet: pow(n), erf(c), tgamma give wrong results

Rebecca N. Palmer rebecca_palmer at zoho.com
Tue Nov 4 21:49:31 UTC 2014


Package: beignet
Version: 0.9.3~dfsg-1
Severity: serious
Justification: a math library should NOT silently give wrong answers
Control: found -1 0.8-1.1
Control: tags -1 upstream patch

In current beignet (0.8, 0.9.3 and upstream-HEAD):
-pow/pown ignore the sign of their first argument (e.g. pow(-2,3) gives 
8 instead of -8)
-erf/erfc diverge (instead of converging to 1 or 0) for arguments above 
about 2
-tgamma is actually lgamma, a related but very different function (and 
the test suite doesn't notice because it checks against glibc's gammaf, 
which is also lgamma, instead of tgammaf)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: accuracy_speed_test.py
Type: text/x-python
Size: 2517 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opencl-devel/attachments/20141104/7e35b6a5/attachment-0001.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Enable-test-debug.patch
Type: text/x-patch
Size: 3796 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opencl-devel/attachments/20141104/7e35b6a5/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fix-pow-erf-tgamma.patch
Type: text/x-patch
Size: 21746 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opencl-devel/attachments/20141104/7e35b6a5/attachment-0003.bin>


More information about the Pkg-opencl-devel mailing list