-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-compressor.sh
More file actions
52 lines (45 loc) · 1.36 KB
/
install-compressor.sh
File metadata and controls
52 lines (45 loc) · 1.36 KB
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
CUDA_ARCH="75;80;86;89;90"
if [ ! -z "$1" ]; then
CUDA_ARCH="$1"
fi
echo "installing PRISM..."
cd PRISM
mkdir build
cd build
cmake .. -D CMAKE_CUDA_ARCHITECTURES="$CUDA_ARCH"
make -j
cd ../..
echo "installing cuSZHi..."
cp maxerr.thrust.inl cuSZ-Hi/src/stat/detail/maxerr.thrust.inl # for compatibility with newer CUDA versions
cp compare.thrust.inl cuSZ-Hi/src/stat/detail/compare.thrust.inl # for compatibility with newer CUDA versions
cd cuSZ-Hi
mkdir build
cd build
cmake .. -D CMAKE_CUDA_ARCHITECTURES="$CUDA_ARCH"
make -j
cd ../..
echo "installing cuSZp2..."
cd cuSZp
git checkout 671d5f438f452f30192d333f206f3caa742f6350
cd ..
cmake -S cuSZp -B cuSZp/build \
-D CMAKE_CUDA_ARCHITECTURES="$CUDA_ARCH" \
-D CMAKE_BUILD_TYPE=Release
cmake --build cuSZp/build -- -j
echo "installing cuZFP..."
cp shared_time.h cuZFP/src/cuda_zfp/shared.h # for printing time info
cmake -S cuZFP -B cuZFP/build \
-D ZFP_WITH_CUDA=on \
-D CUDA_SDK_ROOT_DIR=$(dirname $(which nvcc))/.. \
-D CMAKE_CUDA_ARCHITECTURES="$CUDA_ARCH" \
-D CMAKE_BUILD_TYPE=Release
cmake --build cuZFP/build -- -j
echo "installing cuSZ..."
cmake -S cuSZ -B cuSZ/build \
-D PSZ_BACKEND=cuda \
-D PSZ_BUILD_EXAMPLES=off \
-D CMAKE_CUDA_ARCHITECTURES="$CUDA_ARCH" \
-D CMAKE_BUILD_TYPE=Release
cmake --build cuSZ/build -- -j
echo "installing HP-MDR..."
bash install_mdr.sh $1