Re: [Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Nathaniel Smith
On Tue, Nov 26, 2013 at 2:55 PM, Peter Rennert wrote: > Btw, I just wanted to file a bug at PySide, but it might be alright at > their end, because I can do this: > > from PySide import QtGui > > image = QtGui.QImage('/home/peter/code/pyTools/sandbox/images/faceDemo.jpg') > > a = image.bits() > >

Re: [Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Peter Rennert
Btw, I just wanted to file a bug at PySide, but it might be alright at their end, because I can do this: from PySide import QtGui image = QtGui.QImage('/home/peter/code/pyTools/sandbox/images/faceDemo.jpg') a = image.bits() del image a # On 11/26/2013 09:37 PM, Peter Rennert wrote: > I prob

Re: [Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Robert Kern
On Tue, Nov 26, 2013 at 9:37 PM, Peter Rennert wrote: > > I probably did something wrong, but it does not work how I tried it. I > am not sure if you meant it like this, but I tried to subclass from > ndarray first, but then I do not have access to __array_interface__. Is > this what you had in mi

Re: [Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Nathaniel Smith
On Tue, Nov 26, 2013 at 1:37 PM, Peter Rennert wrote: > I probably did something wrong, but it does not work how I tried it. I > am not sure if you meant it like this, but I tried to subclass from > ndarray first, but then I do not have access to __array_interface__. Is > this what you had in mind

Re: [Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Peter Rennert
I probably did something wrong, but it does not work how I tried it. I am not sure if you meant it like this, but I tried to subclass from ndarray first, but then I do not have access to __array_interface__. Is this what you had in mind? from PySide import QtGui import numpy as np class myArra

Re: [Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Peter Rennert
Brilliant thanks, I will try out the "little class" approach. On 11/26/2013 08:03 PM, Nathaniel Smith wrote: > On Tue, Nov 26, 2013 at 11:54 AM, Peter Rennert > wrote: >> Hi, >> >> I as the title says, I am looking for a way to set in python the base of >> an ndarray to an object. >> >> Use case

Re: [Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Nathaniel Smith
On Tue, Nov 26, 2013 at 11:54 AM, Peter Rennert wrote: > Hi, > > I as the title says, I am looking for a way to set in python the base of > an ndarray to an object. > > Use case is porting qimage2ndarray to PySide where I want to do > something like: > > In [1]: from PySide import QtGui > > In [2]

[Numpy-discussion] PyArray_BASE equivalent in python

2013-11-26 Thread Peter Rennert
Hi, I as the title says, I am looking for a way to set in python the base of an ndarray to an object. Use case is porting qimage2ndarray to PySide where I want to do something like: In [1]: from PySide import QtGui In [2]: image = QtGui.QImage('/home/peter/code/pyTools/sandbox/images/faceDem

Re: [Numpy-discussion] numpy vbench-marking, compiler comparison

2013-11-26 Thread Julian Taylor
there isn't that much code in numpy that profits from modern x86 instruction sets, even the simple arithmetic loops are strided and thus unvectorizable by the compiler. They have been vectorized manually in 1.8 using sse2 and it is on my todo list to add runtime detected avx support. On 26.11.201

Re: [Numpy-discussion] UNSUBSCRIBE Re: MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread Paul Hobson
We can't manage your account for you. Click here: http://mail.scipy.org/mailman/listinfo/numpy-discussion to unsunscribe yourself. -paul On Tue, Nov 26, 2013 at 5:42 AM, regikeyz . wrote: > UNSUBSCRIBE > > > On 26 November 2013 13:37, Frédéric Bastien wrote: > >> We have such benchmark in Thea

[Numpy-discussion] UNSUBSCRIBE Re: MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread regikeyz .
UNSUBSCRIBE On 26 November 2013 13:37, Frédéric Bastien wrote: > We have such benchmark in Theano: > > https://github.com/Theano/Theano/blob/master/theano/misc/check_blas.py#L177 > > HTH > > Fred > > On Tue, Nov 26, 2013 at 7:10 AM, Dinesh Vadhia > wrote: > > Jerome, Thanks for the swift respo

Re: [Numpy-discussion] MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread Frédéric Bastien
We have such benchmark in Theano: https://github.com/Theano/Theano/blob/master/theano/misc/check_blas.py#L177 HTH Fred On Tue, Nov 26, 2013 at 7:10 AM, Dinesh Vadhia wrote: > Jerome, Thanks for the swift response and tests. Crikey, that is a > significant difference at first glance. Would it

Re: [Numpy-discussion] MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread Dinesh Vadhia
Jerome, Thanks for the swift response and tests. Crikey, that is a significant difference at first glance. Would it be possible to compare a BLAS computation eg. matrix-vector or matrix-matrix calculation? Thx!___ NumPy-Discussion mailing list NumPy-D

Re: [Numpy-discussion] MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread regikeyz .
HI GUYS, PLEASE COULD YOU UNSUBSCRIBE ME FROM THESE EMAILS I cant find the link on the bottom Thank-you On 26 November 2013 10:42, Jerome Kieffer wrote: > On Tue, 26 Nov 2013 01:02:40 -0800 > "Dinesh Vadhia" wrote: > > > Probably a loaded question but is there a significant performance > diff

Re: [Numpy-discussion] MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread Jerome Kieffer
On Tue, 26 Nov 2013 01:02:40 -0800 "Dinesh Vadhia" wrote: > Probably a loaded question but is there a significant performance difference > between using MKL (or OpenBLAS) on multi-core cpu's and cuBLAS on gpu's. > Does anyone have recent experience or link to an independent benchmark? > Usin

[Numpy-discussion] MKL + CPU, GPU + cuBLAS comparison

2013-11-26 Thread Dinesh Vadhia
Probably a loaded question but is there a significant performance difference between using MKL (or OpenBLAS) on multi-core cpu's and cuBLAS on gpu's. Does anyone have recent experience or link to an independent benchmark? ___ NumPy-Discussion mailing

Re: [Numpy-discussion] numpy vbench-marking, compiler comparison

2013-11-26 Thread Daπid
Have you tried on an Intel CPU? I have both a i5 quad core and an i7 octo core where I could run it over the weekend. One may expect some compiler magic taking advantage of the advanced features, specially the i7. /David On Nov 25, 2013 8:16 PM, "Julian Taylor" wrote: > On 25.11.2013 02:32, Yaro