From df32bf6b74039f1fc8c797a1fcaa96b5628be976 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 25 Mar 2019 18:37:28 +0000 Subject: [PATCH] [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. llvm-svn: 356935 --- pstl/test/test_partial_sort.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pstl/test/test_partial_sort.cpp b/pstl/test/test_partial_sort.cpp index 0d84712582b4..1c28b09d7145 100644 --- a/pstl/test/test_partial_sort.cpp +++ b/pstl/test/test_partial_sort.cpp @@ -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;