Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-02-02 Thread David Cournapeau
On Tue, Feb 3, 2009 at 2:23 AM, Hanni Ali wrote: > Hi David, > > I used free trials of the Intel and PGI compilers to try to compile an > external BLAS/LAPACK in conjunction with VS 2008. I also had no problems > getting the C code to compile, but couldn't get linking to work succesfully > with fo

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-02-02 Thread Hanni Ali
Hi David, I used free trials of the Intel and PGI compilers to try to compile an external BLAS/LAPACK in conjunction with VS 2008. I also had no problems getting the C code to compile, but couldn't get linking to work succesfully with fortran stuff. I would not be surprised if we could get a licen

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-02-02 Thread David Cournapeau
On Tue, Feb 3, 2009 at 12:28 AM, Mike Colonno wrote: > Hi folks ~ > > > > Any thoughts on the below? It is hard to say, but I suspect a problem in your BLAS/LAPACK because it fails on importing lapack_lite. Your error message is so generic that it does not give any useful

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-02-02 Thread Mike Colonno
Hi folks ~ Any thoughts on the below? I n searching the web I found some other references to " ImportError: DLL load failed: Invalid access to memory location" but none specific to Numpy. As an aside: will there be a Windows x64 binary distributed with the next release o

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-31 Thread Mike Colonno
Maybe I declared success too soon... The build / install of numpy seems to work (using MS C++ / Intel Fortran), but upon trying to import numpy I get: >>>from numpy import * Traceback (most recent call last): File "C:\", line 1, in File "C:\Python26\Lib\site-packages\numpy\__init__.py",

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-30 Thread Hanni Ali
I have been meaning to chip in but so far hadn't got to it so hear goes. In response to this particular issue I currently use numpy (1.2.1) built with msvc VS 2008 by simply commenting out these definitions in the numpy\core\src\umathmodule.c.src That works just fine and allows me to use the buil

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread David Cournapeau
On Fri, Jan 30, 2009 at 9:41 AM, Michael Colonno wrote: >This is the first failure in the build log: > > _configtest.c > _configtest.c(1): catastrophic error: could not open source file > "inttypes.h" > #include >^ > > compilation aborted for _configtest.c (code 4) >

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread Michael Colonno
This is the first failure in the build log: _configtest.c _configtest.c(1): catastrophic error: could not open source file "inttypes.h" #include ^ compilation aborted for _configtest.c (code 4) failure. I don't have this file anywhere on my system; it appears to b

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread Michael Colonno
OK, I'm on the cusp of success now. I updated to the most recent code and get to a sequence of errors surround math functions. This must be due to linking the MKL libs. I tried various combinations (including those recommended by the MKL docs) but could not get around the errors. Looks like a mi

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread David Cournapeau
On Fri, Jan 30, 2009 at 2:43 AM, Michael Colonno wrote: >Not sure if it's a VS thing since I get different compile errors with > either the MS or Intel C compiler under the same environment (Visual Studio > for x64 console). Let me start with a more basic question: I'm using the > package avai

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread Michael Colonno
Not sure if it's a VS thing since I get different compile errors with either the MS or Intel C compiler under the same environment (Visual Studio for x64 console). Let me start with a more basic question: I'm using the package available on SourceForge (1.2.1, 2008-10-29 14:36). If it can be conf

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread Matthieu Brucher
> numpy\core\src\umathmodule.c.src(64): error: expected an identifier > static float frexpf(float x, int * i) >^ > > numpy\core\src\umathmodule.c.src(64): error: expected a ")" > static float frexpf(float x, int * i) >^ > > numpy\core\src\umathmodule.c.src(65): e

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread Michael Colonno
OK, I think I have a much better understanding of how this all gets assembled now. I've got the build environment using both Intel compilers (C++ and Fortran) and linked to the Intel MKL. Using the Intel C compiler (icl.exe, more "gcc-like") as a replacement cl.exe (it supports the same options,

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread David Cournapeau
Michael Colonno wrote: >OK, some progress here. I have two questions: 1) Let's forget about > the Intel compiler(s) for the moment and focus on a standard Windows > build. Python 2.6 comes with two classes in distutils: msvccompiler.py > and msvc9compiler.py. In reading through these, it appear

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-29 Thread Michael Colonno
OK, some progress here. I have two questions: 1) Let's forget about the Intel compiler(s) for the moment and focus on a standard Windows build. Python 2.6 comes with two classes in distutils: msvccompiler.py and msvc9compiler.py. In reading through these, it appears msvc9compiler.py is ideally s

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-28 Thread David Cournapeau
On Thu, Jan 29, 2009 at 1:18 AM, Michael Colonno wrote: >I think this is doable; thankfully the Intel compilers on Windows and > Linux are very similar in behavior. The problem is that distutils does not abstract this kind of things: you have a CCompiler class, and a subclass Unix C Compiler,

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-28 Thread Michael Colonno
I think this is doable; thankfully the Intel compilers on Windows and Linux are very similar in behavior. The exact same build scripts *should*work fine provided the file extensions (.o --> .obj) and flags (-L, etc.) are modified. In terms of syntax this should be an easy thing to do (it was wit

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-28 Thread Michael Colonno
On Wed, Jan 28, 2009 at 1:06 AM, David Cournapeau < da...@ar.media.kyoto-u.ac.jp> wrote: > Michael Colonno wrote: > >Thanks for your response. I manually edited one of the python files > > (ccompiler.py I think) to change icc.exe to icl.exe. (This is a trick > > I used to use to get F2PY to co

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-28 Thread David Cournapeau
Michael Colonno wrote: >Thanks for your response. I manually edited one of the python files > (ccompiler.py I think) to change icc.exe to icl.exe. (This is a trick > I used to use to get F2PY to compile on Windows platforms.) Since icl > is a drop-in replacement for the visual studio compiler /

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-27 Thread Michael Colonno
Thanks for your response. I manually edited one of the python files (ccompiler.py I think) to change icc.exe to icl.exe. (This is a trick I used to use to get F2PY to compile on Windows platforms.) Since icl is a drop-in replacement for the visual studio compiler / linker, I'd like to edit the p

Re: [Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-27 Thread David Cournapeau
Michael Colonno wrote: >Hi ~ > >I'm trying to build numpy (hopefully eventually scipy with the same > setup) with the Intel compilers (and Intel MKL) on the WinXP 64-bit > platform. Finding / linking to the Intel MKL seems to be successful > (see below) Unfortunately, at this stage, it doe

[Numpy-discussion] Building on WinXP 64-bit, Intel Compilers

2009-01-27 Thread Michael Colonno
Hi ~ I'm trying to build numpy (hopefully eventually scipy with the same setup) with the Intel compilers (and Intel MKL) on the WinXP 64-bit platform. Finding / linking to the Intel MKL seems to be successful (see below) but I have an issue with the settings defined somewhere in the various