Skip to main content

PyPI version License GitHub commit activity Downloads codecov GitHub - CI

NVIDIA Warp

Documentation | Changelog

Warp is a Python framework for GPU-accelerated simulation, robotics, and machine learning. Warp takes regular Python functions and JIT compiles them to efficient kernel code that can run on the CPU or GPU.

Warp comes with a rich set of primitives for physics simulation, robotics, geometry processing, and more. Warp kernels are differentiable and can be used as part of machine-learning pipelines with frameworks such as PyTorch, JAX and Paddle.

A selection of physical simulations computed with Warp

Quick Start

Simulate one million particles under gravitational attraction, in 20 lines:

import warp as wp
import numpy as np

num_particles = 1_000_000
dt = 0.01


@wp.kernel
def gravity_step(pos: wp.array[wp.vec3], vel: wp.array[wp.vec3]):
    i = wp.tid()
    position = pos[i]
    dist_sq = wp.length_sq(position) + 0.01  # softened distance
    acc = -1000.0 / dist_sq * wp.normalize(position)  # gravitational pull toward origin
    vel[i] = vel[i] + acc * dt
    pos[i] = pos[i] + vel[i] * dt


rng = np.random.default_rng(42)
positions = wp.array(rng.normal(size=(num_particles, 3)), dtype=wp.vec3)
velocities = wp.array(rng.normal(size=(num_particles, 3)), dtype=wp.vec3)

for _ in range(100):
    wp.launch(gravity_step, dim=num_particles, inputs=[positions, velocities])

print(positions.numpy())

Installing

Warp requires Python 3.11 or newer. We publish warp-lang wheels on PyPI for Windows (x86-64 and experimental Arm64), Linux (x86-64 and AArch64), and macOS (Apple Silicon). The Windows and Linux wheels support CPU execution and CUDA acceleration. The macOS wheels support CPU execution but not Metal acceleration.

PyPI and nightly wheels for Linux and Windows use CUDA Toolkit 13.4. They require an NVIDIA R580-series or newer driver and a Turing (sm_75) or newer GPU for CUDA acceleration. For CUDA 12 environments, download a +cu12 wheel from GitHub Releases or build Warp from source with CUDA 12.

Starting with Warp 1.19.0, PyPI releases and release candidates include experimental Windows on Arm wheels. Install with pip install warp-lang from an Arm64 Python environment; see the Windows on Arm installation notes.

The easiest way to install Warp is from PyPI:

pip install warp-lang

You can also use pip install warp-lang[examples] to install additional dependencies for running examples and USD-related features.

For nightly builds, conda, CUDA 12 compatibility wheels, building from source, and CUDA driver requirements, see the Installation Guide.

Tutorial Notebooks

The NVIDIA Accelerated Computing Hub also hosts Warp tutorial notebooks that can be opened in Colab:

Notebook Colab Link
01. Introduction to NVIDIA Warp Open In Colab
02. Ising Model Open In Colab
03. 2D Navier-Stokes Solver Open In Colab
04. Differentiable Simulations in Warp Open In Colab

Running Examples

The warp/examples directory contains examples covering physics simulation, geometry processing, optimization, and tile-based GPU programming. Before running examples, install the optional example dependencies using:

pip install warp-lang[examples]

Examples can be run from the command-line as follows:

python -m warp.examples.<example_subdir>.<example>

Most examples can be run on either the CPU or a CUDA-capable device, but a handful require a CUDA-capable device. These are marked at the top of the example script. Some examples generate USD files containing time-sampled animations in the current working directory. These can be viewed in Pixar's UsdView, Blender, or any USD-compatible viewer.

To browse the example source code, you can open the directory where the files are located like this:

python -m warp.examples.browse

warp/examples/core

dem fluid graph capture mesh
nvdb raycast raymarch sample mesh
sph torch wave 2-D incompressible turbulence in a periodic box
3-D FDTD Luneburg lens
single GPU · multi GPU

warp/examples/geometry

isosurface sparse marching cubes

warp/examples/fem

diffusion 3d mixed elasticity apic fluid streamlines
distortion energy taylor green kelvin helmholtz magnetostatics
adaptive grid nonconforming contact darcy level-set optimization elastic shape optimization
cantilever topology optimization

warp/examples/optim

diffray fluid checkpoint
basic · custom backward
particle repulsion navier-stokes perturbation
implicit projection quaternion shape alignment

warp/examples/tile

mlp nbody mcgp

warp/examples/interop

cutile neural sdf

Learn More

Please see the following resources for additional background on Warp:

Support

See the FAQ for common questions.

Report bugs, request features, and suggest documentation improvements through GitHub Issues.

Ask usage questions and discuss early ideas in GitHub Discussions.

For inquiries not suited for public discussion, please email warp-python@nvidia.com.

Contributing

Contributions and pull requests from the community are welcome. Please see the Contribution Guide for more information on contributing to the development of Warp.

License

Warp is provided under the Apache License, Version 2.0. Please see LICENSE.md for full license text.

This project will download and install additional third-party open source software projects. Review the license terms of these open source projects before use.

Building from Source

When building Warp from source using the build_lib.py script, the build process automatically downloads NVIDIA libmathdx. Pre-built Warp packages (e.g., from PyPI) already include libmathdx statically linked into the library binaries. In both cases, libmathdx is governed by the NVIDIA Software License Agreement.

NOTICE AND DISCLAIMER: This software automatically retrieves, accesses or interacts with external materials. Those retrieved materials are not distributed with this software and are governed solely by separate terms, conditions and licenses. You are solely responsible for finding, reviewing and complying with all applicable terms, conditions, and licenses, and for verifying the security, integrity and suitability of any retrieved materials for your specific use case. This software is provided "AS IS", without warranty of any kind. The author makes no representations or warranties regarding any retrieved materials, and assumes no liability for any losses, damages, liabilities or legal consequences from your use or inability to use this software or any retrieved materials. Use this software and the retrieved materials at your own risk.

Optional cuTile Dependencies

The experimental cuTile interoperability module (warp.experimental.cutile) relies on optional dependencies that are not bundled in Warp's wheels or source distribution. Users install them explicitly through pip, either individually or through the warp-lang[cutile] extra. Pip handles the installation; Warp uses the installed packages and tools without downloading or installing them itself.

The cuTile packages themselves, cuda-tile and cuda-tile-preview, are open source (Apache-2.0). They depend on the following NVIDIA proprietary CUDA Toolkit components, which are governed by the NVIDIA Software License Agreement and CUDA Supplement:

Publications & Citation

Research Using Warp

Our PUBLICATIONS.md file lists academic and research publications that leverage the capabilities of Warp. We encourage you to add your own published work using Warp to this list.

Citing Warp

If you use Warp in your research, please use the "Cite this repository" button on the GitHub repository page or refer to the CITATION.cff file for citation information.

Metadata

Release files for warp-lang 1.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for warp-lang 1.20.0
File Actions
warp_lang-1.20.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for warp_lang-1.20.0-py3-none-win_arm64.whl
warp_lang-1.20.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for warp_lang-1.20.0-py3-none-win_amd64.whl
warp_lang-1.20.0-py3-none-manylinux_2_34_aarch64.whl Python 3 none Linux glibc 2.34+ ARM64 Details for warp_lang-1.20.0-py3-none-manylinux_2_34_aarch64.whl
warp_lang-1.20.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for warp_lang-1.20.0-py3-none-manylinux_2_28_x86_64.whl
warp_lang-1.20.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for warp_lang-1.20.0-py3-none-macosx_11_0_arm64.whl

Total release size: 588.0 MB

Release files / warp_lang-1.20.0-py3-none-win_arm64.whl

Download URL warp_lang-1.20.0-py3-none-win_arm64.whl
Size 124.7 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
1739d8b7d347f0328afb06353fd9ff46d4d1c8d1ba1508b7800afe7036e90f72
BLAKE2b-256 checksum
How to use checksums
967f2e4d7c2d2c7a22a34d81ac7df2be08a7ccea36c00caa952873e20aa5471b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / warp_lang-1.20.0-py3-none-win_amd64.whl

Download URL warp_lang-1.20.0-py3-none-win_amd64.whl
Size 135.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
2c4dbffd10bf90e3cfb7e2bf5d32f41447baec97de70d323abb5d8e53f573439
BLAKE2b-256 checksum
How to use checksums
c8356e638a05baaea0cae61eb389d94e6adebb5329e38ad869bee929eec55c0e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / warp_lang-1.20.0-py3-none-manylinux_2_34_aarch64.whl

Download URL warp_lang-1.20.0-py3-none-manylinux_2_34_aarch64.whl
Size 148.6 MB
Tags Linux glibc 2.34+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2bda124b117b4d3757cde20eb02443adc59cc614e1ff44f60c322d14f937442c
BLAKE2b-256 checksum
How to use checksums
255a909271219b89e6902462140e8750ee67d3c7ba133a8b953d89e65979af21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / warp_lang-1.20.0-py3-none-manylinux_2_28_x86_64.whl

Download URL warp_lang-1.20.0-py3-none-manylinux_2_28_x86_64.whl
Size 150.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
18ac0c593fbb9f2686639daf7919f5fbbdb267800799193a279b760c3cba2ef0
BLAKE2b-256 checksum
How to use checksums
51da1a46de14d3a2ac39e57d82291022bfc30af3f33a9a17b1dfb2ba2ba02e08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / warp_lang-1.20.0-py3-none-macosx_11_0_arm64.whl

Download URL warp_lang-1.20.0-py3-none-macosx_11_0_arm64.whl
Size 28.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6401f923629b5a68fbccb1ef291489aa33ccd69b374efc8f91faf94eadc9a737
BLAKE2b-256 checksum
How to use checksums
5cb8f6609c389af8dc8694e61b89d8ef75c1fbd04e4bd178082b42aa2826cee0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for warp-lang 1.20.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.20.0 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page