Commit 15a1d5f
committed
ci: build cuda.core against the cuda-bindings just built
Windows coverage has produced no wheel since 2026-07-29, so the job fails
before Coverage (Windows) can start and the crash diagnostics on this branch
have nowhere to run.
PIP_PRE is set here so pip will consider the locally built cuda-bindings at
all: it carries a .devN version, which counts as a pre-release. The side
effect is that PyPI's pre-releases become eligible too, and cuda-bindings
13.4.0b1, published that same day, outranks the local build for
`cuda-bindings==13.*`. So the wheel built one step earlier is discarded and
a 13.4 wheel is downloaded instead. Its cydriver.pxd is generated from CTK
13.4 headers, where CUmemLocation has a `localized` field, while cuda.core
compiles against the 13.3.0 mini-CTK, where it does not. Cython generates a
struct converter over every field, and MSVC rejects it:
_managed_memory_ops.cpp(18447): error C2039: 'localized' is not a member
of 'CUmemLocation_st'
Linux is unaffected, and build-wheel.yml escapes it as well, because
cibuildwheel sets PIP_FIND_LINKS without PIP_PRE.
Constraining cuda-bindings to the version just built keeps what PIP_PRE was
for and drops what it let in. The version is read from the wheel filename
rather than hardcoded, with the local segment removed: PEP 440 has a public
`==` specifier ignore a candidate's local label, so `==13.3.2.dev139` still
selects 13.3.2.dev139+g0123456, and constraints files stay free of local
versions, which pip has objected to before.
TEMPORARY, like the pull-request push trigger above it. The real fix belongs
upstream; this only exists so the diagnostics can run before that lands.1 parent d6e9c59 commit 15a1d5f
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
251 | 273 | | |
252 | 274 | | |
253 | 275 | | |
254 | 276 | | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
255 | 288 | | |
256 | 289 | | |
257 | 290 | | |
| |||
0 commit comments