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

Fix 'fast reduce' variable incorrectly is set to 0 as its default #640

Closed
wants to merge 3 commits into from

Conversation

SSoelvsten
Copy link
Owner

@SSoelvsten SSoelvsten commented Mar 12, 2024

The default constructor for exec_policy::nested::fast_reduce passes a float 0.05 directly to the unsigned char _value. This immediately converts it to the value of 0 rather than running it through the from_float function as intended.

Based on various experiments, we can also conclude that:

  • The epsilon value might need to be different for the inner and the outer Reduce?
  • The value for fast reduce seems to better as -1.0 (turned off) or possibly 0.02.

@SSoelvsten SSoelvsten added the 🔥 bug Something isn't working label Mar 12, 2024
@SSoelvsten SSoelvsten self-assigned this Mar 12, 2024
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.306%. Comparing base (5ac21d0) to head (a59ca92).
Report is 3 commits behind head on main.

❗ Current head a59ca92 differs from pull request most recent head 29a32ac. Consider uploading reports for the commit 29a32ac to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##              main      #640       +/-   ##
=============================================
- Coverage   97.306%   97.306%   -0.000%     
=============================================
  Files           90        90               
  Lines         6534      6533        -1     
=============================================
- Hits          6358      6357        -1     
  Misses         176       176               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This comment was marked as off-topic.

Copy link

🔴 Regression Test (QBF 'ep/8x8_7_e-8-1_p-3-4_bwnib')

'origin/exec_policy/bug/fast_reduce-always-zero' is a change in performance of -0.46% (stdev: 0.24%).

... origin/main origin/exec_policy/bug/fast_reduce-always-zero
Mean 11391.67 11444.33
Standard Deviation 27.21 11.50

Number of samples: 3

Copy link

🔴 Regression Test (QBF 'domineering/5x5_13_bwnib')

'origin/exec_policy/bug/fast_reduce-always-zero' is a change in performance of -51.07% (stdev: 0.48%).

... origin/main origin/exec_policy/bug/fast_reduce-always-zero
Mean 22767.00 34394.33
Standard Deviation 29.51 166.78

Number of samples: 3

Copy link

github-actions bot commented Mar 12, 2024

🟡 Regression Test (QBF 'breakthrough/3x4_19_bwnib')

'origin/exec_policy/bug/fast_reduce-always-zero' is a change in performance of -0.57% (stdev: 0.68%).

... origin/main origin/exec_policy/bug/fast_reduce-always-zero
Mean 24472.33 24611.67
Standard Deviation 167.05 42.44

Number of samples: 3

This comment was marked as off-topic.

Copy link

🔴 Regression Test (QBF 'breakthrough/3x5_11_bwnib')

'origin/exec_policy/bug/fast_reduce-always-zero' is a change in performance of -13.91% (stdev: 0.26%).

... origin/main origin/exec_policy/bug/fast_reduce-always-zero
Mean 7349.25 8371.75
Standard Deviation 19.19 12.42

Number of samples: 4

This comment was marked as off-topic.

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link

🟢 Regression Test (QBF 'connect4/4x4_9_connect3_bwnib')

'origin/exec_policy/bug/fast_reduce-always-zero' is a change in performance of 2.43% (stdev: 9.51%).

... origin/main origin/exec_policy/bug/fast_reduce-always-zero
Mean 1219.80 1190.10
Standard Deviation 115.98 17.00

Number of samples: 10

@SSoelvsten
Copy link
Owner Author

Based on these experiments, this optimisation should just be removed. This is going to be done on a separate branch and pull request instead.

@SSoelvsten SSoelvsten closed this Mar 13, 2024
@SSoelvsten SSoelvsten deleted the exec_policy/bug/fast_reduce-always-zero branch March 15, 2024 09:52
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
Development

Successfully merging this pull request may close these issues.

1 participant