aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/bench_gemm.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-02-26 14:57:49 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-02-26 14:57:49 +0100
commitac425090f389e34f9aee71b5957cca529ac74a38 (patch)
tree9fc044c93118431a53470ea9d1a6ba90a360e162 /bench/bench_gemm.cpp
parent8d4a0e6753117cbabf80e4b6fa13d3d3b6ba0327 (diff)
BTL: allow to bench real time
Diffstat (limited to 'bench/bench_gemm.cpp')
-rw-r--r--bench/bench_gemm.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/bench/bench_gemm.cpp b/bench/bench_gemm.cpp
index d958cc1bf..c7a3db619 100644
--- a/bench/bench_gemm.cpp
+++ b/bench/bench_gemm.cpp
@@ -3,6 +3,7 @@
// icpc bench_gemm.cpp -I .. -O3 -DNDEBUG -lrt -openmp && OMP_NUM_THREADS=2 ./a.out
#include <Eigen/Core>
+
#include <bench/BenchTimer.h>
using namespace std;
@@ -68,10 +69,10 @@ void gemm(const M& a, const M& b, M& c)
int main(int argc, char ** argv)
{
- int rep = 1; // number of repetitions per try
+ int rep = 2048; // number of repetitions per try
int tries = 5; // number of tries, we keep the best
- int s = 2048;
+ int s = 512;
int m = s;
int n = s;
int p = s;