Codex recommended refactoring for performance fixes.#175
Open
parikshitbajpai wants to merge 10 commits intoORNL-CEES:masterfrom
Open
Codex recommended refactoring for performance fixes.#175parikshitbajpai wants to merge 10 commits intoORNL-CEES:masterfrom
parikshitbajpai wants to merge 10 commits intoORNL-CEES:masterfrom
Conversation
- Allocate and persist `GEM_A`, `GEM_B`, and pivot arrays across iterations instead of reallocating - Slice arrays with current `nVar` to pass correct leading dimensions to LAPACK’s `dgesv`, restoring convergence - Leave TODO for exploring sparse/structured solvers if Hessians are largely zero
…lored output - Discover tests automatically with glob pattern (default: TestThermo*) - Support optional SKIP_TESTS list (empty/unset = no skips) - Keep running after failures and print summary at the end - Special-case handling preserved for TestThermo12 - Colorize PASS (green), FAIL (red), and SKIP (yellow) for better readability
…profiling hooks - Done with codex and is wrecked currently failing on a few tests.
dschwen
reviewed
Aug 26, 2025
Collaborator
dschwen
left a comment
There was a problem hiding this comment.
Looks fine to me. Test 90 is a bit concerning. The failure is specific to the test container. In local builds it passes. Might require some further investigation.
- Refactored subminimization initialization to call a new helper that resizes workspace arrays, ensuring they are reallocated whenever the considered phase’s species count changes - Added `ResizeSubMinWorkspace`, which allocates dHessian, iHessian, and dRHS to nVar + offset based on whether the phase is neutral or ionic
…k-to-resizegemworkspace
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.
The details of the changes are specified in the individual commits but this is overall a Codex driven refactoring to identify code issues and fix them.