-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
[docs] restructure the Parallelism tutorial and add section on model building #3897
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3897 +/- ##
=======================================
Coverage 99.58% 99.58%
=======================================
Files 43 43
Lines 6043 6043
=======================================
Hits 6018 6018
Misses 25 25 ☔ View full report in Codecov by Sentry. |
Threads.@threads for i in 1:10 | ||
con = @build_constraint(x[i] <= i) | ||
Threads.lock(my_lock) do | ||
add_constraint(model, con) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this preserve determinism in the constraint order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope
x-ref #2348
Preview: https://jump.dev/JuMP.jl/previews/PR3897/tutorials/algorithms/parallelism/