install_OPENBLAS.sh 596 Bytes
Newer Older
1 2 3 4 5
#! /bin/bash

# check if the directory $1/OPENBLAS exist

if [ -d "$1/OPENBLAS" ]; then
6
  echo "OPENBLAS is already installed"
7 8 9
  exit 0
fi

incardon's avatar
incardon committed
10 11 12 13
wget http://ppmcore.mpi-cbg.de/upload/OpenBLAS-0.2.20.tar.gz
rm -rf OpenBLAS-0.2.20
tar -xf OpenBLAS-0.2.20.tar.gz
cd OpenBLAS-0.2.20
incardon's avatar
incardon committed
14

incardon's avatar
incardon committed
15 16
#wget http://ppmcore.mpi-cbg.de/upload/openblas.diff
#patch -p1 < openblas.diff
17 18 19

# configuration

incardon's avatar
incardon committed
20
make
21 22
mkdir $1/OPENBLAS
make install PREFIX=$1/OPENBLAS
incardon's avatar
incardon committed
23 24 25 26 27 28 29 30 31 32


# if empty remove the folder
if [ ! "$(ls -A $1/OPENBLAS)" ]; then
   rm -rf $1/OPENBLAS
else
   rm -rf OpenBLAS-0.2.19
   echo 1 > $1/OPENBLAS/version
   exit 0
fi
33