aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/bench_gemm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bench/bench_gemm.cpp')
-rw-r--r--bench/bench_gemm.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/bench/bench_gemm.cpp b/bench/bench_gemm.cpp
index 0974ebe4c..8528c5587 100644
--- a/bench/bench_gemm.cpp
+++ b/bench/bench_gemm.cpp
@@ -203,9 +203,10 @@ int main(int argc, char ** argv)
return 1;
}
- if(cache_size1>0)
- setCpuCacheSizes(cache_size1,cache_size2,cache_size3);
-
+#if EIGEN_VERSION_AT_LEAST(3,2,90)
+ if(cache_size1>0)
+ setCpuCacheSizes(cache_size1,cache_size2,cache_size3);
+#endif
A a(m,p); a.setRandom();
B b(p,n); b.setRandom();