You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e82804d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: cuda_bindings_13/docs/source/release/13.5.0-notes.rst
+29-4Lines changed: 29 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -300,14 +300,30 @@ Enhancements
300
300
- The following functions now accept ``None`` for their buffer-like pointer argument (an integer address or an object supporting the buffer protocol), which is treated as ``NULL``.
- Buffer-like pointer arguments in ``cudla``, ``nvfatbin``, ``nvjitlink`` and ``nvvm`` are no longer required to be 1D. Any contiguous buffer
326
+
(a ctypes object, NumPy array of any shape, ``bytes``, ...) is accepted, and the error message for an invalid buffer says so.
311
327
- For all ``cuda-bindings`` APIs, functions that accept a struct wrapper will accept the struct wrapper directly, rather than requiring getting the ``.ptr`` property.
312
328
- Creating class instances in ``cuda-bindings`` should now be faster in most cases, because it requires 1 heap allocation rather than 2.
313
329
- Before a source build compiles anything, it now checks that the CUDA Toolkit's ``cuda.h`` has the major.minor the source tree was generated from. A mismatch stops the build with a message that names the header found and the version needed. Previously a mismatch surfaced as a long list of C++ redefinition errors.
@@ -344,14 +360,23 @@ Bugfixes
344
360
Callers must retain the callback object and user data storage for the lifetime
345
361
of the graph and its executables, including pending launches; see
346
362
:ref:`host-function-lifetime`.
363
+
- ``cufile`` and ``nvml`` struct array wrappers (for example ``nvml.ProcessInfo`` and ``cufile.IOParams``) are now zero-initialized when
364
+
created with a given size. Previously they were allocated with uninitialized memory, so unset fields held garbage values.
365
+
- Assigning to a member of a read-only ``cufile`` or ``nvml`` struct array wrapper now raises ``ValueError`` ("This <Class> instance is
366
+
read-only"). Previously no such check was made.
367
+
- ``nvml.PwrModelMetricsPfpp1x`` and ``nvml.PwrModelMetricsDlppm1x`` array wrappers now populate their nested ``estimated_metrics`` member
368
+
with one array per element, sized by ``num_vf_points`` and ``num_estimated_metrics`` respectively.
347
369
348
370
Prerelease feature
349
371
------------------
350
372
351
-
A new version of the ``nvrtc`` API is available as ``cuda.bindings._v2.nvrtc``. The
352
-
primary improvements are: (1) raising exceptions rather than returning error
353
-
codes, (2) uses PEP8-compliant naming, and (3) more performance. This API is
354
-
still experimental and subject to change.
373
+
A new version of the ``nvrtc`` and ``driver`` APIs is available as
374
+
``cuda.bindings._v2.nvrtc`` and ``cuda.bindings._v2.driver``. The primary
375
+
improvements are: (1) raising exceptions rather than returning error codes, (2)
376
+
uses PEP8-compliant naming, and (3) more performance. This API is still
377
+
experimental and subject to change.
378
+
379
+
See `v2 migration guide <../../module/v2_migration.html>`_ for details on migrating to new API.
0 commit comments