forked from Argonne-National-Laboratory/PIPS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_3rdparty.sh
executable file
·46 lines (39 loc) · 1.04 KB
/
build_3rdparty.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
## This script should help to bootstrap PIPS and build thirdparty libraries.
# Number of threads used to build
NUMTHREADS=4
BUILD_WITH_MA27=$1
export CC='gcc'
export CFLAGS='-O3'
export CXXFLAGS='-O3'
# exit if a command fails
set -e
cd ./ThirdPartyLibs/ASL
./wgetASL.sh $NUMTHREADS
cd ../..
cd ./ThirdPartyLibs/CBC
./wgetCBC.sh $NUMTHREADS
cd ../..
echo $BUILD_WITH_MA27
if [ $BUILD_WITH_MA27 -eq "0" ]; then
cd ./ThirdPartyLibs/MA57
if [ ! -f "ma57-3.9.0.tar.gz" ]; then
echo "ERROR: Please provide ma57 library from http://www.hsl.rl.ac.uk/catalogue/ma57.html and put it in ThirdPartyLibs/MA57 folder."
exit 1
fi
./installMa57.sh $NUMTHREADS
cd ../..
fi
if [ $BUILD_WITH_MA27 -eq "1" ]; then
cd ./ThirdPartyLibs/MA27
if [ ! -f "ma27-1.0.0.tar.gz" ]; then
echo "ERROR: Please provide ma27 library from http://www.hsl.rl.ac.uk/catalogue/ma27.html and put it in ThirdPartyLibs/MA27 folder."
exit 1
fi
./installMa27.sh $NUMTHREADS
cd ../..
fi
cd ./ThirdPartyLibs/METIS
./wgetMETIS.sh $NUMTHREADS
cd ../..
exit 0