Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1803 +/- ##
=======================================
Coverage 86.84% 86.85%
=======================================
Files 436 436
Lines 57952 57952
Branches 5460 5460
=======================================
+ Hits 50330 50332 +2
+ Misses 6186 6185 -1
+ Partials 1436 1435 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a how-to guide for setting Pardiso's thread count using
solver_opts={"n_threads": ...}and link it from the user guide and solver selection guide.PR Checklist
Reference issue
Closes #1730.
What does this implement/fix?
The guide includes a complete DC simulation, explains when SimPEG applies
solver_opts, and demonstrates inspecting/changing the process-wide thread count via the solver'sn_threadsproperty. It explicitly notes that different Pardiso instances in one process do not have independent thread limits, as clarified in the issue discussion.Additional information
Validation used the current SimPEG checkout with Python 3.12, pymatsolver 0.4.0 and pydiso 0.2.0 in an x86_64 container. Both examples passed, including a finite DC prediction and assertions showing the shared thread setting. The emulated environment used
MKL_NUM_THREADS=2,OMP_WAIT_POLICY=PASSIVE, andKMP_BLOCKTIME=0.sphinx-build -D plot_gallery=0 -b html docs <output> -j 2completed successfully. The full documentation emits existing warnings/errors in unrelated API/release pages; the final incremental build emits none for the new guide or the modified solver-selection page. No simulation code is changed.