-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·44 lines (31 loc) · 941 Bytes
/
run.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
#!/bin/bash
# core_num=1
# cpus="24"
# core_num=2
# cpus="24-25"
core_num=4
cpus="24-27"
# core_num=8
# cpus="24-31"
# core_num=16
# cpus="24-39"
# core_num=24
# cpus="24-47"
####################################################################
####################### Do Not Modification ########################
####################################################################
echo ">> System Configuration"
lscpu | grep -E "Model name|NUMA|cache"
echo ">> Software Configuration"
echo "Core number: "$core_num
echo "cpus: "$cpus
cd src
sh ./compile.sh
export OMP_NUM_THREADS=$core_num
export KMP_AFFINITY=granularity=fine,compact,1,0
export KMP_BLOCKTIME=1
source /opt/intel/mkl/bin/mklvars.sh intel64
ld_path=`pwd`/../
export LD_LIBRARY_PATH=$ld_path/obj/local/dnnl-v1.5/lib64/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$ld_path/obj/local/libxsmm-v1.16.1/lib/:$LD_LIBRARY_PATH
numactl -C $cpus -l ./gemmbench_dnnl $1 $2 $3