source: pacpussensors/trunk/Vislab/lib3dv/eigen/bench/bench_unrolling@ 136

Last change on this file since 136 was 136, checked in by ldecherf, 8 years ago

Doc

File size: 651 bytes
Line 
1#!/bin/bash
2
3# gcc : CXX="g++ -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000"
4# icc : CXX="icpc -fast -no-inline-max-size -fno-exceptions"
5CXX=${CXX-g++ -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000} # default value
6
7for ((i=1; i<16; ++i)); do
8 echo "Matrix size: $i x $i :"
9 $CXX -O3 -I.. -DNDEBUG benchmark.cpp -DMATSIZE=$i -DEIGEN_UNROLLING_LIMIT=400 -o benchmark && time ./benchmark >/dev/null
10 $CXX -O3 -I.. -DNDEBUG -finline-limit=10000 benchmark.cpp -DMATSIZE=$i -DEIGEN_DONT_USE_UNROLLED_LOOPS=1 -o benchmark && time ./benchmark >/dev/null
11 echo " "
12done
Note: See TracBrowser for help on using the repository browser.