-
Notifications
You must be signed in to change notification settings - Fork 1
/
matrox_knl.sh
62 lines (50 loc) · 1.35 KB
/
matrox_knl.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
#!/bin/bash
#SBATCH -J "PPoPP"
#SBATCH -o "PPoPP.o%j"
#SBATCH -e "PPoPP.e%j"
#SBATCH -p normal
#SBATCH -N 1
#SBATCH -n 1
#SBATCH -t 01:30:00
#SBATCH -A TG-CCR180004
module cmake
module load intel/18.0.2
export MKLROOT=/opt/intel/compilers_and_libraries_2018.2.199/linux/mkl/
export CMAKE_CXX_COMPILER=/opt/intel/compilers_and_libraries_2018.2.199/linux/bin/intel64/icpc
MatRox_HOME=$(pwd)
MatRox_build=${MatRox_HOME}/build/sympiler/
MatRox_Lib=${MatRox_HOME}/libTest/
MatRox_Fig=${MatRox_HOME}/Figures/
### Installing MatRox
mkdir build
cd build
cmake ..
cd sympiler
make
cp ../../scripts/KNL/testScalKNL ./
cp ../../scripts/KNL/* ${MatRox_Lib}/
# Figure 7
cd ${MatRox_build}
bash testScalKNL
cp scalknl.csv ../../Figures/Fig7-scal/
cd ${MatRox_Lib}
unzip GOFMM.zip
cd GOFMM/
source set_env_knl.sh
mkdir build
cd build
rm -rf *
cmake ..
make
make install
cp ./bin/artifact_sc17gofmm.x ${MatRox_Lib}/
cd ${MatRox_Lib}
mv artifact_sc17gofmm.x artifact_sc17gofmm_knl.x
bash testGOScalKNL
cp goscalknl.csv ../Figures/Fig7-scal/
bash testSTScalKNL
cp stscalknl.csv ../Figures/Fig7-scal/
### the csv files should be copied to local machine and using follow command to draw figures.
echo "please copy figures to local machine and draw figures by using following instruction"
#cd ../Figures/Fig7-scal/
# python drawscalknl.py --m scalknl.csv --g goscalknl.csv --s stscalknl.csv