Skip to content

Commit

Permalink
Use new Tile Cholesky API
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-eric committed Feb 4, 2025
1 parent 6f1767b commit cff4549
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions warp/sim/integrator_featherstone.py
Original file line number Diff line number Diff line change
Expand Up @@ -1177,14 +1177,7 @@ def eval_dense_gemm_tile(
P_body = wp.tile_matmul(M_body, J_body)

# assign to the P slice
wp.tile_assign(
P,
P_body,
offset=(
i * 6,
0,
),
)
wp.tile_assign(P, P_body, offset=(i * 6, 0))

# compute H = J^T*P
H = wp.tile_matmul(wp.tile_transpose(J), P)
Expand All @@ -1205,9 +1198,9 @@ def eval_tiled_dense_cholesky_batched(

a = wp.tile_load(A[articulation], shape=(num_dofs, num_dofs), storage="shared")
r = wp.tile_load(R[articulation], shape=num_dofs, storage="shared")
wp.tile_diag_add(a, r)
wp.tile_cholesky(a)
wp.tile_store(L[articulation], wp.tile_transpose(a))
a_r = wp.tile_diag_add(a, r)
l = wp.tile_cholesky(a_r)
wp.tile_store(L[articulation], wp.tile_transpose(l))

return eval_tiled_dense_cholesky_batched

Expand Down

0 comments on commit cff4549

Please sign in to comment.