Skip to content

Commit 972ea4a

Browse files
authored
Automatic updates generated with cython-gen: (#1134)
Installed: cuda_13.0.2_580.95.05_linux.run CUDA_HOME=/usr/local/cuda-13.0 python regenerate.py -o ../../cuda-python
1 parent 12c77c9 commit 972ea4a

File tree

4 files changed

+43
-2
lines changed

4 files changed

+43
-2
lines changed

cuda_bindings/cuda/bindings/cyruntime_types.pxi.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1591,6 +1591,20 @@ cdef extern from "library_types.h":
15911591

15921592
ctypedef cudaEmulationStrategy_t cudaEmulationStrategy
15931593

1594+
cdef enum cudaEmulationMantissaControl_t:
1595+
CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = 0
1596+
CUDA_EMULATION_MANTISSA_CONTROL_FIXED = 1
1597+
1598+
ctypedef cudaEmulationMantissaControl_t cudaEmulationMantissaControl
1599+
1600+
cdef enum cudaEmulationSpecialValuesSupport_t:
1601+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = 0
1602+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = 1
1603+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = 2
1604+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = 65535
1605+
1606+
ctypedef cudaEmulationSpecialValuesSupport_t cudaEmulationSpecialValuesSupport
1607+
15941608
cdef enum libraryPropertyType_t:
15951609
MAJOR_VERSION = 0
15961610
MINOR_VERSION = 1

cuda_bindings/cuda/bindings/driver.pyx.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4822,7 +4822,8 @@ class CUmemPool_attribute(IntEnum):
48224822

48234823
#: (value type = int) Allow cuMemAllocAsync to insert new stream
48244824
#: dependencies in order to establish the stream ordering required to
4825-
#: reuse a piece of memory released by cuFreeAsync (default enabled).
4825+
#: reuse a piece of memory released by cuMemFreeAsync (default
4826+
#: enabled).
48264827
CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES = cydriver.CUmemPool_attribute_enum.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES{{endif}}
48274828
{{if 'CU_MEMPOOL_ATTR_RELEASE_THRESHOLD' in found_values}}
48284829

cuda_bindings/cuda/bindings/runtime.pyx.in

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,32 @@ class cudaEmulationStrategy(IntEnum):
15781578

15791579
_dict_cudaEmulationStrategy = dict(((int(v), v) for k, v in cudaEmulationStrategy.__members__.items()))
15801580
{{endif}}
1581+
{{if 'cudaEmulationMantissaControl_t' in found_types}}
1582+
1583+
class cudaEmulationMantissaControl(IntEnum):
1584+
""""""
1585+
{{if 'CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC' in found_values}}
1586+
CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC{{endif}}
1587+
{{if 'CUDA_EMULATION_MANTISSA_CONTROL_FIXED' in found_values}}
1588+
CUDA_EMULATION_MANTISSA_CONTROL_FIXED = cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_FIXED{{endif}}
1589+
1590+
_dict_cudaEmulationMantissaControl = dict(((int(v), v) for k, v in cudaEmulationMantissaControl.__members__.items()))
1591+
{{endif}}
1592+
{{if 'cudaEmulationSpecialValuesSupport_t' in found_types}}
1593+
1594+
class cudaEmulationSpecialValuesSupport(IntEnum):
1595+
""""""
1596+
{{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE' in found_values}}
1597+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE{{endif}}
1598+
{{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY' in found_values}}
1599+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY{{endif}}
1600+
{{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN' in found_values}}
1601+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN{{endif}}
1602+
{{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT' in found_values}}
1603+
CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT{{endif}}
1604+
1605+
_dict_cudaEmulationSpecialValuesSupport = dict(((int(v), v) for k, v in cudaEmulationSpecialValuesSupport.__members__.items()))
1606+
{{endif}}
15811607
{{if 'libraryPropertyType_t' in found_types}}
15821608

15831609
class libraryPropertyType(IntEnum):

cuda_bindings/docs/source/module/driver.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4851,7 +4851,7 @@ Data types used by CUDA driver
48514851
.. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES
48524852

48534853

4854-
(value type = int) Allow cuMemAllocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by cuFreeAsync (default enabled).
4854+
(value type = int) Allow cuMemAllocAsync to insert new stream dependencies in order to establish the stream ordering required to reuse a piece of memory released by cuMemFreeAsync (default enabled).
48554855

48564856

48574857
.. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD

0 commit comments

Comments
 (0)