summaryrefslogtreecommitdiff
path: root/VA/dimes-hetsim-hbm-roofline.sh
blob: f987f5a5c87572223f24705ed69b90b5e73ba6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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