aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/dynalloc.cpp
diff options
context:
space:
mode:
authorGravatar Gustavo Lima Chaves <gustavo.lima.chaves@intel.com>2018-08-02 15:55:36 -0700
committerGravatar Gustavo Lima Chaves <gustavo.lima.chaves@intel.com>2018-08-02 15:55:36 -0700
commit2bf1cc8cf72396c8c0c8103a5e941121534cf858 (patch)
tree04461134ada1e39bfc305a600a51ce946e61d803 /test/dynalloc.cpp
parentdd5875e30dfe79628a4ff2117e008f29c348e646 (diff)
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.
Diffstat (limited to 'test/dynalloc.cpp')
-rw-r--r--test/dynalloc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/dynalloc.cpp b/test/dynalloc.cpp
index ceecd76e3..1c74866ba 100644
--- a/test/dynalloc.cpp
+++ b/test/dynalloc.cpp
@@ -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>() );
}
{