Repository navigation
Conversation
* Bump the cuda_bindings version floor in cuda_core * Fix the build floor test
Replace Markdown-style footnotes with reST footnotes, and list Windows arm64 as a supported platform. Closes #3384 Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…3389) CI: refine the Windows runner trust probe's pass criterion Pass the compromised-intermediates check when each certificate is explicitly distrusted or its chain no longer reaches a trusted root, supplying the non-root issuers (one newly vendored) to the chain build. Retry the endpoint check once on network errors and fail if it still gets no verdict.
module/v2_migration was not in any toctree, which produced a Sphinx "document isn't included in any toctree" warning. Add it to its own "Migration guides" section at the bottom of the API reference, and rename the module toctree caption from the "CaptionHolder:" placeholder to "Modules:". Part of #3383. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* [fix] VM resource options * Apply suggestions
…da_bindings_12 (#3395) Apply the changes from #2978 to cuda_bindings_12/ on main: pin the cuGetProcAddress_v2 version for cuLogs* to 12090 (was 12080) and add a regression test. This fixes the cuLogs* FunctionNotFoundError. Matches the 12.9.x backport in #3377. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
* Update the pixi.lock files after CTK 13.5 update
* Expose graph/node IDs as ints * Shorted docstrings * Add cuda 12 compile-time guards * Make messages match * Small changes * Update message
* CI: use shallow, blob-filtered CCCL submodule checkouts closes #3351 actions/checkout applies its blob filter only to the root repository, leaving CCCL submodule clones unfiltered and causing slow, variable checkout times. Fetch submodules separately with --depth=1 --filter=blob:none across build, source-test, coverage, and rendered-documentation jobs. Preserve full root history and release tags for setuptools-scm, plus URL syncing and forced checkout for reused workspaces. Validation: fresh and reused checkout checks passed; nine workflow regression tests passed. Actionlint diagnostics are unchanged. Windows checkout timing remains unverified. * docs: use filtered shallow CCCL checkouts for contributors — codex GPT-6 on behalf of Ralf — Preserve root history and release tags while fetching CCCL separately with shallow history and blob filtering. Align the contributor guide and package installation examples, and control submodule fetches explicitly on updates. Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * docs: simplify filtered clone instructions — codex GPT-6 on behalf of Ralf — Use Git's native submodule filtering in each clone example and retain the ordinary update instructions. Preserve full commit history and release tags while keeping the filtered recipe directly visible to users and agents. Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> --------- Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> Co-authored-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
* ci: normalize toolkit configuration and isolate CUDA 13 versions Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * test: derive current SCM fixture version from registry [skip ci] Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * Address migration review: simplify configuration and tooling Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> --------- Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
— codex GPT-6 on behalf of Ralf — Enable local CUDA 12 builds, tests and documentation on main, with source-build smoke coverage for both bindings roots. Use the retained v12.9.11a0 milestone with standard setuptools-scm versioning and remove temporary SCM bootstrap machinery. Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
CI: Fix compute-sanitizer setup and harden mini-CTK fetching - Fix sanitizer mode, broken by #2437: the sanitizer step reran fetch_ctk, which deleted the mini CTK. A new install-mode: add input installs on top of the existing toolkit instead. - Install compute-sanitizer from the build CTK (cuda.build.version) rather than a run-time scrape of the latest release; remove ci/tools/guess_latest.sh. - Fail closed when a public CUDA version has no pinned manifest hash. Pin 13.5.0 and test that every CI CUDA version is pinned.
ci: install cuda-gdb for cuda.core local-CTK tests Install cuda_gdb on top of the mini CTK, using fetch_ctk's install-mode: add, only in local-CTK jobs that run cuda.core tests. This enables test_cuda_gdb_shows_nvrtc_debug_source_lines, which skipped without cuda-gdb on PATH, without growing the default mini CTK.
Remove EventData_v2 and replace GpuOperationalEventContextLegacyXid_v1 and OperationalEventContextInfo_v1 with the exported EventSetGetGpuOperationalEventContextLegacyXid_v1 and EventSetGetContextInfo_v1. Fixes #3382 Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
The autosummary list in driver_v2.rst named `cu_memcpy`, but the actual export is `cuda.bindings._v2.driver.memcpy`. Sphinx failed the import and silently dropped the entry and its detail page. Fixes #3381 Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…les (#3230) * refactor(cuda.core): rename VirtualMemoryIPCBufferDescriptor to VirtualMemoryFdBufferDescriptor The class carries POSIX file descriptors for VirtualMemoryResource buffers. A fabric-handle descriptor will sit beside it, so its name now says which transport it is. No alias: the class first appears in the unreleased 1.3.0. No behavior change. Written by Codex (gpt-6.1-sol); reviewed by Claude. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * feat(cuda.core): share VirtualMemoryResource buffers with fabric handles Add VirtualMemoryFabricBufferDescriptor, a plain-data descriptor that carries one opaque 64-byte CUmemFabricHandle per physical allocation, the allocation sizes, the buffer size, and the exporting device's UUID. VirtualMemoryResource exports it when config.handle_type is "fabric", and Buffer.from_ipc_descriptor imports it through the shared _VirtualMemoryDescriptor interface that the POSIX fd descriptor also implements, so both transports run one import loop. Fabric descriptors travel through plain pickle and multiprocessing without the file-descriptor machinery and pin nothing: the exporter keeps the buffer alive until every importer has imported it. A stale or forged handle fails at import with a driver error and a note. Resource construction checks Device.properties.handle_type_fabric_supported and raises RuntimeError when the device lacks an NVLink fabric or an accessible IMEX channel. from_handles() rebuilds a descriptor received through a transport of your own. A location mismatch at import names the owning device by UUID. Sharing is supported on one node; multi-node sharing is untested. The project's CI has no fabric-capable runner; the release note says so. Part of #2980. Written by Codex (gpt-6.1-sol); reviewed by Claude. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(cuda.core): harden the fabric transport after review and GPU runs Zero the 64-byte handle struct before a fabric export. The driver fills its fields and leaves the padding, so two exports of one buffer carried different stack bytes (seen on B300); the export now returns the same bytes for the same allocation, and no stack bytes travel in a descriptor. The fabric test fixtures allocate once per device after the attribute check. Inside a container that has the IMEX channel device node the attribute is true while the GPU has no fabric, and the allocation is refused; that is what the CI runners do. A refused physical allocation on a fabric resource now carries a note about the fabric and IMEX requirements, and the docs say that the attribute can be true where the allocation still fails. The import-error tests check cuda.core's note, not the driver's status, which varies with the IMEX setup. Garbage handles use fixed patterns instead of os.urandom. The release note names the POSIX fd descriptor as the one that pins. One note per import failure. _handles is readonly on both descriptors. Written by Claude after the de novo review, CodeRabbit, CI, and the Hopper and B300 runs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(cuda.core): drop an unreachable return in the VMM allocation-error helper Cython reported the stray line as unreachable code, and the wheel builds treat Cython warnings as errors. The return goes back to the note helper it belonged to. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * test(cuda.core): let the fabric probe skip only on a refused allocation The fixture probe skipped every fabric test on any CUDAError from the probe allocation, which would hide a real failure (an out-of-memory condition, for one) as 'no fabric here'. It now skips on the statuses that mean the device has no usable fabric (NOT_PERMITTED on the CI runners, INVALID_VALUE on an H200 without an IMEX channel, NOT_SUPPORTED) and lets anything else propagate, per the test guide's rule on capability probes. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * test(cuda.core): skip fabric tests only on cuda.core's allocation note The fixture probe skipped the fabric tests on three driver statuses from the whole probe allocation. A status from the address reservation, the mapping, or the stream setup could therefore pass as 'no fabric here' and hide a real failure on a fabric-capable device. The probe now skips only when the exception carries the note that VirtualMemoryResource attaches to a refused physical allocation with a fabric handle (appended to the message on Python 3.10), and lets every other CUDAError propagate. The 1.3.0 release note described every export as a POSIX file descriptor that plain pickle cannot carry. It now describes the two transports separately: file descriptors for "posix_fd", plain-data fabric handles for "fabric". Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * docs(cuda.core): say why the fabric attribute can be true where allocation fails The docstrings, the allocation note, the release note, and the fixture comment explained the over-reporting attribute with a container that has the IMEX channel device node. The CI evidence says otherwise: the runner VMs disable NVLink and have no channel node, and the attribute is still true on the r595 and 610 drivers there. The 13.4 driver source adds the channel subscription to the attribute; no driver checks for an NVLink fabric. The text now states that, without the container example. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * fix(cuda.core): address fabric IPC review feedback --------- Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…#3378) * fix(cuda.core): keep DLPack owner alive for derived StridedMemoryView Signed-off-by: Rui Luo <ruluo@nvidia.com> * docs(cuda.core): add release note for derived view DLPack fix Signed-off-by: Rui Luo <ruluo@nvidia.com> --------- Signed-off-by: Rui Luo <ruluo@nvidia.com>
closes #3411 Move the workspace ownership fix before the CCCL submodule checkout. The separate checkout step introduced in #3392 ran before ownership was corrected, causing Git to fail with "detected dubious ownership". This prevented Linux coverage data from being uploaded, causing the combine job to fail with "Artifact not found: coverage-data-linux". Validation: git diff --check passes; actionlint diagnostics are unchanged from baseline. CI has not been rerun.
…ce pools (#3405) Signed-off-by: Saiyam Bharara <saiyambharara@gmail.com>
* ci: capture coverage before pytest imports Signed-off-by: Rui Luo <ruluo@nvidia.com> * ci: preserve pytest-cov while tracing core imports Signed-off-by: Rui Luo <ruluo@nvidia.com> --------- Signed-off-by: Rui Luo <ruluo@nvidia.com>
…#3418) * fix(pathfinder): resolve discovered component paths * ci: require manual copy-pr-bot approval * docs(pathfinder): prepare 1.9.0 release notes
…er, and metapackage pin (#3424) * docs(cuda.core): finalize 1.3.0 release notes, docs switcher, and metapackage pin Expand the 1.3.0 highlights, add entries for user-facing PRs that had none, drop stale Python 3.10 remarks, and add a Known issues section (#2795, #2765). Add 1.3.0 to nv-versions.json and bump the cuda-python metapackage pin to cuda-core~=1.3.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cuda.core): note the CCCL submodule requirement for source builds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cuda.core): trim 1.3.0 breaking changes; apply review fixes Keep only the cuda-bindings floor under Breaking Changes and drop the source-build and internal entries. Apply review findings: nvJitLink 13.6 limit for the LTO cache, priority=0 meaning, the narrower scope of known issue #2765, cite #3289, and drop an entry for a bug that never shipped. Restore the 1.2.1 notes entries that main lacked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cuda.core): quote the extras in the 1.3.0 install commands Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cuda.core): fold the floor into 1.3.0 highlights; reword the PyTorch entry Merge the Breaking Changes section into Highlights. Name the StridedMemoryView methods instead of the internal tensor bridge, and move the entry to Fixes and enhancements. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…est compatible release (#3425) * docs(cuda.core): define the cuda-bindings floor as the lowest compatible release The written policy said that the floor is the newest cuda-bindings release of each major at the time of a cuda.core release. The intended policy is the opposite: the floor is the oldest release that was generated from the cuda.h major.minor the wheels are built against and that provides every API and fix cuda.core needs. State that rule, the three events that move a floor, and the release checks that replace "bump to newest". No pin, check, or test changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> * docs: make the floor release checks actionable Name the CI run and the log line for the floor check, and say that standard CI does not install the CUDA 12 floor. Require a new floor to be released on PyPI first. Drop a dangling "also". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…t pinning cuda-bindings (#3441) * docs(cuda.core): drop the Breaking Changes section name from the floor policy The release notes no longer have a Breaking Changes section for a floor move; 1.3.0 lists it under Highlights. Say only that the release notes list every move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(cuda.core): advise against pinning cuda-bindings next to cuda-core Users who pin cuda-bindings themselves can conflict with the floor of a later cuda-core release. Tell them to depend on cuda-core with the cu12 or cu13 extra and let cuda-core choose the cuda-bindings version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…3443) * CI: verify the Authenticode signature of vc_redist.x64.exe The nightly PyTorch rows in test-wheel-windows.yml downloaded and silently ran vc_redist.x64.exe without checking its signature or the installer's exit code. Require a valid Microsoft Authenticode signature before running it, fail on installer errors (allowing 1638 and 3010), and download into RUNNER_TEMP. This matches the existing vc_redist.arm64.exe check. Refs #3195
…3431) * docs(release): tag cuda-core releases on a release branch Add a "Create the release branch" step to RELEASE-core.md and the release checklist template. Each minor series gets one protected branch, release/cuda-core-vX.Y.x, cut from main after the pre-release PRs merge. Tags go on that branch, and patch releases land there by cherry-pick PRs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(release): scope the branch steps to cuda-core; put patch notes on the branch Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…3496) test(cuda.core): keep graph-pool tests off the device default pool The device default pool and the graph memory pool each reserve about twice the device memory of virtual address space for the life of the process, and neither can be capped. A test that touches both can exceed a small address space on a large-memory GPU. test_graph_alloc and the object-protocol buffer fixtures now allocate from a capped pool (max_size=POOL_SIZE) that they release with context managers. cuda_core/tests/AGENTS.md documents this exception to the rule against adding max_size to a no-options call.
) test(cuda.core): keep graph-pool tests off the device default pool The device default pool and the graph memory pool each reserve about twice the device memory of virtual address space for the life of the process, and neither can be capped. A test that touches both can exceed a small address space on a large-memory GPU. test_graph_alloc and the object-protocol buffer fixtures now allocate from a capped pool (max_size=POOL_SIZE) that they release with context managers. cuda_core/tests/AGENTS.md documents this exception to the rule against adding max_size to a no-options call.
…9.11 notes (#3498) * docs: add cuda-python 12.9.11 release notes Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * ci: check release-note pairing in both directions Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * ci: simplify release-note pairing checks — codex GPT-6 on behalf of Ralf — Enforce pairing from 12.9.11, 13.5.1, and future CUDA major lines instead of maintaining historical exceptions. Use two passes over indexed paths and require metapackage notes to match their major-specific bindings root. Check file existence only, removing blob-size inspection and empty-content checks. Update the documentation and focused regression tests. Validation: 62 tests pass on each of Python 3.11 and 3.15, plus full pre-commit checks. * ci: rename the staged release-note checker — codex GPT-6 on behalf of Ralf — Distinguish Git-index consistency checks from tagged-release validation. * ci: rename the tagged release-note checker — codex GPT-6 on behalf of Ralf — Name the existing tagged-source release validator explicitly. * ci: validate staged release metadata and tagged release notes — codex GPT-6 on behalf of Ralf — Update the renamed checker entry points throughout pre-commit, release workflows, tests, and wheel validation while preserving release CLI outputs. Require staged release notes to have matching documentation selector entries and URLs. Add the missing 12.9.11 bindings and metapackage entries. Check the tagged component's exact notes file at the start of should-skip, before CI setup and builds. Exempt internal alpha/development tags and non-Pathfinder post rebuilds; require public beta/RC/final and Pathfinder post notes. Keep this early check limited to file existence. Validation: 440 CI-tool tests pass on each of Python 3.11 and 3.15; full pre-commit checks pass with every applicable hook enabled. * ci: centralize tag-push release note checks — codex GPT-6 on behalf of Ralf — Move the early tag-push presence check into the stdlib-only --tag-ci mode of check_tagged_release_notes.py. Keep tag routing and alpha/dev/post policy together with the publication preflight, while preserving its existing component checks and version outputs. Limit the early workflow steps to tag pushes and execute the Python CLI in the policy regression tests with site-packages disabled. Validation: 440 CI tooling tests pass on Python 3.11 and 3.15; pre-commit run --all-files passes. * ci: discover shared bindings selector from staged roots — codex GPT-6 on behalf of Ralf — Select the shared documentation version selector from the highest numeric bindings major present in the Git index. Include template-only and development roots, require the selected JSON without falling back to older roots, and remove the hardcoded CUDA 13 owner. Explain the policy in code and CI documentation. Cover maintenance-note routing, staged versus untracked root ownership, and numeric major ordering. Validation: 443 CI tooling tests pass on Python 3.11 and 3.15; the checker runs with site-packages disabled; pre-commit run --all-files passes. * ci: pass indexed release notes explicitly to checks — codex GPT-6 on behalf of Ralf — Build indexed_release_notes once in main and require both consistency checks to consume that inventory. Rename the builder to _build_indexed_release_notes, remove implicit collection fallbacks, and make pairing a pure check of the supplied data. Update test callers to build inventories explicitly after staging changes. A real invocation uses six distinct subprocess commands: two index queries and one read per selector JSON. Validation: 34 focused tests pass on Python 3.11 and 3.15; pre-commit run --all-files passes. * ci: keep unreleased bindings roots on the current docs selector — codex GPT-6 on behalf of Ralf — Select the second bindings root in ascending numeric order, representing the current major after maintenance and before an optional newer unreleased major. Assert that exactly two or three roots are indexed so an unexpected layout fails visibly. Keep selector ownership unchanged when a root for an unreleased major is added on ctk-next, and advance it when the oldest root is retired. Update the policy comment, CI documentation, and lifecycle regressions. Validation: 443 CI tooling tests pass on Python 3.11 and 3.15; all four agreed layouts and unexpected root-count failures pass a smoke check; the 16 selector tests pass after the terminology update; pre-commit run --all-files passes. --------- Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
* test(cuda.core): remove skip_if_managed_memory_unsupported Tests that create managed pools through create_managed_memory_resource_or_skip use the property-only skip_if_managed_mempool_unsupported; that factory already skips CUDA 12 builds. The two tests that call the ManagedMemoryResource constructor only to check option validation now skip on the build major alone. The DummyUnifiedMemoryResource DLPack test uses the raw managed-allocation guard, moved from test_managed_ops.py into helpers/memory.py as skip_if_managed_allocation_unsupported. * Restore sample images rewritten by a local test run
It's not unreleased by the time the user sees it.
…3487) * fix(samples): check host pool support before image copies — codex GPT-6 on behalf of Ralf — Device memory-pool support does not imply host memory-pool support. Waive the pinned-memory sample before stream creation when host pools are unavailable, and cover the waiver and supported-path error behavior. * fix(samples): check IPC memory pool handle support — codex GPT-6 on behalf of Ralf — Generic POSIX file-descriptor handle support does not guarantee memory pool IPC support. Check the pool-specific POSIX-FD bit before creating the pool, and test masks with and without that bit. * fix(samples): waive the MLIR fluid sample without a display — codex GPT-6 on behalf of Ralf — On headless Linux, waive before CUDA setup or OpenGL window creation. Cover the negotiated waiver code and preserve CUDA setup errors when a display is present. * test(core): isolate memory resource capture from finalizers — codex GPT-6 on behalf of Ralf — Collect unrelated buffer finalizers with the worker context current before capture begins. Always close the graph builder so an invalidated capture cannot cause cascading failures in later tests. * ci: require manual copy-pr-bot approval * style(samples): align MLIR display check with GL siblings * test(samples): name IPC handle flags in capability cases * fix(samples): use the pool-specific IPC handle capability * refactor(samples): combine image memory-pool waiver checks * test(samples): document extracted function dependencies * test(samples): distinguish waivers from setup error propagation * style(tests): format memory-pool capability cases
… wrong reasons (#3503) test(cuda.core): fix PinnedMemoryResource IPC tests that pass for the wrong reasons - Import pools as the exporter's class via a new import_pool_resource helper, so pinned variants no longer import as DeviceMemoryResource (#3502). - Add a device-access test for imported buffers; a memset fails where the existing copy-based checks pass. - Report latch timeouts (LatchKernel.timed_out) and assert TestEventIpc is driven by its release protocol, not the timeout. Wait for the child to be ready before starting the latch. - Mark the pinned variants that hit #3501 as strict xfails, and close their buffers so the expected failure does not keep the pool alive. - Restore the double-import coverage in TestObjectPassing.
…pools (#3509) * fix(cuda.core): grant device access to imported PinnedMemoryResource pools Pool access is per process, and only the creating process granted the current device access to a pinned pool. In a process that imported the pool, kernels faulted, Buffer.fill failed, and copies blocked the host. from_allocation_handle now applies the same grant as creation through a shared helper, skipping registry hits that already have it. The strict #3501 xfails are removed, and TestEventIpc drops its 5 s latch timeout workaround and flaky marker now that the child's reply releases the latch. Closes #3501 * fix(cuda.core): grant every supporting device access to PinnedMemoryResource pools The grant covered only the device that was current. A spawned child unpickles its arguments before any device is current, so an imported pool granted device 0 alone, and kernels on other devices faulted as in #3501. The shared helper now grants read/write access to every device that supports the pool's kind of host memory pool, in one cuMemPoolSetAccess call, in both the creating and the importing process. from_allocation_handle holds the registered resource across the import so a registry hit cannot race with its collection and skip the grant. New tests check the pool access of every device after creation and after import from a resource or a raw handle, and run a fill on device 1 in a child that imported a pinned buffer. * test(cuda.core): release the TestEventIpc latch when the test fails The latch timeout is now CHILD_TIMEOUT_SEC, so a run that fails before the explicit release left the kernel spinning through fixture teardown and into later tests for up to that long. Release it on every exit path. * test(cuda.core): let the TestEventIpc latch outlast the parent's waits The latch timeout equaled CHILD_TIMEOUT_SEC but started before the parent's wait for the child's reply, so a slow but successful reply could still trip the timed_out assertion. A timeout of four times CHILD_TIMEOUT_SEC can only expire after the parent has given up, and the latch is released on every exit path, so a failed run does not wait for it. * fix(cuda.core): grant imported pinned pool access before registering the pool MP_from_allocation_handle registered an imported pool before from_allocation_handle granted device access. A concurrent import of the same UUID could hit the registry and return the pool before the grant finished, and a failed grant left the pool registered without access. MP_from_allocation_handle now takes an optional init callback that runs on a newly imported pool before it is registered. PinnedMemoryResource passes its grant; DeviceMemoryResource passes none. The registry pre-check in PinnedMemoryResource.from_allocation_handle is no longer needed. * test(cuda.core): run NUMA-placed pinned pool tests on CUDA 12 builds skip_if_pinned_memory_unsupported checks host_memory_pools_supported, which a CUDA 12 build always reports as False. IPC-enabled and explicitly NUMA-placed pinned pools only need host_numa_memory_pools_supported, so every PinnedMR IPC test skipped on CUDA 12 builds although those pools are supported there. The new skip_if_host_numa_pinned_memory_unsupported checks the host NUMA node and that attribute, as PinnedMemoryResource does for such a pool. The pinned branch of the IPC fixture, the new pinned IPC tests and the NUMA-placed pinned tests in test_memory.py use it. Pools without a NUMA node keep the existing guard.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(cuda.core): include clang-tidy in the build dependency group Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * ci: require manual copy-pr-bot approval Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> --------- Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
Add ci/DESIGN.md, a short statement of the principles behind the CI shared by cuda-python, numba-cuda, numba-cuda-mlir and CuPy, and link it from the CI section of CONTRIBUTING.md. Closes #2346. Signed-off-by: Leo Fang <leof@nvidia.com>
) closes #2342 PR #2334 disabled metapackage dependency resolution in artifact-based CI to unblock subpackage releases. Restore this coverage for cuda-python releases by installing the candidate wheel with published PyPI dependencies in clean environments. Test default and [all] installs across the tagged source's supported Python versions, including free-threaded builds, on Linux x86-64, Linux ARM64, and Windows x86-64. Require binary wheels and run pip check. Run validation during dry runs and full releases, and require success before asset uploads or package publication. Document that dependencies must reach PyPI before validating the metapackage release. Validation: workflow/YAML/SPDX/format checks, nine pip scenarios, and 208 release-gating scenarios passed. CI-tool suite: 392 passed; one sandbox UID/signing failure. Full pre-commit stopped on a link-checker download failure. GitHub release dry runs were not executed.
* Fix documentation version-selector publication timing Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * ci: require manual copy-pr-bot approval * Clarify the shared bindings selector and trim redundant test Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> * docs: clarify when to update documentation version selectors Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com> --------- Signed-off-by: Ralf W. Grosse-Kunstleve <rgrossekunst@nvidia.com>
…ol (#3511) fix(cuda.core): keep access to IPC pools imported more than once (#3510) Each import of an IPC memory pool now has a single owner, found through a registry, which counts its imports and destroys the pool that many times. Access is revoked only when the last import is released, so closing one import no longer breaks the others, for pinned or device pools. An import that overlaps the last release waits until that release finishes instead of reusing a pool that is being torn down. IPC pointer imports use the same mechanism, and DeviceMemoryResource.from_allocation_handle keeps the device ID of a resource that is already registered.
…class (#3516) fix(cuda.core): reject importing a memory pool as the other resource class (#3516) DeviceMemoryResource.from_allocation_handle and PinnedMemoryResource.from_allocation_handle now check the imported pool's location and raise TypeError for the other pool kind. An imported PinnedMemoryResource reports the pool's NUMA node as numa_id and grants access for the pool's actual location. Both need a CUDA 13 build and a 13.2+ driver; otherwise imports behave as before. Closes #3502.
refs #2077 Add CI coverage comments for all 148 skipped test cases reported in issue #2077. Identify affected parameter values where other cases run in CI, and annotate applicable CUDA 12 counterparts. Comments only; test behavior is unchanged. Validation: verified all reported cases are annotated, executable code is unchanged, and git diff --check passes.
* test: unify cross-platform Cython test builds * ci: require manual copy-pr-bot approval * test: retire the platform Cython test wrappers
…iver_version (#3523) cy_driver_version() filled a module-level tuple without synchronization. On free-threaded builds, concurrent first calls could replace the tuple while another thread was reading it, leaking it or releasing it too often. driver_version() is already cached with functools.cache, which is safe under concurrent calls, so cy_driver_version() now returns it directly.
…without the location query (#3540) (#3542) The fallback test for drivers before 13.2 imported the pool with the other class and expected success. Without the pool kind check, a pinned import of a device pool grants every device access to a pool that lives on one GPU, which needs peer access and fails with CUDA_ERROR_PEER_ACCESS_UNSUPPORTED on dual-GPU machines without it. The test now checks only that importing with the exporter's class works without the location query.
…h a pending free (#3531) test(cuda.core): cover re-importing a pinned pool after a release with a pending free Add a regression test for #3514: re-importing an IPC pinned pool after the last import is released with an unsynchronized free still pending. The fix (the CUDA_ERROR_ALREADY_MAPPED retry) landed in #3511; this covers the sequence directly, over a single import, several raw-handle imports, and concurrent UUID imports. Also release resources through an ExitStack on failure and consolidate the duplicate-import test helpers. Closes #3514.
|
— codex on behalf of Ralf — Why these CI jobs appear on this draft Opening this draft triggered the standalone PR checks, including pre-commit and the Pixi CPU source-build smoke test. These checks have their own triggers and run before any The full Full CI for the release candidate ran on the upper PR, #3708. Passing candidate run |
mdboom
left a comment
There was a problem hiding this comment.
LGTM. The hash of the last commit here matches exactly what we want it to be.
— codex on behalf of Ralf —
Description
Propose advancing
13.5.xfromv13.5.0to e195f81, immediately before #3546. This keeps the reserved CUDA graph and NVML enum members while bringing in the current release routing. The head is that exact commit. The stacked release-prep PR #3708 carries the candidate changes and CI.Validation
Verified the cutoff is a fast-forward from the current
13.5.xtip. Review this PR for the commits entering the release line. After approval, the intended landing is a fast-forward to the exact cutoff. The cutoff still displays inherited failures from its direct checks and historical CI. The stacked candidate fixes the two documentation links and passed full CI.Checklist