[SciPy-Dev] Scipy linked to openblas

Victor Rodriguez vm.rod25 at gmail.com
Fri Aug 5 09:39:00 EDT 2016


thanks I will try this :)

On Thu, Aug 4, 2016 at 1:51 PM, Ralf Gommers <ralf.gommers at gmail.com> wrote:
>
>
> On Thu, Aug 4, 2016 at 6:42 PM, Victor Rodriguez <vm.rod25 at gmail.com> wrote:
>>
>> Hi
>>
>> I am part of the Clear Linux (clearlinux.org) OS project .  I wonder
>> how to link scipy to openblas. I have read in some parts that if numpy
>> is linked to openblas by default scipy gets linked. However I wonder
>> if there is any specific way to tell scipy to be linked agains
>> openblas library.
>
>
> Rename site.cfg.example to site.cfg and uncomment and edit the OpenBLAS
> section to point to the right paths. Here:
> https://github.com/scipy/scipy/blob/master/site.cfg.example#L103
>
> Ralf
>
>>
>>
>>
>> This is our config log
>>
>> gcc -pthread /tmp/tmp2f_4k1/tmp/tmp2f_4k1/source.o -L/usr/lib64
>> -lopenblas -o /tmp/tmp2f_4k1/a.out
>>   libraries openblas not found in ['', '']
>> Runtime library openblas was not found. Ignoring
>>   FOUND:
>>     libraries = ['openblas', 'openblas']
>>     library_dirs = ['/usr/lib64']
>>     language = c
>>     define_macros = [('HAVE_CBLAS', None)]
>>   FOUND:
>>     libraries = ['openblas', 'openblas']
>>     library_dirs = ['/usr/lib64']
>>     language = c
>>     define_macros = [('HAVE_CBLAS', None)]
>> Running from scipy source directory.
>> Splitting linalg.interpolative Fortran source files
>> blas_opt_info:
>> blas_mkl_info:
>>   libraries mkl,vml,guide not found in ['/usr/lib64', '/usr/lib',
>> '/usr/lib/']
>>   NOT AVAILABLE
>> openblas_info:
>>   libraries openblas not found in ['', '']
>> Runtime library openblas was not found. Ignoring
>>   libraries gfortran not found in ['', '']
>> Runtime library gfortran was not found. Ignoring
>>   FOUND:
>>     libraries = ['openblas', 'gfortran', 'openblas', 'gfortran']
>>     library_dirs = ['/usr/lib64']
>>     language = c
>>     define_macros = [('HAVE_CBLAS', None)]
>>   FOUND:
>>     libraries = ['openblas', 'gfortran', 'openblas', 'gfortran']
>>     library_dirs = ['/usr/lib64']
>>     language = c
>>     define_macros = [('HAVE_CBLAS', None)]
>>
>>
>> This is due to the fact that our openblas is linked to avx technology
>> and it boost the performance of math funtions form numpy and R:
>>
>>
>> https://01.org/blogs/2016/improving-python-performance-scientific-tools-and-libraries
>>
>> Thanks for the help
>>
>> Victor Rodriguez
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev at scipy.org
>> https://mail.scipy.org/mailman/listinfo/scipy-dev
>
>
>
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev at scipy.org
> https://mail.scipy.org/mailman/listinfo/scipy-dev
>



More information about the SciPy-Dev mailing list