blob: dd4acad6950baa2f958340264bb398315aed15bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
set -e
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 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
if make -B TYPE=${dt}; then
# -w 1 to make sure that target array (C) is allocated
timeout -k 1m 30m ./va -i ${i} -w 1 -e 100 -t ${nr_threads} || true
fi
done
done
done
|