summaryrefslogtreecommitdiff
path: root/src/app/stream/run.sh
blob: 8cc3da23a22db966d0ad2e454e6814a5a60ce1f4 (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

cd "$(git rev-parse --show-toplevel)"

target="$(grep '^CONFIG_arch=' .config | cut -d '"' -f 2)"

mkdir -p src/app/stream/log
: > src/app/stream/log/${target}.txt

for stride in 1 2 4 8 16 32 64; do
	for type in uint8_t uint16_t uint32_t uint64_t float double; do
		kconfig-tweak --keep-case --set-str app_stream_stride $stride
		kconfig-tweak --keep-case --set-str app_stream_type $type

		echo
		echo "stride: ${stride}"
		echo "type  : ${type}"
		echo

		./mp && make cat >> src/app/stream/log/${target}.txt
	done
done