mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-12 17:33:15 +08:00
Merged patch 672 from Justin Lebar: Don't use long doubles with cuda
This commit is contained in:
parent
3d1e857327
commit
28e02996df
@ -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)
|
inline bool test_isMuchSmallerThan(const std::complex<double>& a, const std::complex<double>& b)
|
||||||
{ return internal::isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); }
|
{ 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)
|
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> >()); }
|
{ 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)
|
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> >()); }
|
{ return internal::isMuchSmallerThan(a, b, test_precision<std::complex<long double> >()); }
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EIGEN_TEST_NO_LONGDOUBLE
|
#ifndef EIGEN_TEST_NO_LONGDOUBLE
|
||||||
inline bool test_isApprox(const long double& a, const long double& b)
|
inline bool test_isApprox(const long double& a, const long double& b)
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
// Public License v. 2.0. If a copy of the MPL was not distributed
|
// 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/.
|
// 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_TEST_FUNC cxx11_tensor_cuda
|
||||||
#define EIGEN_USE_GPU
|
#define EIGEN_USE_GPU
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user