# warp **Repository Path**: mirrors_NVIDIA/warp ## Basic Information - **Project Name**: warp - **Description**: A Python framework for accelerated simulation, data generation and spatial computing. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-23 - **Last Updated**: 2026-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![PyPI version](https://badge.fury.io/py/warp-lang.svg)](https://badge.fury.io/py/warp-lang) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/license/Apache-2.0) ![GitHub commit activity](https://img.shields.io/github/commit-activity/m/NVIDIA/warp?link=https%3A%2F%2Fgithub.com%2FNVIDIA%2Fwarp%2Fcommits%2Fmain) [![Downloads](https://api.pepy.tech/badge/warp-lang/month)](https://pepy.tech/projects/warp-lang) [![codecov](https://codecov.io/github/NVIDIA/warp/graph/badge.svg?token=7O1KSM79FG)](https://codecov.io/github/NVIDIA/warp) ![GitHub - CI](https://github.com/NVIDIA/warp/actions/workflows/ci.yml/badge.svg) # NVIDIA Warp **[Documentation](https://nvidia.github.io/warp/stable/)** | [Changelog](https://github.com/NVIDIA/warp/blob/main/CHANGELOG.md) 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: ```python 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](https://github.com/NVIDIA/warp/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](https://nvidia.github.io/warp/stable/user_guide/installation.html#windows-on-arm). The easiest way to install Warp is from [PyPI](https://pypi.org/project/warp-lang/): ```text 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](https://nvidia.github.io/warp/stable/user_guide/installation.html). ## Tutorial Notebooks The [NVIDIA Accelerated Computing Hub](https://github.com/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/README.md) also hosts Warp tutorial notebooks that can be opened in Colab: | Notebook | Colab Link | |----------|------------| | [01. Introduction to NVIDIA Warp](https://github.com/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/01__intro_to_warp.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/01__intro_to_warp.ipynb) | | [02. Ising Model](https://github.com/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/02__ising_model.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/02__ising_model.ipynb) | | [03. 2D Navier-Stokes Solver](https://github.com/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/03__navier_stokes_solver.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/03__navier_stokes_solver.ipynb) | | [04. Differentiable Simulations in Warp](https://github.com/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/04__differentiable_navier_stokes_solver.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/NVIDIA/accelerated-computing-hub/blob/main/tutorials/warp/notebooks/04__differentiable_navier_stokes_solver.ipynb) | ## Running Examples The [warp/examples](https://github.com/NVIDIA/warp/tree/main/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: ```text pip install warp-lang[examples] ``` Examples can be run from the command-line as follows: ```text python -m warp.examples.. ``` 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: ```text 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: * [Product Page](https://developer.nvidia.com/warp-python) * [How to Use NVIDIA Warp to Build GPU-Accelerated Computational Physics Simulations](https://www.nvidia.com/en-us/on-demand/session/gtc26-dlit81837/) (GTC 2026 tutorial) * [SIGGRAPH 2024 Course Slides](https://dl.acm.org/doi/10.1145/3664475.3664543) * [GTC 2024 Presentation](https://www.nvidia.com/en-us/on-demand/session/gtc24-s63345/) * [GTC 2022 Presentation](https://www.nvidia.com/en-us/on-demand/session/gtcspring22-s41599) * [GTC 2021 Presentation](https://www.nvidia.com/en-us/on-demand/session/gtcspring21-s31838) * [SIGGRAPH Asia 2021 Differentiable Simulation Course](https://dl.acm.org/doi/abs/10.1145/3476117.3483433) ## Support See the [FAQ](https://nvidia.github.io/warp/stable/user_guide/faq.html) for common questions. Report bugs, request features, and suggest documentation improvements through [GitHub Issues](https://github.com/NVIDIA/warp/issues). Ask usage questions and discuss early ideas in [GitHub Discussions](https://github.com/NVIDIA/warp/discussions). For inquiries not suited for public discussion, please email . ## Contributing Contributions and pull requests from the community are welcome. Please see the [Contribution Guide](https://github.com/NVIDIA/warp/blob/main/CONTRIBUTING.md) 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](https://github.com/NVIDIA/warp/blob/main/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](https://developer.nvidia.com/cublasdx-downloads). 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](https://github.com/NVIDIA/warp/blob/main/licenses/libmathdx-LICENSE.txt). 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. ### Bundled CUDA Toolkit Components Pre-built Warp packages statically link the following NVIDIA CUDA Toolkit components into the library binaries: NVRTC, the CUDA runtime, nvPTXCompiler, and nvJitLink. Warp's repository and packages also include the libdevice bitcode library (`warp/native/libdevice/libdevice.10.bc`). These components are governed by the [NVIDIA Software License Agreement and CUDA Supplement](https://github.com/NVIDIA/warp/blob/main/licenses/cuda-LICENSE.txt). Licenses for other third-party code included in Warp are in the [licenses](https://github.com/NVIDIA/warp/tree/main/licenses) directory. ### 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](https://pypi.org/project/cuda-tile/) and [cuda-tile-preview](https://pypi.org/project/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](https://github.com/NVIDIA/warp/blob/main/licenses/cuda-LICENSE.txt): - [nvidia-cuda-crt](https://pypi.org/project/nvidia-cuda-crt/) - [nvidia-cuda-nvcc](https://pypi.org/project/nvidia-cuda-nvcc/) - [nvidia-cuda-runtime](https://pypi.org/project/nvidia-cuda-runtime/) - [nvidia-cuda-tileiras](https://pypi.org/project/nvidia-cuda-tileiras/) - [nvidia-nvjitlink](https://pypi.org/project/nvidia-nvjitlink/) - [nvidia-nvvm](https://pypi.org/project/nvidia-nvvm/) ## Publications & Citation ### Research Using Warp Our [PUBLICATIONS.md](https://github.com/NVIDIA/warp/blob/main/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](https://github.com/NVIDIA/warp) page or refer to the [CITATION.cff](https://github.com/NVIDIA/warp/blob/main/CITATION.cff) file for citation information.