[Numpy-discussion] numpy and the ACML
Gideon Simpson
simpson at math.toronto.edu
Sat Jan 24 17:43:15 EST 2009
I've tried building CBLAS, which seems to run properly by itself, but
numpy is still having difficulty. I've got the following in my
site.cfg:
[blas_opt]
library_dirs = /usr/local/nonsystem/simpson/CBLAS/lib/LINUX:/usr/local/
nonsystem/simpson/acml4.2.0/gfortran64/lib
include_dirs = /usr/local/nonsystem/simpson/CBLAS/include:/usr/local/
nonsystem/simpson/acml4.2.0/gfortran64/include
libraries = cblas, acml
[lapack_opt]
library_dirs = /usr/local/nonsystem/simpson/CBLAS/lib/LINUX:/usr/local/
nonsystem/simpson/acml4.2.0/gfortran64/lib
include_dirs = /usr/local/nonsystem/simpson/CBLAS/include:/usr/local/
nonsystem/simpson/acml4.2.0/gfortran64/include
libraries = cblas, acml
I also created a symbolic link in /usr/local/nonsystem/simpson/CBLAS/
lib/LINUX, from cblas_LINUX.a to libcblas.a.
Is there an easier way to check if numpy is locating the libs other
than doing python setup.py build, and looking at the output?
-gideon
On Jan 24, 2009, at 4:05 PM, Pauli Virtanen wrote:
> Sat, 24 Jan 2009 15:26:17 -0500, Gideon Simpson wrote:
>
>> Nadav-
>>
>> That doesn't quite seem to work for me. I added:
>>
>> [blas_opt]
>> library_dirs = /usr/local/nonsystem/simpson/acml4.2.0/gfortran64/lib
>> include_dirs = /usr/local/nonsystem/simpson/acml4.2.0/gfortran64/
>> include
>> libraries = acml
>>
>> [lapack_opt]
>> library_dirs = /usr/local/nonsystem/simpson/acml4.2.0/gfortran64/lib
>> include_dirs = /usr/local/nonsystem/simpson/acml4.2.0/gfortran64/
>> include
>> libraries = acml
>>
>> to my site.cfg with no luck. Somewhere else, people indicated that
>> the
>> ACML lacked a CBLAS which was necessary to make this work.
>
> Yep, IIRC you needed also CBLAS. (I think I got Numpy & Scipy linked
> against ACML at some point, but it's been a while and I've forgotten
> details...) There's a CBLAS here:
>
> http://www.netlib.org/blas/blast-forum/cblas.tgz
>
> So, I think you need to compile it & link it with ACML, and add it in
> site.cfg with ACML libs.
>
> --
> Pauli Virtanen
>
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
More information about the NumPy-Discussion
mailing list