[SciPy-dev] 64-bit testing needed

Arnd Baecker arnd.baecker at web.de
Wed Nov 9 02:27:36 EST 2005


On Tue, 8 Nov 2005, Travis Oliphant wrote:

> I just made some changes to the slice parsing code to allow numbers
> larger than a platform int.  This only affects 64-bit platforms where
> sizeof(intp) != sizeof(int).
>
> I need someone to test the new SVN to make sure I changed all the right
> places.  The changed subroutines are in arrayobject.c
>
> parse_index
> parse_subindex
> slice_GetIndices
> slice_coerce_index
>
> I'm especially interested in warnings on compile.

There are no pointer ones - so this looks good.
scipy.__core_version__: '0.4.3.1450'
scipy.__scipy_version__: '0.4.2_1429'

scipy.test(10,10) gives

======================================================================
FAIL: limited-memory bound-constrained BFGS algorithm
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/abaecker/BUILDS2/Build_68/inst_scipy_newcore/lib/python2.4/site-packages/scipy/optimize/tests/test_optimize.py",
line 120, in check_l_bfgs_b
    assert err < 1e-6
AssertionError

======================================================================
FAIL: limited-memory bound-constrained BFGS algorithm
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/home/abaecker/BUILDS2/Build_68/inst_scipy_newcore/lib/python2.4/site-packages/scipy/optimize/tests/test_optimize.py",
line 120, in check_l_bfgs_b
    assert err < 1e-6
AssertionError

----------------------------------------------------------------------
Ran 1346 tests in 43.527s


You asked for warnings - well there are many, in various
parts. Somehow it would be nice to get rid of those,
as they distract from real problems, but it would be a big task.
Maybe new code should be required to be free of warnings...
Anyway, here is an incomplete overview:

- the usual _configtest.c ones ...
-
scipy/corelib/mtrand/mtrand.c: In function
`__pyx_tp_new_6mtrand_RandomState':
scipy/corelib/mtrand/mtrand.c:4908: warning: unused variable `p'
-
		Constructing wrapper function "dvode"...
warning: callstatement is defined without callprotoargument
		  y,t,istate =
dvode(f,jac,y,t,tout,rtol,atol,itask,istate,rwork

- many of the type:
  warning: 'ntry' might be used uninitialized in this function
  in various fortran sources
- gcc: Lib/special/cephes/simpsn.c
  Lib/special/cephes/simpsn.c:25: warning: 'simcon' defined but not used
- gcc: Lib/special/cephes/sincos.c
  Lib/special/cephes/sincos.c:232: warning: conflicting types for built-in
function 'sincos'
- gcc: Lib/special/cephes/euclid.c
  Lib/special/cephes/euclid.c:55: warning: 'radd' defined but not used
  Lib/special/cephes/euclid.c:90: warning: 'rsub' defined but not used
  Lib/special/cephes/euclid.c:124: warning: 'rmul' defined but not used
  Lib/special/cephes/euclid.c:157: warning: 'rdiv' defined but not used
- SuperLU: many  warnings (parentheses, implicit declarations, ...)
- Lib/integrate/__quadpack.h: In function `quad_function':
Lib/integrate/__quadpack.h:60: warning: unused variable `nb'
Lib/integrate/_quadpackmodule.c: At top level:
Lib/integrate/_quadpackmodule.c:17: warning: function declaration isn't a
prototype
-
compile options:
'-I/home/abaecker/BUILDS2/Build_68/inst_scipy_newcore/lib/python2.4/site-packages/scipy/base/include
-I/scr/python/include/python2.4 -c'
gcc: Lib/signal/Z_bspline_util.c
In file included from /scr/python/include/python2.4/Python.h:8,
                 from Lib/signal/Z_bspline_util.c:6:
/scr/python/include/python2.4/pyconfig.h:835:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/include/math.h:27,
                 from Lib/signal/Z_bspline_util.c:1:
/usr/include/features.h:190:1: warning: this is the location of the
previous definition

Best, Arnd




More information about the SciPy-Dev mailing list