Re: [Numpy-discussion] numpy arrays, data allocation and SIMD alignement

2007-08-03 Thread David Cournapeau
> > > Here's a hack that google turned up: > > (1) Use static variables instead of dynamic (stack) variables > (2) Use in-line assembly code that explicitly aligns data > (3) In C code, use "*malloc*" to explicitly allocate variables > > Here is Intel's example of (2): > >

Re: [Numpy-discussion] numpy arrays, data allocation and SIMD alignement

2007-08-03 Thread Charles R Harris
On 8/3/07, Charles R Harris <[EMAIL PROTECTED]> wrote: > > > > On 8/3/07, David Cournapeau <[EMAIL PROTECTED]> wrote: > > > > Andrew Straw wrote: > > > Dear David, > > > > > > Both ideas, particularly the 2nd, would be excellent additions to > > numpy. > > > I often use the Intel IPP (Integrated Pe

Re: [Numpy-discussion] numpy arrays, data allocation and SIMD alignement

2007-08-03 Thread Charles R Harris
On 8/3/07, David Cournapeau <[EMAIL PROTECTED]> wrote: > > Andrew Straw wrote: > > Dear David, > > > > Both ideas, particularly the 2nd, would be excellent additions to numpy. > > I often use the Intel IPP (Integrated Performance Primitives) Library > > together with numpy, but I have to do all my

Re: [Numpy-discussion] numpy arrays, data allocation and SIMD alignement

2007-08-03 Thread David Cournapeau
Andrew Straw wrote: > Dear David, > > Both ideas, particularly the 2nd, would be excellent additions to numpy. > I often use the Intel IPP (Integrated Performance Primitives) Library > together with numpy, but I have to do all my memory allocation with the > IPP to ensure fastest operation. I th

Re: [Numpy-discussion] fourier with single precision

2007-08-03 Thread Warren Focke
On Thu, 2 Aug 2007, Warren Focke wrote: > > > On Thu, 2 Aug 2007, Lars Friedrich wrote: > >> versions to numpy? I am not a decent C-hacker, but if someone tells me, >> that this task is not *too* hard, I would start looking more closely at the >> code... > > It shouldn't be hard. fftpack.c wil

Re: [Numpy-discussion] numpy arrays, data allocation and SIMD alignement

2007-08-03 Thread Andrew Straw
Dear David, Both ideas, particularly the 2nd, would be excellent additions to numpy. I often use the Intel IPP (Integrated Performance Primitives) Library together with numpy, but I have to do all my memory allocation with the IPP to ensure fastest operation. I then create numpy views of the da

Re: [Numpy-discussion] numpy arrays, data allocation and SIMD alignement

2007-08-03 Thread Matthew Brett
Hi, >Following an ongoing discussion with S. Johnson, one of the developer > of fftw3, I would be interested in what people think about adding > infrastructure in numpy related to SIMD alignement (that is 16 bytes > alignement for SSE/ALTIVEC, I don't know anything about other archs). > The pr