Sunday, April 8, 2012

Building BLAS Library using Intel Compiler

The reference resource can be found from Building BLAS library from Netlib. The current latest version of BLAS is dated 14th April 2011.  

1. For Intel XE Compiler
# mkdir -p ~/src/
# cd ~/src/
# wget http://www.netlib.org/blas/blas.tgz
# tar -zxvf blas.tgz
# cd BLAS
# ifort -FI -w90 -w95 -cm -O3 -unroll -c *.f
# ar r libfblas.a *.o
# ranlib libfblas.a
# rm -rf *.o
# export BLAS=~/src/BLAS/libfblas.a
# mv ~/src/BLAS /usr/local/

For more information for gfortran and g77 fortran. See Building BLAS Library using Intel and GNU Compiler

No comments: