Last active
February 29, 2016 20:37
-
-
Save matthew-brett/073ab2730b60eda80f3d to your computer and use it in GitHub Desktop.
This file contains 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 | |
# Build OpenBLAS library, numpy, scipy, run tests | |
# Run with: | |
# docker run --rm -v $PWD:/io ubuntu:latest /io/replicate_core2_fail_ubuntu.sh | |
set -e | |
apt-get update | |
apt-get install -y build-essential gfortran git python2.7 python2.7-dev python-pip | |
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH | |
git clone https://github.com/xianyi/OpenBLAS | |
cd OpenBLAS | |
git clean -fxd | |
make DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 && make PREFIX=/usr/local/ install | |
pip install "cython==0.22.1" nose | |
pip install "numpy==1.10.4" | |
pip install "scipy==0.17.0" | |
OPENBLAS_CORETYPE=Core2 python -c 'import scipy.linalg; scipy.linalg.test()' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment