Skip to content

Commit 0a4113a

Browse files
committed
Merge remote-tracking branch 'origin/main' into ajost/ipc-peer-access-sync
2 parents a35152d + 819c586 commit 0a4113a

126 files changed

Lines changed: 3659 additions & 2406 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/ISSUE_TEMPLATE/release_checklist.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ body:
2020
- label: File an internal nvbug to communicate test plan & release schedule with QA
2121
- label: Ensure all pending PRs are reviewed, tested, and merged
2222
- label: Check (or update if needed) the dependency requirements
23+
- label: Sweep deprecations whose stated removal version has arrived (`grep -rn 'deprecated::' cuda_core/cuda`) and remove any that are due
2324
- label: "Finalize the doc update, including release notes (\"Note: Touching docstrings/type annotations in code is OK during code freeze, apply your best judgement!\")"
2425
- label: Update the docs for the new version
2526
- label: Create a public release tag

‎.github/RELEASE-core.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,27 @@ requirements are current.
6666

6767
---
6868

69+
## Sweep deprecations whose removal version has arrived
70+
71+
Deprecated APIs are marked in the source with a Sphinx `deprecated`
72+
directive naming the version that introduced the deprecation, and their
73+
docstrings state the version in which they will be removed. Find them all
74+
with:
75+
76+
```console
77+
$ grep -rn 'deprecated::' cuda_core/cuda
78+
```
79+
80+
For each hit, check the stated removal version against the version being
81+
released. If the release has reached or passed it, remove the API, its
82+
runtime `DeprecationWarning`, and any tests asserting that warning.
83+
84+
This must happen *before* the release tag is cut. Removals are breaking
85+
changes, so they are only permitted at a major-version boundary per the
86+
[support policy](https://nvidia.github.io/cuda-python/cuda-core/latest/support.html).
87+
88+
---
89+
6990
## Finalize the doc update, including release notes
7091

7192
Review every PR included in the release. For each one, check whether new

‎.github/workflows/build-wheel.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,14 @@ jobs:
586586
587587
OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml)
588588
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
589-
LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id --branch "${OLD_BRANCH}" NVIDIA/cuda-python "CI")
589+
OLD_WHEEL_ARTIFACT_PATTERN="${OLD_BASENAME}[0-9a-f]"
590+
LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id \
591+
--branch "${OLD_BRANCH}" \
592+
--artifact "${OLD_WHEEL_ARTIFACT_PATTERN}" \
593+
NVIDIA/cuda-python "CI")
590594
PREV_BINDINGS_DIR="cuda_bindings/dist-prev"
591595
592-
gh run download $LATEST_PRIOR_RUN_ID -p ${OLD_BASENAME} -R NVIDIA/cuda-python
596+
gh run download "${LATEST_PRIOR_RUN_ID}" -p "${OLD_BASENAME}" -R NVIDIA/cuda-python
593597
rm -rf ${OLD_BASENAME}-tests # exclude cython test artifacts
594598
ls -al $OLD_BASENAME
595599
mkdir -p "${PREV_BINDINGS_DIR}"

‎.github/workflows/ci-nightly.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
python -m pytest -v --noconftest ci/tools/tests
5050
5151
find-wheels:
52+
if: ${{ github.repository_owner == 'nvidia' }}
5253
runs-on: ubuntu-latest
5354
outputs:
5455
RUN_ID: ${{ steps.find.outputs.run_id }}
@@ -309,7 +310,7 @@ jobs:
309310

310311
checks:
311312
name: Nightly check status
312-
if: always()
313+
if: ${{ always() && github.repository_owner == 'nvidia' }}
313314
runs-on: ubuntu-latest
314315
needs:
315316
- test-ci-tools-for-release

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ on:
2828

2929
jobs:
3030
ci-vars:
31+
if: ${{ github.repository_owner == 'nvidia' }}
3132
runs-on: ubuntu-latest
3233
outputs:
3334
CUDA_BUILD_VER: ${{ steps.get-vars.outputs.cuda_build_ver }}
@@ -47,6 +48,7 @@ jobs:
4748
echo "cuda_prev_build_ver=$cuda_prev_build_ver" >> $GITHUB_OUTPUT
4849
4950
should-skip:
51+
if: ${{ github.repository_owner == 'nvidia' }}
5052
runs-on: ubuntu-latest
5153
outputs:
5254
skip: ${{ steps.get-should-skip.outputs.skip }}
@@ -89,6 +91,7 @@ jobs:
8991
# unconditionally run everything because there is no meaningful "changed
9092
# paths" baseline for those events.
9193
detect-changes:
94+
if: ${{ github.repository_owner == 'nvidia' }}
9295
runs-on: ubuntu-latest
9396
outputs:
9497
bindings: ${{ steps.compose.outputs.bindings }}
@@ -535,7 +538,7 @@ jobs:
535538
536539
checks:
537540
name: Check job status
538-
if: always()
541+
if: ${{ always() && github.repository_owner == 'nvidia' }}
539542
runs-on: ubuntu-latest
540543
needs:
541544
- should-skip

‎.github/workflows/coverage.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ env:
1717

1818
jobs:
1919
coverage-vars:
20+
if: ${{ github.repository_owner == 'nvidia' }}
2021
runs-on: ubuntu-latest
2122
outputs:
2223
CUDA_VER: ${{ steps.get-vars.outputs.cuda_ver }}
@@ -467,7 +468,7 @@ jobs:
467468
name: Combine Coverage and Deploy
468469
needs: [coverage-linux, coverage-windows]
469470
runs-on: ubuntu-latest
470-
if: always()
471+
if: ${{ always() && github.repository_owner == 'nvidia' }}
471472
permissions:
472473
id-token: write
473474
contents: write

‎.github/workflows/release-cuda-pathfinder.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
# Collect release metadata, find the CI run, create a draft release.
3434
# --------------------------------------------------------------------------
3535
prepare:
36+
if: ${{ github.repository_owner == 'nvidia' }}
3637
runs-on: ubuntu-latest
3738
permissions:
3839
contents: write

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ defaults:
7676

7777
jobs:
7878
determine-run-id:
79+
if: ${{ github.repository_owner == 'nvidia' }}
7980
runs-on: ubuntu-latest
8081
outputs:
8182
run-id: ${{ steps.lookup-run-id.outputs.run-id }}
@@ -103,6 +104,7 @@ jobs:
103104
echo "run-id=$RUN_ID" >> "$GITHUB_OUTPUT"
104105
105106
check-tag:
107+
if: ${{ github.repository_owner == 'nvidia' }}
106108
runs-on: ubuntu-latest
107109
steps:
108110
- name: Checkout Source
@@ -154,6 +156,7 @@ jobs:
154156
fi
155157
156158
check-release-notes:
159+
if: ${{ github.repository_owner == 'nvidia' }}
157160
runs-on: ubuntu-latest
158161
steps:
159162
- name: Checkout Source

‎.github/workflows/test-wheel-linux.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,17 +219,26 @@ jobs:
219219
220220
OLD_BRANCH=${{ needs.compute-matrix.outputs.OLD_BRANCH }}
221221
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
222-
LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id --branch "${OLD_BRANCH}" NVIDIA/cuda-python "CI")
222+
OLD_WHEEL_ARTIFACT_PATTERN="${OLD_BASENAME}[0-9a-f]"
223+
LOOKUP_ARGS=(
224+
--branch "${OLD_BRANCH}"
225+
--artifact "${OLD_WHEEL_ARTIFACT_PATTERN}"
226+
)
227+
if ${{ inputs.test-python }}; then
228+
LOOKUP_ARGS+=(--artifact cuda-python-wheel)
229+
fi
230+
LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id \
231+
"${LOOKUP_ARGS[@]}" NVIDIA/cuda-python "CI")
223232
224-
gh run download $LATEST_PRIOR_RUN_ID -p ${OLD_BASENAME} -R NVIDIA/cuda-python
233+
gh run download "${LATEST_PRIOR_RUN_ID}" -p "${OLD_BASENAME}" -R NVIDIA/cuda-python
225234
rm -rf ${OLD_BASENAME}-tests # exclude cython test artifacts
226235
ls -al $OLD_BASENAME
227236
mkdir -p "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"
228237
mv $OLD_BASENAME/*.whl "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"/
229238
rmdir $OLD_BASENAME
230239
231240
if ${{ inputs.test-python }}; then
232-
gh run download $LATEST_PRIOR_RUN_ID -p cuda-python-wheel -R NVIDIA/cuda-python
241+
gh run download "${LATEST_PRIOR_RUN_ID}" -p cuda-python-wheel -R NVIDIA/cuda-python
233242
ls -al cuda-python-wheel
234243
mv cuda-python-wheel/*.whl .
235244
rmdir cuda-python-wheel

‎.github/workflows/test-wheel-windows.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,17 +199,26 @@ jobs:
199199
run: |
200200
OLD_BRANCH=$(yq '.backport_branch' ci/versions.yml)
201201
OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*"
202-
LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id --branch "${OLD_BRANCH}" NVIDIA/cuda-python "CI")
202+
OLD_WHEEL_ARTIFACT_PATTERN="${OLD_BASENAME}[0-9a-f]"
203+
LOOKUP_ARGS=(
204+
--branch "${OLD_BRANCH}"
205+
--artifact "${OLD_WHEEL_ARTIFACT_PATTERN}"
206+
)
207+
if ${{ inputs.test-python }}; then
208+
LOOKUP_ARGS+=(--artifact cuda-python-wheel)
209+
fi
210+
LATEST_PRIOR_RUN_ID=$(./ci/tools/lookup-run-id \
211+
"${LOOKUP_ARGS[@]}" NVIDIA/cuda-python "CI")
203212
204-
gh run download $LATEST_PRIOR_RUN_ID -p ${OLD_BASENAME} -R NVIDIA/cuda-python
213+
gh run download "${LATEST_PRIOR_RUN_ID}" -p "${OLD_BASENAME}" -R NVIDIA/cuda-python
205214
rm -rf ${OLD_BASENAME}-tests # exclude cython test artifacts
206215
ls -al $OLD_BASENAME
207216
mkdir -p "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"
208217
mv $OLD_BASENAME/*.whl "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"/
209218
rmdir $OLD_BASENAME
210219
211220
if ${{ inputs.test-python }}; then
212-
gh run download $LATEST_PRIOR_RUN_ID -p cuda-python-wheel -R NVIDIA/cuda-python
221+
gh run download "${LATEST_PRIOR_RUN_ID}" -p cuda-python-wheel -R NVIDIA/cuda-python
213222
ls -al cuda-python-wheel
214223
mv cuda-python-wheel/*.whl .
215224
rmdir cuda-python-wheel

0 commit comments

Comments
 (0)