[Numpy-discussion] I can't tell if Numpy is configured properly with show_config()

Charles R Harris charlesr.harris at gmail.com
Sat Jun 20 16:45:42 EDT 2015


On Sat, Jun 20, 2015 at 2:08 PM, Elliot Hallmark <Permafacture at gmail.com>
wrote:

> Sebastian, in the slow virtual-env, _dotblas.so isn't there.  I only have
> _dummy.so
>
> On Sat, Jun 20, 2015 at 3:02 PM, Elliot Hallmark <Permafacture at gmail.com>
> wrote:
>
>> Well, here is the question that started this all.  In the slow
>> environment, blas seems to be there and work well, but numpy doesn't use
>> it!
>>
>> In [1]: import time, numpy, scipy
>>
>> In [2]: from scipy import linalg
>>
>> In [3]: n=1000
>>
>> In [4]: A = numpy.random.rand(n,n)
>>
>> In [5]: B = numpy.random.rand(n,n)
>>
>> In [6]: then = time.time(); C=scipy.dot(A,B); print time.time()-then
>> 7.62005901337
>>
>> In [7]: begin = time.time(); C=linalg.blas.dgemm(1.0,A,B);print
>> time.time() - begin
>> 0.325305938721
>>
>> In [8]: begin = time.time(); C=linalg.blas.ddot(A,B);print time.time() -
>> begin
>> 0.0363020896912
>>
>
What numpy version?

<snip>

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20150620/5bbbdb7f/attachment.html>


More information about the NumPy-Discussion mailing list