diff options
author | Antonio Sánchez <cantonios@google.com> | 2020-05-28 17:40:15 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-05-28 17:40:15 +0000 |
commit | 8719b9c5bc1a97e62d675c02495ed72dda6fae73 (patch) | |
tree | 3c91fd5b4bc0d08eda6ccbba28dbea3da117de42 /unsupported/test/cxx11_tensor_fft.cpp | |
parent | 8e1df5b08280f07a8814719fdbbeaf6fababd2dc (diff) |
Disable test for 32-bit systems (e.g. ARM, i386)
Both i386 and 32-bit ARM do not define __uint128_t. On most systems, if
__uint128_t is defined, then so is the macro __SIZEOF_INT128__.
https://stackoverflow.com/questions/18531782/how-to-know-if-uint128-t-is-defined1
Diffstat (limited to 'unsupported/test/cxx11_tensor_fft.cpp')
-rw-r--r-- | unsupported/test/cxx11_tensor_fft.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unsupported/test/cxx11_tensor_fft.cpp b/unsupported/test/cxx11_tensor_fft.cpp index 641486a4a..2e1008eca 100644 --- a/unsupported/test/cxx11_tensor_fft.cpp +++ b/unsupported/test/cxx11_tensor_fft.cpp @@ -228,10 +228,10 @@ template <typename RealScalar> static void test_fft_non_power_of_2_round_trip(int exponent) { int n = (1 << exponent) + 1; - Eigen::DSizes<std::int64_t, 1> dimensions; + Eigen::DSizes<ptrdiff_t, 1> dimensions; dimensions[0] = n; - const DSizes<std::int64_t, 1> arr = dimensions; - Tensor<RealScalar, 1, ColMajor, std::int64_t> input; + const DSizes<ptrdiff_t, 1> arr = dimensions; + Tensor<RealScalar, 1, ColMajor, ptrdiff_t> input; input.resize(arr); input.setRandom(); @@ -242,7 +242,7 @@ static void test_fft_non_power_of_2_round_trip(int exponent) { Tensor<std::complex<RealScalar>, 1, ColMajor> forward = input.template fft<BothParts, FFT_FORWARD>(fft); - Tensor<RealScalar, 1, ColMajor, std::int64_t> output = + Tensor<RealScalar, 1, ColMajor, ptrdiff_t> output = forward.template fft<RealPart, FFT_REVERSE>(fft); for (int i = 0; i < n; ++i) { |