Skip to content

Commit 07b3ce4

Browse files
committed
Add Python 3.15 to the build/test matrix
Backport of #2108 to the 12.9.x branch so that cuda-bindings 12.9.x wheels are available for Python 3.15, which the main branch needs in order to build cuda-core. - Add 3.15 / 3.15t to the build matrix - Upgrade cibuildwheel to v4.0.0rc1 (required for cpython-prerelease) - Enable cpython-prerelease in CIBW_ENABLE - Add amd64-only test entries for 3.15 / 3.15t (CUDA 12.9.1)
1 parent a4e89b5 commit 07b3ce4

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/build-wheel.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
- "3.13t"
3333
- "3.14"
3434
- "3.14t"
35+
- "3.15"
36+
- "3.15t"
3537
name: py${{ matrix.python-version }}
3638
runs-on: ${{ (inputs.host-platform == 'linux-64' && 'linux-amd64-cpu8') ||
3739
(inputs.host-platform == 'linux-aarch64' && 'linux-arm64-cpu8') ||
@@ -111,7 +113,7 @@ jobs:
111113
if-no-files-found: error
112114

113115
- name: Build cuda.core wheel
114-
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
116+
uses: pypa/cibuildwheel@54327ab9d35de03b359ac25c97de9417d94639c0 # v4.0.0rc1
115117
env:
116118
CIBW_BUILD: ${{ env.CIBW_BUILD }}
117119
CIBW_ARCHS_LINUX: "native"
@@ -120,7 +122,7 @@ jobs:
120122
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}"
121123
CIBW_ENVIRONMENT: >
122124
CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }}
123-
CIBW_ENABLE: "cpython-freethreading"
125+
CIBW_ENABLE: "cpython-freethreading cpython-prerelease"
124126
with:
125127
package-dir: ./cuda_core/
126128
output-dir: ${{ env.CUDA_CORE_ARTIFACTS_DIR }}
@@ -154,7 +156,7 @@ jobs:
154156
cuda-version: ${{ inputs.cuda-version }}
155157

156158
- name: Build cuda.bindings wheel
157-
uses: pypa/cibuildwheel@8d2b08b68458a16aeb24b64e68a09ab1c8e82084 # v3.4.1
159+
uses: pypa/cibuildwheel@54327ab9d35de03b359ac25c97de9417d94639c0 # v4.0.0rc1
158160
env:
159161
CIBW_BUILD: ${{ env.CIBW_BUILD }}
160162
CIBW_ARCHS_LINUX: "native"
@@ -168,7 +170,7 @@ jobs:
168170
CUDA_PYTHON_PARALLEL_LEVEL=${{ env.CUDA_PYTHON_PARALLEL_LEVEL }}
169171
CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel"
170172
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}"
171-
CIBW_ENABLE: "cpython-freethreading"
173+
CIBW_ENABLE: "cpython-freethreading cpython-prerelease"
172174
with:
173175
package-dir: ./cuda_bindings/
174176
output-dir: ${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}

ci/test-matrix.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
{ "ARCH": "amd64", "PY_VER": "3.13t", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
1616
{ "ARCH": "amd64", "PY_VER": "3.14", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "l4", "DRIVER": "latest" },
1717
{ "ARCH": "amd64", "PY_VER": "3.14t", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
18+
{ "ARCH": "amd64", "PY_VER": "3.15", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
19+
{ "ARCH": "amd64", "PY_VER": "3.15t", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "l4", "DRIVER": "latest" },
1820
{ "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "12.9.1", "LOCAL_CTK": "1", "GPU": "a100", "DRIVER": "latest" },
1921
{ "ARCH": "arm64", "PY_VER": "3.10", "CUDA_VER": "13.0.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },
2022
{ "ARCH": "arm64", "PY_VER": "3.11", "CUDA_VER": "12.9.1", "LOCAL_CTK": "0", "GPU": "a100", "DRIVER": "latest" },

0 commit comments

Comments
 (0)