diff options
author | Gael Guennebaud <g.gael@free.fr> | 2008-03-09 16:13:47 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2008-03-09 16:13:47 +0000 |
commit | 9d9d81ad71a52c33ba4db9f8a6059d435d279316 (patch) | |
tree | d12a85ca594af99b04ce32f652ae67bf0baf228b /bench/bench_unrolling | |
parent | f64311e07de95694187e5d6d5d2e3cd118302076 (diff) |
* basic support for multicore CPU via a .evalOMP() which
internaly uses OpenMP if enabled at compile time.
* added a bench/ folder with a couple benchmarks and benchmark tools.
Diffstat (limited to 'bench/bench_unrolling')
-rwxr-xr-x | bench/bench_unrolling | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bench/bench_unrolling b/bench/bench_unrolling new file mode 100755 index 000000000..4af791412 --- /dev/null +++ b/bench/bench_unrolling @@ -0,0 +1,11 @@ +#!/bin/bash + +# gcc : CXX="g++ -finline-limit=10000 -ftemplate-depth-2000 --param max-inline-recursive-depth=2000" +# icc : CXX="icpc -fast -no-inline-max-size -fno-exceptions" + +for ((i=1; i<16; ++i)); do + echo "Matrix size: $i x $i :" + $CXX -O3 -I.. -DNDEBUG benchmark.cpp -DMATSIZE=$i -DEIGEN_UNROLLING_LIMIT_OPEQUAL=1024 -DEIGEN_UNROLLING_LIMIT_PRODUCT=25 -o benchmark && time ./benchmark >/dev/null + $CXX -O3 -I.. -DNDEBUG -finline-limit=10000 benchmark.cpp -DMATSIZE=$i -DEIGEN_DONT_USE_UNROLLED_LOOPS=1 -o benchmark && time ./benchmark >/dev/null + echo " " +done |