[PERF IMPROVEMENT] func_update_constraint_batch: hoist Jaref load in constraint update loop#34
Open
lohiaj wants to merge 1 commit intoamd-integrationfrom
Open
[PERF IMPROVEMENT] func_update_constraint_batch: hoist Jaref load in constraint update loop#34lohiaj wants to merge 1 commit intoamd-integrationfrom
lohiaj wants to merge 1 commit intoamd-integrationfrom
Conversation
Author
|
/run-ci |
1 similar comment
Author
|
/run-ci |
d7f57b9 to
0c5bd5b
Compare
Author
|
/run-ci |
0c5bd5b to
a7fbfc1
Compare
a7fbfc1 to
0c5bd5b
Compare
Collaborator
|
/run-ci |
Author
|
/run-ci |
21cd235 to
0c5bd5b
Compare
Author
|
/run-ci |
1 similar comment
Author
|
/run-ci |
…constraint update loop Hoist `constraint_state.Jaref[i_c, i_b]` into a local in the per-constraint update loop used by `func_solve_iter`. The same Jaref value is used multiple times in the friction, contact, and force update branches. Keeping it in a local makes the intended reuse explicit to Quadrants/LLVM and avoids re-materializing the same indexed load across branch-local computations. The change is intentionally narrow: - no change to active-state writes - no loop fusion - no algorithmic change - no change to sparse_solve semantics Correctness verified locally by differential simulation against the current `amd-integration` baseline: position and velocity statistics remain within floating-point noise, and contact counts are identical.
0c5bd5b to
0b109fa
Compare
Author
|
/run-ci |
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
Hoists
constraint_state.Jaref[i_c, i_b]into a local in the per-constraint update loop used byfunc_solve_iter.The same Jaref value is used multiple times in the friction, contact, and force update branches. Keeping it in a local makes the intended reuse explicit to Quadrants/LLVM and avoids re-materializing the same indexed load across branch-local computations.
The change is intentionally narrow:
Correctness
Differential simulation against current
amd-integration: position and velocity statistics remain within floating-point noise, and contact counts are identical.Scope
Single file:
genesis/engine/solvers/rigid/constraint/solver.py.