Lots of 32bits specific errors
![](https://secure.gravatar.com/avatar/d621fb031bd283f73762c424440766fc.jpg?s=120&d=mm&r=g)
Hi, I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine. On the 64bits one, everything is fine: numpy.test get a perfect score: <nose.result.TextTestResult run=2504 errors=0 failures=0> On the 32bits ubuntu, the story is not that nice: <nose.result.TextTestResult run=2504 errors=1 failures=16> ERROR: Test filled w/ mvoid ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/ma/tests/test_core.py", line 506, in test_filled_w_mvoid a = mvoid(np.array((1, 2)), mask=[(0, 1)], dtype=ndtype) File "/usr/local/lib/python2.6/dist-packages/numpy/ma/core.py", line 5454, in __new__ _data = ndarray.__new__(self, (), dtype=dtype, buffer=data.data) TypeError: buffer is too small for requested array ====================================================================== FAIL: test_cdouble (test_linalg.TestCond2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 44, in test_cdouble self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 114, in do old_assert_almost_equal(s[0]/s[-1], linalg.cond(a,2), decimal=5) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 455, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: 9.4348091510413177 DESIRED: 22.757141876814547 ====================================================================== FAIL: test_csingle (test_linalg.TestCond2) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 39, in test_csingle self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 114, in do old_assert_almost_equal(s[0]/s[-1], linalg.cond(a,2), decimal=5) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 455, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: 9.4348097 DESIRED: 22.757143 ====================================================================== FAIL: test_cdouble (test_linalg.TestDet) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 44, in test_cdouble self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 135, in do assert_almost_equal(d, multiply.reduce(ev)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: (8.8817841970012523e-16-4j) DESIRED: (5.2800000000000011-11.040000000000004j) ====================================================================== FAIL: test_csingle (test_linalg.TestDet) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 39, in test_csingle self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 135, in do assert_almost_equal(d, multiply.reduce(ev)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: (8.8817841970012523e-16-4j) DESIRED: (5.2800000000000011-11.040000000000004j) ====================================================================== FAIL: test_cdouble (test_linalg.TestEig) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 44, in test_cdouble self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 94, in do assert_almost_equal(dot(a, evectors), multiply(evectors, evalues)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([[ 2.72530404+2.67511327j, 1.92238375+1.30131653j], [ 5.95809316+4.79684551j, 3.41362547+1.42587017j]]) DESIRED: array([[ 2.01388405+1.03693361j, -1.39512658+1.87085135j], [ 1.78601662+0.01838201j, -0.10408816-3.54121552j]]) ====================================================================== FAIL: test_csingle (test_linalg.TestEig) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 39, in test_csingle self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 94, in do assert_almost_equal(dot(a, evectors), multiply(evectors, evalues)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([[ 2.72530413+2.6751132j , 1.92238379+1.3013165j ], [ 5.95809317+4.79684544j, 3.41362548+1.42587018j]], dtype=complex64) DESIRED: array([[ 2.01388407+1.03693354j, -1.39512670+1.8708514j ], [ 1.78601658+0.01838197j, -0.10408816-3.54121566j]], dtype=complex64) ====================================================================== FAIL: test_cdouble (test_linalg.TestEigh) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 221, in test_cdouble self.do(a) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 259, in do assert_almost_equal(ev, evalues) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([-2.60555128, 4.60555128]) DESIRED: array([-1.71080202-1.00413682j, 3.01849433+1.46567528j]) ====================================================================== FAIL: test_csingle (test_linalg.TestEigh) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 217, in test_csingle self.do(a) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 259, in do assert_almost_equal(ev, evalues) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([-2.60555124, 4.60555124], dtype=float32) DESIRED: array([-1.71080208-1.0041368j , 3.01849437+1.46567523j], dtype=complex64) ====================================================================== FAIL: test_cdouble (test_linalg.TestEigvalsh) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 221, in test_cdouble self.do(a) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 249, in do assert_almost_equal(ev, evalues) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([-2.60555128+0.j, 4.60555128+0.j]) DESIRED: array([-1.71080202-1.00413682j, 3.01849433+1.46567528j]) ====================================================================== FAIL: test_csingle (test_linalg.TestEigvalsh) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 217, in test_csingle self.do(a) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 249, in do assert_almost_equal(ev, evalues) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([-2.60555124+0.j, 4.60555124+0.j], dtype=complex64) DESIRED: array([-1.71080208-1.0041368j , 3.01849437+1.46567523j], dtype=complex64) ====================================================================== FAIL: test_cdouble (test_linalg.TestLstsq) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 44, in test_cdouble self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 141, in do assert_almost_equal(b, dot(a, x)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([ 2.+1.j, 1.+2.j]) DESIRED: array([ 0.95920929+0.98311952j, 1.23494444+0.67346351j]) ====================================================================== FAIL: test_csingle (test_linalg.TestLstsq) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 39, in test_csingle self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 141, in do assert_almost_equal(b, dot(a, x)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([ 2.+1.j, 1.+2.j], dtype=complex64) DESIRED: array([ 0.95920926+0.98311943j, 1.23494434+0.67346334j], dtype=complex64) ====================================================================== FAIL: test_cdouble (test_linalg.TestPinv) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 44, in test_cdouble self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 124, in do assert_almost_equal(dot(a, a_ginv), identity(asarray(a).shape[0])) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([[ 0.29169056-0.07799046j, 0.17767375-0.01332484j], [ 0.04125021-0.38255608j, 0.73402869+0.62377356j]]) DESIRED: array([[ 1., 0.], [ 0., 1.]]) ====================================================================== FAIL: test_csingle (test_linalg.TestPinv) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 39, in test_csingle self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 124, in do assert_almost_equal(dot(a, a_ginv), identity(asarray(a).shape[0])) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([[ 0.29169053-0.07799049j, 0.17767370-0.0133248j ], [ 0.04125014-0.38255614j, 0.73402858+0.62377363j]], dtype=complex64) DESIRED: array([[ 1., 0.], [ 0., 1.]]) ====================================================================== FAIL: test_cdouble (test_linalg.TestSVD) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 44, in test_cdouble self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 100, in do assert_almost_equal(a, dot(multiply(u, s), vt)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([[ 1.+2.j, 2.+3.j], [ 3.+4.j, 4.+5.j]]) DESIRED: array([[ 1.00000000+2.j , 2.36670415+2.98574489j], [ 3.00000000+4.j , 2.80882652+6.25521741j]]) ====================================================================== FAIL: test_csingle (test_linalg.TestSVD) ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 39, in test_csingle self.do(a, b) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 100, in do assert_almost_equal(a, dot(multiply(u, s), vt)) File "/usr/local/lib/python2.6/dist-packages/numpy/linalg/tests/test_linalg.py", line 23, in assert_almost_equal old_assert_almost_equal(a, b, decimal=decimal, **kw) File "/usr/local/lib/python2.6/dist-packages/numpy/testing/utils.py", line 435, in assert_almost_equal raise AssertionError(msg) AssertionError: Arrays are not almost equal ACTUAL: array([[ 1.+2.j, 2.+3.j], [ 3.+4.j, 4.+5.j]], dtype=complex64) DESIRED: array([[ 0.99999994+2.j , 2.36670423+2.98574495j], [ 3.00000000+4.j , 2.80882668+6.25521755j]], dtype=complex64) Xavier
![](https://secure.gravatar.com/avatar/59bdb3784070f0a6836aca9ee03ad817.jpg?s=120&d=mm&r=g)
On Wed, Jan 6, 2010 at 6:48 AM, Xavier Gnata <xavier.gnata@gmail.com> wrote:
Hi,
I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine.
On the 64bits one, everything is fine: numpy.test get a perfect score: <nose.result.TextTestResult run=2504 errors=0 failures=0>
On the 32bits ubuntu, the story is not that nice: <nose.result.TextTestResult run=2504 errors=1 failures=16>
Almost all your errors are in linalg - most likely an atlas problem. Atlas with sse2 is buggy on some Ubuntu versions. You should check Ubuntu bug tracker to see if it affects the version you are using. David
![](https://secure.gravatar.com/avatar/d621fb031bd283f73762c424440766fc.jpg?s=120&d=mm&r=g)
On Wed, Jan 6, 2010 at 6:48 AM, Xavier Gnata <xavier.gnata@gmail.com> wrote:
Hi,
I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine.
On the 64bits one, everything is fine: numpy.test get a perfect score: <nose.result.TextTestResult run=2504 errors=0 failures=0>
On the 32bits ubuntu, the story is not that nice: <nose.result.TextTestResult run=2504 errors=1 failures=16>
Almost all your errors are in linalg - most likely an atlas problem. Atlas with sse2 is buggy on some Ubuntu versions. You should check Ubuntu bug tracker to see if it affects the version you are using.
Thanks, you got it! atlas sse2 in fully buggy in karmic (at least on 32bits machines). <nose.result.TextTestResult run=2504 errors=1 failures=0> without sse. I'm going to try with the sse version of atlas (sse not sse2...) to see if it is as buggy as the sseƩ version. Xavier
![](https://secure.gravatar.com/avatar/59bdb3784070f0a6836aca9ee03ad817.jpg?s=120&d=mm&r=g)
On Wed, Jan 6, 2010 at 8:17 AM, Xavier Gnata <xavier.gnata@gmail.com> wrote:
On Wed, Jan 6, 2010 at 6:48 AM, Xavier Gnata <xavier.gnata@gmail.com> wrote:
Hi,
I have compiled numpy 1.5.0.dev8039 both on a 32 and a 64bits ubuntu machine.
On the 64bits one, everything is fine: numpy.test get a perfect score: <nose.result.TextTestResult run=2504 errors=0 failures=0>
On the 32bits ubuntu, the story is not that nice: <nose.result.TextTestResult run=2504 errors=1 failures=16>
Almost all your errors are in linalg - most likely an atlas problem. Atlas with sse2 is buggy on some Ubuntu versions. You should check Ubuntu bug tracker to see if it affects the version you are using.
Thanks, you got it! atlas sse2 in fully buggy in karmic (at least on 32bits machines).
That's just incompetence at that point. This bug is known for > one year, and they still have not fixed it. The least they could do is removing the package so that people has slower, but accurate version. David
participants (2)
-
David Cournapeau
-
Xavier Gnata