Skip to content

Instantly share code, notes, and snippets.

@gerigk
Created June 3, 2012 13:49
Show Gist options
  • Save gerigk/2863553 to your computer and use it in GitHub Desktop.
Save gerigk/2863553 to your computer and use it in GitHub Desktop.
Build ATLAS for EC2 EMR
bucketname="yourbucketname"
cd /home/hadoop
wget http://www.netlib.org/lapack/lapack-3.4.1.tgz
wget http://downloads.sourceforge.net/project/math-atlas/Developer%20%28unstable%29/3.9.76/atlas3.9.76.tar.bz2
tar -vxf atlas3.9.76.tar.bz2
cd ATLAS
mkdir build
cd build
################################## -t 2 means 2 threads. depending on the ec2 instance you can choose more threads 14
### V 448 means SSE1/2/3 support. A14 means x86SSE364SSE2 architecture. check the documentation for more information
### if you run smaller instances you may get 32 bit machines. in this case you need to build -b 32, too and install the
### appropriate version on run time.
../configure -b 64 -V 448 -A 14 -t 2 --with-netlib-lapack-tarfile=/home/$USER/lapack-3.4.1.tgz --shared
make
make check
make time
cd ..
cd ..
tar -czf ATLAS.tar.gz ATLAS
# upload this to s3://${bucketname}/emr_resources/libraries/ATLAS.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment