OpenFPGA/libs/EXTERNAL/libtatum/scripts/sweep_threads.sh

14 lines
217 B
Bash
Raw Normal View History

2020-01-03 21:42:17 -06:00
#!/usr/bin/env bash
tg_file=$1
max_nthreads=$2
for nthreads in $(seq $max_nthreads)
do
export OMP_NUM_THREADS=$nthreads
echo "$OMP_NUM_THREADS thread(s)"
./sta $1 | grep -P 'AVG|Speed-Up'
echo
done