-
Notifications
You must be signed in to change notification settings - Fork 1
/
sourceme.sh
67 lines (54 loc) · 1.44 KB
/
sourceme.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
#!/bin/bash
HOME_DIR=$(pwd)
wget https://mvapich.cse.ohio-state.edu/download/mvapich/osu-micro-benchmarks-7.0.1.tar.gz
tar -xzf osu-micro-benchmarks-7.0.1.tar.gz
rm osu-micro-benchmarks-7.0.1.tar.gz
cd osu-micro-benchmarks-7.0.1/
./configure CC=cc CXX=mpic++
cd c/mpi/collective/
make
cp ./osu_allreduce $HOME_DIR/osu_allreduce_float
make clean
cp $HOME_DIR/osu_patch/osu_allreduce.c ./
make
cp osu_allreduce $HOME_DIR/osu_allreduce_int
cd $HOME_DIR
rm -rf osu-micro-benchmarks-7.0.1
cd dnn-proxies/
mpic++ ./gpt3.cpp -O3 -ffast-math -o gpt3
mpic++ ./dlrm.cpp -O3 -ffast-math -o dlrm
mpic++ ./cosmoflow.cpp -O3 -ffast-math -o cosmoflow
mpic++ ./resnet152.cpp -O3 -ffast-math -o resnet
cd $HOME_DIR
mkdir build/
mkdir build/bin/
mkdir build/lib/
make encr_perf_test
mv encr_perf_test build/bin
make clean
make hear_release_aes
mv libhear.so build/lib/libhear_release.so
make clean
make hear_mpool_only
mv libhear.so build/lib/libhear_release_mpool.so
make clean
make hear_baseline_tsc
mv libhear.so build/lib/libhear_critical_path_baseline.so
make clean
make hear_naive_tsc
mv libhear.so build/lib/libhear_critical_path_naive.so
make clean
make hear_mpool_only_tsc
mv libhear.so build/lib/libhear_critical_path_mpool.so
make clean
make security
mv security build/bin
make clean
make accuracy
mv accuracy_addition build/bin
mv accuracy_multiplication build/bin
make clean
make correctness
mv hfloat_correctness build/bin
mv integer_correctness build/bin
make clean