Repository navigation
cppDE 0.13.17 - #2
Merged
Merged
Conversation
…d restores it after the join, no thread of a batch calls the setter; a single solve keeps the count of the caller; blasThreads() replaces forkGuard(), no fork() handler and no startup message; configure finds SUNDIALS and KLU where TMPDIR names a missing directory; tests of shapes, messages and pass-through removed; derivatives of a reparameterization in Leibniz notation; cppDE 0.13.17 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
|
All checks pass. Merged into master by fast-forward, so the commit and its author stay as they are; tagged v0.13.17. |
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.
cppDE 0.13.17.
The BLAS thread count is process-global. A batch now sets it to one in the serial phase, before the OpenMP team starts, and restores the caller's count after the join. Before, every solve inside a batch called the setter from its own thread, which MKL documents as unsafe from parallel threads.
cppde_blas_threads.hpp:serial_blas_scopereplacessingle_thread_blas_scope,ensure_single_thread_blas()and thefork()guard. Inside a parallel region the scope does nothing.solveBatch(),solveODEBatch()and theevaluateBatchentry ofcppFUN()set the scope around the team. A single solve keeps the caller's count, except where the BLAS loads an OpenMP runtime other than libgomp.blasThreads()reads and sets the count.forkGuard(), thefork()handler and the startup message are removed.configureandconfigure.winfall back to/tmpwith a validmktemptemplate. Before, aTMPDIRthat names a missing directory, as on some login nodes, made every probe fail, so SUNDIALS and KLU were not found.?solveODEand the methods articles write the derivatives of a reparameterization in Leibniz notation.Models compiled with an earlier cppDE keep the previous behavior until they are compiled again. dMod2 0.18.1 (next pull request) compiles its kernels against these headers.
See NEWS.md.