update update_gradient_JTCJ_sparse#1225
Merged
thowell merged 1 commit intogoogle-deepmind:mainfrom Mar 18, 2026
Merged
Conversation
Collaborator
Author
|
@adenzler-nvidia @Kenny-Vilella any ideas for further improving performance for elliptic friction cones + sparse constraint jacobian? |
Collaborator
|
@thowell I will hopefully start to look at perf again this week. Will come back to you. |
3 tasks
Collaborator
Author
|
there was a bug in the sparse code path that is now fixed in #1223. performance between the sparse and dense code paths is now significantly closer |
Collaborator
|
Yeah you can probably merge that and we can continuously improve perf. |
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.
improve performance for elliptic friction cones with sparse constraints
benchmark: aloha pot
(note: there are ccd_iteration warnings)
main 02cde5b
SPARSE_CONSTRAINT_JACOBIAN=Falsew/ bug fix from #1223main 02cde5b
SPARSE_CONSTRAINT_JACOBIAN=Truew/ bug fix from #1223this pr
SPARSE_CONSTRAINT_JACOBIAN=Truew/ bug fix from #1223ctx.h.zero_()tl;dr
performance for the sparse constraint jacobian code path is improved
sps: 633,914 -> 2,012,126
but this is still not as performance as the dense constraint jacobian code pathwe have significantly closed the performance gap with the dense code path
sps: 2,064,309 -> 2,012,126