Skip to content

Commit c2c896d

Browse files
authored
build wheels with CUDA 13.0.x, test wheels against mix of CTK versions (#777)
Contributes to rapidsai/build-planning#257 * builds CUDA 13 wheels with the 13.0 CTK Contributes to rapidsai/build-planning#256 * updates wheel tests to cover a range of CTK versions (we previously, accidentally, were only testing the latest 12.x and 13.x) Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Mike Sarahan (https://github.com/msarahan) URL: #777
1 parent de062f2 commit c2c896d

File tree

2 files changed

+60
-2
lines changed

2 files changed

+60
-2
lines changed

ci/test_wheel.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,18 @@ source rapids-init-pip
88

99
CUXFILTER_WHEELHOUSE=$(rapids-download-from-github "$(rapids-package-name wheel_python cuxfilter --pure --cuda "${RAPIDS_CUDA_VERSION}")")
1010

11-
# echo to expand wildcard before adding `[extra]` requires for pip
12-
rapids-pip-retry install "$(echo "${CUXFILTER_WHEELHOUSE}"/cuxfilter*.whl)[test]"
11+
# generate constraints (possibly pinning to oldest support versions of dependencies)
12+
rapids-generate-pip-constraints test_python "${PIP_CONSTRAINT}"
13+
14+
# notes:
15+
#
16+
# * echo to expand wildcard before adding `[test]` requires for pip
17+
# * just providing --constraint="${PIP_CONSTRAINT}" to be explicit, and because
18+
# that environment variable is ignored if any other --constraint are passed via the CLI
19+
#
20+
rapids-pip-retry install \
21+
--prefer-binary \
22+
--constraint "${PIP_CONSTRAINT}" \
23+
"$(echo "${CUXFILTER_WHEELHOUSE}"/cuxfilter*.whl)[test]"
1324

1425
python -m pytest -n 8 ./python/cuxfilter/tests

dependencies.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ dependencies:
9595
- output_types: pyproject
9696
packages:
9797
- wheel
98+
# 'cuda_version' intentionally does not contain fallback entries... we want
99+
# a loud error if an unsupported 'cuda' value is passed
98100
cuda_version:
99101
specific:
100102
- output_types: conda
@@ -123,6 +125,51 @@ dependencies:
123125
cuda: "13.1"
124126
packages:
125127
- cuda-version=13.1
128+
- output_types: requirements
129+
matrices:
130+
# if use_cuda_wheels=false is provided, do not add dependencies on any CUDA wheels
131+
# (e.g. for DLFW and pip devcontainers)
132+
- matrix:
133+
use_cuda_wheels: "false"
134+
packages:
135+
- matrix:
136+
arch: aarch64
137+
cuda: "12.2"
138+
use_cuda_wheels: "true"
139+
packages:
140+
# some components (like nvidia-cublas-cu12 and nvidia-cuda-nvcc-cu12) didn't have
141+
# aarch64 wheels until CTK 12.3, so allow a slightly looser bound here
142+
- cuda-toolkit>=12.2,<12.4
143+
- matrix:
144+
cuda: "12.2"
145+
use_cuda_wheels: "true"
146+
packages:
147+
- cuda-toolkit==12.2.*
148+
- matrix:
149+
cuda: "12.5"
150+
use_cuda_wheels: "true"
151+
packages:
152+
- cuda-toolkit==12.5.*
153+
- matrix:
154+
cuda: "12.8"
155+
use_cuda_wheels: "true"
156+
packages:
157+
- cuda-toolkit==12.8.*
158+
- matrix:
159+
cuda: "12.9"
160+
use_cuda_wheels: "true"
161+
packages:
162+
- cuda-toolkit==12.9.*
163+
- matrix:
164+
cuda: "13.0"
165+
use_cuda_wheels: "true"
166+
packages:
167+
- cuda-toolkit==13.0.*
168+
- matrix:
169+
cuda: "13.1"
170+
use_cuda_wheels: "true"
171+
packages:
172+
- cuda-toolkit==13.1.*
126173
checks:
127174
common:
128175
- output_types: [conda, requirements]

0 commit comments

Comments
 (0)