Skip to content

Commit

Permalink
Merge branch 'parallaxsw:master' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
akashlevy authored Nov 14, 2024
2 parents ab9f76d + 7ef084e commit 229d4d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dcalc/DmpCeff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ DmpCeffDelayCalc::gateDelay(const Pin *drvr_pin,
dcalc_result.setGateDelay(gate_delay);
dcalc_result.setDrvrSlew(drvr_slew);

for (const auto [load_pin, load_idx] : load_pin_index_map) {
for (const auto &[load_pin, load_idx] : load_pin_index_map) {
ArcDelay wire_delay;
Slew load_slew;
loadDelaySlew(load_pin, drvr_slew, rf, drvr_library, parasitic,
Expand Down
5 changes: 3 additions & 2 deletions search/Bfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,15 @@ BfsIterator::visitParallel(Level to_level,
else {
size_t from = 0;
size_t chunk_size = vertex_count / thread_count;
BfsIndex bfs_index = bfs_index_;
for (size_t k = 0; k < thread_count; k++) {
// Last thread gets the left overs.
size_t to = (k == thread_count - 1) ? vertex_count : from + chunk_size;
dispatch_queue_->dispatch( [&](int) {
dispatch_queue_->dispatch( [=](int) {
for (size_t i = from; i < to; i++) {
Vertex *vertex = level_vertices[i];
if (vertex) {
vertex->setBfsInQueue(bfs_index_, false);
vertex->setBfsInQueue(bfs_index, false);
visitors[k]->visit(vertex);
}
}
Expand Down

0 comments on commit 229d4d4

Please sign in to comment.