summaryrefslogtreecommitdiff
path: root/VA
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-15 07:48:36 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-15 07:48:36 +0200
commit5976e5c372ce0eded29b628c6b233fca77762975 (patch)
tree8e1429a9b6330dd4f39441e75e940ccec3aa3ea4 /VA
parent8431a8507493e01e8cdd97496183fda2fa0d2310 (diff)
VA, GEMV: Add roofline benchmarks
Diffstat (limited to 'VA')
-rwxr-xr-xVA/dimes-hetsim-hbm-roofline.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/VA/dimes-hetsim-hbm-roofline.sh b/VA/dimes-hetsim-hbm-roofline.sh
new file mode 100755
index 0000000..f987f5a
--- /dev/null
+++ b/VA/dimes-hetsim-hbm-roofline.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+cd baselines/cpu
+make -B NUMA=1
+
+mkdir -p log/$(hostname)
+fn=log/$(hostname)/$(date +%Y%m%d)-roofline
+
+# upstream uses 167772160 * 2 * int32 == 2.5 GiB input and 1.25 GiB output for DPU version
+
+(
+
+for i in $(seq 0 7); do
+ echo "single-node execution ($i/8)" >&2
+ parallel -j1 --eta --joblog ${fn}.${i}.joblog --header : \
+ ./va -i {input_size} -a {ram} -b {ram} -c {cpu} -t {nr_threads} -w 0 -e 5 \
+ ::: nr_threads $(seq 1 16) \
+ ::: cpu $i \
+ ::: ram $i $((i+8)) \
+ ::: input_size 167772160
+done
+
+) > ${fn}.txt
+
+xz -f -v -9 -M 800M ${fn}.txt