From cf7eaed38db25c5205f6aabfd4e96e774fd98af5 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 25 Apr 2014 11:04:02 +0200 Subject: Avoid blocking-size mismatch in unit tests calling Eigen's blas interface. --- test/main.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/main.h') diff --git a/test/main.h b/test/main.h index fcac0e3ab..3ccc2ae88 100644 --- a/test/main.h +++ b/test/main.h @@ -31,7 +31,11 @@ // B0 is defined in POSIX header termios.h #define B0 FORBIDDEN_IDENTIFIER +// Unit tests calling Eigen's blas library must preserve the default blocking size +// to avoid troubles. +#ifndef EIGEN_NO_DEBUG_SMALL_PRODUCT_BLOCKS #define EIGEN_DEBUG_SMALL_PRODUCT_BLOCKS +#endif // shuts down ICC's remark #593: variable "XXX" was set but never used #define TEST_SET_BUT_UNUSED_VARIABLE(X) X = X + 0; -- cgit v1.2.3