summaryrefslogtreecommitdiff
path: root/HST-S/dimes-hetsim-hbm.sh
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-05 12:32:07 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-05 12:32:07 +0200
commitd0b5af70afdaca2d9e2907012dcd478bb6ef0057 (patch)
treec2134a310c7e30aae8a49f9acc3e25bf392f256c /HST-S/dimes-hetsim-hbm.sh
parentaee73ed6be15b3a2da2017faa10f20bcf54adbf3 (diff)
Add DIMES scripts for HST-S
Diffstat (limited to 'HST-S/dimes-hetsim-hbm.sh')
-rwxr-xr-xHST-S/dimes-hetsim-hbm.sh51
1 files changed, 51 insertions, 0 deletions
diff --git a/HST-S/dimes-hetsim-hbm.sh b/HST-S/dimes-hetsim-hbm.sh
new file mode 100755
index 0000000..08842b7
--- /dev/null
+++ b/HST-S/dimes-hetsim-hbm.sh
@@ -0,0 +1,51 @@
+#!/bin/bash
+
+cd baselines/cpu
+make -B NUMA=1
+
+mkdir -p log/$(hostname)
+fn=log/$(hostname)/$(date +%Y%m%d)
+
+# Upstream DPU version uses 256 bins and 1536 * 1024 * 64 uint32 elements == 384 MiB total (-x 2 with implicit -z 64)
+input_size_upstream=$((1536 * 1024 * 64))
+
+# Here: 2 GiB
+input_size_dpu=$((2**29))
+
+(
+
+echo "single-node execution, upstream ref (1/4)" >&2
+
+parallel -j1 --eta --joblog ${fn}.1.joblog --resume --header : \
+ ./hist -i ${input_size_upstream} -A {ram} -B {ram} -C {cpu} -t {nr_threads} -w 0 -e 5 -x 1 \
+ ::: nr_threads 1 2 4 8 12 16 \
+ ::: cpu $(seq 0 7) \
+ ::: ram $(seq 0 15)
+
+echo "single-node execution, DPU ref (2/4)" >&2
+
+parallel -j1 --eta --joblog ${fn}.2.joblog --resume --header : \
+ ./hist -i ${input_size_dpu} -A {ram} -B {ram} -C {cpu} -t {nr_threads} -w 0 -e 5 -x 1 \
+ ::: nr_threads 1 2 4 8 12 16 \
+ ::: cpu $(seq 0 7) \
+ ::: ram $(seq 0 15)
+
+echo "multi-node execution, upstream ref (3/4)" >&2
+
+parallel -j1 --eta --joblog ${fn}.3.joblog --resume --header : \
+ ./hist -i ${input_size_upstream} -A {ram} -B {ram} -C {cpu} -t {nr_threads} -w 0 -e 40 -x 1 \
+ ::: nr_threads 32 48 64 96 128 \
+ ::: cpu -1 \
+ ::: ram $(seq 0 15)
+
+echo "multi-node execution, DPU ref (4/4)" >&2
+
+parallel -j1 --eta --joblog ${fn}.4.joblog --resume --header : \
+ ./hist -i ${input_size_dpu} -A {ram} -B {ram} -C {cpu} -t {nr_threads} -w 0 -e 40 -x 1 \
+ ::: nr_threads 32 48 64 96 128 \
+ ::: cpu -1 \
+ ::: ram $(seq 0 15)
+
+) > ${fn}.txt
+
+xz -f -v -9 -M 800M ${fn}.txt