From 6a72729decdc5e4eb5822c2dd050215b82055aac Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 26 Oct 2020 19:51:06 +0900 Subject: [PATCH] temporary --- main.cc | 2 +- mold.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.cc b/main.cc index 38739946..6a383003 100644 --- a/main.cc +++ b/main.cc @@ -339,7 +339,7 @@ private: }; int main(int argc, char **argv) { - // tbb::task_scheduler_init init(1); + tbb::global_control tbb_cont(tbb::global_control::max_allowed_parallelism, 64); tbb::task_group tg; // Parse command line options diff --git a/mold.h b/mold.h index 6de79adc..cee95cfd 100644 --- a/mold.h +++ b/mold.h @@ -16,12 +16,13 @@ #include "tbb/concurrent_hash_map.h" #include "tbb/concurrent_unordered_set.h" #include "tbb/concurrent_vector.h" +#include "tbb/global_control.h" #include "tbb/parallel_for_each.h" #include "tbb/parallel_reduce.h" #include "tbb/parallel_sort.h" #include "tbb/partitioner.h" +#include "tbb/task_arena.h" #include "tbb/task_group.h" -// #include "tbb/task_scheduler_init.h" #include #include