[Numpy-discussion] NumPy speed tests by NASA
Nils Wagner
nwagner at iam.uni-stuttgart.de
Thu Feb 24 14:32:10 EST 2011
On Thu, 24 Feb 2011 14:26:01 -0500
Frédéric Bastien <nouiz at nouiz.org> wrote:
> Hi,
>
> To print the information you can do:
>
> python -c 'import numpy;numpy.__config__.show()'
>
> You can access the info directly with:
>
> numpy.distutils.__config__.blas_opt_info['library_dirs']]
> numpy.distutils.__config__.blas_opt_info['libraries']]
> numpy.distutils.__config__.blas_opt_info['include_dirs']]
>
> This is what I do in Theano.
>
>Fred
You can do
>>> from numpy import show_config
>>> show_config()
atlas_threads_info:
libraries = ['lapack', 'ptf77blas', 'ptcblas',
'atlas']
library_dirs =
['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')]
language = f77
include_dirs =
['/home/nwagner/src/ATLAS3.8.2/include']
blas_opt_info:
libraries = ['ptf77blas', 'ptcblas', 'atlas']
library_dirs =
['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')]
language = c
include_dirs =
['/home/nwagner/src/ATLAS3.8.2/include']
atlas_blas_threads_info:
libraries = ['ptf77blas', 'ptcblas', 'atlas']
library_dirs =
['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')]
language = c
include_dirs =
['/home/nwagner/src/ATLAS3.8.2/include']
lapack_opt_info:
libraries = ['lapack', 'ptf77blas', 'ptcblas',
'atlas']
library_dirs =
['/home/nwagner/src/ATLAS3.8.2/mybuild/lib']
define_macros = [('ATLAS_INFO', '"\\"3.8.2\\""')]
language = f77
include_dirs =
['/home/nwagner/src/ATLAS3.8.2/include']
lapack_mkl_info:
NOT AVAILABLE
blas_mkl_info:
NOT AVAILABLE
mkl_info:
NOT AVAILABLE
>
> On Tue, Feb 22, 2011 at 7:05 PM, Eli Stevens (Gmail)
> <wickedgrey at gmail.com> wrote:
>> On Tue, Feb 22, 2011 at 1:48 PM, Gael Varoquaux
>> <gael.varoquaux at normalesup.org> wrote:
>>> Probably because the numpy binary that the author was
>>>using was compiled
>>> without a blas implementation, and just using numpy's
>>>internal
>>> lapack_lite. This is a common problem in real life.
>>
>> Is there an easy way to check from within numpy if it's
>>using a blas
>> iplementation or not?
>>
>> Thanks,
>> Eli
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
More information about the NumPy-Discussion
mailing list