Reduce opt_clean parallelism

This commit is contained in:
Robert O'Callahan 2026-03-05 20:04:49 +00:00
parent 8d8c05b338
commit 9c51ba1b09
2 changed files with 2 additions and 2 deletions

View File

@ -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
// 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);
remove_temporary_cells(module, subpool, clean_ctx.flags.verbose);
rmunused_module_cells(module, subpool, clean_ctx);

View File

@ -64,7 +64,7 @@ private:
int thread_pool_size = 0;
for (auto module : selected_modules)
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;
}