Last active
December 7, 2016 13:04
-
-
Save sato-cloudian/a42892c4235e82c27d0d to your computer and use it in GitHub Desktop.
OpenBlas Installation on CentOS 6.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| set -e | |
| echo "checking out OpenBLAS..." | |
| git clone https://github.com/xianyi/OpenBLAS.git | |
| cd OpenBLAS | |
| git checkout v0.2.15 | |
| echo "installing newer binutils..." | |
| # see https://github.com/xianyi/OpenBLAS/wiki/faq#binutils | |
| wget http://sourceforge.net/projects/slurm-roll/files/addons/6.1.1/rpms/pb-binutils224-2.24-1.x86_64.rpm | |
| sudo yum localinstall pb-binutils224-2.24-1.x86_64.rpm | |
| export PATH=/opt/pb/binutils-2.24/bin:$PATH | |
| echo "compiling..." | |
| make | |
| echo "installing on /opt/OpenBLAS" | |
| sudo make PREFIX=/opt/OpenBLAS install | |
| echo "copying libraries" | |
| sudo cp /opt/OpenBLAS/lib/libopenblas.so /opt/OpenBLAS/lib/liblapack.so.3 | |
| sudo cp /opt/OpenBLAS/lib/libopenblas.so /opt/OpenBLAS/lib/libblas.so.3 | |
| echo "successfully installed OpenBLAS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment