Use upper Cholesky factors#1355
Open
adenzler-nvidia wants to merge 1 commit into
Open
Conversation
thowell
reviewed
May 13, 2026
8b485ec to
b58f553
Compare
b58f553 to
6761302
Compare
Collaborator
|
since this pr upgrades warp to 1.13.0 we can remove this guard? mujoco_warp/mujoco_warp/_src/io.py Line 2817 in 9fca8f7 |
Collaborator
Author
|
I can remove the guard, are we ok with defaulting to cuBql for all cases? |
6761302 to
cf3bf5f
Compare
Collaborator
|
@StafaH can you comment on the bvh constructor? thanks! |
thowell
reviewed
May 15, 2026
| elemid += 1 | ||
| j = mjm.dof_parentid[j] | ||
| m.qM_fullm_elemid = qM_fullm_elemid | ||
| m.qM_fullm_upper_i, m.qM_fullm_upper_j, m.qM_fullm_upper_elemid = [], [], [] |
Collaborator
There was a problem hiding this comment.
how about something like
upper_j, upper_i = np.triu_indices(mjm.nv)
upper_elemids = qM_fullm_elemid[upper_i, upper_j]
valid_mask = upper_elemids != -1
m.qM_fullm_upper_i = list(upper_j[valid_mask])
m.qM_fullm_upper_j = list(upper_i[valid_mask])
m.qM_fullm_upper_elemid = list(upper_elemids[valid_mask])
thowell
approved these changes
May 15, 2026
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
warp-langdependency to 1.13.This should be net-same for most cases, and positive for cases where the tile size is a power of 2.
Benchmarks
Clean-machine reverify against stable baseline,
three_humanoidswithnworld=8192 nconmax=100 njmax=192:Tests
uv run ruff check mujoco_warp/_src/block_cholesky.py mujoco_warp/_src/forward.py mujoco_warp/_src/io.py mujoco_warp/_src/smooth.py mujoco_warp/_src/solver.py mujoco_warp/_src/types.py mujoco_warp/_src/smooth_test.py mujoco_warp/_src/solver_test.py mujoco_warp/_src/support_test.pyuv run pytest mujoco_warp/_src/solver_test.py::SolverTest::test_qM_fullm_upper_indices_are_row_sorted mujoco_warp/_src/smooth_test.py::SmoothTest::test_factor_m0 mujoco_warp/_src/smooth_test.py::SmoothTest::test_factor_m1 mujoco_warp/_src/smooth_test.py::SmoothTest::test_factor_solve_i0 mujoco_warp/_src/smooth_test.py::SmoothTest::test_factor_solve_i1 mujoco_warp/_src/support_test.py::SupportTest::test_block_cholesky --tb=short -qgit diff --check upstream/main