diff --git a/test/sycl_jamfile b/test/sycl_jamfile index f02065a39..ae4742c47 100644 --- a/test/sycl_jamfile +++ b/test/sycl_jamfile @@ -14,6 +14,7 @@ run test_arcsine.cpp ; run test_bernoulli.cpp ; run test_cauchy.cpp ; run test_exponential_dist.cpp ; +run test_landau.cpp ; # Special Functions run pow_test.cpp ; diff --git a/test/test_landau.cpp b/test/test_landau.cpp index 08d18ec8e..297589bc0 100644 --- a/test/test_landau.cpp +++ b/test/test_landau.cpp @@ -1,14 +1,14 @@ -// Copyright Takuma Yoshimura 2024. +// Copyright Takuma Yoshimura 2024. +// Copyright Matt Borland 2024. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #define BOOST_TEST_MAIN #define BOOST_TEST_MODULE StatsLandauTest +#include #include #include -#include - #include #if __has_include() @@ -16,7 +16,11 @@ #endif using boost::math::landau_distribution; -using boost::multiprecision::cpp_bin_float_quad; + +#ifndef BOOST_MATH_HAS_GPU_SUPPORT +# include + using boost::multiprecision::cpp_bin_float_quad; +#endif template void do_test_landau_pdf(){ @@ -738,10 +742,12 @@ BOOST_AUTO_TEST_CASE(landau_pdf_fp64_std) } #endif +#ifndef BOOST_MATH_HAS_GPU_SUPPORT BOOST_AUTO_TEST_CASE(landau_pdf_fp128) { do_test_landau_pdf(); } +#endif BOOST_AUTO_TEST_CASE(landau_cdf_fp64) { @@ -755,10 +761,12 @@ BOOST_AUTO_TEST_CASE(landau_cdf_fp64_std) } #endif +#ifndef BOOST_MATH_HAS_GPU_SUPPORT BOOST_AUTO_TEST_CASE(landau_cdf_fp128) { do_test_landau_cdf(); } +#endif BOOST_AUTO_TEST_CASE(landau_ccdf_fp64) { @@ -772,10 +780,12 @@ BOOST_AUTO_TEST_CASE(landau_ccdf_fp64_std) } #endif +#ifndef BOOST_MATH_HAS_GPU_SUPPORT BOOST_AUTO_TEST_CASE(landau_ccdf_fp128) { do_test_landau_ccdf(); } +#endif BOOST_AUTO_TEST_CASE(landau_quantile_nearzero_fp64) { @@ -789,10 +799,12 @@ BOOST_AUTO_TEST_CASE(landau_quantile_nearzero_fp64_std) } #endif +#ifndef BOOST_MATH_HAS_GPU_SUPPORT BOOST_AUTO_TEST_CASE(landau_quantile_nearzero_fp128) { do_test_landau_quantile_nearzero(); } +#endif BOOST_AUTO_TEST_CASE(landau_quantile_lower_fp64) { @@ -806,10 +818,12 @@ BOOST_AUTO_TEST_CASE(landau_quantile_lower_fp64_std) } #endif +#ifndef BOOST_MATH_HAS_GPU_SUPPORT BOOST_AUTO_TEST_CASE(landau_quantile_lower_fp128) { do_test_landau_quantile_lower(); } +#endif BOOST_AUTO_TEST_CASE(landau_quantile_upper_fp64) { @@ -823,10 +837,12 @@ BOOST_AUTO_TEST_CASE(landau_quantile_upper_fp64_std) } #endif +#ifndef BOOST_MATH_HAS_GPU_SUPPORT BOOST_AUTO_TEST_CASE(landau_quantile_upper_fp128) { do_test_landau_quantile_upper(); } +#endif BOOST_AUTO_TEST_CASE(landau_locscale_fp64) { @@ -840,8 +856,10 @@ BOOST_AUTO_TEST_CASE(landau_locscale_fp64_std) } #endif +#ifndef BOOST_MATH_HAS_GPU_SUPPORT BOOST_AUTO_TEST_CASE(landau_locscale_fp128) { do_test_landau_locscale_param(); } +#endif