small_gicp/scripts/run_odometry_benchmark_nati...

21 lines
698 B
Bash
Executable File

#!/bin/bash
dataset_path=$1
exe_path=../build/odometry_benchmark
mkdir results
engines=(small_gicp small_gicp_tbb)
for engine in ${engines[@]}; do
N=1
$exe_path $dataset_path $(printf "results/traj_lidar_%s_nonnative_%d.txt" $engine $N) --num_threads $N --engine $engine | tee $(printf "results/odometry_benchmark_%s_nonnative_%d.txt" $engine $N)
done
engines=(small_gicp_tbb)
num_threads=(128 96 64 32 16 8 4 2)
for N in ${num_threads[@]}; do
for engine in ${engines[@]}; do
$exe_path $dataset_path $(printf "results/traj_lidar_%s_nonnative_%d.txt" $engine $N) --num_threads $N --engine $engine | tee $(printf "results/odometry_benchmark_%s_nonnative_%d.txt" $engine $N)
done
done