summaryrefslogtreecommitdiff
path: root/TS/baselines/cpu/run-opti.sh
blob: 9135393a8b28cd12a753930ccea129b0f9a94a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

HOST="$(hostname)"

echo $HOST

make clean

for i in $(seq 1 50); do
	( make run_O0 || OMP_NUM_THREADS=32 make run_O0 ) | sed 's/CPU/CPU O0/'
done | tee "${HOST}-O0.txt"

for i in $(seq 1 50); do
	( make run_O2 || OMP_NUM_THREADS=32 make run_O2 ) | sed 's/CPU/CPU O2/'
done | tee "${HOST}-O2.txt"