Commit 9dd2342f authored by Matthew Brett's avatar Matthew Brett
Browse files

Allow for repeat builds of openblas

parent 37a08862
...@@ -44,7 +44,11 @@ function build_simple { ...@@ -44,7 +44,11 @@ function build_simple {
function build_openblas { function build_openblas {
if [ -e openblas-stamp ]; then return; fi if [ -e openblas-stamp ]; then return; fi
git clone https://github.com/xianyi/OpenBLAS if [ -d "OpenBLAS" ]; then
(cd OpenBLAS && git clean -fxd && git reset --hard)
else
git clone https://github.com/xianyi/OpenBLAS
fi
(cd OpenBLAS \ (cd OpenBLAS \
&& git checkout "v${OPENBLAS_VERSION}" \ && git checkout "v${OPENBLAS_VERSION}" \
&& make DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 > /dev/null \ && make DYNAMIC_ARCH=1 USE_OPENMP=0 NUM_THREADS=64 > /dev/null \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment