From 53ad544cc66ba5834927e34adc45716490654a3b Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 20 Nov 2026 21:26:31 -0800 Subject: [PATCH 1/5] Surface CUDA 12.9 release notes in the shared docs --- cuda_bindings_13/docs/source/release.rst | 5 +++++ cuda_python/docs/source/release/12.9.10-notes.rst | 10 ++++++++++ cuda_python/docs/source/release/12.9.11-notes.rst | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 cuda_python/docs/source/release/12.9.10-notes.rst diff --git a/cuda_bindings_13/docs/source/release.rst b/cuda_bindings_13/docs/source/release.rst index f844bfc251d1..e3dfc9895808 100644 --- a/cuda_bindings_13/docs/source/release.rst +++ b/cuda_bindings_13/docs/source/release.rst @@ -4,6 +4,11 @@ Release Notes ============= +.. rubric:: CUDA 12 maintenance releases + +* `12.9.11 release notes `_ +* `12.9.10 release notes (in the 12.9.11 documentation) `_ + .. toctree:: :maxdepth: 3 :glob: diff --git a/cuda_python/docs/source/release/12.9.10-notes.rst b/cuda_python/docs/source/release/12.9.10-notes.rst new file mode 100644 index 000000000000..c26798abc53e --- /dev/null +++ b/cuda_python/docs/source/release/12.9.10-notes.rst @@ -0,0 +1,10 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +``cuda-python`` 12.9.10 Release notes +========================================= + +Features +-------- + +cuda-python 12.9.10 now ships wheels for Python 3.15. It is otherwise identical to the 12.9.9 release. diff --git a/cuda_python/docs/source/release/12.9.11-notes.rst b/cuda_python/docs/source/release/12.9.11-notes.rst index 6ddcf872e000..2629160ce1b5 100644 --- a/cuda_python/docs/source/release/12.9.11-notes.rst +++ b/cuda_python/docs/source/release/12.9.11-notes.rst @@ -7,7 +7,7 @@ CUDA Python 12.9.11 Release notes Included components ------------------- -* `cuda.bindings 12.9.11 `_ +* `cuda.bindings 12.9.11 `_ includes NVML additions, callback and memory safety fixes, and packaging and source-build changes. See its release notes for details. From 6420e7dce2f23862a9a333a161edf1ea30154005 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 20 Nov 2026 21:26:36 -0800 Subject: [PATCH 2/5] ci: require manual copy-pr-bot approval From 182b002d95b019f2931e105e8781f5594f88bec0 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 25 Nov 2026 14:19:51 -0800 Subject: [PATCH 3/5] Restore the automatic bindings release-note index --- cuda_bindings_13/docs/source/release.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cuda_bindings_13/docs/source/release.rst b/cuda_bindings_13/docs/source/release.rst index e3dfc9895808..f844bfc251d1 100644 --- a/cuda_bindings_13/docs/source/release.rst +++ b/cuda_bindings_13/docs/source/release.rst @@ -4,11 +4,6 @@ Release Notes ============= -.. rubric:: CUDA 12 maintenance releases - -* `12.9.11 release notes `_ -* `12.9.10 release notes (in the 12.9.11 documentation) `_ - .. toctree:: :maxdepth: 3 :glob: From 042cfe51bb4571c55cd5c8dcb8d5246a3df3137c Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 25 Nov 2026 14:20:12 -0800 Subject: [PATCH 4/5] Add CUDA 12.9.10 and 12.9.11 to shared bindings notes --- .../docs/source/release/12.9.10-notes.rst | 12 ++ .../docs/source/release/12.9.11-notes.rst | 183 ++++++++++++++++++ 2 files changed, 195 insertions(+) create mode 100644 cuda_bindings_13/docs/source/release/12.9.10-notes.rst create mode 100644 cuda_bindings_13/docs/source/release/12.9.11-notes.rst diff --git a/cuda_bindings_13/docs/source/release/12.9.10-notes.rst b/cuda_bindings_13/docs/source/release/12.9.10-notes.rst new file mode 100644 index 000000000000..95dae214bbdf --- /dev/null +++ b/cuda_bindings_13/docs/source/release/12.9.10-notes.rst @@ -0,0 +1,12 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. module:: cuda.bindings + +``cuda-bindings`` 12.9.10 Release notes +========================================= + +Features +-------- + +cuda-bindings 12.9.10 now ships wheels for Python 3.15. It is otherwise identical to the 12.9.9 release. diff --git a/cuda_bindings_13/docs/source/release/12.9.11-notes.rst b/cuda_bindings_13/docs/source/release/12.9.11-notes.rst new file mode 100644 index 000000000000..ee8b060f0b5e --- /dev/null +++ b/cuda_bindings_13/docs/source/release/12.9.11-notes.rst @@ -0,0 +1,183 @@ +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-License-Identifier: Apache-2.0 + +.. module:: cuda.bindings + +``cuda-bindings`` 12.9.11 Release notes +======================================= + +Breaking Changes +---------------- + +* ``nvml.NvlinkFirmwareInfo.firmware_version`` now exposes only valid entries, + rather than all 100 slots in the underlying buffer. Set this member to update + the valid-entry count; the separate ``num_valid_entries`` member has been + removed. Use ``len(info.firmware_version)`` to query the count. + (`PR #3429 `_) +* Reserved members of ``runtime`` struct wrappers are no longer exposed as + Python attributes. Accessing these members now raises ``AttributeError``: + + * ``cudaArraySparseProperties.reserved``, + ``cudaArrayMemoryRequirements.reserved``, ``cudaMemcpyNodeParams.reserved``, + ``cudaFuncAttributes.reserved``, ``cudaMemPoolProps.reserved``, + ``cudaMemPoolPtrExportData.reserved``, ``cudaDeviceProp.reserved``, + ``cudaEglPlaneDesc_st.reserved`` + * ``cudaIpcEventHandle_st.reserved``, ``cudaIpcMemHandle_st.reserved``, + ``cudaMemFabricHandle_st.reserved`` (also removed from their ``_t`` aliases) + * ``cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved``, + ``cudaExternalSemaphoreSignalParams.params.reserved``, + ``cudaExternalSemaphoreSignalParams.reserved``, + ``cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved``, + ``cudaExternalSemaphoreWaitParams.params.reserved``, + ``cudaExternalSemaphoreWaitParams.reserved`` + * ``cudaGraphNodeParams.reserved0``, ``cudaGraphNodeParams.reserved1``, + ``cudaGraphNodeParams.reserved2``, ``cudaGraphEdgeData_st.reserved`` + + Storage allocated by these wrappers is zero-initialized, including reserved + fields, so callers do not need to zero these fields explicitly. + + To serialize IPC handles previously accessed through ``handle.reserved``, + copy their raw bytes using ``getPtr()`` and ``ctypes`` instead: + + .. code-block:: python + + import ctypes + + from cuda.bindings import runtime + + # handle was returned by runtime.cudaIpcGetMemHandle(). + payload = ctypes.string_at(handle.getPtr(), runtime.CUDA_IPC_HANDLE_SIZE) + restored = runtime.cudaIpcMemHandle_t() + ctypes.memmove(restored.getPtr(), payload, runtime.CUDA_IPC_HANDLE_SIZE) + + When restoring a payload received from another process, ensure it contains + exactly ``runtime.CUDA_IPC_HANDLE_SIZE`` bytes before copying it. + +Enhancements +------------ + +* Expanded NVML coverage with ``device_get_gpu_uptime_v1``, + ``system_get_conf_compute_settings_v2``, ``device_get_nvlink_info_v3``, + ``device_get_nvlink_remap_table_info_v1``, ``device_set_nvlink_nvle_ready_v1``, + ``device_lock_nvlink_remap_table_v1``, + ``device_setup_nvlink_nvle_encryption_key_v1``, and + ``device_get_nvlink_nvle_private_info_v1``, together with their struct wrappers. + These APIs require an NVML library that provides the corresponding functions. + (`PR #3429 `_) +* Buffer-like pointer arguments in ``nvfatbin``, ``nvjitlink``, and ``nvvm`` now + accept contiguous buffers of any dimensionality, including ctypes objects + and multidimensional NumPy arrays. Previously these buffers had to be 1D. + (`PR #3429 `_) +* Pointer arguments in ``cufile`` and ``nvml``, such as ``descr`` in + ``cufile.handle_register`` and ``info`` in ``nvml.device_set_clock_offsets``, + now accept ``None`` as ``NULL``. + (`PR #3429 `_) + +Bug Fixes +--------- + +* ``driver.cuLaunchHostFunc`` and ``runtime.cudaLaunchHostFunc`` now pass the + host function and its user data to CUDA unchanged. The previous internal + trampoline freed its state after the first invocation, causing a captured + host function to crash on the second launch of a CUDA graph. Callers must + retain the callback object and user data storage until all uses have completed, + including the lifetime of graphs and their executables; see + :ref:`host-function-lifetime`. + (`PR #3107 `_) +* Corrected the driver-version lookup for ``cuLogs*`` functions to CUDA 12.9, + preventing spurious ``FunctionNotFoundError`` failures on supported drivers. + (`PR #3377 `_, + `PR #3395 `_) +* Fixed crashes when registering or unregistering ``cuLogs*`` and asynchronous + notification callbacks concurrently under free-threaded Python. + (`PR #3429 `_) +* Nested ``driver`` and ``runtime`` struct and union views now retain their + owning wrapper, and struct-array getters in these modules return independent + copies, avoiding access to freed backing storage. Mutating a returned element + no longer updates the parent struct: read the array, modify its elements, then + assign it back (for example, ``attrs = cfg.attrs``, update ``attrs[0]``, then + ``cfg.attrs = attrs``). ``cufile`` and ``nvml`` struct wrappers also retain + owners correctly when indexing and slicing arrays. + (`PR #3429 `_) +* ``cufile`` and ``nvml`` struct arrays are now zero-initialized, and assigning + to a member of a read-only array wrapper raises ``ValueError``. + (`PR #3429 `_) +* ``nvml.device_get_field_values`` initializes per-query status to + ``ERROR_UNKNOWN`` so entries left unpopulated by NVML do not appear successful. + Integer field IDs now explicitly use scope ID zero. + (`PR #3429 `_) +* ``nvml.PwrModelMetricsPfpp1x`` and ``nvml.PwrModelMetricsDlppm1x`` now populate + their nested ``estimated_metrics`` arrays using each element's + ``num_vf_points`` and ``num_estimated_metrics``, respectively. + (`PR #3429 `_) +* Moved cuFile and NVML dtype layout calculations to heap storage to avoid + placing large temporary structs on the stack during module initialization. + (`PR #3473 `_) +* Nested resource pointer conversion accepts both ``str`` and ``bytes`` + options, matching the CUDA 13 bindings behavior. +* Coredump settings retain borrowed string buffers for the duration of the + call and free the buffers allocated for getters. +* ``get_cuda_native_handle`` preserves a ``KeyError`` raised inside a + registered getter instead of reporting an unknown type. + (`PR #3315 `_) + +Deprecations +------------ + +* The NVML exception classes ``nvml.TimeoutError`` and ``nvml.MemoryError`` + have been renamed to ``nvml.NvmlTimeoutError`` and ``nvml.NvmlMemoryError`` + to avoid shadowing Python builtins. The old names remain available as + compatibility aliases. Both classes still derive from ``nvml.NvmlError``. + (`PR #3429 `_) + +End of Life +----------- + +* Python 3.10 support dropped (end of life); the supported range is + Python 3.11-3.15. + +Packaging and Source Builds +--------------------------- + +* Wheels omit ``.pyx`` implementation sources and ``.in`` generation templates, + following the CUDA 13 packaging policy. Cython declarations and includes + (``.pxd`` and ``.pxi``), and required headers, remain available for downstream + Cython builds. Source distributions retain the inputs needed to build the package. +* All binding sources, including the runtime's internal and Cython layers, are + now pre-generated. Source builds no longer parse CUDA headers or expand + templates, removing the ``pyclibrary`` build dependency and the + ``CUDA_PYTHON_PARSER_CACHING`` setting. + (`PR #3429 `_, + `PR #3437 `_) +* Source builds use the monorepo's shared compiler and Cython-cache tooling and + check for CUDA 12.9 headers before Cythonization, reporting a clear error when + the selected toolkit's major.minor version does not match the generated sources. + (`PR #3173 `_) +* Development and test dependencies are now provided through dependency groups; + use ``python -m pip install -v -e . --group test`` from ``cuda_bindings_12`` + for an editable installation with test dependencies. + (`PR #3315 `_) + +Documentation and Maintenance +----------------------------- + +* CUDA 12.9 maintenance sources now live in ``cuda_bindings_12`` on ``main``. + The historical ``12.9.x`` branch is frozen except for emergency fixes, which + must also be reconciled into ``main``. Main-tree CUDA 12 releases are built + and tested alongside CUDA 13. Old-layout CUDA 12 tags are released from a + validated workflow on the appropriate maintenance branch or historical tag, + not from ``main``. +* Corrected the CUDA 12 driver guidance to its existing minor-version + compatibility baseline: Linux 525.60.13 and Windows 528.33. This is a + documentation correction, not a new runtime version check. Newer features + and PTX compilation can still require a newer driver. + +Known Issues +------------ + +* Updating from v12.6.2.post1 and older via ``pip install -U cuda-python`` might + not work. Uninstall with ``pip uninstall -y cuda-python``, then install the + CUDA 12 line with ``pip install "cuda-python~=12.9.0"``. +* ``nvml.system_get_process_name`` on WSL can return incorrect values. Set the + locale to ``"C"`` before calling ``nvml.device_get_compute_running_processes_v3`` + (which sets the process names) and ``nvml.system_get_process_name``. From b133d8426fba7203d7cdcccedd2888301b259cb3 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Wed, 25 Nov 2026 14:29:12 -0800 Subject: [PATCH 5/5] Sync the CUDA 12.9.9 bindings release notes --- .../docs/source/release/12.9.9-notes.rst | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/cuda_bindings_12/docs/source/release/12.9.9-notes.rst b/cuda_bindings_12/docs/source/release/12.9.9-notes.rst index 3ed9e1d09bc7..3d369fc18fd0 100644 --- a/cuda_bindings_12/docs/source/release/12.9.9-notes.rst +++ b/cuda_bindings_12/docs/source/release/12.9.9-notes.rst @@ -6,7 +6,6 @@ ``cuda-bindings`` 12.9.9 Release notes ======================================= -Released on TBD Changes ------- @@ -344,6 +343,29 @@ Bugfixes - Fixed readonly correctness in ``__setitem__`` for generated struct wrapper classes in ``cudla``, ``cufile``, and ``nvml``. (`PR #2875 `_) +- Fixed the internal result storage and Python conversion for several + ``CUpointer_attribute`` and ``CUcoredumpSettings`` result types: + ``CU_POINTER_ATTRIBUTE_DEVICE_ORDINAL`` is now returned from signed integer + storage so negative CUDA device sentinels are preserved, + ``CU_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES`` is stored in its 64-bit + unsigned slot instead of being truncated to 32 bits, + ``CU_POINTER_ATTRIBUTE_HOST_POINTER`` uses a ``void *`` result slot, and the + boolean coredump attributes use a one-byte ``bool`` matching the driver ABI. + (`PR #2930 `_) +- Fixed ``CU_JIT_WALL_TIME`` and ``cudaJitWallTime`` OUT slots: the pointer + passed to the driver is now the address of the float storage cell instead + of the float bit-pattern value-cast to a pointer, which previously produced + a garbage address that could crash or corrupt memory when CUDA wrote back + the elapsed time. + (`PR #2934 `_) +- Added missing helper branches for ``CUpointer_attribute``, + ``CUmem_range_attribute``, ``CUjit_option`` and ``CUcoredumpSettings`` + enumerators that previously raised ``TypeError`` at construction time. + (`PR #2934 `_) +- Added missing ``getDescInfo`` arms for the + ``{Signed,Unsigned}Normalized{8,16}X{1,2,4}`` channel-format kinds, which + previously returned ``cudaErrorInvalidChannelDescriptor``. + (`PR #2934 `_) Known issues ------------