Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fixed bug in three-state simulation and duplicate cds results for QuickExact. #388

Merged
merged 27 commits into from
Mar 7, 2024

Conversation

Drewniok
Copy link
Collaborator

@Drewniok Drewniok commented Mar 1, 2024

Description

This PR fixes incorrect simulation results (issue #385) for some layouts in three-state simulation and some duplicate CDs as results (issue #387).

@wlambooy Thanks again for spotting this!

Checklist:

  • The pull request only contains commits that are related to it.
  • I have added appropriate tests and documentation.
  • I have made sure that all CI jobs on GitHub pass.
  • The pull request introduces no new warnings and follows the project's style guidelines.

@Drewniok Drewniok changed the title 🐛 Fixed bug in three-state simulation and duplicate cds results for ``QuickExact''. 🐛 Fixed bug in three-state simulation and duplicate cds results for QuickExact. Mar 1, 2024
@Drewniok Drewniok self-assigned this Mar 1, 2024
@Drewniok Drewniok added the bug Something isn't working label Mar 1, 2024
Copy link
Contributor

github-actions bot commented Mar 1, 2024

clang-tidy review says "All clean, LGTM! 👍"

Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.09%. Comparing base (05a1eec) to head (23eeda2).
Report is 8 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##             main     #388    +/-   ##
========================================
  Coverage   96.09%   96.09%            
========================================
  Files         102      104     +2     
  Lines       10133    10315   +182     
========================================
+ Hits         9737     9912   +175     
- Misses        396      403     +7     
Files Coverage Δ
...n/algorithms/physical_design/design_sidb_gates.hpp 96.34% <100.00%> (-0.60%) ⬇️
.../sidb/check_simulation_results_for_equivalence.hpp 100.00% <100.00%> (ø)
.../fiction/algorithms/simulation/sidb/quickexact.hpp 98.90% <100.00%> (+0.01%) ⬆️
...fiction/technology/charge_distribution_surface.hpp 99.41% <100.00%> (+<0.01%) ⬆️
include/fiction/utils/layout_utils.hpp 98.51% <ø> (ø)
include/fiction/utils/math_utils.hpp 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 26ad67f...23eeda2. Read the comment docs.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

include/fiction/utils/math_utils.hpp Outdated Show resolved Hide resolved
@Drewniok Drewniok requested a review from marcelwa March 4, 2024 07:39
Copy link
Contributor

github-actions bot commented Mar 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

github-actions bot commented Mar 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

@Drewniok
Copy link
Collaborator Author

Drewniok commented Mar 4, 2024

New runtimes:

benchmark name                       samples       iterations    est run time
                                     mean          low mean      high mean
                                     std dev       low std dev   high std dev
-------------------------------------------------------------------------------
QuickExact                                     100             1     1.69339 m 
                                         1.03102 s       1.028 s     1.03517 s 
                                        17.8754 ms    14.3439 ms    27.4865 ms 
                                                                               
QuickSim                                       100             1    437.706 ms 
                                        4.32637 ms    4.29823 ms    4.35893 ms 
                                        154.258 us    132.162 us    194.857 us 

Old (main-branch):

benchmark name                       samples       iterations    est run time
                                     mean          low mean      high mean
                                     std dev       low std dev   high std dev
-------------------------------------------------------------------------------
QuickExact                                     100             1     1.71701 m 
                                         1.03489 s     1.03412 s     1.03594 s 
                                        4.55122 ms    3.44857 ms    6.61014 ms 
                                                                               
QuickSim                                       100             1    430.069 ms 
                                        4.33497 ms     4.3084 ms    4.36221 ms 
                                        136.425 us    119.873 us    158.676 us 

Copy link
Collaborator

@marcelwa marcelwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for getting at it so quickly!

@marcelwa
Copy link
Collaborator

marcelwa commented Mar 4, 2024

New runtimes:

benchmark name                       samples       iterations    est run time
                                     mean          low mean      high mean
                                     std dev       low std dev   high std dev
-------------------------------------------------------------------------------
QuickExact                                     100             1     1.69339 m 
                                         1.03102 s       1.028 s     1.03517 s 
                                        17.8754 ms    14.3439 ms    27.4865 ms 
                                                                               
QuickSim                                       100             1    437.706 ms 
                                        4.32637 ms    4.29823 ms    4.35893 ms 
                                        154.258 us    132.162 us    194.857 us 

Old (main-branch):

benchmark name                       samples       iterations    est run time
                                     mean          low mean      high mean
                                     std dev       low std dev   high std dev
-------------------------------------------------------------------------------
QuickExact                                     100             1     1.71701 m 
                                         1.03489 s     1.03412 s     1.03594 s 
                                        4.55122 ms    3.44857 ms    6.61014 ms 
                                                                               
QuickSim                                       100             1    430.069 ms 
                                        4.33497 ms     4.3084 ms    4.36221 ms 
                                        136.425 us    119.873 us    158.676 us 

Will you put them as a comment in the respective benchmark file?

Copy link
Contributor

github-actions bot commented Mar 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

@Drewniok Drewniok requested a review from marcelwa March 4, 2024 13:42
Copy link
Contributor

github-actions bot commented Mar 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

github-actions bot commented Mar 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

github-actions bot commented Mar 4, 2024

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Contributor

github-actions bot commented Mar 5, 2024

clang-tidy review says "All clean, LGTM! 👍"

@Drewniok Drewniok requested a review from marcelwa March 5, 2024 10:32
Copy link
Contributor

github-actions bot commented Mar 5, 2024

clang-tidy review says "All clean, LGTM! 👍"

@Drewniok Drewniok requested a review from marcelwa March 7, 2024 07:23
Copy link
Contributor

github-actions bot commented Mar 7, 2024

clang-tidy review says "All clean, LGTM! 👍"

Copy link
Collaborator

@marcelwa marcelwa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks!!

@marcelwa marcelwa merged commit aecd480 into cda-tum:main Mar 7, 2024
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants