# GRiD: GPU-Accelerated Rigid Body Dynamics with Analytical Gradients

arXiv: https://arxiv.org/abs/2109.06976 · HTML: https://mlsanity.com/paper/2109.06976/

## Key facts

- Cited by 2 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 14 Sep 2021.

## Built on by (most cited first, 2 of 2)

- [Real2Sim2Real Transfer for Control of Cable-driven Robots via a Differentiable Physics Engine](https://mlsanity.com/paper/2209.06261/) (2022)
- [Batched Differentiable Rigid Body Dynamics in PyTorch for GPU-Accelerated Robot Learning](https://mlsanity.com/paper/2605.31481/) (2026)

## Abstract (arXiv)

We introduce GRiD: a GPU-accelerated library for computing rigid body dynamics with analytical gradients. GRiD was designed to accelerate the nonlinear trajectory optimization subproblem used in state-of-the-art robotic planning, control, and machine learning, which requires tens to hundreds of naturally parallel computations of rigid body dynamics and their gradients at each iteration. GRiD leverages URDF parsing and code generation to deliver optimized dynamics kernels that not only expose GPU-friendly computational patterns, but also take advantage of both fine-grained parallelism within each computation and coarse-grained parallelism between computations. Through this approach, when performing multiple computations of rigid body dynamics algorithms, GRiD provides as much as a 7.2x speedup over a state-of-the-art, multi-threaded CPU implementation, and maintains as much as a 2.5x speedup when accounting for I/O overhead. We release GRiD as an open-source library for use by the wider robotics community.
