Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Reinauer
pystencils
Commits
7f8d135c
Commit
7f8d135c
authored
Jan 03, 2020
by
Jan Laukemann
Browse files
changed to likwid for BW measurements
parent
7f0956ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
benchmarks/README.md
View file @
7f8d135c
...
...
@@ -48,7 +48,7 @@ In general, we can divide the number of all tasks in **four steps**:
Go inside of
`copy/`
and run
```
./run_copy.sh ARCH
./run_copy
_likwid
.sh ARCH
```
For help run this script with
`--help`
.
...
...
@@ -152,4 +152,4 @@ lbmpy_orientation='v'
Additionally to the plots, all lbmpy results are also shown in a queryable
dataframe and the average speedup by using the
`split`
and
`nontemporal`
option
as well as the parameters of the fastest kernel are given.
\ No newline at end of file
as well as the parameters of the fastest kernel are given.
benchmarks/copy/run_copy_likwid.sh
0 → 100755
View file @
7f8d135c
#!/bin/bash
module load likwid
CSV_FILE
=
"../results_copy.csv"
# Check parameter
while
test
$#
-gt
0
;
do
case
"
$1
"
in
-h
|
--help
)
echo
-e
"Usage: ./run_copy.sh [ARCH]
\n
"
echo
-e
" ARCH Target architecture. One of [IVB, HSW, SKL].
\n
"
exit
0
;;
*
)
ARCH
=
`
echo
$1
|
awk
'{print tolower($0)}'
`
ARCH_UP
=
`
echo
$1
|
awk
'{print toupper($0)}'
`
shift
;;
esac
done
if
[
-z
$ARCH
]
;
then
echo
"Specify target architecture [IVB, HSW, SKL]"
exit
-1
fi
case
$ARCH
in
"skl"
)
TYPE
=
"copy_avx512"
;;
"hsw"
)
TYPE
=
"copy_avx"
;;
"ivb"
)
TYPE
=
"copy_sse"
;;
*
)
echo
"Target architecture '
$ARCH
' not supported."
exit
-1
;;
esac
# Create new CSV if it does not exist already
if
[
!
-f
$CSV_FILE
]
;
then
echo
"size(KB),bandwidth(MB/s),arch"
>
$CSV_FILE
fi
# Run benchmark
for
size
in
`
cat
sizes.dat
`
;
do
bw
=
`
likwid-bench
-t
$TYPE
-w
S0:
${
size
}
kB:1 |
grep
MByte/s |
awk
'{print $2}'
`
echo
"
$size
,
$bw
,
$ARCH_UP
"
>>
$CSV_FILE
done
#./a.copy.$ARCH | tee tmp$ARCH.dat
#cat tmp$ARCH.dat | sort -nk1 > out.copy.$ARCH
#rm tmp$ARCH.dat
#awk -v arch="$ARCH_UP" 'NR>2 {print $1, ",", $7, ",", arch}' out.copy.$ARCH >> $CSV_FILE
benchmarks/copy/sizes.dat
0 → 100644
View file @
7f8d135c
5.6
7.2
9.2
12.3
15.9
20.5
27.1
35.3
45.6
59.4
74.8
77.3
93.7
100.9
117.2
131.1
146.4
170.5
183.3
222.2
229.4
286.7
288.8
358.4
448.0
560.1
700.4
875.5
1094.7
1368.1
1710.1
2138.1
2672.6
3340.8
4175.9
5219.8
6524.9
8156.2
10195.5
12744.7
15930.9
19913.2
24891.9
31114.8
38893.6
48617.0
60771.3
75964.4
94955.5
118694.4
148367.9
185460.2
231824.9
289781.2
362226.7
452783.6
565979.6
707474.4
884343.3
1105429.5
1381786.6
1727233.5
2159042.0
2698802.2
3373503.0
4216879.1
5271098.9
6588873.2
8236091.9
10295114.8
12868893.7
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment