File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ python3-hid: python3-hidapi
42
42
python3-mako: python-pyramid-mako
43
43
python3-markupsafe: python34-markupsafe
44
44
python3-minimal: python3
45
+ python-minimal: python3
45
46
python3-nose:
46
47
python3-openssl: python3-pyOpenSSL
47
48
python3-pkg-resources:
Original file line number Diff line number Diff line change @@ -7,7 +7,13 @@ setup_threads_to_iterate()
7
7
8
8
local threads_per_core
9
9
local cores_per_node
10
+ local cores_per_llc
11
+ local nr_l3
12
+ local nr_l2
10
13
threads_per_core=$( lscpu | awk ' /Thread\(s\) per core:/ { print $4 }' )
14
+ nr_l3=$( lscpu | grep ' L3' | awk -F ' [()]' ' {print $2}' | awk ' {print $1}' )
15
+ nr_l2=$( lscpu | grep ' L2' | awk -F ' [()]' ' {print $2}' | awk ' {print $1}' )
16
+ cores_per_llc=$(( nr_l2 / nr_l3 ))
11
17
cores_per_node=$(( nr_cpu / nr_node / threads_per_core))
12
18
13
19
# [ 0.000000] Intel MultiProcessor Specification v1.4
@@ -24,7 +30,7 @@ setup_threads_to_iterate()
24
30
local i
25
31
for i in $( seq $nr_node )
26
32
do
27
- threads_to_iterate=" ${threads_to_iterate} $(( i * cores_per_node)) "
33
+ threads_to_iterate=" ${threads_to_iterate} ${cores_per_llc} $ (( i * cores_per_node)) "
28
34
done
29
35
30
36
[ " $nr_cpu " -ge 4 ] && {
You can’t perform that action at this time.
0 commit comments