| META TOPICPARENT | name="CemITSystem" |
Contents
Numpy and Scipy
Download files
- AMD.tar.gz
- CHOLMOD.tar.gz
- UFconfig.tar.gz
- UMFPACK.tar.gz
- atlas3.8.3.tar.gz
- lapack-3.1.1.tgz
- fftw-3.2.1.tar.gz
- numpy-1.0.4.tar.gz
- scipy-0.6.0.tar.gz
Prepare for installation
- do this as yourself (not root)
- sudo chmod 777 /usr/local/src -- so that you can compile here
- prepare a place to put the files:
mkdir -p local/lib
mkdir local/include
- it is important that gfortran is used to compile the fortran portions, so g777 must be removed from the path for the rest of the install
sudo mv /usr/bin/g77 /usr/bin/g77_TEMPORARY
compile lapack
cd /usr/local/src
tar xvzf ~/lapack-3.1.1.tgz
cd lapack-3.1.1/
cp INSTALL/make.inc.gfortran make.inc
- edit make.inc as follows:
OPTS = -O2 -fPIC
NOOPT = -O0 -fPIC
cd src
make
- output file is /usr/local/src/lapack-3.1.1/lapack_LINUX.a
compile atlas
- NOTE -- atlas will not compile if CPU throttling is turned on
- to turn off, reboot, go to BIOS, and disable AMD POWERNOW
- extract atlas
cd /usr/local/src
tar xvzf ~/atlas3.8.3.tar.gz
cd ATLAS
mkdir ATLAS_X86-64
cd ATLAS_X86-64
../configure -Fa alg -fPIC --with-netlib-lapack=/usr/local/src/lapack-3.1.1/lapack_LINUX.a
make
cd lib
make shared # for sequential libraries
make ptshared # for threaded libraries
cp * /home/rice/local/lib/.
cp ../include/* /home/rice/local/include/.
compile fftw3
- extract and install (needs to be put into /usr/local/lib)
./configure --enable-sse2 --enable-threads --with-combined-threads CFLAGS="-O3 -fomit-frame-pointer -fstrict-aliasing -ffast-math -pthread -fPIC -m64" FFLAGS="-g -O2 -fPIC -m64" CXXFLAGS="-g -O2 -fPIC -m64"
make
sudo make install
compile UMFPACK, AMD,CHOLMOD,UFconfig
- these must all be done within one directory
cd /usr/local/src
mkdir umf
cd umf
tar xvzf ~/AMD.tar.gz
tar xvzf ~/CHOLMOD.tar.gz
tar xvzf ~/UMFPACK.tar.gz
tar xvzf ~/UFconfig.tar.gz
- now need to edit config file so it compiles with right flags and uses newly-created blas and atlas libraries
cd UFconfig
- edit UFconfig.mk to read as follows:
CC = gcc
CFLAGS = -O3 -fexceptions -m64 -fPIC
F77 = gfortran
F77FLAGS = -O -m64 -fPIC
INSTALL_LIB = /home/rice/local/lib
INSTALL_INCLUDE = /home/rice/local/include
BLAS = -L/usr/lib64 -L/home/rice/local/lib -llapack -lf77blas -lcblas -latlas -lgfortran
LAPACK = -L/usr/lib64 -L/home/rice/local/lib -llapack -lf77blas -lcblas -latlas -lgfortran
METIS_PATH =
METIS =
CHOLMOD_CONFIG = -DNPARTITION
cd ../UMFPACK/
make library
make install
cd ../AMD
make install
cd ../UFconfig
cp UFconfig.h /home/rice/local/include/.
|