From 7ef5f0641fcdabd79c558fed8be0d753e9a29103 Mon Sep 17 00:00:00 2001 From: Xinle Liu Date: Wed, 1 Dec 2021 14:48:56 +0000 Subject: [PATCH] Remove macro EIGEN_GPU_TEST_C99_MATH Remove macro EIGEN_GPU_TEST_C99_MATH which is used in a single test file only and always defaults to true. --- unsupported/test/cxx11_tensor_gpu.cu | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/unsupported/test/cxx11_tensor_gpu.cu b/unsupported/test/cxx11_tensor_gpu.cu index 33cbac4c6..7b3fb5ab1 100644 --- a/unsupported/test/cxx11_tensor_gpu.cu +++ b/unsupported/test/cxx11_tensor_gpu.cu @@ -17,8 +17,6 @@ #include -#define EIGEN_GPU_TEST_C99_MATH 1 - using Eigen::Tensor; void test_gpu_nullary() { @@ -660,7 +658,6 @@ void test_gpu_convolution_3d() } -#if EIGEN_GPU_TEST_C99_MATH template void test_gpu_lgamma(const Scalar stddev) { @@ -699,7 +696,6 @@ void test_gpu_lgamma(const Scalar stddev) gpuFree(d_in); gpuFree(d_out); } -#endif template void test_gpu_digamma() @@ -1023,7 +1019,6 @@ void test_gpu_igammac() gpuFree(d_out); } -#if EIGEN_GPU_TEST_C99_MATH template void test_gpu_erf(const Scalar stddev) { @@ -1101,7 +1096,7 @@ void test_gpu_erfc(const Scalar stddev) gpuFree(d_in); gpuFree(d_out); } -#endif + template void test_gpu_ndtri() { @@ -1588,7 +1583,6 @@ EIGEN_DECLARE_TEST(cxx11_tensor_gpu) CALL_SUBTEST_3(test_gpu_convolution_3d()); #endif -#if EIGEN_GPU_TEST_C99_MATH // std::erf, std::erfc, and so on where only added in c++11. We use them // as a golden reference to validate the results produced by Eigen. Therefore // we can only run these tests if we use a c++11 compiler. @@ -1666,6 +1660,4 @@ EIGEN_DECLARE_TEST(cxx11_tensor_gpu) CALL_SUBTEST_6(test_gpu_gamma_sample_der_alpha()); CALL_SUBTEST_6(test_gpu_gamma_sample_der_alpha()); #endif - -#endif }