diff options
-rw-r--r-- | test/main.h | 2 | ||||
-rw-r--r-- | unsupported/test/cxx11_tensor_argmax_cuda.cu | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/main.h b/test/main.h index 2797e8623..e5f1a9ad5 100644 --- a/test/main.h +++ b/test/main.h @@ -331,11 +331,13 @@ inline bool test_isApprox(const std::complex<double>& a, const std::complex<doub inline bool test_isMuchSmallerThan(const std::complex<double>& a, const std::complex<double>& b) { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); } +#ifndef EIGEN_TEST_NO_LONGDOUBLE inline bool test_isApprox(const std::complex<long double>& a, const std::complex<long double>& b) { return internal::isApprox(a, b, test_precision<std::complex<long double> >()); } inline bool test_isMuchSmallerThan(const std::complex<long double>& a, const std::complex<long double>& b) { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<long double> >()); } #endif +#endif #ifndef EIGEN_TEST_NO_LONGDOUBLE inline bool test_isApprox(const long double& a, const long double& b) diff --git a/unsupported/test/cxx11_tensor_argmax_cuda.cu b/unsupported/test/cxx11_tensor_argmax_cuda.cu index 45311d4f7..41ccbe974 100644 --- a/unsupported/test/cxx11_tensor_argmax_cuda.cu +++ b/unsupported/test/cxx11_tensor_argmax_cuda.cu @@ -7,8 +7,8 @@ // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -// TODO(mdevin): Free the cuda memory. +#define EIGEN_TEST_NO_LONGDOUBLE #define EIGEN_TEST_FUNC cxx11_tensor_cuda #define EIGEN_USE_GPU |