summaryrefslogtreecommitdiff
path: root/HST-L/benchmark-scripts/ccmcc25-sim.sh
diff options
context:
space:
mode:
Diffstat (limited to 'HST-L/benchmark-scripts/ccmcc25-sim.sh')
-rwxr-xr-xHST-L/benchmark-scripts/ccmcc25-sim.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/HST-L/benchmark-scripts/ccmcc25-sim.sh b/HST-L/benchmark-scripts/ccmcc25-sim.sh
new file mode 100755
index 0000000..34e841a
--- /dev/null
+++ b/HST-L/benchmark-scripts/ccmcc25-sim.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+mkdir -p log/$(hostname)
+
+run_benchmark_nmc() {
+ local "$@"
+ set -e
+ make -B NR_DPUS=${nr_dpus} NR_TASKLETS=${nr_tasklets} BL=10 \
+ dfatool_timing=0 aspectc=1 aspectc_timing=1
+ bin/host_code -w 0 -e 5 -b ${bin_size} -i ${input_size}
+}
+
+export -f run_benchmark_nmc
+
+fn=log/$(hostname)/ccmcc25-sdk${sdk}-sim
+
+source ~/lib/local/upmem/upmem-2025.1.0-Linux-x86_64/upmem_env.sh simulator
+
+echo "prim-benchmarks HST-L $(git describe --all --long) $(git rev-parse HEAD) $(date -R)" >> ${fn}.txt
+
+parallel -j1 --eta --joblog ${fn}.joblog --resume --header : \
+ run_benchmark_nmc nr_dpus={nr_dpus} nr_tasklets=16 input_size={input_size} bin_size=256 \
+ ::: nr_dpus 1 2 4 8 16 32 48 64 \
+ ::: input_size $((256 * 256)) $((512 * 512)) $((768 * 768)) $((1024 * 1024)) \
+>> ${fn}.txt