NVIDIA/warp

A Python framework for GPU-accelerated simulation, robotics, and machine learning.

What it solves

Simulation and physics-heavy workloads often demand low-level performance tuning, and mixing them with machine learning usually requires painful integration. Warp lets you write high-level Python code and runs it at near-native speed on CPU or GPU, while keeping the computations differentiable so they can plug into ML training pipelines.

How it works

Warp takes ordinary Python functions decorated with @wp.kernel and JIT-compiles them into efficient kernels that run on the CPU or GPU. Inside these kernels you use Warp's array types and built-in math primitives. The framework also provides many ready-made building blocks for physics simulation, geometry processing, and robotics, and it supports automatic differentiation of the kernels for use with frameworks like PyTorch, JAX, and Paddle.

Who it’s for

Researchers, engineers, and developers working on physics simulation, robotics, geometry processing, and scientific computing who need GPU speed and want to integrate their simulations into machine-learning workflows. It's also useful for building differentiable simulations for optimization and learning.

Highlights

  • JIT compiles Python functions to fast kernel code for CPU and GPU.
  • Rich set of primitives for physics simulation, robotics, and geometry processing.
  • Kernels are differentiable and integrate with PyTorch, JAX, and Paddle.
  • Simple example: simulate one million particles under gravity in 20 lines of Python.
  • Published on PyPI as warp-lang; supports Windows, Linux, and macOS (Apple Silicon) platforms.

Related

  • Dispatch
  • Project
  • Project
  • Project
  • Project