Re: [Numpy-discussion] Incompatability of svn 3868 distutils with v10.0 Intel compilers and MKL9.1

2007-06-14 Thread Matthieu Brucher
cc_exe = 'icc -g -fomit-frame-pointer -xT -fast' Just some comments on that : - in release mode, you should not use '-g', it slows down the execution of your program - -fast uses -xT for the moment ;) - -fomit-pointer is the default as soon as there is no -O0 or -g Matthieu _

Re: [Numpy-discussion] Incompatability of svn 3868 distutils with v10.0 Intel compilers and MKL9.1

2007-06-14 Thread rex
Matthieu Brucher <[EMAIL PROTECTED]> [2007-06-14 00:39]: > cc_exe = 'icc -g -fomit-frame-pointer -xT -fast' > > > > Just some comments on that : > - in release mode, you should not use '-g', it slows down the execution of > your I didn't look it up; it was carried over from an example. I a

[Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-14 Thread Matthieu Brucher
Hi, I've been trying to use the Intel C Compiler for some extensions, and as a matter of fact, only numpy.distutils seems to support it... (hope that the next version of setuptools will...) Is it possible to change the compiler command line options in the commandline or in a .cfg file ? For the m

[Numpy-discussion] randint for long type (permutations)

2007-06-14 Thread Will Woods
I want to choose a subset of all possible permutations of a sequence of length N, with each element of the subset unique. This is then going to be scattered across multiple machines using mpi. Since there is a one-to-one mapping between the integers in the range 0 <= x < N! and the possible pe

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-14 Thread Kevin Jacobs <[EMAIL PROTECTED]>
Call randint until you get enough bits of entropy to for a long with the appropriate number of bits. def randwords(n): result = 0L for i in range(n): result = (result<<32) | randint(0,2<<32-1) return result -Kevin On 6/14/07, Will Woods <[EMAIL PROTECTED]> wrote: I want to choose a su

Re: [Numpy-discussion] masked arrays and record arrays

2007-06-14 Thread John Hunter
On 6/13/07, Pierre GM <[EMAIL PROTECTED]> wrote: > Have you tried mrecords, in the alternative maskedarray package available on > the scipy SVN ? It should support masked fields (by opposition to masked > records in numpy.core.ma). If not, would you mind giving a test and letting > me know your su

[Numpy-discussion] numpy with python < 2.3?

2007-06-14 Thread Joël Schaerer
Hi there, I'm trying to install numpy on a system I don't control, which has python 2.2.3. When I run python setup.py build, I get: python setup.py build Running from numpy source directory. Traceback (most recent call last): File "setup.py", line 91, in ? setup_package() File "setup.py",

Re: [Numpy-discussion] Incompatability of svn 3868 distutils with v10.0 Intel compilers and MKL9.1

2007-06-14 Thread Albert Strasheim
Hello all On Thu, 14 Jun 2007, Matthieu Brucher wrote: > > > >cc_exe = 'icc -g -fomit-frame-pointer -xT -fast' > > Just some comments on that : > - in release mode, you should not use '-g', it slows down the execution of > your program Do you have a reference that explains this in more detail?

Re: [Numpy-discussion] Incompatability of svn 3868 distutils with v10.0 Intel compilers and MKL9.1

2007-06-14 Thread David M. Cooke
On Thu, Jun 14, 2007 at 04:17:04PM +0200, Albert Strasheim wrote: > Hello all > > On Thu, 14 Jun 2007, Matthieu Brucher wrote: > > > > > > >cc_exe = 'icc -g -fomit-frame-pointer -xT -fast' > > > > Just some comments on that : > > - in release mode, you should not use '-g', it slows down the exec

Re: [Numpy-discussion] Incompatability of svn 3868 distutils with v10.0 Intel compilers and MKL9.1

2007-06-14 Thread Matthieu Brucher
Do you have a reference that explains this in more detail? I thought -g just added debug information without changing the generated code? My understanding was that there was debug info added - well, in release mode, it is not worth it, impossible to debug -, and these added data can impact per

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-14 Thread Robert Kern
Will Woods wrote: > I want to choose a subset of all possible permutations of a sequence of > length N, with each element of the subset unique. This is then going to > be scattered across multiple machines using mpi. Since there is a > one-to-one mapping between the integers in the range 0 <= x

Re: [Numpy-discussion] numpy with python < 2.3?

2007-06-14 Thread Robert Kern
Joël Schaerer wrote: > Hi there, > > I'm trying to install numpy on a system I don't control, which has > python 2.2.3. I'm sorry, but numpy does require Python 2.3. There is no workaround. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is mad

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-14 Thread Anne Archibald
On 14/06/07, Will Woods <[EMAIL PROTECTED]> wrote: > I want to choose a subset of all possible permutations of a sequence of > length N, with each element of the subset unique. This is then going to > be scattered across multiple machines using mpi. Since there is a > one-to-one mapping between th

Re: [Numpy-discussion] numpy with python < 2.3?

2007-06-14 Thread Steven H. Rogers
On Thu, June 14, 2007 08:22, Joël Schaerer wrote: > > I'm trying to install numpy on a system I don't control, which has > python 2.2.3. When I run python setup.py build, I get: > Perhaps you can install Python in a local direcory, or perhaps a USB drive? # Steve _

Re: [Numpy-discussion] numpy with python < 2.3?

2007-06-14 Thread Joël Schaerer
Ok, thanks a lot for answering anyways. Maybe this should be documented somewhere? (I don't doubt that it already is, but I looked around for a moment and didn't find it) joel On Thu, 2007-06-14 at 10:58 -0500, Robert Kern wrote: > Joël Schaerer wrote: > > Hi there, > > > > I'm trying to install

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-14 Thread Christian Marquardt
Hi, I think the default for the standard python distutils is to use the compiler and the compiler settings for the C compiler that were used to build Python itself. There might be ways to specify other compilers; but if you have a shared python library build with one compiler and modules build wit

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-14 Thread Matthieu Brucher
I think the default for the standard python distutils is to use the compiler and the compiler settings for the C compiler that were used to build Python itself. There might be ways to specify other compilers; but if you have a shared python library build with one compiler and modules build with a

Re: [Numpy-discussion] numpy with python < 2.3?

2007-06-14 Thread Joël Schaerer
On Thu, 2007-06-14 at 10:33 -0600, Steven H. Rogers wrote: > On Thu, June 14, 2007 08:22, Joël Schaerer wrote: > > > > I'm trying to install numpy on a system I don't control, which has > > python 2.2.3. When I run python setup.py build, I get: > > > > Perhaps you can install Python in a local dir

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-14 Thread Charles R Harris
On 6/14/07, Will Woods <[EMAIL PROTECTED]> wrote: I want to choose a subset of all possible permutations of a sequence of length N, with each element of the subset unique. This is then going to be scattered across multiple machines using mpi. Since there is a one-to-one mapping between the inte

[Numpy-discussion] problem setting O type for datetime field in record arrays

2007-06-14 Thread John Hunter
I can create a record array with datetime types using fromrecords if I don't specify a dtype and let numpy determine the dtype. But when I try and set the dtype at record array creation time, I get the error below In [17]: import numpy In [18]: import datetime In [19]: dt = datetime.datetime I

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-14 Thread David Cournapeau
Matthieu Brucher wrote: > > I think the default for the standard python distutils is to use the > compiler and the compiler settings for the C compiler that were > used to > build Python itself. There might be ways to specify other > compilers; but > if you have a shared pyt

Re: [Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

2007-06-14 Thread Matthieu Brucher
It is possible to mix object code, but not runtime, which is the problem AFAIK. VS2003 and VS2005 have different C runtimes (msvcrt7.1.dll against msvcrt8.dll). The problem is (at least for me, who just go through the pain for windows users :) ) that VS2003 is not available anymore for free...