Scipy on windows amd64

I spent some more time on this today, and for the first time ever, I managed to build and run the full test suite on windows 64 bits ! The code changes in scipy are small (~50 lines), for internal isnan and co functions in cephes (the windows linker is much stricter about multiple symbols with the same name).

There are still some issues, in particular depending on how I run the test suite, it crashes right away (when nose looks for tests). But when the test suite does run, it successfully pass 3000 unit tests, only fails for a couple (~20 tests), and some of them are relatively harmless. To build both numpy and scipy on windows amd64, I used the following combination:

- gcc : 4.4, snapshot 20090320

- binutils: 2.19.51

- mingw-w64: trunk@rev 692

I use the same versions for the cross compiler (linux->windows) and to build the native compiler from the cross-compiler. Two things need to be done:

- remove redundant pow function from mingwex (it is already available in the MS runtime)

- build the native compiler with -O0. Building with the usual optimization flags build a buggy native compiler (the gcc driver does not call as, resulting in a quite strange “foo.c file type not recognized”, because the driver then gives the foo.c to the linker directly instead of assembling it first).

Maybe scipy 0.7.1 + numpy 1.3.0 will be able to run on windows 64 bits :)

3 Responses to “Scipy on windows amd64”


  1. 1 Niko March 30, 2009 at 12:14

    Thank you for the work on this feature, I am really looking forward to use 64 bit NumPy under Vista64.

  2. 2 Jose April 4, 2009 at 23:32

    So, does this mean you feel a fully working x64 compile is close?

    I’ve been thinking long and hard about moving to windows x64. The main issue: working from home using RDP is doable, not so with X (too heavy over the network). I do simulation and need 8gb of memory -only in office computer-.

    If numpy worked, I’d be very happy.

    • 3 cournape April 5, 2009 at 17:54

      It is hard to give you a precise answer. If you build numpy with MS compilers, then it works well, but because of the fortran issue, you can’t build scipy.

      Numpy built with mingw compilers works well – when it works. I still have some crashes happening, depending on how I run numpy, which I have not been able to isolate; I am not sure yet whether this is a problem with python, numpy or the compilers.


Leave a Reply




a

 

March 2009
M T W T F S S
« Feb   Apr »
 1
2345678
9101112131415
16171819202122
23242526272829
3031