Fix 256 bit packet size assumptions in unit tests.

Like in change 2606abed535744fcaa41b923c71338a06b8ed3fa
, we have hit the threshould again. With
AVX512 builds we would never have Vector8f packets aligned at 64
bytes (the new value of EIGEN_MAX_ALIGN_BYTES after change 405859f18dac56f324e1d93ca8721d5f7fd22c62
,
for AVX512-enabled builds).

This makes test/dynalloc.cpp pass for those builds.
This commit is contained in:
Gustavo Lima Chaves 2018-08-02 15:55:36 -07:00
parent dd5875e30d
commit 2bf1cc8cf7

View File

@ -15,6 +15,7 @@
#define ALIGNMENT 1
#endif
typedef Matrix<float,16,1> Vector16f;
typedef Matrix<float,8,1> Vector8f;
void check_handmade_aligned_malloc()
@ -70,7 +71,7 @@ struct MyStruct
{
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
char dummychar;
Vector8f avec;
Vector16f avec;
};
class MyClassA
@ -78,7 +79,7 @@ class MyClassA
public:
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
char dummychar;
Vector8f avec;
Vector16f avec;
};
template<typename T> void check_dynaligned()
@ -145,6 +146,7 @@ EIGEN_DECLARE_TEST(dynalloc)
CALL_SUBTEST(check_dynaligned<Vector4d>() );
CALL_SUBTEST(check_dynaligned<Vector4i>() );
CALL_SUBTEST(check_dynaligned<Vector8f>() );
CALL_SUBTEST(check_dynaligned<Vector16f>() );
}
{