summaryrefslogtreecommitdiff
path: root/Microbenchmarks/CPU-DPU/run-alloc-rank.sh
blob: 2e20e52c2f5928002a8672b4e27084c8a674c5e2 (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

set -e

echo "prim-benchmarks CPU-DPU alloc (dfatool edition)"
echo "Started at $(date)"
echo "Revision $(git describe --always)"

# runtime exclusive of host_code execution time: 25 seconds per inner loop
# *16  -> about 7 minutes per outer loop
# *163 -> about 18 hours total
for i in 1 4 8 16 32 48 64; do
	for j in $(seq 0 16); do
		echo $i/64 $j/16
		./make-size.sh $j
		n_nops=$((j * 256))
		if make -B NR_DPUS=$i NR_TASKLETS=1 BL=10 DPU_BINARY=\'\"bin/dpu_size\"\'; then
			for l in $(seq 1 100); do
				bin/host_code -w 1 -e 0 -x 1 -i 65536 -N $n_nops -I $(size -A bin/dpu_size | awk '($1 == ".text") {print $2/8}') || true
			done
		fi
	done
done

echo "Completed at $(date)"