aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/benchmark.cpp
diff options
context:
space:
mode:
authorGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-11 14:28:42 +0000
committerGravatar Benoit Jacob <jacob.benoit.1@gmail.com>2008-04-11 14:28:42 +0000
commitdcebc46cdcd29fa65449c6d3215f30a28ec0a8c8 (patch)
tree1e623df72a481574dc523ef096b4a979ebe1b2a9 /bench/benchmark.cpp
parent7bee90a62a0e5fec52a4b8a6f0b1d88c175d63f8 (diff)
- cleaner use of OpenMP (no code duplication anymore)
using a macro and _Pragma. - use OpenMP also in cacheOptimalProduct and in the vectorized paths as well - kill the vector assignment unroller. implement in operator= the logic for assigning a row-vector in a col-vector. - CMakeLists support for building tests/examples with -fopenmp and/or -msse2 - updates in bench/, especially replace identity() by ones() which prevents underflows from perturbing bench results.
Diffstat (limited to 'bench/benchmark.cpp')
-rw-r--r--bench/benchmark.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/bench/benchmark.cpp b/bench/benchmark.cpp
index 99fd097ba..39ed317aa 100644
--- a/bench/benchmark.cpp
+++ b/bench/benchmark.cpp
@@ -18,12 +18,11 @@ USING_PART_OF_NAMESPACE_EIGEN
int main(int argc, char *argv[])
{
- Matrix<SCALAR,MATSIZE,MATSIZE> I;
+ Matrix<SCALAR,MATSIZE,MATSIZE> I = Matrix<SCALAR,MATSIZE,MATSIZE>::ones();
Matrix<SCALAR,MATSIZE,MATSIZE> m;
for(int i = 0; i < MATSIZE; i++)
for(int j = 0; j < MATSIZE; j++)
{
- I(i,j) = (i==j);
m(i,j) = (i+MATSIZE*j);
}
asm("#begin");