Make clang build as silent as possible
[fvs_assignment_project.git] / test_8cores.sh
blobcf1ca5d4ce776e4d758d4ea12f7fe1a6075e0064
1 #!/bin/sh
3 set -eu
4 IFS='\n\t'
6 make test
8 echo 'Using all cores (default OpenMP config)'
9 time ./bin/fvs_test images/*
10 echo
12 echo 'Using 4 cores'
13 export OMP_NUM_THREADS=4
14 time ./bin/fvs_test images/*
15 echo
17 echo 'Using 2 cores'
18 export OMP_NUM_THREADS=2
19 time ./bin/fvs_test images/*
20 echo
22 echo 'Using 1 core'
23 export OMP_NUM_THREADS=1
24 time ./bin/fvs_test images/*