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 thread safety of RegularizedForwardPass #806

Merged
merged 5 commits into from
Nov 27, 2024
Merged

Fix thread safety of RegularizedForwardPass #806

merged 5 commits into from
Nov 27, 2024

Conversation

odow
Copy link
Owner

@odow odow commented Nov 27, 2024

Closes #791

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.56%. Comparing base (aa0cf1b) to head (e4764ea).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #806      +/-   ##
==========================================
- Coverage   93.58%   93.56%   -0.02%     
==========================================
  Files          26       26              
  Lines        3521     3528       +7     
==========================================
+ Hits         3295     3301       +6     
- Misses        226      227       +1     

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

@odow
Copy link
Owner Author

odow commented Nov 27, 2024

@FSchmidtDIW try with this branch:

] add SDDP#od/thread-safety

@FSchmidtDIW
Copy link
Contributor

FSchmidtDIW commented Nov 27, 2024

@odow Thank you for implementing this!

I guess you also need to get rid of this part of algorithm.jl, right?

SDDP.jl/src/algorithm.jl

Lines 1138 to 1142 in aa0cf1b

if forward_pass isa AlternativeForwardPass ||
forward_pass isa RegularizedForwardPass
# FIXME(odow): Threaded is broken for these forward passes
parallel_scheme = Serial()
end

I have added a PR to that effect: #807

Works fine for my problem now!

src/plugins/forward_passes.jl Outdated Show resolved Hide resolved
@odow odow merged commit 27efd42 into master Nov 27, 2024
8 checks passed
@odow odow deleted the od/thread-safety branch November 27, 2024 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recording primal/dual iterates
2 participants