Skip to content

Commit 32e5000

Browse files
committed
Simplify README, add CITATION.cff, fix broken docs links
Reduce README/docs duplication by replacing detailed installation, versioning, and build-from-source sections with links to the comprehensive docs pages that already cover this content. Add CITATION.cff so GitHub renders a "Cite this repository" button, replacing inline BibTeX blocks in README.md and docs/index.rst. Fix broken documentation URLs in context.py, build_dll.py, and installation.rst that pointed to non-existent paths (missing user_guide/ prefix) or to README anchors instead of the docs site. Signed-off-by: Eric Shi <ershi@nvidia.com>
1 parent 46b1773 commit 32e5000

File tree

6 files changed

+33
-141
lines changed

6 files changed

+33
-141
lines changed

CITATION.cff

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
cff-version: 1.2.0
2+
message: "If you use this software, please cite it as below."
3+
title: "Warp: A High-performance Python Framework for GPU Simulation and Graphics"
4+
authors:
5+
- family-names: Macklin
6+
given-names: Miles
7+
type: software
8+
date-released: "2022-03-01"
9+
url: "https://github.com/NVIDIA/warp"
10+
license: Apache-2.0
11+
preferred-citation:
12+
type: generic
13+
title: "Warp: A High-performance Python Framework for GPU Simulation and Graphics"
14+
authors:
15+
- family-names: Macklin
16+
given-names: Miles
17+
year: 2022
18+
month: 3
19+
notes: "NVIDIA GPU Technology Conference (GTC)"
20+
url: "https://github.com/NVIDIA/warp"

README.md

Lines changed: 6 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -36,65 +36,8 @@ pip install warp-lang
3636

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

39-
The binaries hosted on PyPI are currently built with the CUDA 12 runtime.
40-
We also provide binaries built with the CUDA 13.0 runtime on the [GitHub Releases](https://github.com/NVIDIA/warp/releases) page.
41-
Copy the URL of the appropriate wheel file (`warp-lang-{ver}+cu13-py3-none-{platform}.whl`) and pass it to
42-
the `pip install` command, e.g.
43-
44-
| Platform | Install Command |
45-
| --------------- | ----------------------------------------------------------------------------------------------------------------------------- |
46-
| Linux aarch64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.11.1/warp_lang-1.11.1+cu13-py3-none-manylinux_2_34_aarch64.whl` |
47-
| Linux x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.11.1/warp_lang-1.11.1+cu13-py3-none-manylinux_2_28_x86_64.whl` |
48-
| Windows x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.11.1/warp_lang-1.11.1+cu13-py3-none-win_amd64.whl` |
49-
50-
The `--force-reinstall` option may need to be used to overwrite a previous installation.
51-
52-
### Nightly Builds
53-
54-
Nightly builds of Warp from the `main` branch are available on the [NVIDIA Package Index](https://pypi.nvidia.com/warp-lang/).
55-
56-
To install the latest nightly build, use the following command:
57-
58-
```text
59-
pip install -U --pre warp-lang --extra-index-url=https://pypi.nvidia.com/
60-
```
61-
62-
Note that the nightly builds are built with the CUDA 12 runtime and are not published for macOS.
63-
64-
If you plan to install nightly builds regularly, you can simplify future installations by adding NVIDIA's package
65-
repository as an extra index via the `PIP_EXTRA_INDEX_URL` environment variable. For example:
66-
67-
```text
68-
export PIP_EXTRA_INDEX_URL="https://pypi.nvidia.com"
69-
```
70-
71-
This ensures the index is automatically used for `pip` commands, avoiding the need to specify it explicitly.
72-
73-
### CUDA Requirements
74-
75-
* Warp packages built with CUDA Toolkit 12.x require NVIDIA driver 525 or newer.
76-
* Warp packages built with CUDA Toolkit 13.x require NVIDIA driver 580 or newer.
77-
78-
This applies to pre-built packages distributed on PyPI and GitHub and also when building Warp from source.
79-
80-
Note that building Warp with the `--quick` flag changes the driver requirements. The quick build skips CUDA backward compatibility, so the minimum required driver is determined by the CUDA Toolkit version. Refer to the [latest CUDA Toolkit release notes](https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html) to find the minimum required driver for different CUDA Toolkit versions (e.g., [this table from CUDA Toolkit 12.6](https://docs.nvidia.com/cuda/archive/12.6.0/cuda-toolkit-release-notes/index.html#id5)).
81-
82-
Warp checks the installed driver during initialization and will report a warning if the driver is not suitable, e.g.:
83-
84-
```text
85-
Warp UserWarning:
86-
Insufficient CUDA driver version.
87-
The minimum required CUDA driver version is 12.0, but the installed CUDA driver version is 11.8.
88-
Visit https://github.com/NVIDIA/warp/blob/main/README.md#installing for guidance.
89-
```
90-
91-
This will make CUDA devices unavailable, but the CPU can still be used.
92-
93-
To remedy the situation there are a few options:
94-
95-
* Update the driver.
96-
* Install a compatible pre-built Warp package.
97-
* Build Warp from source using a CUDA Toolkit that's compatible with the installed driver.
39+
For nightly builds, conda, CUDA 13 builds, building from source, and CUDA driver requirements, see the
40+
[Installation Guide](https://nvidia.github.io/warp/user_guide/installation.html).
9841

9942
## Tutorial Notebooks
10043

@@ -280,33 +223,6 @@ python -m warp.tests
280223
</tbody>
281224
</table>
282225

283-
## Building
284-
285-
For developers who want to build the library themselves, the following tools are required:
286-
287-
* Microsoft Visual Studio 2019 upwards (Windows)
288-
* GCC 9.4 upwards (Linux)
289-
* CUDA Toolkit 12.0 or higher
290-
* [Git LFS](https://git-lfs.github.com/) installed
291-
292-
After cloning the repository, users should run:
293-
294-
```text
295-
python build_lib.py
296-
```
297-
298-
Upon success, the script will output platform-specific binary files in `warp/bin/`.
299-
The build script will look for the CUDA Toolkit in its default installation path.
300-
This path can be overridden by setting the `CUDA_PATH` environment variable. Alternatively,
301-
the path to the CUDA Toolkit can be passed to the build command as
302-
`--cuda-path="..."`. After building, the Warp package should be installed using:
303-
304-
```text
305-
pip install -e .
306-
```
307-
308-
This ensures that subsequent modifications to the library will be reflected in the Python package.
309-
310226
## Learn More
311227

312228
Please see the following resources for additional background on Warp:
@@ -326,27 +242,14 @@ The underlying technology in Warp has been used in a number of research projects
326242

327243
## Frequently Asked Questions
328244

329-
See the [FAQ](https://nvidia.github.io/warp/faq.html) in the Warp documentation.
245+
See the [FAQ](https://nvidia.github.io/warp/user_guide/faq.html) in the Warp documentation.
330246

331247
## Support
332248

333249
Problems, questions, and feature requests can be opened on [GitHub Issues](https://github.com/NVIDIA/warp/issues).
334250

335251
For inquiries not suited for GitHub Issues, please email <warp-python@nvidia.com>.
336252

337-
## Versioning
338-
339-
Versions take the format X.Y.Z, similar to [Python itself](https://devguide.python.org/developer-workflow/development-cycle/#devcycle):
340-
341-
* Increments in X are reserved for major reworks of the project causing disruptive incompatibility (or reaching the 1.0 milestone).
342-
* Increments in Y are for regular releases with a new set of features.
343-
* Increments in Z are for bug fixes. In principle, there are no new features. Can be omitted if 0 or not relevant.
344-
345-
This is similar to [Semantic Versioning](https://semver.org/) but is less strict regarding backward compatibility.
346-
Like with Python, some breaking changes can be present between minor versions if well-documented and gradually introduced.
347-
348-
Note that prior to 0.11.0, this schema was not strictly adhered to.
349-
350253
## License
351254

352255
Warp is provided under the Apache License, Version 2.0.
@@ -371,15 +274,6 @@ We encourage you to add your own published work using Warp to this list.
371274

372275
### Citing Warp
373276

374-
To cite Warp itself in your own publications, please use the following BibTeX entry:
375-
376-
```bibtex
377-
@misc{warp2022,
378-
title = {Warp: A High-performance Python Framework for GPU Simulation and Graphics},
379-
author = {Miles Macklin},
380-
month = {March},
381-
year = {2022},
382-
note = {NVIDIA GPU Technology Conference (GTC)},
383-
howpublished = {\url{https://github.com/nvidia/warp}}
384-
}
385-
```
277+
If you use Warp in your research, please use the "Cite this repository" button on the
278+
[GitHub repository](https://github.com/NVIDIA/warp) page or refer to the
279+
[CITATION.cff](https://github.com/NVIDIA/warp/blob/main/CITATION.cff) file for citation information.

docs/index.rst

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -295,19 +295,6 @@ Problems, questions, and feature requests can be opened on
295295

296296
For inquiries not suited for GitHub Issues, please email warp-python@nvidia.com.
297297

298-
Versioning
299-
----------
300-
301-
Versions take the format X.Y.Z, similar to `Python itself <https://devguide.python.org/developer-workflow/development-cycle/#devcycle>`__:
302-
303-
* Increments in X are reserved for major reworks of the project causing disruptive incompatibility (or reaching the 1.0 milestone).
304-
* Increments in Y are for regular releases with a new set of features.
305-
* Increments in Z are for bug fixes. In principle, there are no new features. Can be omitted if 0 or not relevant.
306-
307-
This is similar to `Semantic Versioning <https://semver.org/>`_ minor versions if well-documented and gradually introduced.
308-
309-
Note that prior to 0.11.0, this schema was not strictly adhered to.
310-
311298
License
312299
-------
313300

@@ -334,18 +321,9 @@ We encourage you to add your own published work using Warp to this list.
334321
Citing Warp
335322
^^^^^^^^^^^
336323

337-
If you use Warp in your research, please use the following citation:
338-
339-
.. code:: bibtex
340-
341-
@misc{warp2022,
342-
title = {Warp: A High-performance Python Framework for GPU Simulation and Graphics},
343-
author = {Miles Macklin},
344-
month = {March},
345-
year = {2022},
346-
note = {NVIDIA GPU Technology Conference (GTC)},
347-
howpublished = {\url{https://github.com/nvidia/warp}}
348-
}
324+
If you use Warp in your research, please use the "Cite this repository" button on the
325+
`GitHub repository <https://github.com/NVIDIA/warp>`_ page or refer to the
326+
`CITATION.cff <https://github.com/NVIDIA/warp/blob/main/CITATION.cff>`_ file for citation information.
349327

350328
Full Table of Contents
351329
----------------------

docs/user_guide/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Warp checks the installed driver during initialization and will report a warning
9292
Warp UserWarning:
9393
Insufficient CUDA driver version.
9494
The minimum required CUDA driver version is 12.0, but the installed CUDA driver version is 11.8.
95-
Visit https://github.com/NVIDIA/warp/blob/main/README.md#installing for guidance.
95+
Visit https://nvidia.github.io/warp/user_guide/installation.html for guidance.
9696
9797
This will make CUDA devices unavailable, but the CPU can still be used.
9898

warp/_src/build_dll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def _get_architectures_cu12(
355355
# Skip certain architectures for aarch64 with CUDA 12.9 due to CCCL bug
356356
print(
357357
"[INFO] Skipping sm_52, sm_60, sm_61, and sm_70 targets for ARM due to a CUDA Toolkit bug. "
358-
"See https://nvidia.github.io/warp/installation.html#cuda-12-9-limitation-on-linux-arm-platforms "
358+
"See https://nvidia.github.io/warp/user_guide/installation.html#cuda-12-9-limitation-on-linux-arm-platforms "
359359
"for details."
360360
)
361361
else:

warp/_src/context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5391,7 +5391,7 @@ def __init__(self):
53915391
f"The minimum required CUDA driver version is {self.min_driver_version[0]}.{self.min_driver_version[1]}, "
53925392
f"but the installed CUDA driver version is {self.driver_version[0]}.{self.driver_version[1]}."
53935393
)
5394-
msg.append("Visit https://github.com/NVIDIA/warp/blob/main/README.md#installing for guidance.")
5394+
msg.append("Visit https://nvidia.github.io/warp/user_guide/installation.html for guidance.")
53955395
warp._src.utils.warn("\n ".join(msg))
53965396

53975397
def get_error_string(self):
@@ -5529,7 +5529,7 @@ def load_dll(self, dll_path):
55295529
raise RuntimeError(
55305530
f"Failed to load the shared library '{dll_path}'.\n"
55315531
"The execution environment's libstdc++ runtime is older than the version the Warp library was built for.\n"
5532-
"See https://nvidia.github.io/warp/installation.html#conda-environments for details."
5532+
"See https://nvidia.github.io/warp/user_guide/installation.html#conda-environments for details."
55335533
) from e
55345534
else:
55355535
raise RuntimeError(f"Failed to load the shared library '{dll_path}'") from e

0 commit comments

Comments
 (0)