summaryrefslogtreecommitdiff
path: root/BS/baselines/cpu/run.sh
blob: 56f8cb3b205a99ffa1835bc1e86474752fe28539 (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
#!/bin/sh

set -e

HOST="$(hostname)"

mkdir -p "$HOST"

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

make -B verbose=1

for nr_threads in 128 96 88 64 44 32 24 20 1 2 4 6 8 12 16; do
	#for vs in 262144 524288 1048576 2097152; do
	# NMC also uses 262144 elements
	for vs in 262144; do
		for i in `seq 1 20`; do
			OMP_NUM_THREADS=${nr_threads} timeout --foreground -k 1m 30m ./bs_omp ${vs} 16777216 || true
			sleep 10
		done
	done
done
echo "Completed at $(date)"
) | tee "${HOST}/explore.txt"