mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 11:19:02 +08:00
Compilation of basicbenchmark fixed
This commit is contained in:
parent
06c2760bd1
commit
d72c794ccd
@ -16,13 +16,13 @@ void benchBasic_loop(const MatrixType& I, MatrixType& m, int iterations)
|
|||||||
{
|
{
|
||||||
asm("#begin_bench_loop LazyEval");
|
asm("#begin_bench_loop LazyEval");
|
||||||
if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize");
|
if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize");
|
||||||
m = (I + 0.00005 * (m + m.lazy() * m)).eval();
|
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
|
||||||
}
|
}
|
||||||
else if (Mode==OmpEval)
|
else if (Mode==OmpEval)
|
||||||
{
|
{
|
||||||
asm("#begin_bench_loop OmpEval");
|
asm("#begin_bench_loop OmpEval");
|
||||||
if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize");
|
if (MatrixType::SizeAtCompileTime!=Eigen::Dynamic) asm("#fixedsize");
|
||||||
m = (I + 0.00005 * (m + m.lazy() * m)).evalOMP();
|
m = (I + 0.00005 * (m + m.lazyProduct(m))).eval();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user