-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathlibpressio_install.sh
executable file
·113 lines (97 loc) · 3.41 KB
/
libpressio_install.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#!/usr/bin/env bash
if ! which cmake &> /dev/null
then
echo "cmake must be installed"
exit 1
fi
rootDir=`pwd`
#git clone https://github.com/CODARcode/MGARD
#cd MGARD
#git checkout b67a0ac963587f190e106cc3c0b30773a9455f7a
#cd ..
git clone http://github.com/disheng222/SZ
git clone http://github.com/LLNL/zfp
git clone https://github.com/szcompressor/SZauto.git
git clone https://github.com/facebook/zstd
git clone https://github.com/szcompressor/SZ
git clone https://github.com/LLNL/zfp
git clone https://github.com/robertu94/std_compat
git clone https://github.com/CODARcode/libpressio
git clone https://github.com/LLNL/fpzip.git
git clone https://github.com/disheng222/BitGroomingZ.git
git clone https://github.com/disheng222/digitroundingZ.git
export PKG_CONFIG_PATH=$rootDir/compressor-install/lib/pkgconfig/:$PKG_CONFIG_PATH
mkdir -p zstd/builddir
pushd zstd/builddir
cmake ../build/cmake/ -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
make -j 4
make install
popd
mkdir -p SZ/build
pushd SZ/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
make -j 4
make install
popd
ln -s $rootDir/compressor-install/ $rootDir/SZ/sz-install
mkdir -p zfp/build
pushd zfp/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF
make -j 4
make install
popd
ln -s $rootDir/compressor-install/ $rootDir/zfp/zfp-install
# mkdir -p MGARD/build
# pushd MGARD/build
# cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
# make -j 4
# make install
# popd
# ln -s $rootDir/compressor-install/ $rootDir/MGARD/MGARD-install
mkdir -p std_compat/build
pushd std_compat/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_TESTING=OFF
make -j 4
make install
popd
ln -s $rootDir/compressor-install/ $rootDir/std_compat/
#install fpzip
#add fpzip through manageCompressor
mkdir -p fpzip/build
pushd fpzip/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
make -j 4
make install
popd
ln -s $rootDir/compressor-install/ $rootDir/fpzip/fpzip-install
#install BitGrooming
mkdir -p BitGroomingZ/build
pushd BitGroomingZ/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
make -j 4
make install
popd
ln -s $rootDir/compressor-install/ $rootDir/BitGroomingZ/BitGroomingZ-install
#install digit rounding
mkdir -p digitroundingZ/build
pushd digitroundingZ/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
make -j 4
make install
popd
ln -s $rootDir/compressor-install/ $rootDir/digitroundingZ/digitroundingZ-install
#install SZauto
mkdir -p SZauto/build
pushd SZauto/build
cmake .. -DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DCMAKE_INSTALL_LIBDIR=lib
make -j 4
make install
popd
ln -s $rootDir/compressor-install/ $rootDir/SZauto/SZauto-install
LIBPRESSIO_CMAKE_ARGS="-DCMAKE_INSTALL_PREFIX=$rootDir/compressor-install -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_LIBDIR=lib"
mkdir -p libpressio/build
pushd libpressio/build
cmake .. $LIBPRESSIO_CMAKE_ARGS -DSZ_DIR:PATH=$rootDir/compressor-install/share/SZ/cmake -DLIBPRESSIO_HAS_SZ=ON -DLIBPRESSIO_HAS_FPZIP=ON -DLIBPRESSIO_HAS_ZFP=ON -DLIBPRESSIO_HAS_MGARD=OFF -DLIBPRESSIO_HAS_BIT_GROOMING=ON -DLIBPRESSIO_HAS_SZ_AUTO=ON -DLIBPRESSIO_HAS_DIGIT_ROUNDING=ON
make -j 4
make install
popd