-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·96 lines (86 loc) · 2.84 KB
/
build.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
#!/bin/bash
# need to install intel mkl
sudo dnf --enablerepo=PowerTools install blas-devel
cur_path=`pwd`
# build mkl-dnn-v1.0.4
#cd $cur_path/obj
#git clone https://github.com/intel/mkl-dnn.git mkldnn-v1.0.4
#cd mkldnn-v1.0.4/
#git checkout v1.0.4
#git apply --check ../patch_mkldnn-v1.0.4_bgemm.diff
#git apply ../patch_mkldnn-v1.0.4_bgemm.diff
#mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../../local/mkldnn-v1.0.4/ ..
#make -j all
#make install
# build dnnl-v1.1.3
#cd $cur_path/obj
#git clone https://github.com/intel/mkl-dnn.git dnnl-v1.1.3
#cd dnnl-v1.1.3/
#git checkout v1.1.3
#git apply --check ../patch_dnnl-v1.1.3_bgemm.diff
#git apply ../patch_dnnl-v1.1.3_bgemm.diff
#mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../../local/dnnl-v1.1.3/ ..
#make -j all
#make install
# build dnnl-v1.2.1
#cd $cur_path/obj
#git clone https://github.com/intel/mkl-dnn.git dnnl-v1.2.1
#cd dnnl-v1.2.1/
#git checkout v1.2.1
#git apply --check ../patch_dnnl-v1.2.1_bgemm.diff
#git apply ../patch_dnnl-v1.2.1_bgemm.diff
#mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../../local/dnnl-v1.2.1/ ..
#make -j all
#make install
# build dnnl-v1.3
#cd $cur_path/obj
#git clone https://github.com/intel/mkl-dnn.git dnnl-v1.3
#cd dnnl-v1.3/
#git checkout v1.3
#git apply --check ../patch_dnnl-v1.3_bgemm.diff
#git apply ../patch_dnnl-v1.3_bgemm.diff
#mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../../local/dnnl-v1.3/ ..
#make -j all
#make install
# build dnnl-v1.4
#cd $cur_path/obj
#git clone https://github.com/intel/mkl-dnn.git dnnl-v1.4
#cd dnnl-v1.4/
#git checkout v1.4
#git apply --check ../patch_dnnl-v1.4_bgemm.diff
#git apply ../patch_dnnl-v1.4_bgemm.diff
#mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../../local/dnnl-v1.4/ ..
#make -j all
#make install
# build dnnl-v1.5
cd $cur_path/obj
git clone https://github.com/intel/mkl-dnn.git dnnl-v1.5
cd dnnl-v1.5/
git checkout v1.5
git apply --check ../patch_dnnl-v1.5_bgemm.diff
git apply --check ../patch_dnnl-v1.5_boost_small_kernel_sgemm.diff
git apply ../patch_dnnl-v1.5_bgemm.diff
git apply ../patch_dnnl-v1.5_boost_small_kernel_sgemm.diff
mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../../local/dnnl-v1.5/ ..
make -j all
make install
# build xbyak
#cd $cur_path/obj
#git clone https://github.com/herumi/xbyak.git xbyak-v5.891
#cd xbyak-v5.891
#git checkout v5.891
#mkdir -p ../local/xbyak-v5.891/
#cp -pR xbyak/*.h ../local/xbyak-v5.891/
# build eigen
cd $cur_path/obj
git clone https://github.com/eigenteam/eigen-git-mirror.git eigen-v3.3.7
cd eigen-v3.3.7
git checkout 3.3.7
mkdir -p build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../../local/eigen-v3.3.7/ ..
make install
# build libxsmm
cd $cur_path/obj
git clone https://github.com/hfp/libxsmm.git libxsmm-v1.16.1
cd libxsmm-v1.16.1
git checkout 1.16.1
make PREFIX=../local/libxsmm-v1.16.1/ STATIC=0 install -j8