From f1adb0ccc24a0a283f8362ad3fafa2e1cd21ed37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20S=C3=A1nchez?= Date: Thu, 7 Mar 2024 17:21:37 +0000 Subject: [PATCH] Split up cxx11_tensor_gpu to reduce timeouts. --- unsupported/test/cxx11_tensor_gpu.cu | 122 +++++++++++++-------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/unsupported/test/cxx11_tensor_gpu.cu b/unsupported/test/cxx11_tensor_gpu.cu index b6ddc98ef..d717c6ebc 100644 --- a/unsupported/test/cxx11_tensor_gpu.cu +++ b/unsupported/test/cxx11_tensor_gpu.cu @@ -1467,97 +1467,97 @@ EIGEN_DECLARE_TEST(cxx11_tensor_gpu) { CALL_SUBTEST_1(test_gpu_elementwise_small()); CALL_SUBTEST_1(test_gpu_elementwise()); CALL_SUBTEST_1(test_gpu_props()); - CALL_SUBTEST_1(test_gpu_reduction()); - CALL_SUBTEST_2(test_gpu_contraction()); - CALL_SUBTEST_2(test_gpu_contraction()); - CALL_SUBTEST_3(test_gpu_convolution_1d()); - CALL_SUBTEST_3(test_gpu_convolution_1d()); - CALL_SUBTEST_3(test_gpu_convolution_inner_dim_col_major_1d()); - CALL_SUBTEST_3(test_gpu_convolution_inner_dim_row_major_1d()); - CALL_SUBTEST_3(test_gpu_convolution_2d()); - CALL_SUBTEST_3(test_gpu_convolution_2d()); + CALL_SUBTEST_2(test_gpu_reduction()); + CALL_SUBTEST_3(test_gpu_contraction()); + CALL_SUBTEST_3(test_gpu_contraction()); + CALL_SUBTEST_4(test_gpu_convolution_1d()); + CALL_SUBTEST_4(test_gpu_convolution_1d()); + CALL_SUBTEST_4(test_gpu_convolution_inner_dim_col_major_1d()); + CALL_SUBTEST_4(test_gpu_convolution_inner_dim_row_major_1d()); + CALL_SUBTEST_5(test_gpu_convolution_2d()); + CALL_SUBTEST_5(test_gpu_convolution_2d()); #if !defined(EIGEN_USE_HIP) // disable these tests on HIP for now. // they hang..need to investigate and fix - CALL_SUBTEST_3(test_gpu_convolution_3d()); - CALL_SUBTEST_3(test_gpu_convolution_3d()); + CALL_SUBTEST_6(test_gpu_convolution_3d()); + CALL_SUBTEST_7(test_gpu_convolution_3d()); #endif // 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. - CALL_SUBTEST_4(test_gpu_lgamma(1.0f)); - CALL_SUBTEST_4(test_gpu_lgamma(100.0f)); - CALL_SUBTEST_4(test_gpu_lgamma(0.01f)); - CALL_SUBTEST_4(test_gpu_lgamma(0.001f)); + CALL_SUBTEST_8(test_gpu_lgamma(1.0f)); + CALL_SUBTEST_8(test_gpu_lgamma(100.0f)); + CALL_SUBTEST_8(test_gpu_lgamma(0.01f)); + CALL_SUBTEST_8(test_gpu_lgamma(0.001f)); - CALL_SUBTEST_4(test_gpu_lgamma(1.0)); - CALL_SUBTEST_4(test_gpu_lgamma(100.0)); - CALL_SUBTEST_4(test_gpu_lgamma(0.01)); - CALL_SUBTEST_4(test_gpu_lgamma(0.001)); + CALL_SUBTEST_8(test_gpu_lgamma(1.0)); + CALL_SUBTEST_8(test_gpu_lgamma(100.0)); + CALL_SUBTEST_8(test_gpu_lgamma(0.01)); + CALL_SUBTEST_8(test_gpu_lgamma(0.001)); - CALL_SUBTEST_4(test_gpu_erf(1.0f)); - CALL_SUBTEST_4(test_gpu_erf(100.0f)); - CALL_SUBTEST_4(test_gpu_erf(0.01f)); - CALL_SUBTEST_4(test_gpu_erf(0.001f)); + CALL_SUBTEST_8(test_gpu_erf(1.0f)); + CALL_SUBTEST_8(test_gpu_erf(100.0f)); + CALL_SUBTEST_8(test_gpu_erf(0.01f)); + CALL_SUBTEST_8(test_gpu_erf(0.001f)); - CALL_SUBTEST_4(test_gpu_erfc(1.0f)); - // CALL_SUBTEST(test_gpu_erfc(100.0f)); - CALL_SUBTEST_4(test_gpu_erfc(5.0f)); // GPU erfc lacks precision for large inputs - CALL_SUBTEST_4(test_gpu_erfc(0.01f)); - CALL_SUBTEST_4(test_gpu_erfc(0.001f)); + CALL_SUBTEST_8(test_gpu_erfc(1.0f)); + // CALL_SUBTEST_8(test_gpu_erfc(100.0f)); + CALL_SUBTEST_8(test_gpu_erfc(5.0f)); // GPU erfc lacks precision for large inputs + CALL_SUBTEST_8(test_gpu_erfc(0.01f)); + CALL_SUBTEST_8(test_gpu_erfc(0.001f)); - CALL_SUBTEST_4(test_gpu_erf(1.0)); - CALL_SUBTEST_4(test_gpu_erf(100.0)); - CALL_SUBTEST_4(test_gpu_erf(0.01)); - CALL_SUBTEST_4(test_gpu_erf(0.001)); + CALL_SUBTEST_8(test_gpu_erf(1.0)); + CALL_SUBTEST_8(test_gpu_erf(100.0)); + CALL_SUBTEST_8(test_gpu_erf(0.01)); + CALL_SUBTEST_8(test_gpu_erf(0.001)); - CALL_SUBTEST_4(test_gpu_erfc(1.0)); - // CALL_SUBTEST(test_gpu_erfc(100.0)); - CALL_SUBTEST_4(test_gpu_erfc(5.0)); // GPU erfc lacks precision for large inputs - CALL_SUBTEST_4(test_gpu_erfc(0.01)); - CALL_SUBTEST_4(test_gpu_erfc(0.001)); + CALL_SUBTEST_8(test_gpu_erfc(1.0)); + // CALL_SUBTEST_8(test_gpu_erfc(100.0)); + CALL_SUBTEST_8(test_gpu_erfc(5.0)); // GPU erfc lacks precision for large inputs + CALL_SUBTEST_8(test_gpu_erfc(0.01)); + CALL_SUBTEST_8(test_gpu_erfc(0.001)); #if !defined(EIGEN_USE_HIP) // disable these tests on HIP for now. - CALL_SUBTEST_5(test_gpu_ndtri()); - CALL_SUBTEST_5(test_gpu_ndtri()); + CALL_SUBTEST_9(test_gpu_ndtri()); + CALL_SUBTEST_9(test_gpu_ndtri()); - CALL_SUBTEST_5(test_gpu_digamma()); - CALL_SUBTEST_5(test_gpu_digamma()); + CALL_SUBTEST_9(test_gpu_digamma()); + CALL_SUBTEST_9(test_gpu_digamma()); - CALL_SUBTEST_5(test_gpu_polygamma()); - CALL_SUBTEST_5(test_gpu_polygamma()); + CALL_SUBTEST_9(test_gpu_polygamma()); + CALL_SUBTEST_9(test_gpu_polygamma()); - CALL_SUBTEST_5(test_gpu_zeta()); - CALL_SUBTEST_5(test_gpu_zeta()); + CALL_SUBTEST_9(test_gpu_zeta()); + CALL_SUBTEST_9(test_gpu_zeta()); #endif - CALL_SUBTEST_5(test_gpu_igamma()); - CALL_SUBTEST_5(test_gpu_igammac()); + CALL_SUBTEST_9(test_gpu_igamma()); + CALL_SUBTEST_9(test_gpu_igammac()); - CALL_SUBTEST_5(test_gpu_igamma()); - CALL_SUBTEST_5(test_gpu_igammac()); + CALL_SUBTEST_9(test_gpu_igamma()); + CALL_SUBTEST_9(test_gpu_igammac()); #if !defined(EIGEN_USE_HIP) // disable these tests on HIP for now. - CALL_SUBTEST_6(test_gpu_betainc()); - CALL_SUBTEST_6(test_gpu_betainc()); + CALL_SUBTEST_9(test_gpu_betainc()); + CALL_SUBTEST_9(test_gpu_betainc()); - CALL_SUBTEST_6(test_gpu_i0e()); - CALL_SUBTEST_6(test_gpu_i0e()); + CALL_SUBTEST_9(test_gpu_i0e()); + CALL_SUBTEST_9(test_gpu_i0e()); - CALL_SUBTEST_6(test_gpu_i1e()); - CALL_SUBTEST_6(test_gpu_i1e()); + CALL_SUBTEST_9(test_gpu_i1e()); + CALL_SUBTEST_9(test_gpu_i1e()); - CALL_SUBTEST_6(test_gpu_i1e()); - CALL_SUBTEST_6(test_gpu_i1e()); + CALL_SUBTEST_9(test_gpu_i1e()); + CALL_SUBTEST_9(test_gpu_i1e()); - CALL_SUBTEST_6(test_gpu_igamma_der_a()); - CALL_SUBTEST_6(test_gpu_igamma_der_a()); + CALL_SUBTEST_9(test_gpu_igamma_der_a()); + CALL_SUBTEST_9(test_gpu_igamma_der_a()); - CALL_SUBTEST_6(test_gpu_gamma_sample_der_alpha()); - CALL_SUBTEST_6(test_gpu_gamma_sample_der_alpha()); + CALL_SUBTEST_9(test_gpu_gamma_sample_der_alpha()); + CALL_SUBTEST_9(test_gpu_gamma_sample_der_alpha()); #endif }