Use full packet size for Dynamic-sized objects (otherwise, the unalignedcount unit test fails with AVX enabled)

This commit is contained in:
Christoph Hertzberg 2015-09-02 22:51:43 +02:00
parent aa768add0b
commit 5ad7981f73
2 changed files with 3 additions and 2 deletions

View File

@ -127,7 +127,7 @@ template<typename T> struct unpacket_traits
};
template<int Size, typename PacketType,
bool Stop = (Size%unpacket_traits<PacketType>::size)==0 || is_same<PacketType,typename unpacket_traits<PacketType>::half>::value>
bool Stop = Size==Dynamic || (Size%unpacket_traits<PacketType>::size)==0 || is_same<PacketType,typename unpacket_traits<PacketType>::half>::value>
struct find_best_packet_helper;
template< int Size, typename PacketType>

View File

@ -5,6 +5,7 @@ add_custom_target(BuildUnsupported)
include_directories(../../test ../../unsupported ../../Eigen
${CMAKE_CURRENT_BINARY_DIR}/../../test)
find_package (Threads)
find_package(GoogleHash)
if(GOOGLEHASH_FOUND)
@ -133,7 +134,7 @@ if(EIGEN_TEST_CXX11)
ei_add_test(cxx11_tensor_argmax "-std=c++0x")
ei_add_test(cxx11_tensor_shuffling "-std=c++0x")
ei_add_test(cxx11_tensor_striding "-std=c++0x")
ei_add_test(cxx11_tensor_thread_pool "-std=c++0x")
ei_add_test(cxx11_tensor_thread_pool "-pthread" "${CMAKE_THREAD_LIBS_INIT}")
ei_add_test(cxx11_tensor_ref "-std=c++0x")
ei_add_test(cxx11_tensor_random "-std=c++0x")
ei_add_test(cxx11_tensor_casts "-std=c++0x")