From e49802dc0142cd06b5f222157daadce3c20e7ca9 Mon Sep 17 00:00:00 2001 From: Debian Science Maintainers Date: Sat, 25 Jun 2022 15:28:41 +0100 Subject: [PATCH] test-less-stress Forward: https://github.com/oneapi-src/oneTBB/pull/789 =================================================================== Gbp-Pq: Name test-less-stress.patch --- test/tbb/test_collaborative_call_once.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test/tbb/test_collaborative_call_once.cpp b/test/tbb/test_collaborative_call_once.cpp index 5473c68..6b13e54 100644 --- a/test/tbb/test_collaborative_call_once.cpp +++ b/test/tbb/test_collaborative_call_once.cpp @@ -213,11 +213,14 @@ TEST_CASE("only calls once - move only argument") { TEST_CASE("only calls once - stress test") { #if TBB_TEST_LOW_WORKLOAD constexpr std::size_t N = 32; -#elif __TBB_x86_32 || __aarch32__ || __ANDROID__ +#elif __TBB_x86_32 || __arm__ || __ANDROID__ // Some C++ implementations allocate 8MB stacks for std::thread on 32 bit platforms // that makes impossible to create more than ~500 threads. // Android has been added to decrease testing time. constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; +#elif defined(__ILP32__) && defined(__x86_64__) + // This is for x32 port https://wiki.debian.org/X32Port + constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; #else constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 4; #endif @@ -284,11 +287,14 @@ TEST_CASE("handles exceptions - state reset") { TEST_CASE("handles exceptions - stress test") { #if TBB_TEST_LOW_WORKLOAD constexpr std::size_t N = 32; -#elif __TBB_x86_32 || __aarch32__ || __ANDROID__ +#elif __TBB_x86_32 || __arm__ || __ANDROID__ // Some C++ implementations allocate 8MB stacks for std::thread on 32 bit platforms // that makes impossible to create more than ~500 threads. // Android has been added to decrease testing time. constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; +#elif defined(__ILP32__) && defined(__x86_64__) + // This is for x32 port https://wiki.debian.org/X32Port + constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; #else constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 4; #endif -- 2.30.2