mirror of https://github.com/YosysHQ/yosys.git
Reduce opt_clean parallelism
This commit is contained in:
parent
8d8c05b338
commit
9c51ba1b09
|
|
@ -31,7 +31,7 @@ void rmunused_module(RTLIL::Module *module, bool rminit, CleanRunContext &clean_
|
||||||
|
|
||||||
// Use no more than one worker per thousand cells, rounded down, so
|
// Use no more than one worker per thousand cells, rounded down, so
|
||||||
// we only start multithreading with at least 2000 cells.
|
// we only start multithreading with at least 2000 cells.
|
||||||
int num_worker_threads = ThreadPool::work_pool_size(0, module->cells_size(), 1000);
|
int num_worker_threads = ThreadPool::work_pool_size(0, module->cells_size(), 10000);
|
||||||
ParallelDispatchThreadPool::Subpool subpool(clean_ctx.thread_pool, num_worker_threads);
|
ParallelDispatchThreadPool::Subpool subpool(clean_ctx.thread_pool, num_worker_threads);
|
||||||
remove_temporary_cells(module, subpool, clean_ctx.flags.verbose);
|
remove_temporary_cells(module, subpool, clean_ctx.flags.verbose);
|
||||||
rmunused_module_cells(module, subpool, clean_ctx);
|
rmunused_module_cells(module, subpool, clean_ctx);
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ private:
|
||||||
int thread_pool_size = 0;
|
int thread_pool_size = 0;
|
||||||
for (auto module : selected_modules)
|
for (auto module : selected_modules)
|
||||||
thread_pool_size = std::max(thread_pool_size,
|
thread_pool_size = std::max(thread_pool_size,
|
||||||
ThreadPool::work_pool_size(0, module->cells_size(), 1000));
|
ThreadPool::work_pool_size(0, module->cells_size(), 10000));
|
||||||
return thread_pool_size;
|
return thread_pool_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue