Skip to content

Commit 4a07cb1

Browse files
Merge branch 'main' into fix/1169-numpy-dlpack-skip-conditions
2 parents 4d95693 + ea0215f commit 4a07cb1

51 files changed

Lines changed: 11876 additions & 622 deletions

Some content is hidden

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

.github/dependabot.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,6 @@
44

55
version: 2
66
updates:
7-
# Python test-dependency updates for cuda_bindings
8-
- package-ecosystem: pip
9-
directory: /cuda_bindings
10-
schedule:
11-
interval: "monthly"
12-
time: "09:00"
13-
timezone: "America/Los_Angeles"
14-
open-pull-requests-limit: 5
15-
groups:
16-
test-deps:
17-
applies-to: version-updates
18-
patterns: ["*"]
19-
update-types: ["major", "minor", "patch"]
20-
21-
# Python test-dependency updates for cuda_core
22-
- package-ecosystem: pip
23-
directory: /cuda_core
24-
schedule:
25-
interval: "monthly"
26-
time: "09:00"
27-
timezone: "America/Los_Angeles"
28-
open-pull-requests-limit: 5
29-
groups:
30-
test-deps:
31-
applies-to: version-updates
32-
patterns: ["*"]
33-
update-types: ["major", "minor", "patch"]
34-
35-
# Python test-dependency updates for cuda_pathfinder
36-
- package-ecosystem: pip
37-
directory: /cuda_pathfinder
38-
schedule:
39-
interval: "monthly"
40-
time: "09:00"
41-
timezone: "America/Los_Angeles"
42-
open-pull-requests-limit: 5
43-
groups:
44-
test-deps:
45-
applies-to: version-updates
46-
patterns: ["*"]
47-
update-types: ["major", "minor", "patch"]
48-
497
# GitHub Actions updates targeting the default branch (main)
508
- package-ecosystem: github-actions
519
directory: /

.github/workflows/build-wheel.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,16 @@ jobs:
462462
cuda-version: ${{ inputs.prev-cuda-version }}
463463
cuda-path: "./cuda_toolkit_prev"
464464

465+
- name: Build cuda.core test binaries
466+
run: bash ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/build_test_binaries.sh
467+
468+
- name: Upload cuda.core test binaries
469+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
470+
with:
471+
name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-test-binaries
472+
path: ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}/*.o
473+
if-no-files-found: error
474+
465475
- name: Download cuda.bindings build artifacts from the prior branch
466476
env:
467477
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,19 @@ jobs:
279279
pwd
280280
ls -lahR $CUDA_CORE_CYTHON_TESTS_DIR
281281
282+
- name: Download cuda.core test binaries
283+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
284+
with:
285+
name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-test-binaries
286+
path: ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}
287+
run-id: ${{ inputs.run-id || github.run_id }}
288+
github-token: ${{ secrets.GITHUB_TOKEN }}
289+
290+
- name: Display structure of downloaded cuda.core test binaries
291+
run: |
292+
pwd
293+
ls -lahR $CUDA_CORE_TEST_BINARIES_DIR
294+
282295
- name: Set up Python ${{ matrix.PY_VER }}
283296
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
284297
with:

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,19 @@ jobs:
259259
Get-Location
260260
Get-ChildItem -Recurse -Force $env:CUDA_CORE_CYTHON_TESTS_DIR | Select-Object Mode, LastWriteTime, Length, FullName
261261
262+
- name: Download cuda.core test binaries
263+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
264+
with:
265+
name: ${{ env.CUDA_CORE_ARTIFACT_NAME }}-test-binaries
266+
path: ${{ env.CUDA_CORE_TEST_BINARIES_DIR }}
267+
run-id: ${{ inputs.run-id || github.run_id }}
268+
github-token: ${{ secrets.GITHUB_TOKEN }}
269+
270+
- name: Display structure of downloaded cuda.core test binaries
271+
run: |
272+
Get-Location
273+
Get-ChildItem -Recurse -Force $env:CUDA_CORE_TEST_BINARIES_DIR | Select-Object Mode, LastWriteTime, Length, FullName
274+
262275
- name: Set up Python ${{ matrix.PY_VER }}
263276
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
264277
with:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ cache_driver
1919
cache_runtime
2020
cache_nvrtc
2121

22+
# cuda.core test object fixtures built locally / downloaded as CI artifacts
23+
cuda_core/tests/test_binaries/*.o
24+
2225
# CUDA Python specific (auto-generated)
2326
cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd
2427
cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx

ci/tools/env-vars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ CUDA_CORE_ARTIFACT_BASENAME="cuda-core-python${PYTHON_VERSION_FORMATTED}-${HOST_
3434
echo "CUDA_CORE_ARTIFACT_NAME=${CUDA_CORE_ARTIFACT_BASENAME}-${SHA}"
3535
echo "CUDA_CORE_ARTIFACTS_DIR=$(realpath "${REPO_DIR}/cuda_core/dist")"
3636
echo "CUDA_CORE_CYTHON_TESTS_DIR=$(realpath "${REPO_DIR}/cuda_core/tests/cython")"
37+
echo "CUDA_CORE_TEST_BINARIES_DIR=$(realpath "${REPO_DIR}/cuda_core/tests/test_binaries")"
3738
echo "PYTHON_VERSION_FORMATTED=${PYTHON_VERSION_FORMATTED}"
3839
} >> $GITHUB_ENV
3940

ci/tools/tests/test_fetch_ctk_redistrib.py

Lines changed: 0 additions & 221 deletions
This file was deleted.

cuda_bindings/AGENTS.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ subpackage in the `cuda-python` monorepo.
4444
- run: `pytest tests/cython/`
4545
- **Examples**: example coverage is pytest-based under `examples/`.
4646
- **Benchmarks**: run with `pytest --benchmark-only benchmarks/` when needed.
47-
- **Orchestrated run**: from repo root, `scripts/run_tests.sh bindings`.
4847

4948
## Build and environment notes
5049

cuda_bindings/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
[build-system]
44
requires = [
55
"setuptools>=80.0.0",
6-
"setuptools_scm[simple]>=8,<10.1",
7-
"vcs-versioning<2.0",
6+
"setuptools_scm[simple]>=8,!=10.1",
87
"cython>=3.2,<3.3",
98
"pyclibrary>=0.1.7",
109
"cuda-pathfinder>=1.5",

cuda_bindings/tests/test_cuda.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ def callableBinary(name):
4343
return shutil.which(name) is not None
4444

4545

46+
@pytest.mark.skipif(True, reason="Always skip!")
47+
def test_always_skip():
48+
pass
49+
50+
4651
def test_cuda_memcpy():
4752
# Get device
4853

0 commit comments

Comments
 (0)