summaryrefslogtreecommitdiff
path: root/VA/baselines/cpu/run.sh
blob: dffc9f961fc08d556598670b604bcf06d26ad738 (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
26
27
28
29
30
31
#!/bin/sh

set -e

HOST="$(hostname)"

echo $HOST

(

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

# default input size: 16777216
# default threads: 4
# default type: int32_t

for nr_threads in 88 64 44 1 2 4 6 8 12 16 20 24 32; do
	#for i in 16777216 8388608 4194304 33554432 67108864; do
		#for dt in int8_t int16_t int32_t int64_t float double; do
		for dt in int32_t; do
			if make -B TYPE=${dt}; then
				# -w 1 to make sure that target array (C) is allocated
				timeout -k 1m 30m ./va -w 1 -e 100 -t ${nr_threads} -x 1 || true
				sleep 10
			fi
		done
	#done
done
) | tee "${HOST}-explore.txt"