palaniappan-r's picture
Add markdown sources
d59bb1b verified
# Build times for our design
Tool: Detailed Routing
Subcategory: Performance analysis
## Conversation
### oharboe
There is no question here, just a demonstration of the use of the build time summary for a design that has one top level macro and 5 macros at the top level. What is being built here are mock abstracts for the macros at the top level as we are only interested in regression testing the top level on our build servers.
The top level is the slowest in detailed routing and we have 5 macros at the top level.
We are not currently building the macros at the top level in parallel, though we intend to, but it would only cut the running time by 50%.
![image](https://github.com/The-OpenROAD-Project/OpenROAD/assets/2798822/4cf1cdad-6896-4d2f-9ad2-af2944e50761)
This is the command I run to build a summary of all the build times `find -regex ./logs/.*/base -type d -exec python3 util/genElapsedTime.py -d {} \; | sort -hr -k2`
<!DOCTYPE html>
<html>
<body>
Stage | time/s
-- | --
5_2_TritonRoute | 21313
5_2_TritonRoute | 7284
5_2_TritonRoute | 4744
5_2_TritonRoute | 2964
5_2_TritonRoute | 1825
5_2_TritonRoute | 1482
3_3_place_gp | 1274
4_1_cts | 1158
3_3_place_gp | 666
1_1_yosys | 617
4_1_cts | 379
6_report | 332
3_3_place_gp | 312
5_2_TritonRoute | 294
3_5_opendp | 293
1_1_yosys | 287
5_2_TritonRoute | 282
3_3_place_gp | 278
4_1_cts | 273
3_4_resizer | 224
4_1_cts | 203
5_1_fastroute | 198
6_report | 164
5_1_fastroute | 164
1_1_yosys | 160
5_1_fastroute | 142
3_1_place_gp_skip_io | 132
5_1_fastroute | 126
3_4_resizer | 123
6_report | 116
3_5_opendp | 109
... | ...
</body>
</html>
### maliberty
That is average behaviour as drt is costly. It does scale pretty well with threads so more CPUs helps. We do have some work to do distributed drt if you want to test it out but it isn't in the flow currently due to the extra setup overhead.
### maliberty
How many threads in your data above?
### oharboe
No question or suggestions here, just a datapoint that I thought it might have some value in sharing.
### maliberty
Fwiw we test with 40 cpus and I know Google often uses 96. We have tested with several hundred in distributed mode.