Skip to content

Commit 69c5227

Browse files
committed
docs: align SCM selector and tagged-build guidance
Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
1 parent 178997a commit 69c5227

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,16 @@ correct.** Packages select tags for their own release line:
121121

122122
| Package | Tag pattern |
123123
| --- | --- |
124-
| `cuda-bindings` from `cuda_bindings_12/` | `v12.9.*` (e.g. `v12.9.10`) |
125-
| `cuda-bindings` from `cuda_bindings_13/` | `v13.4.*` (e.g. `v13.4.2`) |
126-
| `cuda-python` | The matching bindings selector, chosen with `CUDA_PYTHON_BUILD_MAJOR=12` or `13` (default) |
124+
| `cuda-bindings` from `cuda_bindings_12/` | `v12.*` (e.g. `v12.9.10`) |
125+
| `cuda-bindings` from `cuda_bindings_13/` | `v13.*` (e.g. `v13.4.2`) |
126+
| `cuda-python` | The matching bindings selector, chosen explicitly with `CUDA_PYTHON_BUILD_MAJOR=12` or `13`, or inferred as described below |
127127
| `cuda-core` | `cuda-core-v*` (e.g. `cuda-core-v1.1.0`) |
128128
| `cuda-pathfinder` | `cuda-pathfinder-v*` (e.g. `cuda-pathfinder-v1.6.0`) |
129129

130-
Git source builds of `cuda-python` default to CUDA 13. Set
131-
`CUDA_PYTHON_BUILD_MAJOR=12` to select CUDA 12, or `13` explicitly for CUDA 13.
130+
Git source builds of `cuda-python` honor `CUDA_PYTHON_BUILD_MAJOR=12` or `13`
131+
when set. Without it, an exact `v12.*` tag at `HEAD` selects CUDA 12 when no
132+
`v13.*` tag points to that commit. Untagged commits and commits tagged for
133+
both majors default to CUDA 13.
132134
The resolved version determines dependencies: CUDA 12 depends on matching
133135
bindings, while CUDA 13 also depends on Core and Pathfinder. A standalone
134136
sdist retains its version and dependency major without requiring this variable.

‎cuda_bindings_13/docs/source/install.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Requirements
138138

139139
[^3]: The version is derived from git tags via ``setuptools-scm``, so the clone
140140
must include a reachable tag matching the release line configured in this
141-
package's ``pyproject.toml`` (currently ``v13.4.*``). A tag from the other CUDA
141+
package's ``pyproject.toml`` (currently ``v13.*``). A tag from the other CUDA
142142
major does not determine this package's version. Do not use ``--depth`` or
143143
``--no-tags``: a clone without matching reachable tags can build with a
144144
bogus version such as ``0.1.dev1+g0d22cb444``. See `Cloning the repository

0 commit comments

Comments
 (0)