I have Fedora 16 with the atlas-sse3 package installed and used by numpy and scipy. All 3 packages are from the distribution's repository. My question is, if i download a source rpm of the Atlas library and compile it to fit my hardware better, do i need to compile numpy and scipy also against the new installed Atlas version?
Asked
Active
Viewed 152 times
1 Answers
0
On my computer I compiled SciPy using the newest lapack
[from here[(http://www.netlib.org/lapack/), which contains its own blas
library. I guess for atlas
the process will be similar:
- compile the
blas
library. Go toSRC
and run make - compile the
lapack
library. Renamemake.inc.example
tomake.inc
and edit it if necessary (the optimization flag -O2 should be there, and it can be changed to -O3 for the most optimized case). Runmake
Then, in the scipy source folder:
rename
site.cfg.example
tosite.cfg
and add this (the paths are in Windows format):[lapack] library_dirs = C:\Users\pfh-castro\Downloads\lapack-3.4.2 lapack_libs = lapack, tmglib [blas] library_dirs = C:\Users\pfh-castro\Downloads\lapack-3.4.2 blas_libs = refblas
run
python setup.py config --compiler=mingw32 build --compiler=mingw32 install
The build version will be in ./build
.
You should also have a look here.

Saullo G. P. Castro
- 56,802
- 26
- 179
- 234