diff options
author | Louis Dionne <ldionne@apple.com> | 2019-03-25 18:37:28 +0000 |
---|---|---|
committer | Louis Dionne <ldionne@apple.com> | 2019-03-25 18:37:28 +0000 |
commit | df32bf6b74039f1fc8c797a1fcaa96b5628be976 (patch) | |
tree | 23700f9616c7ba8a7ddb3da9376b5ce48f6f5792 | |
parent | dab9ed87c6c57ce1020822591c5da55ebe064336 (diff) | |
download | bcm5719-llvm-df32bf6b74039f1fc8c797a1fcaa96b5628be976.tar.gz bcm5719-llvm-df32bf6b74039f1fc8c797a1fcaa96b5628be976.zip |
[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
-rw-r--r-- | pstl/test/test_partial_sort.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pstl/test/test_partial_sort.cpp b/pstl/test/test_partial_sort.cpp index 0d84712582b..1c28b09d714 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; |