update install_openblas.sh (#3876)

pull/3882/head
Wang Xin 6 days ago committed by GitHub
parent 5f40262a96
commit e75a3987fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,18 +19,18 @@ fi
tarball=OpenBLAS-$OPENBLAS_VERSION.tar.gz tarball=OpenBLAS-$OPENBLAS_VERSION.tar.gz
rm -rf xianyi-OpenBLAS-* OpenBLAS OpenBLAS-*.tar.gz rm -rf OpenMathLib-OpenBLAS-* OpenBLAS OpenBLAS-*.tar.gz
if [ -d "$DOWNLOAD_DIR" ]; then if [ -d "$DOWNLOAD_DIR" ]; then
cp -p "$DOWNLOAD_DIR/$tarball" . cp -p "$DOWNLOAD_DIR/$tarball" .
else else
url=$($WGET -qO- "https://api.github.com/repos/xianyi/OpenBLAS/releases/tags/v${OPENBLAS_VERSION}" | python -c 'import sys,json;print(json.load(sys.stdin)["tarball_url"])') url=$($WGET -qO- "https://api.github.com/repos/OpenMathLib/OpenBLAS/releases/tags/v${OPENBLAS_VERSION}" | python -c 'import sys,json;print(json.load(sys.stdin)["tarball_url"])')
test -n "$url" test -n "$url"
$WGET -t3 -nv -O $tarball "$url" $WGET -t3 -nv -O $tarball "$url"
fi fi
tar xzf $tarball tar xzf $tarball
mv xianyi-OpenBLAS-* OpenBLAS mv OpenMathLib-OpenBLAS-* OpenBLAS
make PREFIX=$(pwd)/OpenBLAS/install USE_LOCKING=1 USE_THREAD=0 -C OpenBLAS all install make PREFIX=$(pwd)/OpenBLAS/install USE_LOCKING=1 USE_THREAD=0 -C OpenBLAS all install
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then

Loading…
Cancel
Save