|
| 1 | +.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. |
| 2 | +.. SPDX-License-Identifier: Apache-2.0 |
| 3 | +
|
| 4 | +.. currentmodule:: cuda.core |
| 5 | + |
| 6 | +``cuda.core`` 1.1.1 Release Notes |
| 7 | +================================= |
| 8 | + |
| 9 | + |
| 10 | +New features |
| 11 | +------------ |
| 12 | + |
| 13 | +- Added :meth:`ObjectCode.get_module` for interoperability with legacy |
| 14 | + ``CUmodule``-based driver APIs. The method returns a context-dependent |
| 15 | + ``CUmodule`` handle via ``cuLibraryGetModule``, bridging the newer |
| 16 | + context-independent library API to existing code that expects a module. |
| 17 | + (`#2339 <https://github.com/NVIDIA/cuda-python/pull/2339>`__) |
| 18 | + |
| 19 | +- ``cuda.core`` C++ headers are now included in source distributions and |
| 20 | + installed wheels, making them available to downstream projects that extend |
| 21 | + ``cuda.core`` at the C++ level. |
| 22 | + (`#2236 <https://github.com/NVIDIA/cuda-python/pull/2236>`__) |
| 23 | + |
| 24 | + |
| 25 | +Fixes and enhancements |
| 26 | +---------------------- |
| 27 | + |
| 28 | +- This cuda-core patch release was issued to be compatible with cuda-bindings |
| 29 | + 13.4.0b1. Version strings that include PEP 440 pre-release suffixes (e.g. |
| 30 | + ``0b1``) are now parsed correctly; previously they caused an ``ImportError`` |
| 31 | + on startup. |
| 32 | + |
| 33 | +- Graph nodes now properly retain per-node user-object attachments (kernel |
| 34 | + argument buffers, host-callback functions and user data, and |
| 35 | + memcpy/memset operands) for the full lifetime of the graph. |
| 36 | + (`#2357 <https://github.com/NVIDIA/cuda-python/pull/2357>`__) |
| 37 | + |
| 38 | +- Graph user-object payload cleanup is now deferred to the main Python thread |
| 39 | + via ``Py_AddPendingCall``, avoiding unsafe cross-thread Python object |
| 40 | + destruction that could occur when CUDA invoked the destructor callback on an |
| 41 | + internal driver thread. |
| 42 | + (`#2371 <https://github.com/NVIDIA/cuda-python/pull/2371>`__) |
| 43 | + |
| 44 | +- The on-disk program cache directory is now created with owner-only |
| 45 | + permissions (``0o700``) on POSIX systems, and those permissions are |
| 46 | + re-asserted on each use. This prevents other local users from reading or |
| 47 | + injecting cached device code regardless of the process ``umask``. |
| 48 | + (`#2399 <https://github.com/NVIDIA/cuda-python/pull/2399>`__) |
| 49 | + |
| 50 | +- DLPack: a ``NULL`` deleter in a ``DLManagedTensorVersioned`` capsule is now |
| 51 | + handled correctly per the DLPack specification; previously it would cause a |
| 52 | + crash. |
| 53 | + (`#2427 <https://github.com/NVIDIA/cuda-python/pull/2427>`__) |
| 54 | + |
| 55 | +- Corrected NumPy version guards for writing into DLPack host arrays. The |
| 56 | + minimum required NumPy version for such writes is now correctly enforced as |
| 57 | + 2.2.5+; earlier NumPy versions return a read-only buffer |
| 58 | + (``numpy GH#28632``) and would error rather than skip. |
| 59 | + (`#2238 <https://github.com/NVIDIA/cuda-python/pull/2238>`__) |
0 commit comments