Instructions for building and installing the Automatically Tune Linear Algebra Software (ATLAS)
- Note
- As of 2017-Sep-1 I am finding ATLAS to be difficult to install on the latest Intel CPUs, because it is difficult to turn off frequency scaling. I have switched to using the Intel MKL.
Folow these steps to build an ATLAS based BLAS and Lapack library.
- download, but do not unpack, the latest LAPACK library from http://www.netlib.org/lapack/
- download ATLAS (http://math-atlas.sourceforge.net/), unpack. It's a good idea to rename it to ATLASX.XX.XX. In the ATLASX.XX.XX directory, make a 'LINUX' directory, or whatever seems like a good name for your system.
- Turn off frequency scaling:
- Ubuntu:
- cpufreq-info --> note that it references the ondemand governor
- sudo vi /etc/default/cpufrequtils --> create if this file doesn't exist
- add: GOVERNOR="performance"
- sudo /etc/init.d/cpufrequtils restart
- cpufreq-info --> where before it referenced the ondemand governor, now it says performance
- CentOS:
- edit /etc/sysconfig/cpuspeed, setting GOVERNOR=performance
- restart cpuspeed: /etc/init.d/cpuspeed restart
- output should say "enabling performance cpu frequency scaling"
- Build Atlas: