parallaxsw / OpenSTA

GNU General Public License v3.0
52 stars 23 forks source link

Resolve data races found by ThreadSanitizer #121

Open eszpotanski opened 2 weeks ago

eszpotanski commented 2 weeks ago

This PR fixes following data races found by ThreadSanitizer when OpenSTA is run by OpenROAD-flow-scripts:

These changes incur a significant slowdown (between 10% and 40%, depending on number of threads, used design or stage).

Note that these are only the races found by ThreadSanitizer, not necessarily all of them.

CLAassistant commented 2 weeks ago

CLA assistant check
All committers have signed the CLA.

QuantamHD commented 1 week ago

@jjcherry56 Do these changes seem reasonable, or is there a better way to address these data races? The atomic bitset seems a bit complicated to me, but it might be worth the speed up.

eszpotanski commented 1 day ago

As https://github.com/parallaxsw/OpenSTA/commit/b4be3c537af174eb3d6e486c8f1371882562e631 fixed part of the data races, I've updated this PR to contain fixes for remaining ones - caused by: