Only enable the cxx11_tensor_uint128 test on 64 bit machines since 32 bit systems don't support the __uin128_t type

This commit is contained in:
Benoit Steiner 2016-02-05 18:14:23 -08:00
parent fb00a4af2b
commit d2cba52015

View File

@ -117,7 +117,6 @@ if(EIGEN_TEST_CXX11)
ei_add_test(cxx11_tensor_of_const_values "-std=c++0x")
ei_add_test(cxx11_tensor_of_complex "-std=c++0x")
ei_add_test(cxx11_tensor_of_strings "-std=c++0x")
ei_add_test(cxx11_tensor_uint128 "-std=c++0x")
ei_add_test(cxx11_tensor_intdiv "-std=c++0x")
ei_add_test(cxx11_tensor_lvalue "-std=c++0x")
ei_add_test(cxx11_tensor_map "-std=c++0x")
@ -149,6 +148,11 @@ if(EIGEN_TEST_CXX11)
ei_add_test(cxx11_tensor_ifft "-std=c++0x")
ei_add_test(cxx11_tensor_empty "-std=c++0x")
if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8")
# This test requires __uint128_t which is only available on 64bit systems
ei_add_test(cxx11_tensor_uint128 "-std=c++0x")
endif()
endif()
# These tests needs nvcc