diff options
Diffstat (limited to 'VA/dimes-hetsim-hbm.sh')
-rwxr-xr-x | VA/dimes-hetsim-hbm.sh | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/VA/dimes-hetsim-hbm.sh b/VA/dimes-hetsim-hbm.sh index 4b651c8..acb27b1 100755 --- a/VA/dimes-hetsim-hbm.sh +++ b/VA/dimes-hetsim-hbm.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh cd baselines/cpu make -B NUMA=1 @@ -6,29 +6,23 @@ make -B NUMA=1 mkdir -p log/$(hostname) fn=log/$(hostname)/$(date +%Y%m%d)-baseline -# upstream uses 167772160 * int32 == 1.25 GiB for DPU version - -run_benchmark() { - eval "$@" - ./va -i ${input_size} -a ${ram} -b ${ram} -c ${cpu} -t ${nr_threads} -w 0 -e 40 - return $? -} - -export -f run_benchmark +# upstream uses 167772160 * 2 * int32 == 2.5 GiB input and 1.25 GiB output for DPU version ( +echo "single-node execution (1/2)" >&2 + parallel -j1 --eta --joblog ${fn}.1.joblog --resume --header : \ - run_benchmark nr_threads={nr_threads} ram={ram} cpu={cpu} \ - input_size={input_size} \ + ./va -i {input_size} -a {ram} -b {ram} -c {cpu} -t {nr_threads} -w 0 -e 20 \ ::: nr_threads 1 2 4 8 12 16 \ ::: cpu $(seq 0 7) \ ::: ram $(seq 0 15) \ ::: input_size 167772160 +echo "multi-node execution (2/2)" >&2 + parallel -j1 --eta --joblog ${fn}.2.joblog --resume --header : \ - run_benchmark nr_threads={nr_threads} ram={ram} cpu={cpu} \ - input_size={input_size} \ + ./va -i {input_size} -a {ram} -b {ram} -c {cpu} -t {nr_threads} -w 0 -e 20 \ ::: nr_threads 32 48 64 96 128 \ ::: cpu -1 \ ::: ram $(seq 0 15) \ |