Repository navigation
Conversation
rand() produces different sequences on glibc from linux versus Apple libc. mt19937 produces the same sequence on all platforms. This affects 26 tests in gpl and 3 tests in rsz plus the python tests which test the same. This reduces the regression test failures on MacOS from 60 to 11. Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
|
Note The number of changes in this pull request is too large for Gemini Code Assist to generate a review. |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
There are quite a few failures to address. |
Very strange that //src/pdn/test:pads_black_parrot_flipchip_connect_overpads-tcl_test FAILED in 2.4s fails on CI Bazel while that one passes on debian 13 x86_64 locally. But i noticed already that that one is "flaky". It also fails on MacOS. The test is pass on local Debian 13 aarch64. Fail on MacOS: Golden Reference: It is however unexpected for me that there is a difference between Ubuntu 2204 and Debian 13 both on x86_64. It is the only failing test from the 1212 bazel ones. But that one passes on Ctest: Then from the ctest regression: So there seem to be tests that differ between ctest and bazel and are excluded in bazel. As I only tested in bazel, I did not "see" them failing. The
Strange. Maybe this is also in the category of unexplained differences between ctest and bazel and we exclude that one also from bazel? The other tests seem to be excluded from bazel regular tests because there are unexplained differences between ctest and bazel. I look a little bit closer to the tests which are excluded from bazel. |
|
clang-tidy review says "All clean, LGTM! 👍" |
5 similar comments
|
clang-tidy review says "All clean, LGTM! 👍" |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
clang-tidy review says "All clean, LGTM! 👍" |
The new platform deterministic mt19937 random number generator produces new reference files. This commit contains the updated golden reference files. Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
…ds to manual In the regression this test sometimes fails and sometimes passes on ubuntu 2204. When it fails one additional metal shape is created. Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
|
clang-tidy review says "All clean, LGTM! 👍" |
|
I updated the remaining tests which are not part of the bazel regression and only run as ctest or are part of the "flow_tests". For the flowtests I used the provided scripts to generate the new metric_limits. I removed the blackparrot test from the bazel regression. The "flakyness" for blackparrot is described in issue #9611. |
|
@gudeh as this changes the results it will need a full secure CI. Please launch one. @fredowski there are some designs too big for the usual check-in testing. For gpl changes please also run https://github.com/The-OpenROAD-Project/OpenROAD/blob/master/src/gpl/test/regression-large and update as needed. |
This are the new golden reference files for the change from rand() to mt19937(). Those are usually not in CI. You can test with src/gpl/test/regression-large Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
|
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Friedrich Beckmann <friedrich.beckmann@tha.de>
Secure-CI running at: https://jenkins.openroad.tools/blue/organizations/jenkins/OpenROAD-flow-scripts-Private/detail/secure-gpl-randfix/1/pipeline |
I updated those golden files also. The tests pass on a ubuntu2204 docker with the changes here. That are the files which are too big for clang-tidy and friends. |
Thanks for starting "Secure-CI". This is non-public? For me this link is 404. |
|
Yes the secure CI runs all the public designs in ORFS but also some confidential ones that Precision Innovations has under NDA can can't be made public. |
|
sky130hd/aes fatal at GRT: |
|
These two are also large enough to be a concern: @fredowski these are all public designs so you can run them yourself. Do you want to look at them or do you want help from @gudeh ? |
|
when investigating sky130hd/aes failing I noticed the gpl incremental mode is resetting the placement even when we don't have any new instances at stage 3-4, meaning we lose all routability work!! I should include a fix to this at the recent open PR for fixing incremental mode at #9610.
|
I do not feel very comfortable to judge this. Regarding the change from rand() to mt19937() - is this maybe normal? |
|
I expect the change in #9650 resolved the fatal we were getting with sky130hd/aes. I updated and triggered the secure-CI again. I will reassess and review on large metrics changes, if necessary. |
|
Thank you! |
|
😞 |
|
I see sky130hd/jpeg is quite tight already on master. For sky130hd/chameleon it timed out at DRT's 36th iteration. Both sky130hd jpeg and chameleon had their utilization recently increased (they are owned by @jfgava). Is decreasing their utilization an option to have this PR merged? Or should I investigate deeper on each? |
|
@gudeh |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remove the |
|
I was focusing on other tasks and ended up leaving this one hanging, sorry. I re-ran the secure-CI and we get some fatals; We also get this big TNS degradation which I also observed on another PR for DPL. Might be related to issue #10483 |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 21 days if no further activity occurs. Remove the |
|
I re-ran this on secure-CI and I see this is now no-op. I understand PR #10642 overcomes the current change, and I believe we should close this PR. The code now has the variable |



rand() is linked from glib on Linux and from some different library on MacOS. The two different versions produce different pseudorandom sequences. This makes the regression results different on Linux and on MacOS. As the "golden" reference files are produced on Linux, the regression fails on MacOS.
This patch changes the rand function in gpl from rand() to mt19937()
I update the reference files accordingly. I do not see how this can have an impact on real functionality. This reduces the number of failed tests for src/... from 60 to 14 on MacOs