Skip to content

Instantly share code, notes, and snippets.

@sato-cloudian
Last active December 7, 2016 13:04
Show Gist options
  • Select an option

  • Save sato-cloudian/a42892c4235e82c27d0d to your computer and use it in GitHub Desktop.

Select an option

Save sato-cloudian/a42892c4235e82c27d0d to your computer and use it in GitHub Desktop.
OpenBlas Installation on CentOS 6.5
#!/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