cuda-bindings 13.6.0 Release notes#
Changes#
The modules whose bindings take pointers to arrays now accept more kinds of arguments, and in some places treat them differently:
An array of pointers (for example, the
optionsofnvjitlink.createornvvm.compile_program) may contain NumPy integers, which were rejected before. The elements are converted with__index__, so a float or a string is still aTypeError.Noneis accepted for an array of pointers or an array of values, and is passed to the C function asNULL. Before, it was aTypeError. Where the number of elements is a separate argument, as innvjitlink.create,nvvm.compile_program,nvvm.verify_programandnvfatbin.create, passingNonetogether with a nonzero count now reaches the C library asNULL, instead of raising an exception in Python.
A buffer argument (
bytes, a NumPy array,bytearray, …) is now held for the whole call into the C library, and released when the function returns. Before, the buffer was released before the call, so another thread could resize abytearrayand free its memory during the call. This applies to all the bindings that take a buffer, such as those ofnvfatbin,nvjitlink,nvvmandcudla. The accepted arguments and the errors are unchanged.nvml.device_clear_field_valueshas some bugfixes: It returnsNonefor an emptyvalues. Before, it returned theFieldValuethat it built.