.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
.. SPDX-License-Identifier: Apache-2.0

``cuda-bindings`` 12.9.0 Release notes
======================================

Released on May 5, 2025


Highlights
----------

* The ``cuda.bindings.nvvm`` Python module was added, wrapping the
  `libNVVM C API <https://docs.nvidia.com/cuda/libnvvm-api/>`_
* Source build error checking added for missing required headers
* Statically link CUDA Runtime instead of reimplementing it
* Move stream callback wrappers to the Python layer
* Return code construction is made faster


Bug fixes
---------

* Fix segfault when converting char* NULL to bytes
* Failed API calls return None for non error code tuple elements
* Compute-sanitizer may report ``CUDA_ERROR_INVALID_CONTEXT`` when calling certain CUDA
  runtime APIs such as ``cudaGetDevice()``


Miscellaneous
-------------

* Benchmark suite is updated
* Improvements in the introductory code samples
* Fix performance hint warnings raised by Cython 3
* Improvements in the Overview page


Known issues
------------

* Updating from older versions (v12.6.2.post1 and below) via ``pip install -U cuda-python`` might not work. Please do a clean re-installation by uninstalling ``pip uninstall -y cuda-python`` followed by installing ``pip install cuda-python``.
