[libcxx-commits] [pstl] r356935 - [pstl] Gate usage of TBB in test on whether TBB is used as a backend
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Mar 25 11:37:28 PDT 2019
Author: ldionne
Date: Mon Mar 25 11:37:28 2019
New Revision: 356935
URL: http://llvm.org/viewvc/llvm-project?rev=356935&view=rev
Log:
[pstl] Gate usage of TBB in test on whether TBB is used as a backend
__PSTL_USE_PAR_POLICIES is the wrong macro to use there, since the PSTL
could conceivably be using parallel policies but not TBB as a backend.
Modified:
pstl/trunk/test/test_partial_sort.cpp
Modified: pstl/trunk/test/test_partial_sort.cpp
URL: http://llvm.org/viewvc/llvm-project/pstl/trunk/test/test_partial_sort.cpp?rev=356935&r1=356934&r2=356935&view=diff
==============================================================================
--- pstl/trunk/test/test_partial_sort.cpp (original)
+++ pstl/trunk/test/test_partial_sort.cpp Mon Mar 25 11:37:28 2019
@@ -79,7 +79,7 @@ struct test_brick_partial_sort
if (m1 - first > 1)
{
auto complex = std::ceil(n * std::log(float32_t(m1 - first)));
-#if __PSTL_USE_PAR_POLICIES
+#if defined(__PSTL_PAR_BACKEND_TBB)
auto p = tbb::this_task_arena::max_concurrency();
#else
auto p = 1;
More information about the libcxx-commits
mailing list