diff options
author | David Shah <dave@ds0.me> | 2019-11-19 12:28:44 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-02-03 11:38:31 +0000 |
commit | 3b28ba2f76c519145795b1b330fda5851d8f38ca (patch) | |
tree | 4197287d24caaa9d3c24fac12b9e77d2bee16377 /common/router2.cc | |
parent | 39b75244dae48f417522fd902227574debf889cb (diff) | |
download | nextpnr-3b28ba2f76c519145795b1b330fda5851d8f38ca.tar.gz nextpnr-3b28ba2f76c519145795b1b330fda5851d8f38ca.tar.bz2 nextpnr-3b28ba2f76c519145795b1b330fda5851d8f38ca.zip |
router2: Debugging
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'common/router2.cc')
-rw-r--r-- | common/router2.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/router2.cc b/common/router2.cc index e1ed430c..1cb04f9f 100644 --- a/common/router2.cc +++ b/common/router2.cc @@ -791,10 +791,11 @@ struct Router2 bin = 3; tcs.at(bin).route_nets.push_back(ni); } + log_info("%d/%d nets not multi-threadable\n", int(tcs.at(N).route_nets.size()), int(route_queue.size())); // Multithreaded part of routing std::vector<std::thread> threads; for (int i = 0; i < N; i++) { - threads.emplace_back([&]() { router_thread(tcs.at(i)); }); + threads.emplace_back([this, &tcs, i]() { router_thread(tcs.at(i)); }); } for (int i = 0; i < N; i++) threads.at(i).join(); |