test-less-stress
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Sat, 25 Jun 2022 14:28:41 +0000 (15:28 +0100)
committerMo Zhou <lumin@debian.org>
Sat, 25 Jun 2022 14:28:41 +0000 (15:28 +0100)
Forward: https://github.com/oneapi-src/oneTBB/pull/789

===================================================================

Gbp-Pq: Name test-less-stress.patch

test/tbb/test_collaborative_call_once.cpp

index 5473c68326ce0852bc2f6f589a10055b8c4ca2ed..6b13e54adf2f07b72b7d179cc89ca8bc4c3ce9d0 100644 (file)
@@ -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