From bfc32e9f69d8b06f2533661ee71bfd04d3196c73 Mon Sep 17 00:00:00 2001 From: acxz <17132214+acxz@users.noreply.github.com> Date: Mon, 13 Jan 2020 07:29:41 -0500 Subject: [PATCH] add deprecated task_scheduler_init until alternative is found --- examples/TimeTBB.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/TimeTBB.cpp b/examples/TimeTBB.cpp index 58da3d67b..09a02faaa 100644 --- a/examples/TimeTBB.cpp +++ b/examples/TimeTBB.cpp @@ -32,6 +32,7 @@ using boost::assign::list_of; #include // tbb::tick_count #include // tbb::parallel_for #include // tbb::cache_aligned_allocator +#include // tbb::task_scheduler_init static const DenseIndex numberOfProblems = 1000000; static const DenseIndex problemSize = 4; @@ -154,6 +155,7 @@ int main(int argc, char* argv[]) for(size_t n: numThreads) { cout << "With " << n << " threads:" << endl; + tbb::task_scheduler_init init((int)n); results[(int)n].grainSizesWithoutAllocation = testWithoutMemoryAllocation(); results[(int)n].grainSizesWithAllocation = testWithMemoryAllocation(); cout << endl;