diff --git a/cuda_bindings/cuda/bindings/_lib/utils.pxi.in b/cuda_bindings/cuda/bindings/_lib/utils.pxi.in index 0a9f2e4e30..c2a8b9a9ad 100644 --- a/cuda_bindings/cuda/bindings/_lib/utils.pxi.in +++ b/cuda_bindings/cuda/bindings/_lib/utils.pxi.in @@ -114,7 +114,7 @@ cdef class _HelperKernelParams: raise TypeError("Unsupported type: " + str(type(ctype))) idx += 1 else: - raise TypeError("Argument 'kernelParams' is not a valid type: Tuple[Tuple[Any, ...], Tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int") + raise TypeError("Argument 'kernelParams' is not a valid type: tuple[tuple[Any, ...], tuple[Any, ...]] or PyObject implimenting Buffer Protocol or Int") def __dealloc__(self): if self._pyobj_acquired is True: diff --git a/cuda_bindings/cuda/bindings/driver.pxd.in b/cuda_bindings/cuda/bindings/driver.pxd.in index ee01d5b586..ef68053b51 100644 --- a/cuda_bindings/cuda/bindings/driver.pxd.in +++ b/cuda_bindings/cuda/bindings/driver.pxd.in @@ -826,7 +826,7 @@ cdef class CUstreamBatchMemOpParams_union: Params for CU_STREAM_MEM_OP_BARRIER operations. {{endif}} {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} - pad : List[cuuint64_t] + pad : list[cuuint64_t] {{endif}} @@ -1012,11 +1012,11 @@ cdef class CUdevprop_st: Maximum number of threads per block {{endif}} {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} - maxThreadsDim : List[int] + maxThreadsDim : list[int] Maximum size of each dimension of a block {{endif}} {{if 'CUdevprop_st.maxGridSize' in found_struct}} - maxGridSize : List[int] + maxGridSize : list[int] Maximum size of each dimension of a grid {{endif}} {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} @@ -2723,7 +2723,7 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL {{endif}} {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -2755,7 +2755,7 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: alignment requirement {{endif}} {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -2890,7 +2890,7 @@ cdef class anon_struct11: Attributes ---------- {{if 'CUDA_RESOURCE_DESC_st.res.reserved.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -2991,7 +2991,7 @@ cdef class CUDA_TEXTURE_DESC_st: Attributes ---------- {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} - addressMode : List[CUaddress_mode] + addressMode : list[CUaddress_mode] Address modes {{endif}} {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} @@ -3023,11 +3023,11 @@ cdef class CUDA_TEXTURE_DESC_st: Mipmap maximum level clamp {{endif}} {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} - borderColor : List[float] + borderColor : list[float] Border Color {{endif}} {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -3080,7 +3080,7 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: Last layer index {{endif}} {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3102,7 +3102,7 @@ cdef class CUtensorMap_st: Attributes ---------- {{if 'CUtensorMap_st.opaque' in found_struct}} - opaque : List[cuuint64_t] + opaque : list[cuuint64_t] {{endif}} @@ -3281,7 +3281,7 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3317,7 +3317,7 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: Flags reserved for future use. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3351,7 +3351,7 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: Total number of levels in the mipmap chain {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3438,7 +3438,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: Flags reserved for the future. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3530,7 +3530,7 @@ cdef class anon_struct16: {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3574,7 +3574,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3670,7 +3670,7 @@ cdef class anon_struct19: {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3714,7 +3714,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -4080,7 +4080,7 @@ cdef class CUarrayMapInfo_st: flags for future use, must be zero now. {{endif}} {{if 'CUarrayMapInfo_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Reserved for future use, must be zero now. {{endif}} @@ -4865,11 +4865,11 @@ cdef class CUgraphNodeParams_st: Type of the node {{endif}} {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} - reserved0 : List[int] + reserved0 : list[int] Reserved. Must be zero. {{endif}} {{if 'CUgraphNodeParams_st.reserved1' in found_struct}} - reserved1 : List[long long] + reserved1 : list[long long] Padding. Unused bytes must be zero. {{endif}} {{if 'CUgraphNodeParams_st.kernel' in found_struct}} @@ -4994,7 +4994,7 @@ cdef class CUcheckpointLockArgs_st: Reserved for future use, must be zero {{endif}} {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} - reserved1 : List[cuuint64_t] + reserved1 : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -5015,7 +5015,7 @@ cdef class CUcheckpointCheckpointArgs_st: Attributes ---------- {{if 'CUcheckpointCheckpointArgs_st.reserved' in found_struct}} - reserved : List[cuuint64_t] + reserved : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -5067,7 +5067,7 @@ cdef class CUcheckpointUnlockArgs_st: Attributes ---------- {{if 'CUcheckpointUnlockArgs_st.reserved' in found_struct}} - reserved : List[cuuint64_t] + reserved : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -5208,11 +5208,11 @@ cdef class anon_union15: Attributes ---------- {{if True}} - pArray : List[CUarray] + pArray : list[CUarray] {{endif}} {{if True}} - pPitch : List[Any] + pPitch : list[Any] {{endif}} @@ -5539,7 +5539,7 @@ cdef class CUstreamBatchMemOpParams_v1(CUstreamBatchMemOpParams_union): Params for CU_STREAM_MEM_OP_BARRIER operations. {{endif}} {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} - pad : List[cuuint64_t] + pad : list[cuuint64_t] {{endif}} @@ -5582,7 +5582,7 @@ cdef class CUstreamBatchMemOpParams(CUstreamBatchMemOpParams_v1): Params for CU_STREAM_MEM_OP_BARRIER operations. {{endif}} {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} - pad : List[cuuint64_t] + pad : list[cuuint64_t] {{endif}} @@ -5729,11 +5729,11 @@ cdef class CUdevprop_v1(CUdevprop_st): Maximum number of threads per block {{endif}} {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} - maxThreadsDim : List[int] + maxThreadsDim : list[int] Maximum size of each dimension of a block {{endif}} {{if 'CUdevprop_st.maxGridSize' in found_struct}} - maxGridSize : List[int] + maxGridSize : list[int] Maximum size of each dimension of a grid {{endif}} {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} @@ -5785,11 +5785,11 @@ cdef class CUdevprop(CUdevprop_v1): Maximum number of threads per block {{endif}} {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} - maxThreadsDim : List[int] + maxThreadsDim : list[int] Maximum size of each dimension of a block {{endif}} {{if 'CUdevprop_st.maxGridSize' in found_struct}} - maxGridSize : List[int] + maxGridSize : list[int] Maximum size of each dimension of a grid {{endif}} {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} @@ -8175,7 +8175,7 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_v1(CUDA_ARRAY_SPARSE_PROPERTIES_st): CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL {{endif}} {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8212,7 +8212,7 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES(CUDA_ARRAY_SPARSE_PROPERTIES_v1): CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL {{endif}} {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8240,7 +8240,7 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_v1(CUDA_ARRAY_MEMORY_REQUIREMENTS_st): alignment requirement {{endif}} {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8268,7 +8268,7 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS(CUDA_ARRAY_MEMORY_REQUIREMENTS_v1): alignment requirement {{endif}} {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8344,7 +8344,7 @@ cdef class CUDA_TEXTURE_DESC_v1(CUDA_TEXTURE_DESC_st): Attributes ---------- {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} - addressMode : List[CUaddress_mode] + addressMode : list[CUaddress_mode] Address modes {{endif}} {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} @@ -8376,11 +8376,11 @@ cdef class CUDA_TEXTURE_DESC_v1(CUDA_TEXTURE_DESC_st): Mipmap maximum level clamp {{endif}} {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} - borderColor : List[float] + borderColor : list[float] Border Color {{endif}} {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -8400,7 +8400,7 @@ cdef class CUDA_TEXTURE_DESC(CUDA_TEXTURE_DESC_v1): Attributes ---------- {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} - addressMode : List[CUaddress_mode] + addressMode : list[CUaddress_mode] Address modes {{endif}} {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} @@ -8432,11 +8432,11 @@ cdef class CUDA_TEXTURE_DESC(CUDA_TEXTURE_DESC_v1): Mipmap maximum level clamp {{endif}} {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} - borderColor : List[float] + borderColor : list[float] Border Color {{endif}} {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -8488,7 +8488,7 @@ cdef class CUDA_RESOURCE_VIEW_DESC_v1(CUDA_RESOURCE_VIEW_DESC_st): Last layer index {{endif}} {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8540,7 +8540,7 @@ cdef class CUDA_RESOURCE_VIEW_DESC(CUDA_RESOURCE_VIEW_DESC_v1): Last layer index {{endif}} {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8561,7 +8561,7 @@ cdef class CUtensorMap(CUtensorMap_st): Attributes ---------- {{if 'CUtensorMap_st.opaque' in found_struct}} - opaque : List[cuuint64_t] + opaque : list[cuuint64_t] {{endif}} @@ -8757,7 +8757,7 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_ Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8793,7 +8793,7 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC(CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1) Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8825,7 +8825,7 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_ Flags reserved for future use. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8857,7 +8857,7 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC(CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1) Flags reserved for future use. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8890,7 +8890,7 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1(CUDA_EXTERNAL_MEMORY_MIP Total number of levels in the mipmap chain {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8923,7 +8923,7 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC(CUDA_EXTERNAL_MEMORY_MIPMAP Total number of levels in the mipmap chain {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8955,7 +8955,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1(CUDA_EXTERNAL_SEMAPHORE_HANDLE Flags reserved for the future. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -8987,7 +8987,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC(CUDA_EXTERNAL_SEMAPHORE_HANDLE_DE Flags reserved for the future. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -9022,7 +9022,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_SIGN For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -9057,7 +9057,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS(CUDA_EXTERNAL_SEMAPHORE_SIGNAL_ For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -9092,7 +9092,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1(CUDA_EXTERNAL_SEMAPHORE_WAIT_P For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -9127,7 +9127,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS(CUDA_EXTERNAL_SEMAPHORE_WAIT_PARA For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -9376,7 +9376,7 @@ cdef class CUarrayMapInfo_v1(CUarrayMapInfo_st): flags for future use, must be zero now. {{endif}} {{if 'CUarrayMapInfo_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Reserved for future use, must be zero now. {{endif}} @@ -9437,7 +9437,7 @@ cdef class CUarrayMapInfo(CUarrayMapInfo_v1): flags for future use, must be zero now. {{endif}} {{if 'CUarrayMapInfo_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Reserved for future use, must be zero now. {{endif}} @@ -10419,11 +10419,11 @@ cdef class CUgraphNodeParams(CUgraphNodeParams_st): Type of the node {{endif}} {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} - reserved0 : List[int] + reserved0 : list[int] Reserved. Must be zero. {{endif}} {{if 'CUgraphNodeParams_st.reserved1' in found_struct}} - reserved1 : List[long long] + reserved1 : list[long long] Padding. Unused bytes must be zero. {{endif}} {{if 'CUgraphNodeParams_st.kernel' in found_struct}} @@ -10508,7 +10508,7 @@ cdef class CUcheckpointLockArgs(CUcheckpointLockArgs_st): Reserved for future use, must be zero {{endif}} {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} - reserved1 : List[cuuint64_t] + reserved1 : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -10528,7 +10528,7 @@ cdef class CUcheckpointCheckpointArgs(CUcheckpointCheckpointArgs_st): Attributes ---------- {{if 'CUcheckpointCheckpointArgs_st.reserved' in found_struct}} - reserved : List[cuuint64_t] + reserved : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -10572,7 +10572,7 @@ cdef class CUcheckpointUnlockArgs(CUcheckpointUnlockArgs_st): Attributes ---------- {{if 'CUcheckpointUnlockArgs_st.reserved' in found_struct}} - reserved : List[cuuint64_t] + reserved : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} diff --git a/cuda_bindings/cuda/bindings/driver.pyx.in b/cuda_bindings/cuda/bindings/driver.pyx.in index 975153c58e..37de76cada 100644 --- a/cuda_bindings/cuda/bindings/driver.pyx.in +++ b/cuda_bindings/cuda/bindings/driver.pyx.in @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # This code was automatically generated with version 13.0.0. Do not modify it directly. -from typing import List, Tuple, Any, Optional +from typing import Any, Optional from enum import IntEnum import cython import ctypes @@ -8669,7 +8669,7 @@ cdef class CUstreamBatchMemOpParams_union: Params for CU_STREAM_MEM_OP_BARRIER operations. {{endif}} {{if 'CUstreamBatchMemOpParams_union.pad' in found_struct}} - pad : List[cuuint64_t] + pad : list[cuuint64_t] {{endif}} @@ -9250,11 +9250,11 @@ cdef class CUdevprop_st: Maximum number of threads per block {{endif}} {{if 'CUdevprop_st.maxThreadsDim' in found_struct}} - maxThreadsDim : List[int] + maxThreadsDim : list[int] Maximum size of each dimension of a block {{endif}} {{if 'CUdevprop_st.maxGridSize' in found_struct}} - maxGridSize : List[int] + maxGridSize : list[int] Maximum size of each dimension of a grid {{endif}} {{if 'CUdevprop_st.sharedMemPerBlock' in found_struct}} @@ -14949,7 +14949,7 @@ cdef class CUDA_ARRAY_SPARSE_PROPERTIES_st: CU_ARRAY_SPARSE_PROPERTIES_SINGLE_MIPTAIL {{endif}} {{if 'CUDA_ARRAY_SPARSE_PROPERTIES_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -15066,7 +15066,7 @@ cdef class CUDA_ARRAY_MEMORY_REQUIREMENTS_st: alignment requirement {{endif}} {{if 'CUDA_ARRAY_MEMORY_REQUIREMENTS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -15524,7 +15524,7 @@ cdef class anon_struct11: Attributes ---------- {{if 'CUDA_RESOURCE_DESC_st.res.reserved.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -15798,7 +15798,7 @@ cdef class CUDA_TEXTURE_DESC_st: Attributes ---------- {{if 'CUDA_TEXTURE_DESC_st.addressMode' in found_struct}} - addressMode : List[CUaddress_mode] + addressMode : list[CUaddress_mode] Address modes {{endif}} {{if 'CUDA_TEXTURE_DESC_st.filterMode' in found_struct}} @@ -15830,11 +15830,11 @@ cdef class CUDA_TEXTURE_DESC_st: Mipmap maximum level clamp {{endif}} {{if 'CUDA_TEXTURE_DESC_st.borderColor' in found_struct}} - borderColor : List[float] + borderColor : list[float] Border Color {{endif}} {{if 'CUDA_TEXTURE_DESC_st.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -16046,7 +16046,7 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: Last layer index {{endif}} {{if 'CUDA_RESOURCE_VIEW_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -16211,7 +16211,7 @@ cdef class CUtensorMap_st: Attributes ---------- {{if 'CUtensorMap_st.opaque' in found_struct}} - opaque : List[cuuint64_t] + opaque : list[cuuint64_t] {{endif}} @@ -16735,7 +16735,7 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: Flags must either be zero or CUDA_EXTERNAL_MEMORY_DEDICATED {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -16860,7 +16860,7 @@ cdef class CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st: Flags reserved for future use. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -16965,7 +16965,7 @@ cdef class CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st: Total number of levels in the mipmap chain {{endif}} {{if 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -17224,7 +17224,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: Flags reserved for the future. Must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -17490,7 +17490,7 @@ cdef class anon_struct16: {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -17604,7 +17604,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st: For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -17870,7 +17870,7 @@ cdef class anon_struct19: {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -17984,7 +17984,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st: For all other types of CUexternalSemaphore, flags must be zero. {{endif}} {{if 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -19077,7 +19077,7 @@ cdef class CUarrayMapInfo_st: flags for future use, must be zero now. {{endif}} {{if 'CUarrayMapInfo_st.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Reserved for future use, must be zero now. {{endif}} @@ -21478,11 +21478,11 @@ cdef class CUgraphNodeParams_st: Type of the node {{endif}} {{if 'CUgraphNodeParams_st.reserved0' in found_struct}} - reserved0 : List[int] + reserved0 : list[int] Reserved. Must be zero. {{endif}} {{if 'CUgraphNodeParams_st.reserved1' in found_struct}} - reserved1 : List[long long] + reserved1 : list[long long] Padding. Unused bytes must be zero. {{endif}} {{if 'CUgraphNodeParams_st.kernel' in found_struct}} @@ -21864,7 +21864,7 @@ cdef class CUcheckpointLockArgs_st: Reserved for future use, must be zero {{endif}} {{if 'CUcheckpointLockArgs_st.reserved1' in found_struct}} - reserved1 : List[cuuint64_t] + reserved1 : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -21943,7 +21943,7 @@ cdef class CUcheckpointCheckpointArgs_st: Attributes ---------- {{if 'CUcheckpointCheckpointArgs_st.reserved' in found_struct}} - reserved : List[cuuint64_t] + reserved : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -22068,7 +22068,7 @@ cdef class CUcheckpointUnlockArgs_st: Attributes ---------- {{if 'CUcheckpointUnlockArgs_st.reserved' in found_struct}} - reserved : List[cuuint64_t] + reserved : list[cuuint64_t] Reserved for future use, must be zeroed {{endif}} @@ -22494,11 +22494,11 @@ cdef class anon_union15: Attributes ---------- {{if True}} - pArray : List[CUarray] + pArray : list[CUarray] {{endif}} {{if True}} - pPitch : List[Any] + pPitch : list[Any] {{endif}} @@ -22539,7 +22539,7 @@ cdef class anon_union15: def pArray(self): return [CUarray(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @pArray.setter - def pArray(self, pArray : List[CUarray]): + def pArray(self, pArray : list[CUarray]): if len(pArray) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray)) pArray = [int(_pArray) for _pArray in pArray] @@ -22552,7 +22552,7 @@ cdef class anon_union15: def pPitch(self): return [_pPitch for _pPitch in self._pvt_ptr[0].frame.pPitch] @pPitch.setter - def pPitch(self, pPitch : List[int]): + def pPitch(self, pPitch : list[int]): if len(pPitch) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch)) pPitch = [_pPitch for _pPitch in pPitch] @@ -23674,7 +23674,7 @@ def cuDeviceGetAttribute(attrib not None : CUdevice_attribute, dev): {{if 'cuDeviceGetHostAtomicCapabilities' in found_functions}} @cython.embedsignature(True) -def cuDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[CUatomicOperation] | List[CUatomicOperation]], unsigned int count, dev): +def cuDeviceGetHostAtomicCapabilities(operations : Optional[tuple[CUatomicOperation] | list[CUatomicOperation]], unsigned int count, dev): """ Queries details about atomic operations supported between the device and host. Returns in `*capabilities` the details about requested atomic @@ -23694,7 +23694,7 @@ def cuDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[CUatomicOperat Parameters ---------- - operations : List[:py:obj:`~.CUatomicOperation`] + operations : list[:py:obj:`~.CUatomicOperation`] Requested operations count : unsigned int Count of requested operations and size of capabilities @@ -23705,7 +23705,7 @@ def cuDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[CUatomicOperat ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_DEVICE`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - capabilities : List[unsigned int] + capabilities : list[unsigned int] Returned capability details of each requested operation See Also @@ -23722,7 +23722,7 @@ def cuDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[CUatomicOperat cydev = pdev operations = [] if operations is None else operations if not all(isinstance(_x, (CUatomicOperation)) for _x in operations): - raise TypeError("Argument 'operations' is not instance of type (expected Tuple[cydriver.CUatomicOperation] or List[cydriver.CUatomicOperation]") + raise TypeError("Argument 'operations' is not instance of type (expected tuple[cydriver.CUatomicOperation] or list[cydriver.CUatomicOperation]") cdef unsigned int* cycapabilities = NULL pycapabilities = [] if count != 0: @@ -25951,7 +25951,7 @@ def cuModuleLoadData(image): {{if 'cuModuleLoadDataEx' in found_functions}} @cython.embedsignature(True) -def cuModuleLoadDataEx(image, unsigned int numOptions, options : Optional[Tuple[CUjit_option] | List[CUjit_option]], optionValues : Optional[Tuple[Any] | List[Any]]): +def cuModuleLoadDataEx(image, unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): """ Load a module's data with options. Takes a pointer `image` and loads the corresponding module `module` @@ -25965,9 +25965,9 @@ def cuModuleLoadDataEx(image, unsigned int numOptions, options : Optional[Tuple[ Module data to load numOptions : unsigned int Number of options - options : List[:py:obj:`~.CUjit_option`] + options : list[:py:obj:`~.CUjit_option`] Options for JIT - optionValues : List[Any] + optionValues : list[Any] Option values for JIT Returns @@ -25984,7 +25984,7 @@ def cuModuleLoadDataEx(image, unsigned int numOptions, options : Optional[Tuple[ optionValues = [] if optionValues is None else optionValues options = [] if options is None else options if not all(isinstance(_x, (CUjit_option)) for _x in options): - raise TypeError("Argument 'options' is not instance of type (expected Tuple[cydriver.CUjit_option] or List[cydriver.CUjit_option]") + raise TypeError("Argument 'options' is not instance of type (expected tuple[cydriver.CUjit_option] or list[cydriver.CUjit_option]") cdef CUmodule module = CUmodule() cyimage = _HelperInputVoidPtr(image) cdef void* cyimage_ptr = cyimage.cptr @@ -26218,7 +26218,7 @@ def cuModuleEnumerateFunctions(unsigned int numFunctions, mod): ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_CONTEXT`, :py:obj:`~.CUDA_ERROR_INVALID_HANDLE`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - functions : List[:py:obj:`~.CUfunction`] + functions : list[:py:obj:`~.CUfunction`] Buffer where the function handles are returned to See Also @@ -26302,7 +26302,7 @@ def cuModuleGetGlobal(hmod, char* name): {{if 'cuLinkCreate_v2' in found_functions}} @cython.embedsignature(True) -def cuLinkCreate(unsigned int numOptions, options : Optional[Tuple[CUjit_option] | List[CUjit_option]], optionValues : Optional[Tuple[Any] | List[Any]]): +def cuLinkCreate(unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): """ Creates a pending JIT linker invocation. If the call is successful, the caller owns the returned CUlinkState, @@ -26331,9 +26331,9 @@ def cuLinkCreate(unsigned int numOptions, options : Optional[Tuple[CUjit_option] ---------- numOptions : unsigned int Size of options arrays - options : List[:py:obj:`~.CUjit_option`] + options : list[:py:obj:`~.CUjit_option`] Array of linker and compiler options - optionValues : List[Any] + optionValues : list[Any] Array of option values, each cast to void * Returns @@ -26355,7 +26355,7 @@ def cuLinkCreate(unsigned int numOptions, options : Optional[Tuple[CUjit_option] optionValues = [] if optionValues is None else optionValues options = [] if options is None else options if not all(isinstance(_x, (CUjit_option)) for _x in options): - raise TypeError("Argument 'options' is not instance of type (expected Tuple[cydriver.CUjit_option] or List[cydriver.CUjit_option]") + raise TypeError("Argument 'options' is not instance of type (expected tuple[cydriver.CUjit_option] or list[cydriver.CUjit_option]") if numOptions > len(options): raise RuntimeError("List is too small: " + str(len(options)) + " < " + str(numOptions)) if numOptions > len(optionValues): raise RuntimeError("List is too small: " + str(len(optionValues)) + " < " + str(numOptions)) cdef vector[cydriver.CUjit_option] cyoptions = [pyoptions.value for pyoptions in (options)] @@ -26376,7 +26376,7 @@ def cuLinkCreate(unsigned int numOptions, options : Optional[Tuple[CUjit_option] {{if 'cuLinkAddData_v2' in found_functions}} @cython.embedsignature(True) -def cuLinkAddData(state, typename not None : CUjitInputType, data, size_t size, char* name, unsigned int numOptions, options : Optional[Tuple[CUjit_option] | List[CUjit_option]], optionValues : Optional[Tuple[Any] | List[Any]]): +def cuLinkAddData(state, typename not None : CUjitInputType, data, size_t size, char* name, unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): """ Add an input to a pending linker invocation. Ownership of `data` is retained by the caller. No reference is retained @@ -26402,10 +26402,10 @@ def cuLinkAddData(state, typename not None : CUjitInputType, data, size_t size, An optional name for this input in log messages. numOptions : unsigned int Size of options. - options : List[:py:obj:`~.CUjit_option`] + options : list[:py:obj:`~.CUjit_option`] Options to be applied only for this input (overrides options from :py:obj:`~.cuLinkCreate`). - optionValues : List[Any] + optionValues : list[Any] Array of option values, each cast to void *. Returns @@ -26424,7 +26424,7 @@ def cuLinkAddData(state, typename not None : CUjitInputType, data, size_t size, optionValues = [] if optionValues is None else optionValues options = [] if options is None else options if not all(isinstance(_x, (CUjit_option)) for _x in options): - raise TypeError("Argument 'options' is not instance of type (expected Tuple[cydriver.CUjit_option] or List[cydriver.CUjit_option]") + raise TypeError("Argument 'options' is not instance of type (expected tuple[cydriver.CUjit_option] or list[cydriver.CUjit_option]") cdef cydriver.CUlinkState cystate if state is None: pstate = 0 @@ -26450,7 +26450,7 @@ def cuLinkAddData(state, typename not None : CUjitInputType, data, size_t size, {{if 'cuLinkAddFile_v2' in found_functions}} @cython.embedsignature(True) -def cuLinkAddFile(state, typename not None : CUjitInputType, char* path, unsigned int numOptions, options : Optional[Tuple[CUjit_option] | List[CUjit_option]], optionValues : Optional[Tuple[Any] | List[Any]]): +def cuLinkAddFile(state, typename not None : CUjitInputType, char* path, unsigned int numOptions, options : Optional[tuple[CUjit_option] | list[CUjit_option]], optionValues : Optional[tuple[Any] | list[Any]]): """ Add a file input to a pending linker invocation. No reference is retained to any inputs after this call returns. @@ -26474,10 +26474,10 @@ def cuLinkAddFile(state, typename not None : CUjitInputType, char* path, unsigne Path to the input file numOptions : unsigned int Size of options - options : List[:py:obj:`~.CUjit_option`] + options : list[:py:obj:`~.CUjit_option`] Options to be applied only for this input (overrides options from :py:obj:`~.cuLinkCreate`) - optionValues : List[Any] + optionValues : list[Any] Array of option values, each cast to void * Returns @@ -26496,7 +26496,7 @@ def cuLinkAddFile(state, typename not None : CUjitInputType, char* path, unsigne optionValues = [] if optionValues is None else optionValues options = [] if options is None else options if not all(isinstance(_x, (CUjit_option)) for _x in options): - raise TypeError("Argument 'options' is not instance of type (expected Tuple[cydriver.CUjit_option] or List[cydriver.CUjit_option]") + raise TypeError("Argument 'options' is not instance of type (expected tuple[cydriver.CUjit_option] or list[cydriver.CUjit_option]") cdef cydriver.CUlinkState cystate if state is None: pstate = 0 @@ -26696,7 +26696,7 @@ def cuModuleGetSurfRef(hmod, char* name): {{if 'cuLibraryLoadData' in found_functions}} @cython.embedsignature(True) -def cuLibraryLoadData(code, jitOptions : Optional[Tuple[CUjit_option] | List[CUjit_option]], jitOptionsValues : Optional[Tuple[Any] | List[Any]], unsigned int numJitOptions, libraryOptions : Optional[Tuple[CUlibraryOption] | List[CUlibraryOption]], libraryOptionValues : Optional[Tuple[Any] | List[Any]], unsigned int numLibraryOptions): +def cuLibraryLoadData(code, jitOptions : Optional[tuple[CUjit_option] | list[CUjit_option]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[CUlibraryOption] | list[CUlibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): """ Load a library with specified code and options. Takes a pointer `code` and loads the corresponding library `library` @@ -26733,15 +26733,15 @@ def cuLibraryLoadData(code, jitOptions : Optional[Tuple[CUjit_option] | List[CUj ---------- code : Any Code to load - jitOptions : List[:py:obj:`~.CUjit_option`] + jitOptions : list[:py:obj:`~.CUjit_option`] Options for JIT - jitOptionsValues : List[Any] + jitOptionsValues : list[Any] Option values for JIT numJitOptions : unsigned int Number of options - libraryOptions : List[:py:obj:`~.CUlibraryOption`] + libraryOptions : list[:py:obj:`~.CUlibraryOption`] Options for loading - libraryOptionValues : List[Any] + libraryOptionValues : list[Any] Option values for loading numLibraryOptions : unsigned int Number of options for loading @@ -26764,11 +26764,11 @@ def cuLibraryLoadData(code, jitOptions : Optional[Tuple[CUjit_option] | List[CUj libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues libraryOptions = [] if libraryOptions is None else libraryOptions if not all(isinstance(_x, (CUlibraryOption)) for _x in libraryOptions): - raise TypeError("Argument 'libraryOptions' is not instance of type (expected Tuple[cydriver.CUlibraryOption] or List[cydriver.CUlibraryOption]") + raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cydriver.CUlibraryOption] or list[cydriver.CUlibraryOption]") jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues jitOptions = [] if jitOptions is None else jitOptions if not all(isinstance(_x, (CUjit_option)) for _x in jitOptions): - raise TypeError("Argument 'jitOptions' is not instance of type (expected Tuple[cydriver.CUjit_option] or List[cydriver.CUjit_option]") + raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cydriver.CUjit_option] or list[cydriver.CUjit_option]") cdef CUlibrary library = CUlibrary() cycode = _HelperInputVoidPtr(code) cdef void* cycode_ptr = cycode.cptr @@ -26794,7 +26794,7 @@ def cuLibraryLoadData(code, jitOptions : Optional[Tuple[CUjit_option] | List[CUj {{if 'cuLibraryLoadFromFile' in found_functions}} @cython.embedsignature(True) -def cuLibraryLoadFromFile(char* fileName, jitOptions : Optional[Tuple[CUjit_option] | List[CUjit_option]], jitOptionsValues : Optional[Tuple[Any] | List[Any]], unsigned int numJitOptions, libraryOptions : Optional[Tuple[CUlibraryOption] | List[CUlibraryOption]], libraryOptionValues : Optional[Tuple[Any] | List[Any]], unsigned int numLibraryOptions): +def cuLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[CUjit_option] | list[CUjit_option]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[CUlibraryOption] | list[CUlibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): """ Load a library with specified file and options. Takes a pointer `code` and loads the corresponding library `library` @@ -26832,15 +26832,15 @@ def cuLibraryLoadFromFile(char* fileName, jitOptions : Optional[Tuple[CUjit_opti ---------- fileName : bytes File to load from - jitOptions : List[:py:obj:`~.CUjit_option`] + jitOptions : list[:py:obj:`~.CUjit_option`] Options for JIT - jitOptionsValues : List[Any] + jitOptionsValues : list[Any] Option values for JIT numJitOptions : unsigned int Number of options - libraryOptions : List[:py:obj:`~.CUlibraryOption`] + libraryOptions : list[:py:obj:`~.CUlibraryOption`] Options for loading - libraryOptionValues : List[Any] + libraryOptionValues : list[Any] Option values for loading numLibraryOptions : unsigned int Number of options for loading @@ -26863,11 +26863,11 @@ def cuLibraryLoadFromFile(char* fileName, jitOptions : Optional[Tuple[CUjit_opti libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues libraryOptions = [] if libraryOptions is None else libraryOptions if not all(isinstance(_x, (CUlibraryOption)) for _x in libraryOptions): - raise TypeError("Argument 'libraryOptions' is not instance of type (expected Tuple[cydriver.CUlibraryOption] or List[cydriver.CUlibraryOption]") + raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cydriver.CUlibraryOption] or list[cydriver.CUlibraryOption]") jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues jitOptions = [] if jitOptions is None else jitOptions if not all(isinstance(_x, (CUjit_option)) for _x in jitOptions): - raise TypeError("Argument 'jitOptions' is not instance of type (expected Tuple[cydriver.CUjit_option] or List[cydriver.CUjit_option]") + raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cydriver.CUjit_option] or list[cydriver.CUjit_option]") cdef CUlibrary library = CUlibrary() cdef vector[cydriver.CUjit_option] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)] pylist = [_HelperCUjit_option(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)] @@ -27024,7 +27024,7 @@ def cuLibraryEnumerateKernels(unsigned int numKernels, lib): ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_HANDLE`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - kernels : List[:py:obj:`~.CUkernel`] + kernels : list[:py:obj:`~.CUkernel`] Buffer where the kernel handles are returned to See Also @@ -30745,7 +30745,7 @@ def cuMemcpy3DPeerAsync(pCopy : Optional[CUDA_MEMCPY3D_PEER], hStream): {{if 'cuMemcpyBatchAsync_v2' in found_functions}} @cython.embedsignature(True) -def cuMemcpyBatchAsync(dsts : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], srcs : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], sizes : Tuple[int] | List[int], size_t count, attrs : Optional[Tuple[CUmemcpyAttributes] | List[CUmemcpyAttributes]], attrsIdxs : Tuple[int] | List[int], size_t numAttrs, hStream): +def cuMemcpyBatchAsync(dsts : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], srcs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[CUmemcpyAttributes] | list[CUmemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, hStream): """ Performs a batch of memory copies asynchronously. Performs a batch of memory copies. The batch as a whole executes in @@ -30819,17 +30819,17 @@ def cuMemcpyBatchAsync(dsts : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], Parameters ---------- - dsts : List[:py:obj:`~.CUdeviceptr`] + dsts : list[:py:obj:`~.CUdeviceptr`] Array of destination pointers. - srcs : List[:py:obj:`~.CUdeviceptr`] + srcs : list[:py:obj:`~.CUdeviceptr`] Array of memcpy source pointers. - sizes : List[int] + sizes : list[int] Array of sizes for memcpy operations. count : size_t Size of `dsts`, `srcs` and `sizes` arrays - attrs : List[:py:obj:`~.CUmemcpyAttributes`] + attrs : list[:py:obj:`~.CUmemcpyAttributes`] Array of memcpy attributes. - attrsIdxs : List[int] + attrsIdxs : list[int] Array of indices to specify which copies each entry in the `attrs` array applies to. The attributes specified in attrs[k] will be applied to copies starting from attrsIdxs[k] through attrsIdxs[k+1] @@ -30855,18 +30855,18 @@ def cuMemcpyBatchAsync(dsts : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], phStream = int(CUstream(hStream)) cyhStream = phStream if not all(isinstance(_x, (int)) for _x in attrsIdxs): - raise TypeError("Argument 'attrsIdxs' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]") attrs = [] if attrs is None else attrs if not all(isinstance(_x, (CUmemcpyAttributes,)) for _x in attrs): - raise TypeError("Argument 'attrs' is not instance of type (expected Tuple[cydriver.CUmemcpyAttributes,] or List[cydriver.CUmemcpyAttributes,]") + raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cydriver.CUmemcpyAttributes,] or list[cydriver.CUmemcpyAttributes,]") if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") srcs = [] if srcs is None else srcs if not all(isinstance(_x, (CUdeviceptr,)) for _x in srcs): - raise TypeError("Argument 'srcs' is not instance of type (expected Tuple[cydriver.CUdeviceptr,] or List[cydriver.CUdeviceptr,]") + raise TypeError("Argument 'srcs' is not instance of type (expected tuple[cydriver.CUdeviceptr,] or list[cydriver.CUdeviceptr,]") dsts = [] if dsts is None else dsts if not all(isinstance(_x, (CUdeviceptr,)) for _x in dsts): - raise TypeError("Argument 'dsts' is not instance of type (expected Tuple[cydriver.CUdeviceptr,] or List[cydriver.CUdeviceptr,]") + raise TypeError("Argument 'dsts' is not instance of type (expected tuple[cydriver.CUdeviceptr,] or list[cydriver.CUdeviceptr,]") cdef cydriver.CUdeviceptr* cydsts = NULL if len(dsts) > 1: cydsts = calloc(len(dsts), sizeof(cydriver.CUdeviceptr)) @@ -30917,7 +30917,7 @@ def cuMemcpyBatchAsync(dsts : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], {{if 'cuMemcpy3DBatchAsync_v2' in found_functions}} @cython.embedsignature(True) -def cuMemcpy3DBatchAsync(size_t numOps, opList : Optional[Tuple[CUDA_MEMCPY3D_BATCH_OP] | List[CUDA_MEMCPY3D_BATCH_OP]], unsigned long long flags, hStream): +def cuMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[CUDA_MEMCPY3D_BATCH_OP] | list[CUDA_MEMCPY3D_BATCH_OP]], unsigned long long flags, hStream): """ Performs a batch of 3D memory copies asynchronously. Performs a batch of memory copies. The batch as a whole executes in @@ -31004,7 +31004,7 @@ def cuMemcpy3DBatchAsync(size_t numOps, opList : Optional[Tuple[CUDA_MEMCPY3D_BA ---------- numOps : size_t Total number of memcpy operations. - opList : List[:py:obj:`~.CUDA_MEMCPY3D_BATCH_OP`] + opList : list[:py:obj:`~.CUDA_MEMCPY3D_BATCH_OP`] Array of size `numOps` containing the actual memcpy operations. flags : unsigned long long Flags for future use, must be zero now. @@ -31027,7 +31027,7 @@ def cuMemcpy3DBatchAsync(size_t numOps, opList : Optional[Tuple[CUDA_MEMCPY3D_BA cyhStream = phStream opList = [] if opList is None else opList if not all(isinstance(_x, (CUDA_MEMCPY3D_BATCH_OP,)) for _x in opList): - raise TypeError("Argument 'opList' is not instance of type (expected Tuple[cydriver.CUDA_MEMCPY3D_BATCH_OP,] or List[cydriver.CUDA_MEMCPY3D_BATCH_OP,]") + raise TypeError("Argument 'opList' is not instance of type (expected tuple[cydriver.CUDA_MEMCPY3D_BATCH_OP,] or list[cydriver.CUDA_MEMCPY3D_BATCH_OP,]") if numOps > len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps)) cdef cydriver.CUDA_MEMCPY3D_BATCH_OP* cyopList = NULL if len(opList) > 1: @@ -32933,7 +32933,7 @@ def cuMemMap(ptr, size_t size, size_t offset, handle, unsigned long long flags): {{if 'cuMemMapArrayAsync' in found_functions}} @cython.embedsignature(True) -def cuMemMapArrayAsync(mapInfoList : Optional[Tuple[CUarrayMapInfo] | List[CUarrayMapInfo]], unsigned int count, hStream): +def cuMemMapArrayAsync(mapInfoList : Optional[tuple[CUarrayMapInfo] | list[CUarrayMapInfo]], unsigned int count, hStream): """ Maps or unmaps subregions of sparse CUDA arrays and sparse CUDA mipmapped arrays. Performs map or unmap operations on subregions of sparse CUDA arrays @@ -33060,7 +33060,7 @@ def cuMemMapArrayAsync(mapInfoList : Optional[Tuple[CUarrayMapInfo] | List[CUarr Parameters ---------- - mapInfoList : List[:py:obj:`~.CUarrayMapInfo`] + mapInfoList : list[:py:obj:`~.CUarrayMapInfo`] List of :py:obj:`~.CUarrayMapInfo` count : unsigned int Count of :py:obj:`~.CUarrayMapInfo` in `mapInfoList` @@ -33086,7 +33086,7 @@ def cuMemMapArrayAsync(mapInfoList : Optional[Tuple[CUarrayMapInfo] | List[CUarr cyhStream = phStream mapInfoList = [] if mapInfoList is None else mapInfoList if not all(isinstance(_x, (CUarrayMapInfo,)) for _x in mapInfoList): - raise TypeError("Argument 'mapInfoList' is not instance of type (expected Tuple[cydriver.CUarrayMapInfo,] or List[cydriver.CUarrayMapInfo,]") + raise TypeError("Argument 'mapInfoList' is not instance of type (expected tuple[cydriver.CUarrayMapInfo,] or list[cydriver.CUarrayMapInfo,]") cdef cydriver.CUarrayMapInfo* cymapInfoList = NULL if len(mapInfoList) > 1: cymapInfoList = calloc(len(mapInfoList), sizeof(cydriver.CUarrayMapInfo)) @@ -33155,7 +33155,7 @@ def cuMemUnmap(ptr, size_t size): {{if 'cuMemSetAccess' in found_functions}} @cython.embedsignature(True) -def cuMemSetAccess(ptr, size_t size, desc : Optional[Tuple[CUmemAccessDesc] | List[CUmemAccessDesc]], size_t count): +def cuMemSetAccess(ptr, size_t size, desc : Optional[tuple[CUmemAccessDesc] | list[CUmemAccessDesc]], size_t count): """ Set the access flags for each location specified in `desc` for the given virtual address range. Given the virtual address range via `ptr` and `size`, and the locations @@ -33182,7 +33182,7 @@ def cuMemSetAccess(ptr, size_t size, desc : Optional[Tuple[CUmemAccessDesc] | Li Starting address for the virtual address range size : size_t Length of the virtual address range - desc : List[:py:obj:`~.CUmemAccessDesc`] + desc : list[:py:obj:`~.CUmemAccessDesc`] Array of :py:obj:`~.CUmemAccessDesc` that describe how to change the count : size_t @@ -33199,7 +33199,7 @@ def cuMemSetAccess(ptr, size_t size, desc : Optional[Tuple[CUmemAccessDesc] | Li """ desc = [] if desc is None else desc if not all(isinstance(_x, (CUmemAccessDesc,)) for _x in desc): - raise TypeError("Argument 'desc' is not instance of type (expected Tuple[cydriver.CUmemAccessDesc,] or List[cydriver.CUmemAccessDesc,]") + raise TypeError("Argument 'desc' is not instance of type (expected tuple[cydriver.CUmemAccessDesc,] or list[cydriver.CUmemAccessDesc,]") cdef cydriver.CUdeviceptr cyptr if ptr is None: pptr = 0 @@ -33809,14 +33809,14 @@ def cuMemPoolGetAttribute(pool, attr not None : CUmemPool_attribute): {{if 'cuMemPoolSetAccess' in found_functions}} @cython.embedsignature(True) -def cuMemPoolSetAccess(pool, map : Optional[Tuple[CUmemAccessDesc] | List[CUmemAccessDesc]], size_t count): +def cuMemPoolSetAccess(pool, map : Optional[tuple[CUmemAccessDesc] | list[CUmemAccessDesc]], size_t count): """ Controls visibility of pools between devices. Parameters ---------- pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t` The pool being modified - map : List[:py:obj:`~.CUmemAccessDesc`] + map : list[:py:obj:`~.CUmemAccessDesc`] Array of access descriptors. Each descriptor instructs the access to enable for a single gpu. count : size_t @@ -33833,7 +33833,7 @@ def cuMemPoolSetAccess(pool, map : Optional[Tuple[CUmemAccessDesc] | List[CUmemA """ map = [] if map is None else map if not all(isinstance(_x, (CUmemAccessDesc,)) for _x in map): - raise TypeError("Argument 'map' is not instance of type (expected Tuple[cydriver.CUmemAccessDesc,] or List[cydriver.CUmemAccessDesc,]") + raise TypeError("Argument 'map' is not instance of type (expected tuple[cydriver.CUmemAccessDesc,] or list[cydriver.CUmemAccessDesc,]") cdef cydriver.CUmemoryPool cypool if pool is None: ppool = 0 @@ -35372,7 +35372,7 @@ def cuMemAdvise(devPtr, size_t count, advice not None : CUmem_advise, location n {{if 'cuMemPrefetchBatchAsync' in found_functions}} @cython.embedsignature(True) -def cuMemPrefetchBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], sizes : Tuple[int] | List[int], size_t count, prefetchLocs : Optional[Tuple[CUmemLocation] | List[CUmemLocation]], prefetchLocIdxs : Tuple[int] | List[int], size_t numPrefetchLocs, unsigned long long flags, hStream): +def cuMemPrefetchBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[CUmemLocation] | list[CUmemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, hStream): """ Performs a batch of memory prefetches asynchronously. Performs a batch of memory prefetches. The batch as a whole executes in @@ -35409,15 +35409,15 @@ def cuMemPrefetchBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdevicep Parameters ---------- - dptrs : List[:py:obj:`~.CUdeviceptr`] + dptrs : list[:py:obj:`~.CUdeviceptr`] Array of pointers to be prefetched - sizes : List[int] + sizes : list[int] Array of sizes for memory prefetch operations. count : size_t Size of `dptrs` and `sizes` arrays. - prefetchLocs : List[:py:obj:`~.CUmemLocation`] + prefetchLocs : list[:py:obj:`~.CUmemLocation`] Array of locations to prefetch to. - prefetchLocIdxs : List[int] + prefetchLocIdxs : list[int] Array of indices to specify which operands each entry in the `prefetchLocs` array applies to. The locations specified in prefetchLocs[k] will be applied to copies starting from @@ -35446,15 +35446,15 @@ def cuMemPrefetchBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdevicep phStream = int(CUstream(hStream)) cyhStream = phStream if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs): - raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]") prefetchLocs = [] if prefetchLocs is None else prefetchLocs if not all(isinstance(_x, (CUmemLocation,)) for _x in prefetchLocs): - raise TypeError("Argument 'prefetchLocs' is not instance of type (expected Tuple[cydriver.CUmemLocation,] or List[cydriver.CUmemLocation,]") + raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cydriver.CUmemLocation,] or list[cydriver.CUmemLocation,]") if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") dptrs = [] if dptrs is None else dptrs if not all(isinstance(_x, (CUdeviceptr,)) for _x in dptrs): - raise TypeError("Argument 'dptrs' is not instance of type (expected Tuple[cydriver.CUdeviceptr,] or List[cydriver.CUdeviceptr,]") + raise TypeError("Argument 'dptrs' is not instance of type (expected tuple[cydriver.CUdeviceptr,] or list[cydriver.CUdeviceptr,]") cdef cydriver.CUdeviceptr* cydptrs = NULL if len(dptrs) > 1: cydptrs = calloc(len(dptrs), sizeof(cydriver.CUdeviceptr)) @@ -35492,7 +35492,7 @@ def cuMemPrefetchBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdevicep {{if 'cuMemDiscardBatchAsync' in found_functions}} @cython.embedsignature(True) -def cuMemDiscardBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], sizes : Tuple[int] | List[int], size_t count, unsigned long long flags, hStream): +def cuMemDiscardBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, unsigned long long flags, hStream): """ Performs a batch of memory discards asynchronously. Performs a batch of memory discards. The batch as a whole executes in @@ -35524,9 +35524,9 @@ def cuMemDiscardBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdevicept Parameters ---------- - dptrs : List[:py:obj:`~.CUdeviceptr`] + dptrs : list[:py:obj:`~.CUdeviceptr`] Array of pointers to be discarded - sizes : List[int] + sizes : list[int] Array of sizes for memory discard operations. count : size_t Size of `dptrs` and `sizes` arrays. @@ -35550,10 +35550,10 @@ def cuMemDiscardBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdevicept phStream = int(CUstream(hStream)) cyhStream = phStream if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") dptrs = [] if dptrs is None else dptrs if not all(isinstance(_x, (CUdeviceptr,)) for _x in dptrs): - raise TypeError("Argument 'dptrs' is not instance of type (expected Tuple[cydriver.CUdeviceptr,] or List[cydriver.CUdeviceptr,]") + raise TypeError("Argument 'dptrs' is not instance of type (expected tuple[cydriver.CUdeviceptr,] or list[cydriver.CUdeviceptr,]") cdef cydriver.CUdeviceptr* cydptrs = NULL if len(dptrs) > 1: cydptrs = calloc(len(dptrs), sizeof(cydriver.CUdeviceptr)) @@ -35577,7 +35577,7 @@ def cuMemDiscardBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdevicept {{if 'cuMemDiscardAndPrefetchBatchAsync' in found_functions}} @cython.embedsignature(True) -def cuMemDiscardAndPrefetchBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List[CUdeviceptr]], sizes : Tuple[int] | List[int], size_t count, prefetchLocs : Optional[Tuple[CUmemLocation] | List[CUmemLocation]], prefetchLocIdxs : Tuple[int] | List[int], size_t numPrefetchLocs, unsigned long long flags, hStream): +def cuMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[CUdeviceptr] | list[CUdeviceptr]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[CUmemLocation] | list[CUmemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, hStream): """ Performs a batch of memory discards and prefetches asynchronously. Performs a batch of memory discards followed by prefetches. The batch @@ -35622,15 +35622,15 @@ def cuMemDiscardAndPrefetchBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List Parameters ---------- - dptrs : List[:py:obj:`~.CUdeviceptr`] + dptrs : list[:py:obj:`~.CUdeviceptr`] Array of pointers to be discarded - sizes : List[int] + sizes : list[int] Array of sizes for memory discard operations. count : size_t Size of `dptrs` and `sizes` arrays. - prefetchLocs : List[:py:obj:`~.CUmemLocation`] + prefetchLocs : list[:py:obj:`~.CUmemLocation`] Array of locations to prefetch to. - prefetchLocIdxs : List[int] + prefetchLocIdxs : list[int] Array of indices to specify which operands each entry in the `prefetchLocs` array applies to. The locations specified in prefetchLocs[k] will be applied to operations starting from @@ -35659,15 +35659,15 @@ def cuMemDiscardAndPrefetchBatchAsync(dptrs : Optional[Tuple[CUdeviceptr] | List phStream = int(CUstream(hStream)) cyhStream = phStream if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs): - raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]") prefetchLocs = [] if prefetchLocs is None else prefetchLocs if not all(isinstance(_x, (CUmemLocation,)) for _x in prefetchLocs): - raise TypeError("Argument 'prefetchLocs' is not instance of type (expected Tuple[cydriver.CUmemLocation,] or List[cydriver.CUmemLocation,]") + raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cydriver.CUmemLocation,] or list[cydriver.CUmemLocation,]") if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") dptrs = [] if dptrs is None else dptrs if not all(isinstance(_x, (CUdeviceptr,)) for _x in dptrs): - raise TypeError("Argument 'dptrs' is not instance of type (expected Tuple[cydriver.CUdeviceptr,] or List[cydriver.CUdeviceptr,]") + raise TypeError("Argument 'dptrs' is not instance of type (expected tuple[cydriver.CUdeviceptr,] or list[cydriver.CUdeviceptr,]") cdef cydriver.CUdeviceptr* cydptrs = NULL if len(dptrs) > 1: cydptrs = calloc(len(dptrs), sizeof(cydriver.CUdeviceptr)) @@ -35863,7 +35863,7 @@ def cuMemRangeGetAttribute(size_t dataSize, attribute not None : CUmem_range_att {{if 'cuMemRangeGetAttributes' in found_functions}} @cython.embedsignature(True) -def cuMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : Optional[Tuple[CUmem_range_attribute] | List[CUmem_range_attribute]], size_t numAttributes, devPtr, size_t count): +def cuMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[CUmem_range_attribute] | list[CUmem_range_attribute]], size_t numAttributes, devPtr, size_t count): """ Query attributes of a given memory range. Query attributes of the memory range starting at `devPtr` with a size @@ -35896,9 +35896,9 @@ def cuMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : Opt Parameters ---------- - dataSizes : List[int] + dataSizes : list[int] Array containing the sizes of each result - attributes : List[:py:obj:`~.CUmem_range_attribute`] + attributes : list[:py:obj:`~.CUmem_range_attribute`] An array of attributes to query (numAttributes and the number of attributes in this array should match) numAttributes : size_t @@ -35912,7 +35912,7 @@ def cuMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : Opt ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_CONTEXT`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_INVALID_DEVICE` - data : List[Any] + data : list[Any] A two-dimensional array containing pointers to memory locations where the result of each attribute query will be written to. @@ -35930,9 +35930,9 @@ def cuMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : Opt cydevPtr = pdevPtr attributes = [] if attributes is None else attributes if not all(isinstance(_x, (CUmem_range_attribute)) for _x in attributes): - raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[cydriver.CUmem_range_attribute] or List[cydriver.CUmem_range_attribute]") + raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cydriver.CUmem_range_attribute] or list[cydriver.CUmem_range_attribute]") if not all(isinstance(_x, (int)) for _x in dataSizes): - raise TypeError("Argument 'dataSizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]") pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] cdef _InputVoidPtrPtrHelper voidStarHelperdata = _InputVoidPtrPtrHelper(pylist) cdef void** cyvoidStarHelper_ptr = voidStarHelperdata.cptr @@ -36006,7 +36006,7 @@ def cuPointerSetAttribute(value, attribute not None : CUpointer_attribute, ptr): {{if 'cuPointerGetAttributes' in found_functions}} @cython.embedsignature(True) -def cuPointerGetAttributes(unsigned int numAttributes, attributes : Optional[Tuple[CUpointer_attribute] | List[CUpointer_attribute]], ptr): +def cuPointerGetAttributes(unsigned int numAttributes, attributes : Optional[tuple[CUpointer_attribute] | list[CUpointer_attribute]], ptr): """ Returns information about a pointer. The supported attributes are (refer to @@ -36056,7 +36056,7 @@ def cuPointerGetAttributes(unsigned int numAttributes, attributes : Optional[Tup ---------- numAttributes : unsigned int Number of attributes to query - attributes : List[:py:obj:`~.CUpointer_attribute`] + attributes : list[:py:obj:`~.CUpointer_attribute`] An array of attributes to query (numAttributes and the number of attributes in this array should match) ptr : :py:obj:`~.CUdeviceptr` @@ -36066,7 +36066,7 @@ def cuPointerGetAttributes(unsigned int numAttributes, attributes : Optional[Tup ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_CONTEXT`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_INVALID_DEVICE` - data : List[Any] + data : list[Any] A two-dimensional array containing pointers to memory locations where the result of each attribute query will be written to. @@ -36084,7 +36084,7 @@ def cuPointerGetAttributes(unsigned int numAttributes, attributes : Optional[Tup cyptr = pptr attributes = [] if attributes is None else attributes if not all(isinstance(_x, (CUpointer_attribute)) for _x in attributes): - raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[cydriver.CUpointer_attribute] or List[cydriver.CUpointer_attribute]") + raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cydriver.CUpointer_attribute] or list[cydriver.CUpointer_attribute]") if numAttributes > len(attributes): raise RuntimeError("List is too small: " + str(len(attributes)) + " < " + str(numAttributes)) cdef vector[cydriver.CUpointer_attribute] cyattributes = [pyattributes.value for pyattributes in (attributes)] pylist = [_HelperCUpointer_attribute(pyattributes, 0, is_getter=True) for pyattributes in attributes] @@ -36762,7 +36762,7 @@ def cuStreamBeginCapture(hStream, mode not None : CUstreamCaptureMode): {{if 'cuStreamBeginCaptureToGraph' in found_functions}} @cython.embedsignature(True) -def cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], dependencyData : Optional[Tuple[CUgraphEdgeData] | List[CUgraphEdgeData]], size_t numDependencies, mode not None : CUstreamCaptureMode): +def cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], dependencyData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies, mode not None : CUstreamCaptureMode): """ Begins graph capture on a stream to an existing graph. Begin graph capture on `hStream`, placing new nodes into an existing @@ -36788,10 +36788,10 @@ def cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies : Optional[Tuple[C Stream in which to initiate capture. hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to capture into. - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the first node captured in the stream. Can be NULL if numDependencies is 0. - dependencyData : List[:py:obj:`~.CUgraphEdgeData`] + dependencyData : list[:py:obj:`~.CUgraphEdgeData`] Optional array of data associated with each dependency. numDependencies : size_t Number of dependencies. @@ -36815,10 +36815,10 @@ def cuStreamBeginCaptureToGraph(hStream, hGraph, dependencies : Optional[Tuple[C """ dependencyData = [] if dependencyData is None else dependencyData if not all(isinstance(_x, (CUgraphEdgeData,)) for _x in dependencyData): - raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[cydriver.CUgraphEdgeData,] or List[cydriver.CUgraphEdgeData,]") + raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cydriver.CUgraphEdgeData,] or list[cydriver.CUgraphEdgeData,]") dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -37100,7 +37100,7 @@ def cuStreamGetCaptureInfo(hStream): are or become unreachable from the original stream at :py:obj:`~.cuStreamEndCapture` due to direct actions on the graph do not trigger :py:obj:`~.CUDA_ERROR_STREAM_CAPTURE_UNJOINED`. - dependencies_out : List[:py:obj:`~.CUgraphNode`] + dependencies_out : list[:py:obj:`~.CUgraphNode`] Optional location to store a pointer to an array of nodes. The next node to be captured in the stream will depend on this set of nodes, absent operations such as event wait which modify this set. The @@ -37109,7 +37109,7 @@ def cuStreamGetCaptureInfo(hStream): be copied out and are valid until they or the graph is destroyed. The driver-owned array may also be passed directly to APIs that operate on the graph (not the stream) without copying. - edgeData_out : List[:py:obj:`~.CUgraphEdgeData`] + edgeData_out : list[:py:obj:`~.CUgraphEdgeData`] Optional location to store a pointer to an array of graph edge data. This array parallels `dependencies_out`; the next node to be added has an edge to `dependencies_out`[i] with annotation @@ -37154,7 +37154,7 @@ def cuStreamGetCaptureInfo(hStream): {{if 'cuStreamUpdateCaptureDependencies_v2' in found_functions}} @cython.embedsignature(True) -def cuStreamUpdateCaptureDependencies(hStream, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], dependencyData : Optional[Tuple[CUgraphEdgeData] | List[CUgraphEdgeData]], size_t numDependencies, unsigned int flags): +def cuStreamUpdateCaptureDependencies(hStream, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], dependencyData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies, unsigned int flags): """ Update the set of dependencies in a capturing stream. Modifies the dependency set of a capturing stream. The dependency set @@ -37178,9 +37178,9 @@ def cuStreamUpdateCaptureDependencies(hStream, dependencies : Optional[Tuple[CUg ---------- hStream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t` The stream to update - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] The set of dependencies to add - dependencyData : List[:py:obj:`~.CUgraphEdgeData`] + dependencyData : list[:py:obj:`~.CUgraphEdgeData`] Optional array of data associated with each dependency. numDependencies : size_t The size of the dependencies array @@ -37198,10 +37198,10 @@ def cuStreamUpdateCaptureDependencies(hStream, dependencies : Optional[Tuple[CUg """ dependencyData = [] if dependencyData is None else dependencyData if not all(isinstance(_x, (CUgraphEdgeData,)) for _x in dependencyData): - raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[cydriver.CUgraphEdgeData,] or List[cydriver.CUgraphEdgeData,]") + raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cydriver.CUgraphEdgeData,] or list[cydriver.CUgraphEdgeData,]") dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUstream cyhStream if hStream is None: phStream = 0 @@ -38494,7 +38494,7 @@ def cuImportExternalSemaphore(semHandleDesc : Optional[CUDA_EXTERNAL_SEMAPHORE_H {{if 'cuSignalExternalSemaphoresAsync' in found_functions}} @cython.embedsignature(True) -def cuSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[CUexternalSemaphore] | List[CUexternalSemaphore]], paramsArray : Optional[Tuple[CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS] | List[CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS]], unsigned int numExtSems, stream): +def cuSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[CUexternalSemaphore] | list[CUexternalSemaphore]], paramsArray : Optional[tuple[CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS] | list[CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS]], unsigned int numExtSems, stream): """ Signals a set of external semaphore objects. Enqueues a signal operation on a set of externally allocated semaphore @@ -38582,9 +38582,9 @@ def cuSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[CUexternalSemap Parameters ---------- - extSemArray : List[:py:obj:`~.CUexternalSemaphore`] + extSemArray : list[:py:obj:`~.CUexternalSemaphore`] Set of external semaphores to be signaled - paramsArray : List[:py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS`] + paramsArray : list[:py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS`] Array of semaphore parameters numExtSems : unsigned int Number of semaphores to signal @@ -38610,10 +38610,10 @@ def cuSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[CUexternalSemap cystream = pstream paramsArray = [] if paramsArray is None else paramsArray if not all(isinstance(_x, (CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,)) for _x in paramsArray): - raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,] or List[cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,]") + raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,] or list[cydriver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS,]") extSemArray = [] if extSemArray is None else extSemArray if not all(isinstance(_x, (CUexternalSemaphore,)) for _x in extSemArray): - raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[cydriver.CUexternalSemaphore,] or List[cydriver.CUexternalSemaphore,]") + raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cydriver.CUexternalSemaphore,] or list[cydriver.CUexternalSemaphore,]") cdef cydriver.CUexternalSemaphore* cyextSemArray = NULL if len(extSemArray) > 1: cyextSemArray = calloc(len(extSemArray), sizeof(cydriver.CUexternalSemaphore)) @@ -38647,7 +38647,7 @@ def cuSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[CUexternalSemap {{if 'cuWaitExternalSemaphoresAsync' in found_functions}} @cython.embedsignature(True) -def cuWaitExternalSemaphoresAsync(extSemArray : Optional[Tuple[CUexternalSemaphore] | List[CUexternalSemaphore]], paramsArray : Optional[Tuple[CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS] | List[CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS]], unsigned int numExtSems, stream): +def cuWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[CUexternalSemaphore] | list[CUexternalSemaphore]], paramsArray : Optional[tuple[CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS] | list[CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS]], unsigned int numExtSems, stream): """ Waits on a set of external semaphore objects. Enqueues a wait operation on a set of externally allocated semaphore @@ -38712,9 +38712,9 @@ def cuWaitExternalSemaphoresAsync(extSemArray : Optional[Tuple[CUexternalSemapho Parameters ---------- - extSemArray : List[:py:obj:`~.CUexternalSemaphore`] + extSemArray : list[:py:obj:`~.CUexternalSemaphore`] External semaphores to be waited on - paramsArray : List[:py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS`] + paramsArray : list[:py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS`] Array of semaphore parameters numExtSems : unsigned int Number of semaphores to wait on @@ -38740,10 +38740,10 @@ def cuWaitExternalSemaphoresAsync(extSemArray : Optional[Tuple[CUexternalSemapho cystream = pstream paramsArray = [] if paramsArray is None else paramsArray if not all(isinstance(_x, (CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS,)) for _x in paramsArray): - raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS,] or List[cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS,]") + raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS,] or list[cydriver.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS,]") extSemArray = [] if extSemArray is None else extSemArray if not all(isinstance(_x, (CUexternalSemaphore,)) for _x in extSemArray): - raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[cydriver.CUexternalSemaphore,] or List[cydriver.CUexternalSemaphore,]") + raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cydriver.CUexternalSemaphore,] or list[cydriver.CUexternalSemaphore,]") cdef cydriver.CUexternalSemaphore* cyextSemArray = NULL if len(extSemArray) > 1: cyextSemArray = calloc(len(extSemArray), sizeof(cydriver.CUexternalSemaphore)) @@ -39086,7 +39086,7 @@ def cuStreamWriteValue64(stream, addr, value, unsigned int flags): {{if 'cuStreamBatchMemOp_v2' in found_functions}} @cython.embedsignature(True) -def cuStreamBatchMemOp(stream, unsigned int count, paramArray : Optional[Tuple[CUstreamBatchMemOpParams] | List[CUstreamBatchMemOpParams]], unsigned int flags): +def cuStreamBatchMemOp(stream, unsigned int count, paramArray : Optional[tuple[CUstreamBatchMemOpParams] | list[CUstreamBatchMemOpParams]], unsigned int flags): """ Batch operations to synchronize the stream via memory operations. This is a batch version of :py:obj:`~.cuStreamWaitValue32()` and @@ -39110,7 +39110,7 @@ def cuStreamBatchMemOp(stream, unsigned int count, paramArray : Optional[Tuple[C The stream to enqueue the operations in. count : unsigned int The number of operations in the array. Must be less than 256. - paramArray : List[:py:obj:`~.CUstreamBatchMemOpParams`] + paramArray : list[:py:obj:`~.CUstreamBatchMemOpParams`] The types and parameters of the individual operations. flags : unsigned int Reserved for future expansion; must be 0. @@ -39130,7 +39130,7 @@ def cuStreamBatchMemOp(stream, unsigned int count, paramArray : Optional[Tuple[C """ paramArray = [] if paramArray is None else paramArray if not all(isinstance(_x, (CUstreamBatchMemOpParams,)) for _x in paramArray): - raise TypeError("Argument 'paramArray' is not instance of type (expected Tuple[cydriver.CUstreamBatchMemOpParams,] or List[cydriver.CUstreamBatchMemOpParams,]") + raise TypeError("Argument 'paramArray' is not instance of type (expected tuple[cydriver.CUstreamBatchMemOpParams,] or list[cydriver.CUstreamBatchMemOpParams,]") cdef cydriver.CUstream cystream if stream is None: pstream = 0 @@ -39767,7 +39767,7 @@ def cuLaunchKernel(f, unsigned int gridDimX, unsigned int gridDimY, unsigned int Stream identifier kernelParams : Any Array of pointers to kernel parameters - extra : List[Any] + extra : list[Any] Extra options Returns @@ -40015,7 +40015,7 @@ def cuLaunchKernelEx(config : Optional[CUlaunchConfig], f, kernelParams, void_pt launch kernelParams : Any Array of pointers to kernel parameters - extra : List[Any] + extra : list[Any] Extra options Returns @@ -40159,7 +40159,7 @@ def cuLaunchCooperativeKernel(f, unsigned int gridDimX, unsigned int gridDimY, u {{if 'cuLaunchCooperativeKernelMultiDevice' in found_functions}} @cython.embedsignature(True) -def cuLaunchCooperativeKernelMultiDevice(launchParamsList : Optional[Tuple[CUDA_LAUNCH_PARAMS] | List[CUDA_LAUNCH_PARAMS]], unsigned int numDevices, unsigned int flags): +def cuLaunchCooperativeKernelMultiDevice(launchParamsList : Optional[tuple[CUDA_LAUNCH_PARAMS] | list[CUDA_LAUNCH_PARAMS]], unsigned int numDevices, unsigned int flags): """ Launches CUDA functions on multiple devices where thread blocks can cooperate and synchronize as they execute. [Deprecated] @@ -40294,7 +40294,7 @@ def cuLaunchCooperativeKernelMultiDevice(launchParamsList : Optional[Tuple[CUDA_ Parameters ---------- - launchParamsList : List[:py:obj:`~.CUDA_LAUNCH_PARAMS`] + launchParamsList : list[:py:obj:`~.CUDA_LAUNCH_PARAMS`] List of launch parameters, one per device numDevices : unsigned int Size of the `launchParamsList` array @@ -40312,7 +40312,7 @@ def cuLaunchCooperativeKernelMultiDevice(launchParamsList : Optional[Tuple[CUDA_ """ launchParamsList = [] if launchParamsList is None else launchParamsList if not all(isinstance(_x, (CUDA_LAUNCH_PARAMS,)) for _x in launchParamsList): - raise TypeError("Argument 'launchParamsList' is not instance of type (expected Tuple[cydriver.CUDA_LAUNCH_PARAMS,] or List[cydriver.CUDA_LAUNCH_PARAMS,]") + raise TypeError("Argument 'launchParamsList' is not instance of type (expected tuple[cydriver.CUDA_LAUNCH_PARAMS,] or list[cydriver.CUDA_LAUNCH_PARAMS,]") cdef cydriver.CUDA_LAUNCH_PARAMS* cylaunchParamsList = NULL if len(launchParamsList) > 1: cylaunchParamsList = calloc(len(launchParamsList), sizeof(cydriver.CUDA_LAUNCH_PARAMS)) @@ -41031,7 +41031,7 @@ def cuGraphCreate(unsigned int flags): {{if 'cuGraphAddKernelNode_v2' in found_functions}} @cython.embedsignature(True) -def cuGraphAddKernelNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_KERNEL_NODE_PARAMS]): +def cuGraphAddKernelNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_KERNEL_NODE_PARAMS]): """ Creates a kernel execution node and adds it to a graph. Creates a new kernel execution node and adds it to `hGraph` with @@ -41097,7 +41097,7 @@ def cuGraphAddKernelNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Li ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -41121,7 +41121,7 @@ def cuGraphAddKernelNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Li """ dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -41242,7 +41242,7 @@ def cuGraphKernelNodeSetParams(hNode, nodeParams : Optional[CUDA_KERNEL_NODE_PAR {{if 'cuGraphAddMemcpyNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddMemcpyNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, copyParams : Optional[CUDA_MEMCPY3D], ctx): +def cuGraphAddMemcpyNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, copyParams : Optional[CUDA_MEMCPY3D], ctx): """ Creates a memcpy node and adds it to a graph. Creates a new memcpy node and adds it to `hGraph` with @@ -41269,7 +41269,7 @@ def cuGraphAddMemcpyNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Li ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -41299,7 +41299,7 @@ def cuGraphAddMemcpyNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Li cyctx = pctx dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -41411,7 +41411,7 @@ def cuGraphMemcpyNodeSetParams(hNode, nodeParams : Optional[CUDA_MEMCPY3D]): {{if 'cuGraphAddMemsetNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddMemsetNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, memsetParams : Optional[CUDA_MEMSET_NODE_PARAMS], ctx): +def cuGraphAddMemsetNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, memsetParams : Optional[CUDA_MEMSET_NODE_PARAMS], ctx): """ Creates a memset node and adds it to a graph. Creates a new memset node and adds it to `hGraph` with @@ -41428,7 +41428,7 @@ def cuGraphAddMemsetNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Li ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -41458,7 +41458,7 @@ def cuGraphAddMemsetNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Li cyctx = pctx dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -41570,7 +41570,7 @@ def cuGraphMemsetNodeSetParams(hNode, nodeParams : Optional[CUDA_MEMSET_NODE_PAR {{if 'cuGraphAddHostNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddHostNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_HOST_NODE_PARAMS]): +def cuGraphAddHostNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_HOST_NODE_PARAMS]): """ Creates a host execution node and adds it to a graph. Creates a new CPU execution node and adds it to `hGraph` with @@ -41587,7 +41587,7 @@ def cuGraphAddHostNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -41607,7 +41607,7 @@ def cuGraphAddHostNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List """ dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -41719,7 +41719,7 @@ def cuGraphHostNodeSetParams(hNode, nodeParams : Optional[CUDA_HOST_NODE_PARAMS] {{if 'cuGraphAddChildGraphNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddChildGraphNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, childGraph): +def cuGraphAddChildGraphNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, childGraph): """ Creates a child graph node and adds it to a graph. Creates a new node which executes an embedded graph, and adds it to @@ -41739,7 +41739,7 @@ def cuGraphAddChildGraphNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -41767,7 +41767,7 @@ def cuGraphAddChildGraphNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] cychildGraph = pchildGraph dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -41845,7 +41845,7 @@ def cuGraphChildGraphNodeGetGraph(hNode): {{if 'cuGraphAddEmptyNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddEmptyNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies): +def cuGraphAddEmptyNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies): """ Creates an empty node and adds it to a graph. Creates a new node which performs no operation, and adds it to `hGraph` @@ -41865,7 +41865,7 @@ def cuGraphAddEmptyNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Lis ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -41883,7 +41883,7 @@ def cuGraphAddEmptyNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Lis """ dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -41916,7 +41916,7 @@ def cuGraphAddEmptyNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | Lis {{if 'cuGraphAddEventRecordNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddEventRecordNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, event): +def cuGraphAddEventRecordNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, event): """ Creates an event record node and adds it to a graph. Creates a new event record node and adds it to `hGraph` with @@ -41933,7 +41933,7 @@ def cuGraphAddEventRecordNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -41961,7 +41961,7 @@ def cuGraphAddEventRecordNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] cyevent = pevent dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -42079,7 +42079,7 @@ def cuGraphEventRecordNodeSetEvent(hNode, event): {{if 'cuGraphAddEventWaitNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddEventWaitNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, event): +def cuGraphAddEventWaitNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, event): """ Creates an event wait node and adds it to a graph. Creates a new event wait node and adds it to `hGraph` with @@ -42098,7 +42098,7 @@ def cuGraphAddEventWaitNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -42126,7 +42126,7 @@ def cuGraphAddEventWaitNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | cyevent = pevent dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -42244,7 +42244,7 @@ def cuGraphEventWaitNodeSetEvent(hNode, event): {{if 'cuGraphAddExternalSemaphoresSignalNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddExternalSemaphoresSignalNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_EXT_SEM_SIGNAL_NODE_PARAMS]): +def cuGraphAddExternalSemaphoresSignalNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_EXT_SEM_SIGNAL_NODE_PARAMS]): """ Creates an external semaphore signal node and adds it to a graph. Creates a new external semaphore signal node and adds it to `hGraph` @@ -42262,7 +42262,7 @@ def cuGraphAddExternalSemaphoresSignalNode(hGraph, dependencies : Optional[Tuple ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -42282,7 +42282,7 @@ def cuGraphAddExternalSemaphoresSignalNode(hGraph, dependencies : Optional[Tuple """ dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -42401,7 +42401,7 @@ def cuGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[CU {{if 'cuGraphAddExternalSemaphoresWaitNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddExternalSemaphoresWaitNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_EXT_SEM_WAIT_NODE_PARAMS]): +def cuGraphAddExternalSemaphoresWaitNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_EXT_SEM_WAIT_NODE_PARAMS]): """ Creates an external semaphore wait node and adds it to a graph. Creates a new external semaphore wait node and adds it to `hGraph` with @@ -42419,7 +42419,7 @@ def cuGraphAddExternalSemaphoresWaitNode(hGraph, dependencies : Optional[Tuple[C ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -42439,7 +42439,7 @@ def cuGraphAddExternalSemaphoresWaitNode(hGraph, dependencies : Optional[Tuple[C """ dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -42558,7 +42558,7 @@ def cuGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[CUDA {{if 'cuGraphAddBatchMemOpNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddBatchMemOpNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_BATCH_MEM_OP_NODE_PARAMS]): +def cuGraphAddBatchMemOpNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_BATCH_MEM_OP_NODE_PARAMS]): """ Creates a batch memory operation node and adds it to a graph. Creates a new batch memory operation node and adds it to `hGraph` with @@ -42575,7 +42575,7 @@ def cuGraphAddBatchMemOpNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -42599,7 +42599,7 @@ def cuGraphAddBatchMemOpNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] """ dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -42790,7 +42790,7 @@ def cuGraphExecBatchMemOpNodeSetParams(hGraphExec, hNode, nodeParams : Optional[ {{if 'cuGraphAddMemAllocNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddMemAllocNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_MEM_ALLOC_NODE_PARAMS]): +def cuGraphAddMemAllocNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, nodeParams : Optional[CUDA_MEM_ALLOC_NODE_PARAMS]): """ Creates an allocation node and adds it to a graph. Creates a new allocation node and adds it to `hGraph` with @@ -42848,7 +42848,7 @@ def cuGraphAddMemAllocNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -42868,7 +42868,7 @@ def cuGraphAddMemAllocNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | """ dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -42945,7 +42945,7 @@ def cuGraphMemAllocNodeGetParams(hNode): {{if 'cuGraphAddMemFreeNode' in found_functions}} @cython.embedsignature(True) -def cuGraphAddMemFreeNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], size_t numDependencies, dptr): +def cuGraphAddMemFreeNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], size_t numDependencies, dptr): """ Creates a memory free node and adds it to a graph. Creates a new memory free node and adds it to `hGraph` with @@ -42980,7 +42980,7 @@ def cuGraphAddMemFreeNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | L ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -43008,7 +43008,7 @@ def cuGraphAddMemFreeNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | L cydptr = pdptr dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -43395,7 +43395,7 @@ def cuGraphGetNodes(hGraph, size_t numNodes = 0): ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - nodes : List[:py:obj:`~.CUgraphNode`] + nodes : list[:py:obj:`~.CUgraphNode`] Pointer to return the nodes numNodes : int See description @@ -43454,7 +43454,7 @@ def cuGraphGetRootNodes(hGraph, size_t numRootNodes = 0): ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - rootNodes : List[:py:obj:`~.CUgraphNode`] + rootNodes : list[:py:obj:`~.CUgraphNode`] Pointer to return the root nodes numRootNodes : int See description @@ -43520,11 +43520,11 @@ def cuGraphGetEdges(hGraph, size_t numEdges = 0): ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_LOSSY_QUERY`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - from : List[:py:obj:`~.CUgraphNode`] + from : list[:py:obj:`~.CUgraphNode`] Location to return edge endpoints - to : List[:py:obj:`~.CUgraphNode`] + to : list[:py:obj:`~.CUgraphNode`] Location to return edge endpoints - edgeData : List[:py:obj:`~.CUgraphEdgeData`] + edgeData : list[:py:obj:`~.CUgraphEdgeData`] Optional location to return edge data numEdges : int See description @@ -43609,9 +43609,9 @@ def cuGraphNodeGetDependencies(hNode, size_t numDependencies = 0): ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_LOSSY_QUERY`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Pointer to return the dependencies - edgeData : List[:py:obj:`~.CUgraphEdgeData`] + edgeData : list[:py:obj:`~.CUgraphEdgeData`] Optional array to return edge data for each dependency numDependencies : int See description @@ -43686,9 +43686,9 @@ def cuGraphNodeGetDependentNodes(hNode, size_t numDependentNodes = 0): ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_LOSSY_QUERY`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - dependentNodes : List[:py:obj:`~.CUgraphNode`] + dependentNodes : list[:py:obj:`~.CUgraphNode`] Pointer to return the dependent nodes - edgeData : List[:py:obj:`~.CUgraphEdgeData`] + edgeData : list[:py:obj:`~.CUgraphEdgeData`] Optional pointer to return edge data for dependent nodes numDependentNodes : int See description @@ -43736,7 +43736,7 @@ def cuGraphNodeGetDependentNodes(hNode, size_t numDependentNodes = 0): {{if 'cuGraphAddDependencies_v2' in found_functions}} @cython.embedsignature(True) -def cuGraphAddDependencies(hGraph, from_ : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], to : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], edgeData : Optional[Tuple[CUgraphEdgeData] | List[CUgraphEdgeData]], size_t numDependencies): +def cuGraphAddDependencies(hGraph, from_ : Optional[tuple[CUgraphNode] | list[CUgraphNode]], to : Optional[tuple[CUgraphNode] | list[CUgraphNode]], edgeData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies): """ Adds dependency edges to a graph. The number of dependencies to be added is defined by `numDependencies` @@ -43750,11 +43750,11 @@ def cuGraphAddDependencies(hGraph, from_ : Optional[Tuple[CUgraphNode] | List[CU ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which dependencies are added - from : List[:py:obj:`~.CUgraphNode`] + from : list[:py:obj:`~.CUgraphNode`] Array of nodes that provide the dependencies - to : List[:py:obj:`~.CUgraphNode`] + to : list[:py:obj:`~.CUgraphNode`] Array of dependent nodes - edgeData : List[:py:obj:`~.CUgraphEdgeData`] + edgeData : list[:py:obj:`~.CUgraphEdgeData`] Optional array of edge data. If NULL, default (zeroed) edge data is assumed. numDependencies : size_t @@ -43771,13 +43771,13 @@ def cuGraphAddDependencies(hGraph, from_ : Optional[Tuple[CUgraphNode] | List[CU """ edgeData = [] if edgeData is None else edgeData if not all(isinstance(_x, (CUgraphEdgeData,)) for _x in edgeData): - raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[cydriver.CUgraphEdgeData,] or List[cydriver.CUgraphEdgeData,]") + raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cydriver.CUgraphEdgeData,] or list[cydriver.CUgraphEdgeData,]") to = [] if to is None else to if not all(isinstance(_x, (CUgraphNode,)) for _x in to): - raise TypeError("Argument 'to' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'to' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") from_ = [] if from_ is None else from_ if not all(isinstance(_x, (CUgraphNode,)) for _x in from_): - raise TypeError("Argument 'from_' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'from_' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -43829,7 +43829,7 @@ def cuGraphAddDependencies(hGraph, from_ : Optional[Tuple[CUgraphNode] | List[CU {{if 'cuGraphRemoveDependencies_v2' in found_functions}} @cython.embedsignature(True) -def cuGraphRemoveDependencies(hGraph, from_ : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], to : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], edgeData : Optional[Tuple[CUgraphEdgeData] | List[CUgraphEdgeData]], size_t numDependencies): +def cuGraphRemoveDependencies(hGraph, from_ : Optional[tuple[CUgraphNode] | list[CUgraphNode]], to : Optional[tuple[CUgraphNode] | list[CUgraphNode]], edgeData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies): """ Removes dependency edges from a graph. The number of `dependencies` to be removed is defined by @@ -43849,11 +43849,11 @@ def cuGraphRemoveDependencies(hGraph, from_ : Optional[Tuple[CUgraphNode] | List ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph from which to remove dependencies - from : List[:py:obj:`~.CUgraphNode`] + from : list[:py:obj:`~.CUgraphNode`] Array of nodes that provide the dependencies - to : List[:py:obj:`~.CUgraphNode`] + to : list[:py:obj:`~.CUgraphNode`] Array of dependent nodes - edgeData : List[:py:obj:`~.CUgraphEdgeData`] + edgeData : list[:py:obj:`~.CUgraphEdgeData`] Optional array of edge data. If NULL, edge data is assumed to be default (zeroed). numDependencies : size_t @@ -43870,13 +43870,13 @@ def cuGraphRemoveDependencies(hGraph, from_ : Optional[Tuple[CUgraphNode] | List """ edgeData = [] if edgeData is None else edgeData if not all(isinstance(_x, (CUgraphEdgeData,)) for _x in edgeData): - raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[cydriver.CUgraphEdgeData,] or List[cydriver.CUgraphEdgeData,]") + raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cydriver.CUgraphEdgeData,] or list[cydriver.CUgraphEdgeData,]") to = [] if to is None else to if not all(isinstance(_x, (CUgraphNode,)) for _x in to): - raise TypeError("Argument 'to' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'to' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") from_ = [] if from_ is None else from_ if not all(isinstance(_x, (CUgraphNode,)) for _x in from_): - raise TypeError("Argument 'from_' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'from_' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -45782,7 +45782,7 @@ def cuGraphReleaseUserObject(graph, object, unsigned int count): {{if 'cuGraphAddNode_v2' in found_functions}} @cython.embedsignature(True) -def cuGraphAddNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUgraphNode]], dependencyData : Optional[Tuple[CUgraphEdgeData] | List[CUgraphEdgeData]], size_t numDependencies, nodeParams : Optional[CUgraphNodeParams]): +def cuGraphAddNode(hGraph, dependencies : Optional[tuple[CUgraphNode] | list[CUgraphNode]], dependencyData : Optional[tuple[CUgraphEdgeData] | list[CUgraphEdgeData]], size_t numDependencies, nodeParams : Optional[CUgraphNodeParams]): """ Adds a node of arbitrary type to a graph. Creates a new node in `hGraph` described by `nodeParams` with @@ -45808,9 +45808,9 @@ def cuGraphAddNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUg ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.CUgraphNode`] + dependencies : list[:py:obj:`~.CUgraphNode`] Dependencies of the node - dependencyData : List[:py:obj:`~.CUgraphEdgeData`] + dependencyData : list[:py:obj:`~.CUgraphEdgeData`] Optional edge data for the dependencies. If NULL, the data is assumed to be default (zeroed) for all dependencies. numDependencies : size_t @@ -45831,10 +45831,10 @@ def cuGraphAddNode(hGraph, dependencies : Optional[Tuple[CUgraphNode] | List[CUg """ dependencyData = [] if dependencyData is None else dependencyData if not all(isinstance(_x, (CUgraphEdgeData,)) for _x in dependencyData): - raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[cydriver.CUgraphEdgeData,] or List[cydriver.CUgraphEdgeData,]") + raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cydriver.CUgraphEdgeData,] or list[cydriver.CUgraphEdgeData,]") dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (CUgraphNode,)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cydriver.CUgraphNode,] or List[cydriver.CUgraphNode,]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cydriver.CUgraphNode,] or list[cydriver.CUgraphNode,]") cdef cydriver.CUgraph cyhGraph if hGraph is None: phGraph = 0 @@ -48422,7 +48422,7 @@ def cuSurfObjectGetResourceDesc(surfObject): {{if 'cuTensorMapEncodeTiled' in found_functions}} @cython.embedsignature(True) -def cuTensorMapEncodeTiled(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[Tuple[cuuint64_t] | List[cuuint64_t]], globalStrides : Optional[Tuple[cuuint64_t] | List[cuuint64_t]], boxDim : Optional[Tuple[cuuint32_t] | List[cuuint32_t]], elementStrides : Optional[Tuple[cuuint32_t] | List[cuuint32_t]], interleave not None : CUtensorMapInterleave, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): +def cuTensorMapEncodeTiled(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[tuple[cuuint64_t] | list[cuuint64_t]], globalStrides : Optional[tuple[cuuint64_t] | list[cuuint64_t]], boxDim : Optional[tuple[cuuint32_t] | list[cuuint32_t]], elementStrides : Optional[tuple[cuuint32_t] | list[cuuint32_t]], interleave not None : CUtensorMapInterleave, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): """ Create a tensor map descriptor object representing tiled memory region. Creates a descriptor for Tensor Memory Access (TMA) object specified by @@ -48613,17 +48613,17 @@ def cuTensorMapEncodeTiled(tensorDataType not None : CUtensorMapDataType, tensor Dimensionality of tensor globalAddress : Any Starting address of memory region described by tensor - globalDim : List[:py:obj:`~.cuuint64_t`] + globalDim : list[:py:obj:`~.cuuint64_t`] Array containing tensor size (number of elements) along each of the `tensorRank` dimensions - globalStrides : List[:py:obj:`~.cuuint64_t`] + globalStrides : list[:py:obj:`~.cuuint64_t`] Array containing stride size (in bytes) along each of the `tensorRank` - 1 dimensions - boxDim : List[:py:obj:`~.cuuint32_t`] + boxDim : list[:py:obj:`~.cuuint32_t`] Array containing traversal box size (number of elments) along each of the `tensorRank` dimensions. Specifies how many elements to be traversed along each tensor dimension. - elementStrides : List[:py:obj:`~.cuuint32_t`] + elementStrides : list[:py:obj:`~.cuuint32_t`] Array containing traversal stride in each of the `tensorRank` dimensions interleave : :py:obj:`~.CUtensorMapInterleave` @@ -48649,16 +48649,16 @@ def cuTensorMapEncodeTiled(tensorDataType not None : CUtensorMapDataType, tensor """ elementStrides = [] if elementStrides is None else elementStrides if not all(isinstance(_x, (cuuint32_t,)) for _x in elementStrides): - raise TypeError("Argument 'elementStrides' is not instance of type (expected Tuple[cydriver.cuuint32_t,] or List[cydriver.cuuint32_t,]") + raise TypeError("Argument 'elementStrides' is not instance of type (expected tuple[cydriver.cuuint32_t,] or list[cydriver.cuuint32_t,]") boxDim = [] if boxDim is None else boxDim if not all(isinstance(_x, (cuuint32_t,)) for _x in boxDim): - raise TypeError("Argument 'boxDim' is not instance of type (expected Tuple[cydriver.cuuint32_t,] or List[cydriver.cuuint32_t,]") + raise TypeError("Argument 'boxDim' is not instance of type (expected tuple[cydriver.cuuint32_t,] or list[cydriver.cuuint32_t,]") globalStrides = [] if globalStrides is None else globalStrides if not all(isinstance(_x, (cuuint64_t,)) for _x in globalStrides): - raise TypeError("Argument 'globalStrides' is not instance of type (expected Tuple[cydriver.cuuint64_t,] or List[cydriver.cuuint64_t,]") + raise TypeError("Argument 'globalStrides' is not instance of type (expected tuple[cydriver.cuuint64_t,] or list[cydriver.cuuint64_t,]") globalDim = [] if globalDim is None else globalDim if not all(isinstance(_x, (cuuint64_t,)) for _x in globalDim): - raise TypeError("Argument 'globalDim' is not instance of type (expected Tuple[cydriver.cuuint64_t,] or List[cydriver.cuuint64_t,]") + raise TypeError("Argument 'globalDim' is not instance of type (expected tuple[cydriver.cuuint64_t,] or list[cydriver.cuuint64_t,]") cdef cydriver.cuuint32_t cytensorRank if tensorRank is None: ptensorRank = 0 @@ -48733,7 +48733,7 @@ def cuTensorMapEncodeTiled(tensorDataType not None : CUtensorMapDataType, tensor {{if 'cuTensorMapEncodeIm2col' in found_functions}} @cython.embedsignature(True) -def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[Tuple[cuuint64_t] | List[cuuint64_t]], globalStrides : Optional[Tuple[cuuint64_t] | List[cuuint64_t]], pixelBoxLowerCorner : Optional[Tuple[int] | List[int]], pixelBoxUpperCorner : Optional[Tuple[int] | List[int]], channelsPerPixel, pixelsPerColumn, elementStrides : Optional[Tuple[cuuint32_t] | List[cuuint32_t]], interleave not None : CUtensorMapInterleave, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): +def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[tuple[cuuint64_t] | list[cuuint64_t]], globalStrides : Optional[tuple[cuuint64_t] | list[cuuint64_t]], pixelBoxLowerCorner : Optional[tuple[int] | list[int]], pixelBoxUpperCorner : Optional[tuple[int] | list[int]], channelsPerPixel, pixelsPerColumn, elementStrides : Optional[tuple[cuuint32_t] | list[cuuint32_t]], interleave not None : CUtensorMapInterleave, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): """ Create a tensor map descriptor object representing im2col memory region. Creates a descriptor for Tensor Memory Access (TMA) object specified by @@ -48947,21 +48947,21 @@ def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tenso Dimensionality of tensor; must be at least 3 globalAddress : Any Starting address of memory region described by tensor - globalDim : List[:py:obj:`~.cuuint64_t`] + globalDim : list[:py:obj:`~.cuuint64_t`] Array containing tensor size (number of elements) along each of the `tensorRank` dimensions - globalStrides : List[:py:obj:`~.cuuint64_t`] + globalStrides : list[:py:obj:`~.cuuint64_t`] Array containing stride size (in bytes) along each of the `tensorRank` - 1 dimensions - pixelBoxLowerCorner : List[int] + pixelBoxLowerCorner : list[int] Array containing DHW dimensions of lower box corner - pixelBoxUpperCorner : List[int] + pixelBoxUpperCorner : list[int] Array containing DHW dimensions of upper box corner channelsPerPixel : Any Number of channels per pixel pixelsPerColumn : Any Number of pixels per column - elementStrides : List[:py:obj:`~.cuuint32_t`] + elementStrides : list[:py:obj:`~.cuuint32_t`] Array containing traversal stride in each of the `tensorRank` dimensions interleave : :py:obj:`~.CUtensorMapInterleave` @@ -48987,7 +48987,7 @@ def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tenso """ elementStrides = [] if elementStrides is None else elementStrides if not all(isinstance(_x, (cuuint32_t,)) for _x in elementStrides): - raise TypeError("Argument 'elementStrides' is not instance of type (expected Tuple[cydriver.cuuint32_t,] or List[cydriver.cuuint32_t,]") + raise TypeError("Argument 'elementStrides' is not instance of type (expected tuple[cydriver.cuuint32_t,] or list[cydriver.cuuint32_t,]") cdef cydriver.cuuint32_t cypixelsPerColumn if pixelsPerColumn is None: ppixelsPerColumn = 0 @@ -49006,16 +49006,16 @@ def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tenso cychannelsPerPixel = pchannelsPerPixel pixelBoxUpperCorner = [] if pixelBoxUpperCorner is None else pixelBoxUpperCorner if not all(isinstance(_x, (int)) for _x in pixelBoxUpperCorner): - raise TypeError("Argument 'pixelBoxUpperCorner' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'pixelBoxUpperCorner' is not instance of type (expected tuple[int] or list[int]") pixelBoxLowerCorner = [] if pixelBoxLowerCorner is None else pixelBoxLowerCorner if not all(isinstance(_x, (int)) for _x in pixelBoxLowerCorner): - raise TypeError("Argument 'pixelBoxLowerCorner' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'pixelBoxLowerCorner' is not instance of type (expected tuple[int] or list[int]") globalStrides = [] if globalStrides is None else globalStrides if not all(isinstance(_x, (cuuint64_t,)) for _x in globalStrides): - raise TypeError("Argument 'globalStrides' is not instance of type (expected Tuple[cydriver.cuuint64_t,] or List[cydriver.cuuint64_t,]") + raise TypeError("Argument 'globalStrides' is not instance of type (expected tuple[cydriver.cuuint64_t,] or list[cydriver.cuuint64_t,]") globalDim = [] if globalDim is None else globalDim if not all(isinstance(_x, (cuuint64_t,)) for _x in globalDim): - raise TypeError("Argument 'globalDim' is not instance of type (expected Tuple[cydriver.cuuint64_t,] or List[cydriver.cuuint64_t,]") + raise TypeError("Argument 'globalDim' is not instance of type (expected tuple[cydriver.cuuint64_t,] or list[cydriver.cuuint64_t,]") cdef cydriver.cuuint32_t cytensorRank if tensorRank is None: ptensorRank = 0 @@ -49080,7 +49080,7 @@ def cuTensorMapEncodeIm2col(tensorDataType not None : CUtensorMapDataType, tenso {{if 'cuTensorMapEncodeIm2colWide' in found_functions}} @cython.embedsignature(True) -def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[Tuple[cuuint64_t] | List[cuuint64_t]], globalStrides : Optional[Tuple[cuuint64_t] | List[cuuint64_t]], int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides : Optional[Tuple[cuuint32_t] | List[cuuint32_t]], interleave not None : CUtensorMapInterleave, mode not None : CUtensorMapIm2ColWideMode, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): +def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, tensorRank, globalAddress, globalDim : Optional[tuple[cuuint64_t] | list[cuuint64_t]], globalStrides : Optional[tuple[cuuint64_t] | list[cuuint64_t]], int pixelBoxLowerCornerWidth, int pixelBoxUpperCornerWidth, channelsPerPixel, pixelsPerColumn, elementStrides : Optional[tuple[cuuint32_t] | list[cuuint32_t]], interleave not None : CUtensorMapInterleave, mode not None : CUtensorMapIm2ColWideMode, swizzle not None : CUtensorMapSwizzle, l2Promotion not None : CUtensorMapL2promotion, oobFill not None : CUtensorMapFloatOOBfill): """ Create a tensor map descriptor object representing im2col memory region, but where the elements are exclusively loaded along the W dimension. Creates a descriptor for Tensor Memory Access (TMA) object specified by @@ -49279,10 +49279,10 @@ def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, t Dimensionality of tensor; must be at least 3 globalAddress : Any Starting address of memory region described by tensor - globalDim : List[:py:obj:`~.cuuint64_t`] + globalDim : list[:py:obj:`~.cuuint64_t`] Array containing tensor size (number of elements) along each of the `tensorRank` dimensions - globalStrides : List[:py:obj:`~.cuuint64_t`] + globalStrides : list[:py:obj:`~.cuuint64_t`] Array containing stride size (in bytes) along each of the `tensorRank` - 1 dimensions pixelBoxLowerCornerWidth : int @@ -49293,7 +49293,7 @@ def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, t Number of channels per pixel pixelsPerColumn : Any Number of pixels per column - elementStrides : List[:py:obj:`~.cuuint32_t`] + elementStrides : list[:py:obj:`~.cuuint32_t`] Array containing traversal stride in each of the `tensorRank` dimensions interleave : :py:obj:`~.CUtensorMapInterleave` @@ -49321,7 +49321,7 @@ def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, t """ elementStrides = [] if elementStrides is None else elementStrides if not all(isinstance(_x, (cuuint32_t,)) for _x in elementStrides): - raise TypeError("Argument 'elementStrides' is not instance of type (expected Tuple[cydriver.cuuint32_t,] or List[cydriver.cuuint32_t,]") + raise TypeError("Argument 'elementStrides' is not instance of type (expected tuple[cydriver.cuuint32_t,] or list[cydriver.cuuint32_t,]") cdef cydriver.cuuint32_t cypixelsPerColumn if pixelsPerColumn is None: ppixelsPerColumn = 0 @@ -49340,10 +49340,10 @@ def cuTensorMapEncodeIm2colWide(tensorDataType not None : CUtensorMapDataType, t cychannelsPerPixel = pchannelsPerPixel globalStrides = [] if globalStrides is None else globalStrides if not all(isinstance(_x, (cuuint64_t,)) for _x in globalStrides): - raise TypeError("Argument 'globalStrides' is not instance of type (expected Tuple[cydriver.cuuint64_t,] or List[cydriver.cuuint64_t,]") + raise TypeError("Argument 'globalStrides' is not instance of type (expected tuple[cydriver.cuuint64_t,] or list[cydriver.cuuint64_t,]") globalDim = [] if globalDim is None else globalDim if not all(isinstance(_x, (cuuint64_t,)) for _x in globalDim): - raise TypeError("Argument 'globalDim' is not instance of type (expected Tuple[cydriver.cuuint64_t,] or List[cydriver.cuuint64_t,]") + raise TypeError("Argument 'globalDim' is not instance of type (expected tuple[cydriver.cuuint64_t,] or list[cydriver.cuuint64_t,]") cdef cydriver.cuuint32_t cytensorRank if tensorRank is None: ptensorRank = 0 @@ -49690,7 +49690,7 @@ def cuDeviceGetP2PAttribute(attrib not None : CUdevice_P2PAttribute, srcDevice, {{if 'cuDeviceGetP2PAtomicCapabilities' in found_functions}} @cython.embedsignature(True) -def cuDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[CUatomicOperation] | List[CUatomicOperation]], unsigned int count, srcDevice, dstDevice): +def cuDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[CUatomicOperation] | list[CUatomicOperation]], unsigned int count, srcDevice, dstDevice): """ Queries details about atomic operations supported between two devices. Returns in `*capabilities` the details about requested atomic @@ -49712,7 +49712,7 @@ def cuDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[CUatomicOperati Parameters ---------- - operations : List[:py:obj:`~.CUatomicOperation`] + operations : list[:py:obj:`~.CUatomicOperation`] Requested operations count : unsigned int Count of requested operations and size of capabilities @@ -49725,7 +49725,7 @@ def cuDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[CUatomicOperati ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_INVALID_DEVICE`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE` - capabilities : List[unsigned int] + capabilities : list[unsigned int] Returned capability details of each requested operation See Also @@ -49750,7 +49750,7 @@ def cuDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[CUatomicOperati cysrcDevice = psrcDevice operations = [] if operations is None else operations if not all(isinstance(_x, (CUatomicOperation)) for _x in operations): - raise TypeError("Argument 'operations' is not instance of type (expected Tuple[cydriver.CUatomicOperation] or List[cydriver.CUatomicOperation]") + raise TypeError("Argument 'operations' is not instance of type (expected tuple[cydriver.CUatomicOperation] or list[cydriver.CUatomicOperation]") cdef unsigned int* cycapabilities = NULL pycapabilities = [] if count != 0: @@ -51153,7 +51153,7 @@ def cuDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[CUdevRe ------- CUresult :py:obj:`~.CUDA_SUCCESS`, :py:obj:`~.CUDA_ERROR_DEINITIALIZED`, :py:obj:`~.CUDA_ERROR_NOT_INITIALIZED`, :py:obj:`~.CUDA_ERROR_INVALID_DEVICE`, :py:obj:`~.CUDA_ERROR_INVALID_VALUE`, :py:obj:`~.CUDA_ERROR_INVALID_RESOURCE_TYPE`, :py:obj:`~.CUDA_ERROR_INVALID_RESOURCE_CONFIGURATION` - result : List[:py:obj:`~.CUdevResource`] + result : list[:py:obj:`~.CUdevResource`] Output array of `None` resources. Can be NULL to query the number of groups. nbGroups : unsigned int @@ -51192,7 +51192,7 @@ def cuDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[CUdevRe {{if 'cuDevResourceGenerateDesc' in found_functions}} @cython.embedsignature(True) -def cuDevResourceGenerateDesc(resources : Optional[Tuple[CUdevResource] | List[CUdevResource]], unsigned int nbResources): +def cuDevResourceGenerateDesc(resources : Optional[tuple[CUdevResource] | list[CUdevResource]], unsigned int nbResources): """ Generate a resource descriptor. Generates a single resource descriptor with the set of resources @@ -51217,7 +51217,7 @@ def cuDevResourceGenerateDesc(resources : Optional[Tuple[CUdevResource] | List[C Parameters ---------- - resources : List[:py:obj:`~.CUdevResource`] + resources : list[:py:obj:`~.CUdevResource`] Array of resources to be included in the descriptor nbResources : unsigned int Number of resources passed in `resources` @@ -51235,7 +51235,7 @@ def cuDevResourceGenerateDesc(resources : Optional[Tuple[CUdevResource] | List[C """ resources = [] if resources is None else resources if not all(isinstance(_x, (CUdevResource,)) for _x in resources): - raise TypeError("Argument 'resources' is not instance of type (expected Tuple[cydriver.CUdevResource,] or List[cydriver.CUdevResource,]") + raise TypeError("Argument 'resources' is not instance of type (expected tuple[cydriver.CUdevResource,] or list[cydriver.CUdevResource,]") cdef CUdevResourceDesc phDesc = CUdevResourceDesc() cdef cydriver.CUdevResource* cyresources = NULL if len(resources) > 1: @@ -52841,7 +52841,7 @@ def cuGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : CUGLDevic CUDA_ERROR_INVALID_GRAPHICS_CONTEXT pCudaDeviceCount : unsigned int Returned number of CUDA devices. - pCudaDevices : List[CUdevice] + pCudaDevices : list[CUdevice] Returned CUDA devices. See Also diff --git a/cuda_bindings/cuda/bindings/nvrtc.pyx.in b/cuda_bindings/cuda/bindings/nvrtc.pyx.in index e2e2fb3613..5cac5a4380 100644 --- a/cuda_bindings/cuda/bindings/nvrtc.pyx.in +++ b/cuda_bindings/cuda/bindings/nvrtc.pyx.in @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # This code was automatically generated with version 13.0.0. Do not modify it directly. -from typing import List, Tuple, Any, Optional +from typing import Any, Optional from enum import IntEnum import cython import ctypes @@ -211,7 +211,7 @@ def nvrtcGetSupportedArchs(): nvrtcResult - :py:obj:`~.NVRTC_SUCCESS` - :py:obj:`~.NVRTC_ERROR_INVALID_INPUT` - supportedArchs : List[int] + supportedArchs : list[int] sorted array of supported architectures. """ cdef vector[int] supportedArchs @@ -228,7 +228,7 @@ def nvrtcGetSupportedArchs(): {{if 'nvrtcCreateProgram' in found_functions}} @cython.embedsignature(True) -def nvrtcCreateProgram(char* src, char* name, int numHeaders, headers : Optional[Tuple[bytes] | List[bytes]], includeNames : Optional[Tuple[bytes] | List[bytes]]): +def nvrtcCreateProgram(char* src, char* name, int numHeaders, headers : Optional[tuple[bytes] | list[bytes]], includeNames : Optional[tuple[bytes] | list[bytes]]): """ nvrtcCreateProgram creates an instance of nvrtcProgram with the given input parameters, and sets the output parameter `prog` with it. Parameters @@ -241,10 +241,10 @@ def nvrtcCreateProgram(char* src, char* name, int numHeaders, headers : Optional numHeaders : int Number of headers used. `numHeaders` must be greater than or equal to 0. - headers : List[bytes] + headers : list[bytes] Sources of the headers. `headers` can be `NULL` when `numHeaders` is 0. - includeNames : List[bytes] + includeNames : list[bytes] Name of each header by which they can be included in the CUDA program source. `includeNames` can be `NULL` when `numHeaders` is 0. These headers must be included with the exact names specified @@ -267,10 +267,10 @@ def nvrtcCreateProgram(char* src, char* name, int numHeaders, headers : Optional """ includeNames = [] if includeNames is None else includeNames if not all(isinstance(_x, (bytes)) for _x in includeNames): - raise TypeError("Argument 'includeNames' is not instance of type (expected Tuple[bytes] or List[bytes]") + raise TypeError("Argument 'includeNames' is not instance of type (expected tuple[bytes] or list[bytes]") headers = [] if headers is None else headers if not all(isinstance(_x, (bytes)) for _x in headers): - raise TypeError("Argument 'headers' is not instance of type (expected Tuple[bytes] or List[bytes]") + raise TypeError("Argument 'headers' is not instance of type (expected tuple[bytes] or list[bytes]") cdef nvrtcProgram prog = nvrtcProgram() if numHeaders > len(headers): raise RuntimeError("List is too small: " + str(len(headers)) + " < " + str(numHeaders)) if numHeaders > len(includeNames): raise RuntimeError("List is too small: " + str(len(includeNames)) + " < " + str(numHeaders)) @@ -322,7 +322,7 @@ def nvrtcDestroyProgram(prog): {{if 'nvrtcCompileProgram' in found_functions}} @cython.embedsignature(True) -def nvrtcCompileProgram(prog, int numOptions, options : Optional[Tuple[bytes] | List[bytes]]): +def nvrtcCompileProgram(prog, int numOptions, options : Optional[tuple[bytes] | list[bytes]]): """ nvrtcCompileProgram compiles the given program. It supports compile options listed in :py:obj:`~.Supported Compile @@ -334,7 +334,7 @@ def nvrtcCompileProgram(prog, int numOptions, options : Optional[Tuple[bytes] | CUDA Runtime Compilation program. numOptions : int Number of compiler options passed. - options : List[bytes] + options : list[bytes] Compiler options in the form of C string array. `options` can be `NULL` when `numOptions` is 0. @@ -353,7 +353,7 @@ def nvrtcCompileProgram(prog, int numOptions, options : Optional[Tuple[bytes] | """ options = [] if options is None else options if not all(isinstance(_x, (bytes)) for _x in options): - raise TypeError("Argument 'options' is not instance of type (expected Tuple[bytes] or List[bytes]") + raise TypeError("Argument 'options' is not instance of type (expected tuple[bytes] or list[bytes]") cdef cynvrtc.nvrtcProgram cyprog if prog is None: pprog = 0 diff --git a/cuda_bindings/cuda/bindings/runtime.pxd.in b/cuda_bindings/cuda/bindings/runtime.pxd.in index 05a7b8df5e..bb5e0906f7 100644 --- a/cuda_bindings/cuda/bindings/runtime.pxd.in +++ b/cuda_bindings/cuda/bindings/runtime.pxd.in @@ -429,7 +429,7 @@ cdef class cudaArraySparseProperties: Flags will either be zero or cudaArraySparsePropertiesSingleMipTail {{endif}} {{if 'cudaArraySparseProperties.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -461,7 +461,7 @@ cdef class cudaArrayMemoryRequirements: Alignment necessary for mapping the array. {{endif}} {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -648,7 +648,7 @@ cdef class cudaMemcpyNodeParams: Must be zero {{endif}} {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] Must be zero {{endif}} {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} @@ -1042,7 +1042,7 @@ cdef class anon_struct5: Attributes ---------- {{if 'cudaResourceDesc.res.reserved.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -1175,7 +1175,7 @@ cdef class cudaResourceViewDesc: Last layer index {{endif}} {{if 'cudaResourceViewDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -1223,7 +1223,7 @@ cdef class cudaPointerAttributes: pointer if an invalid pointer has been passed to CUDA. {{endif}} {{if 'cudaPointerAttributes.reserved' in found_struct}} - reserved : List[long] + reserved : list[long] Must be zero {{endif}} @@ -1345,7 +1345,7 @@ cdef class cudaFuncAttributes: cudaFuncSetAttribute {{endif}} {{if 'cudaFuncAttributes.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] Reserved for future use. {{endif}} @@ -1910,11 +1910,11 @@ cdef class cudaDeviceProp: Maximum number of threads per block {{endif}} {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} - maxThreadsDim : List[int] + maxThreadsDim : list[int] Maximum size of each dimension of a block {{endif}} {{if 'cudaDeviceProp.maxGridSize' in found_struct}} - maxGridSize : List[int] + maxGridSize : list[int] Maximum size of each dimension of a grid {{endif}} {{if 'cudaDeviceProp.totalConstMem' in found_struct}} @@ -1960,29 +1960,29 @@ cdef class cudaDeviceProp: Maximum 1D mipmapped texture size {{endif}} {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} - maxTexture2D : List[int] + maxTexture2D : list[int] Maximum 2D texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} - maxTexture2DMipmap : List[int] + maxTexture2DMipmap : list[int] Maximum 2D mipmapped texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} - maxTexture2DLinear : List[int] + maxTexture2DLinear : list[int] Maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory {{endif}} {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} - maxTexture2DGather : List[int] + maxTexture2DGather : list[int] Maximum 2D texture dimensions if texture gather operations have to be performed {{endif}} {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} - maxTexture3D : List[int] + maxTexture3D : list[int] Maximum 3D texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} - maxTexture3DAlt : List[int] + maxTexture3DAlt : list[int] Maximum alternate 3D texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} @@ -1990,15 +1990,15 @@ cdef class cudaDeviceProp: Maximum Cubemap texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} - maxTexture1DLayered : List[int] + maxTexture1DLayered : list[int] Maximum 1D layered texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} - maxTexture2DLayered : List[int] + maxTexture2DLayered : list[int] Maximum 2D layered texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} - maxTextureCubemapLayered : List[int] + maxTextureCubemapLayered : list[int] Maximum Cubemap layered texture dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} @@ -2006,19 +2006,19 @@ cdef class cudaDeviceProp: Maximum 1D surface size {{endif}} {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} - maxSurface2D : List[int] + maxSurface2D : list[int] Maximum 2D surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} - maxSurface3D : List[int] + maxSurface3D : list[int] Maximum 3D surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} - maxSurface1DLayered : List[int] + maxSurface1DLayered : list[int] Maximum 1D layered surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} - maxSurface2DLayered : List[int] + maxSurface2DLayered : list[int] Maximum 2D layered surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} @@ -2026,7 +2026,7 @@ cdef class cudaDeviceProp: Maximum Cubemap surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} - maxSurfaceCubemapLayered : List[int] + maxSurfaceCubemapLayered : list[int] Maximum Cubemap layered surface dimensions {{endif}} {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} @@ -2259,7 +2259,7 @@ cdef class cudaDeviceProp: multi-node system. {{endif}} {{if 'cudaDeviceProp.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] Reserved for future use {{endif}} @@ -2411,7 +2411,7 @@ cdef class cudaExternalMemoryHandleDesc: Flags must either be zero or cudaExternalMemoryDedicated {{endif}} {{if 'cudaExternalMemoryHandleDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -2447,7 +2447,7 @@ cdef class cudaExternalMemoryBufferDesc: Flags reserved for future use. Must be zero. {{endif}} {{if 'cudaExternalMemoryBufferDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -2490,7 +2490,7 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: Total number of levels in the mipmap chain {{endif}} {{if 'cudaExternalMemoryMipmappedArrayDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -2580,7 +2580,7 @@ cdef class cudaExternalSemaphoreHandleDesc: Flags reserved for the future. Must be zero. {{endif}} {{if 'cudaExternalSemaphoreHandleDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -2672,7 +2672,7 @@ cdef class anon_struct12: {{endif}} {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -2716,7 +2716,7 @@ cdef class cudaExternalSemaphoreSignalParams: all other types of cudaExternalSemaphore_t, flags must be zero. {{endif}} {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -2812,7 +2812,7 @@ cdef class anon_struct15: {{endif}} {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -2856,7 +2856,7 @@ cdef class cudaExternalSemaphoreWaitParams: all other types of cudaExternalSemaphore_t, flags must be zero. {{endif}} {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -3305,11 +3305,11 @@ cdef class cudaGraphNodeParams: Type of the node {{endif}} {{if 'cudaGraphNodeParams.reserved0' in found_struct}} - reserved0 : List[int] + reserved0 : list[int] Reserved. Must be zero. {{endif}} {{if 'cudaGraphNodeParams.reserved1' in found_struct}} - reserved1 : List[long long] + reserved1 : list[long long] Padding. Unused bytes must be zero. {{endif}} {{if 'cudaGraphNodeParams.kernel' in found_struct}} @@ -4044,7 +4044,7 @@ cdef class cudaTextureDesc: Attributes ---------- {{if 'cudaTextureDesc.addressMode' in found_struct}} - addressMode : List[cudaTextureAddressMode] + addressMode : list[cudaTextureAddressMode] Texture address mode for up to 3 dimensions {{endif}} {{if 'cudaTextureDesc.filterMode' in found_struct}} @@ -4060,7 +4060,7 @@ cdef class cudaTextureDesc: Perform sRGB->linear conversion during texture read {{endif}} {{if 'cudaTextureDesc.borderColor' in found_struct}} - borderColor : List[float] + borderColor : list[float] Texture Border Color {{endif}} {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} @@ -4138,7 +4138,7 @@ cdef class cudaEglPlaneDesc_st: Channel Format Descriptor {{endif}} {{if True}} - reserved : List[unsigned int] + reserved : list[unsigned int] Reserved for future use {{endif}} @@ -4160,11 +4160,11 @@ cdef class anon_union9: Attributes ---------- {{if True}} - pArray : List[cudaArray_t] + pArray : list[cudaArray_t] {{endif}} {{if True}} - pPitch : List[cudaPitchedPtr] + pPitch : list[cudaPitchedPtr] {{endif}} @@ -4195,7 +4195,7 @@ cdef class cudaEglFrame_st: {{endif}} {{if True}} - planeDesc : List[cudaEglPlaneDesc] + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc {{endif}} {{if True}} @@ -4787,7 +4787,7 @@ cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): Channel Format Descriptor {{endif}} {{if True}} - reserved : List[unsigned int] + reserved : list[unsigned int] Reserved for future use {{endif}} @@ -4818,7 +4818,7 @@ cdef class cudaEglFrame(cudaEglFrame_st): {{endif}} {{if True}} - planeDesc : List[cudaEglPlaneDesc] + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc {{endif}} {{if True}} diff --git a/cuda_bindings/cuda/bindings/runtime.pyx.in b/cuda_bindings/cuda/bindings/runtime.pyx.in index f17436058d..dc7d4d1b1f 100644 --- a/cuda_bindings/cuda/bindings/runtime.pyx.in +++ b/cuda_bindings/cuda/bindings/runtime.pyx.in @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # This code was automatically generated with version 13.0.0. Do not modify it directly. -from typing import List, Tuple, Any, Optional +from typing import Any, Optional from enum import IntEnum import cython import ctypes @@ -6317,7 +6317,7 @@ cdef class cudaArraySparseProperties: Flags will either be zero or cudaArraySparsePropertiesSingleMipTail {{endif}} {{if 'cudaArraySparseProperties.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -6434,7 +6434,7 @@ cdef class cudaArrayMemoryRequirements: Alignment necessary for mapping the array. {{endif}} {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -7011,7 +7011,7 @@ cdef class cudaMemcpyNodeParams: Must be zero {{endif}} {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] Must be zero {{endif}} {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} @@ -8233,7 +8233,7 @@ cdef class anon_struct5: Attributes ---------- {{if 'cudaResourceDesc.res.reserved.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] {{endif}} @@ -8539,7 +8539,7 @@ cdef class cudaResourceViewDesc: Last layer index {{endif}} {{if 'cudaResourceViewDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -8730,7 +8730,7 @@ cdef class cudaPointerAttributes: pointer if an invalid pointer has been passed to CUDA. {{endif}} {{if 'cudaPointerAttributes.reserved' in found_struct}} - reserved : List[long] + reserved : list[long] Must be zero {{endif}} @@ -8941,7 +8941,7 @@ cdef class cudaFuncAttributes: cudaFuncSetAttribute {{endif}} {{if 'cudaFuncAttributes.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] Reserved for future use. {{endif}} @@ -10688,11 +10688,11 @@ cdef class cudaDeviceProp: Maximum number of threads per block {{endif}} {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} - maxThreadsDim : List[int] + maxThreadsDim : list[int] Maximum size of each dimension of a block {{endif}} {{if 'cudaDeviceProp.maxGridSize' in found_struct}} - maxGridSize : List[int] + maxGridSize : list[int] Maximum size of each dimension of a grid {{endif}} {{if 'cudaDeviceProp.totalConstMem' in found_struct}} @@ -10738,29 +10738,29 @@ cdef class cudaDeviceProp: Maximum 1D mipmapped texture size {{endif}} {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} - maxTexture2D : List[int] + maxTexture2D : list[int] Maximum 2D texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} - maxTexture2DMipmap : List[int] + maxTexture2DMipmap : list[int] Maximum 2D mipmapped texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} - maxTexture2DLinear : List[int] + maxTexture2DLinear : list[int] Maximum dimensions (width, height, pitch) for 2D textures bound to pitched memory {{endif}} {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} - maxTexture2DGather : List[int] + maxTexture2DGather : list[int] Maximum 2D texture dimensions if texture gather operations have to be performed {{endif}} {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} - maxTexture3D : List[int] + maxTexture3D : list[int] Maximum 3D texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} - maxTexture3DAlt : List[int] + maxTexture3DAlt : list[int] Maximum alternate 3D texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} @@ -10768,15 +10768,15 @@ cdef class cudaDeviceProp: Maximum Cubemap texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} - maxTexture1DLayered : List[int] + maxTexture1DLayered : list[int] Maximum 1D layered texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} - maxTexture2DLayered : List[int] + maxTexture2DLayered : list[int] Maximum 2D layered texture dimensions {{endif}} {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} - maxTextureCubemapLayered : List[int] + maxTextureCubemapLayered : list[int] Maximum Cubemap layered texture dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} @@ -10784,19 +10784,19 @@ cdef class cudaDeviceProp: Maximum 1D surface size {{endif}} {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} - maxSurface2D : List[int] + maxSurface2D : list[int] Maximum 2D surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} - maxSurface3D : List[int] + maxSurface3D : list[int] Maximum 3D surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} - maxSurface1DLayered : List[int] + maxSurface1DLayered : list[int] Maximum 1D layered surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} - maxSurface2DLayered : List[int] + maxSurface2DLayered : list[int] Maximum 2D layered surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} @@ -10804,7 +10804,7 @@ cdef class cudaDeviceProp: Maximum Cubemap surface dimensions {{endif}} {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} - maxSurfaceCubemapLayered : List[int] + maxSurfaceCubemapLayered : list[int] Maximum Cubemap layered surface dimensions {{endif}} {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} @@ -11037,7 +11037,7 @@ cdef class cudaDeviceProp: multi-node system. {{endif}} {{if 'cudaDeviceProp.reserved' in found_struct}} - reserved : List[int] + reserved : list[int] Reserved for future use {{endif}} @@ -12739,7 +12739,7 @@ cdef class cudaExternalMemoryHandleDesc: Flags must either be zero or cudaExternalMemoryDedicated {{endif}} {{if 'cudaExternalMemoryHandleDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -12864,7 +12864,7 @@ cdef class cudaExternalMemoryBufferDesc: Flags reserved for future use. Must be zero. {{endif}} {{if 'cudaExternalMemoryBufferDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -12978,7 +12978,7 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: Total number of levels in the mipmap chain {{endif}} {{if 'cudaExternalMemoryMipmappedArrayDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -13268,7 +13268,7 @@ cdef class cudaExternalSemaphoreHandleDesc: Flags reserved for the future. Must be zero. {{endif}} {{if 'cudaExternalSemaphoreHandleDesc.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] Must be zero {{endif}} @@ -13534,7 +13534,7 @@ cdef class anon_struct12: {{endif}} {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -13648,7 +13648,7 @@ cdef class cudaExternalSemaphoreSignalParams: all other types of cudaExternalSemaphore_t, flags must be zero. {{endif}} {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -13914,7 +13914,7 @@ cdef class anon_struct15: {{endif}} {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -14028,7 +14028,7 @@ cdef class cudaExternalSemaphoreWaitParams: all other types of cudaExternalSemaphore_t, flags must be zero. {{endif}} {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} - reserved : List[unsigned int] + reserved : list[unsigned int] {{endif}} @@ -15358,11 +15358,11 @@ cdef class cudaGraphNodeParams: Type of the node {{endif}} {{if 'cudaGraphNodeParams.reserved0' in found_struct}} - reserved0 : List[int] + reserved0 : list[int] Reserved. Must be zero. {{endif}} {{if 'cudaGraphNodeParams.reserved1' in found_struct}} - reserved1 : List[long long] + reserved1 : list[long long] Padding. Unused bytes must be zero. {{endif}} {{if 'cudaGraphNodeParams.kernel' in found_struct}} @@ -17491,7 +17491,7 @@ cdef class cudaTextureDesc: Attributes ---------- {{if 'cudaTextureDesc.addressMode' in found_struct}} - addressMode : List[cudaTextureAddressMode] + addressMode : list[cudaTextureAddressMode] Texture address mode for up to 3 dimensions {{endif}} {{if 'cudaTextureDesc.filterMode' in found_struct}} @@ -17507,7 +17507,7 @@ cdef class cudaTextureDesc: Perform sRGB->linear conversion during texture read {{endif}} {{if 'cudaTextureDesc.borderColor' in found_struct}} - borderColor : List[float] + borderColor : list[float] Texture Border Color {{endif}} {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} @@ -17788,7 +17788,7 @@ cdef class cudaEglPlaneDesc_st: Channel Format Descriptor {{endif}} {{if True}} - reserved : List[unsigned int] + reserved : list[unsigned int] Reserved for future use {{endif}} @@ -17923,11 +17923,11 @@ cdef class anon_union9: Attributes ---------- {{if True}} - pArray : List[cudaArray_t] + pArray : list[cudaArray_t] {{endif}} {{if True}} - pPitch : List[cudaPitchedPtr] + pPitch : list[cudaPitchedPtr] {{endif}} @@ -17968,7 +17968,7 @@ cdef class anon_union9: def pArray(self): return [cudaArray_t(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @pArray.setter - def pArray(self, pArray : List[cudaArray_t]): + def pArray(self, pArray : list[cudaArray_t]): if len(pArray) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pArray)) pArray = [int(_pArray) for _pArray in pArray] @@ -17984,7 +17984,7 @@ cdef class anon_union9: string.memcpy(out_pPitch[_idx].getPtr(), &self._pvt_ptr[0].frame.pPitch[_idx], sizeof(cyruntime.cudaPitchedPtr)) return out_pPitch @pPitch.setter - def pPitch(self, pPitch : List[cudaPitchedPtr]): + def pPitch(self, pPitch : list[cudaPitchedPtr]): if len(pPitch) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(pPitch)) for _idx in range(len(pPitch)): @@ -18012,7 +18012,7 @@ cdef class cudaEglFrame_st: {{endif}} {{if True}} - planeDesc : List[cudaEglPlaneDesc] + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc {{endif}} {{if True}} @@ -18101,7 +18101,7 @@ cdef class cudaEglFrame_st: string.memcpy(out_planeDesc[_idx].getPtr(), &self._pvt_ptr[0].planeDesc[_idx], sizeof(cyruntime.cudaEglPlaneDesc)) return out_planeDesc @planeDesc.setter - def planeDesc(self, planeDesc : List[cudaEglPlaneDesc]): + def planeDesc(self, planeDesc : list[cudaEglPlaneDesc]): if len(planeDesc) != 3: raise IndexError('not enough values found during array assignment, expected 3, got', len(planeDesc)) for _idx in range(len(planeDesc)): @@ -19724,7 +19724,7 @@ def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device): {{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} @cython.embedsignature(True) -def cudaDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOperation] | List[cudaAtomicOperation]], unsigned int count, int device): +def cudaDeviceGetHostAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int device): """ Queries details about atomic operations supported between the device and host. Returns in `*capabilities` the details about requested atomic @@ -19744,7 +19744,7 @@ def cudaDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOp Parameters ---------- - operations : List[:py:obj:`~.cudaAtomicOperation`] + operations : list[:py:obj:`~.cudaAtomicOperation`] Requested operations count : unsigned int Count of requested operations and size of capabilities @@ -19755,7 +19755,7 @@ def cudaDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOp ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue` - capabilities : List[unsigned int] + capabilities : list[unsigned int] Returned capability details of each requested operation See Also @@ -19764,7 +19764,7 @@ def cudaDeviceGetHostAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOp """ operations = [] if operations is None else operations if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations): - raise TypeError("Argument 'operations' is not instance of type (expected Tuple[cyruntime.cudaAtomicOperation] or List[cyruntime.cudaAtomicOperation]") + raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]") cdef unsigned int* cycapabilities = NULL pycapabilities = [] if count != 0: @@ -20053,7 +20053,7 @@ def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, {{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} @cython.embedsignature(True) -def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOperation] | List[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice): +def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice): """ Queries details about atomic operations supported between two devices. Returns in `*capabilities` the details about requested atomic @@ -20075,7 +20075,7 @@ def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOpe Parameters ---------- - operations : List[:py:obj:`~.cudaAtomicOperation`] + operations : list[:py:obj:`~.cudaAtomicOperation`] Requested operations count : unsigned int Count of requested operations and size of capabilities @@ -20088,7 +20088,7 @@ def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOpe ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidDevice`, :py:obj:`~.cudaErrorInvalidValue` - capabilities : List[unsigned int] + capabilities : list[unsigned int] Returned capability details of each requested operation See Also @@ -20097,7 +20097,7 @@ def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[Tuple[cudaAtomicOpe """ operations = [] if operations is None else operations if not all(isinstance(_x, (cudaAtomicOperation)) for _x in operations): - raise TypeError("Argument 'operations' is not instance of type (expected Tuple[cyruntime.cudaAtomicOperation] or List[cyruntime.cudaAtomicOperation]") + raise TypeError("Argument 'operations' is not instance of type (expected tuple[cyruntime.cudaAtomicOperation] or list[cyruntime.cudaAtomicOperation]") cdef unsigned int* cycapabilities = NULL pycapabilities = [] if count != 0: @@ -21354,7 +21354,7 @@ def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode): {{if 'cudaStreamBeginCaptureToGraph' in found_functions}} @cython.embedsignature(True) -def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], dependencyData : Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies, mode not None : cudaStreamCaptureMode): +def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, mode not None : cudaStreamCaptureMode): """ Begins graph capture on a stream to an existing graph. Begin graph capture on `stream`. When a stream is in capture mode, all @@ -21379,10 +21379,10 @@ def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[Tuple[c Stream in which to initiate capture. graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to capture into. - dependencies : List[:py:obj:`~.cudaGraphNode_t`] + dependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the first node captured in the stream. Can be NULL if numDependencies is 0. - dependencyData : List[:py:obj:`~.cudaGraphEdgeData`] + dependencyData : list[:py:obj:`~.cudaGraphEdgeData`] Optional array of data associated with each dependency. numDependencies : size_t Number of dependencies. @@ -21406,10 +21406,10 @@ def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[Tuple[c """ dependencyData = [] if dependencyData is None else dependencyData if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData): - raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[cyruntime.cudaGraphEdgeData,] or List[cyruntime.cudaGraphEdgeData,]") + raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]") dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -21689,7 +21689,7 @@ def cudaStreamGetCaptureInfo(stream): are or become unreachable from the original stream at :py:obj:`~.cudaStreamEndCapture` due to direct actions on the graph do not trigger :py:obj:`~.cudaErrorStreamCaptureUnjoined`. - dependencies_out : List[:py:obj:`~.cudaGraphNode_t`] + dependencies_out : list[:py:obj:`~.cudaGraphNode_t`] Optional location to store a pointer to an array of nodes. The next node to be captured in the stream will depend on this set of nodes, absent operations such as event wait which modify this set. The @@ -21698,7 +21698,7 @@ def cudaStreamGetCaptureInfo(stream): be copied out and are valid until they or the graph is destroyed. The driver-owned array may also be passed directly to APIs that operate on the graph (not the stream) without copying. - edgeData_out : List[:py:obj:`~.cudaGraphEdgeData`] + edgeData_out : list[:py:obj:`~.cudaGraphEdgeData`] Optional location to store a pointer to an array of graph edge data. This array parallels `dependencies_out`; the next node to be added has an edge to `dependencies_out`[i] with annotation @@ -21743,7 +21743,7 @@ def cudaStreamGetCaptureInfo(stream): {{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} @cython.embedsignature(True) -def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], dependencyData : Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags): +def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, unsigned int flags): """ Update the set of dependencies in a capturing stream. Modifies the dependency set of a capturing stream. The dependency set @@ -21767,9 +21767,9 @@ def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[Tuple[cu ---------- stream : :py:obj:`~.CUstream` or :py:obj:`~.cudaStream_t` The stream to update - dependencies : List[:py:obj:`~.cudaGraphNode_t`] + dependencies : list[:py:obj:`~.cudaGraphNode_t`] The set of dependencies to add - dependencyData : List[:py:obj:`~.cudaGraphEdgeData`] + dependencyData : list[:py:obj:`~.cudaGraphEdgeData`] Optional array of data associated with each dependency. numDependencies : size_t The size of the dependencies array @@ -21787,10 +21787,10 @@ def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[Tuple[cu """ dependencyData = [] if dependencyData is None else dependencyData if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData): - raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[cyruntime.cudaGraphEdgeData,] or List[cyruntime.cudaGraphEdgeData,]") + raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]") dependencies = [] if dependencies is None else dependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in dependencies): - raise TypeError("Argument 'dependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'dependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaStream_t cystream if stream is None: pstream = 0 @@ -22721,7 +22721,7 @@ def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHa {{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} @cython.embedsignature(True) -def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[cudaExternalSemaphore_t] | List[cudaExternalSemaphore_t]], paramsArray : Optional[Tuple[cudaExternalSemaphoreSignalParams] | List[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream): +def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreSignalParams] | list[cudaExternalSemaphoreSignalParams]], unsigned int numExtSems, stream): """ Signals a set of external semaphore objects. Enqueues a signal operation on a set of externally allocated semaphore @@ -22812,9 +22812,9 @@ def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[cudaExternalS Parameters ---------- - extSemArray : List[:py:obj:`~.cudaExternalSemaphore_t`] + extSemArray : list[:py:obj:`~.cudaExternalSemaphore_t`] Set of external semaphores to be signaled - paramsArray : List[:py:obj:`~.cudaExternalSemaphoreSignalParams`] + paramsArray : list[:py:obj:`~.cudaExternalSemaphoreSignalParams`] Array of semaphore parameters numExtSems : unsigned int Number of semaphores to signal @@ -22840,10 +22840,10 @@ def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[cudaExternalS cystream = pstream paramsArray = [] if paramsArray is None else paramsArray if not all(isinstance(_x, (cudaExternalSemaphoreSignalParams,)) for _x in paramsArray): - raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or List[cyruntime.cudaExternalSemaphoreSignalParams,]") + raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreSignalParams,] or list[cyruntime.cudaExternalSemaphoreSignalParams,]") extSemArray = [] if extSemArray is None else extSemArray if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): - raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[cyruntime.cudaExternalSemaphore_t,] or List[cyruntime.cudaExternalSemaphore_t,]") + raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]") cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL if len(extSemArray) > 1: cyextSemArray = calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t)) @@ -22877,7 +22877,7 @@ def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[Tuple[cudaExternalS {{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} @cython.embedsignature(True) -def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[Tuple[cudaExternalSemaphore_t] | List[cudaExternalSemaphore_t]], paramsArray : Optional[Tuple[cudaExternalSemaphoreWaitParams] | List[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream): +def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSemaphore_t] | list[cudaExternalSemaphore_t]], paramsArray : Optional[tuple[cudaExternalSemaphoreWaitParams] | list[cudaExternalSemaphoreWaitParams]], unsigned int numExtSems, stream): """ Waits on a set of external semaphore objects. Enqueues a wait operation on a set of externally allocated semaphore @@ -22941,9 +22941,9 @@ def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[Tuple[cudaExternalSem Parameters ---------- - extSemArray : List[:py:obj:`~.cudaExternalSemaphore_t`] + extSemArray : list[:py:obj:`~.cudaExternalSemaphore_t`] External semaphores to be waited on - paramsArray : List[:py:obj:`~.cudaExternalSemaphoreWaitParams`] + paramsArray : list[:py:obj:`~.cudaExternalSemaphoreWaitParams`] Array of semaphore parameters numExtSems : unsigned int Number of semaphores to wait on @@ -22969,10 +22969,10 @@ def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[Tuple[cudaExternalSem cystream = pstream paramsArray = [] if paramsArray is None else paramsArray if not all(isinstance(_x, (cudaExternalSemaphoreWaitParams,)) for _x in paramsArray): - raise TypeError("Argument 'paramsArray' is not instance of type (expected Tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or List[cyruntime.cudaExternalSemaphoreWaitParams,]") + raise TypeError("Argument 'paramsArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphoreWaitParams,] or list[cyruntime.cudaExternalSemaphoreWaitParams,]") extSemArray = [] if extSemArray is None else extSemArray if not all(isinstance(_x, (cudaExternalSemaphore_t,)) for _x in extSemArray): - raise TypeError("Argument 'extSemArray' is not instance of type (expected Tuple[cyruntime.cudaExternalSemaphore_t,] or List[cyruntime.cudaExternalSemaphore_t,]") + raise TypeError("Argument 'extSemArray' is not instance of type (expected tuple[cyruntime.cudaExternalSemaphore_t,] or list[cyruntime.cudaExternalSemaphore_t,]") cdef cyruntime.cudaExternalSemaphore_t* cyextSemArray = NULL if len(extSemArray) > 1: cyextSemArray = calloc(len(extSemArray), sizeof(cyruntime.cudaExternalSemaphore_t)) @@ -25859,7 +25859,7 @@ def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, st {{if 'cudaMemcpyBatchAsync' in found_functions}} @cython.embedsignature(True) -def cudaMemcpyBatchAsync(dsts : Optional[Tuple[Any] | List[Any]], srcs : Optional[Tuple[Any] | List[Any]], sizes : Tuple[int] | List[int], size_t count, attrs : Optional[Tuple[cudaMemcpyAttributes] | List[cudaMemcpyAttributes]], attrsIdxs : Tuple[int] | List[int], size_t numAttrs, stream): +def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, attrs : Optional[tuple[cudaMemcpyAttributes] | list[cudaMemcpyAttributes]], attrsIdxs : tuple[int] | list[int], size_t numAttrs, stream): """ Performs a batch of memory copies asynchronously. Performs a batch of memory copies. The batch as a whole executes in @@ -25933,17 +25933,17 @@ def cudaMemcpyBatchAsync(dsts : Optional[Tuple[Any] | List[Any]], srcs : Optiona Parameters ---------- - dsts : List[Any] + dsts : list[Any] Array of destination pointers. - srcs : List[Any] + srcs : list[Any] Array of memcpy source pointers. - sizes : List[int] + sizes : list[int] Array of sizes for memcpy operations. count : size_t Size of `dsts`, `srcs` and `sizes` arrays - attrs : List[:py:obj:`~.cudaMemcpyAttributes`] + attrs : list[:py:obj:`~.cudaMemcpyAttributes`] Array of memcpy attributes. - attrsIdxs : List[int] + attrsIdxs : list[int] Array of indices to specify which copies each entry in the `attrs` array applies to. The attributes specified in attrs[k] will be applied to copies starting from attrsIdxs[k] through attrsIdxs[k+1] @@ -25969,12 +25969,12 @@ def cudaMemcpyBatchAsync(dsts : Optional[Tuple[Any] | List[Any]], srcs : Optiona pstream = int(cudaStream_t(stream)) cystream = pstream if not all(isinstance(_x, (int)) for _x in attrsIdxs): - raise TypeError("Argument 'attrsIdxs' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'attrsIdxs' is not instance of type (expected tuple[int] or list[int]") attrs = [] if attrs is None else attrs if not all(isinstance(_x, (cudaMemcpyAttributes,)) for _x in attrs): - raise TypeError("Argument 'attrs' is not instance of type (expected Tuple[cyruntime.cudaMemcpyAttributes,] or List[cyruntime.cudaMemcpyAttributes,]") + raise TypeError("Argument 'attrs' is not instance of type (expected tuple[cyruntime.cudaMemcpyAttributes,] or list[cyruntime.cudaMemcpyAttributes,]") if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") srcs = [] if srcs is None else srcs dsts = [] if dsts is None else dsts pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts] @@ -26009,7 +26009,7 @@ def cudaMemcpyBatchAsync(dsts : Optional[Tuple[Any] | List[Any]], srcs : Optiona {{if 'cudaMemcpy3DBatchAsync' in found_functions}} @cython.embedsignature(True) -def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[Tuple[cudaMemcpy3DBatchOp] | List[cudaMemcpy3DBatchOp]], unsigned long long flags, stream): +def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream): """ Performs a batch of 3D memory copies asynchronously. Performs a batch of memory copies. The batch as a whole executes in @@ -26095,7 +26095,7 @@ def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[Tuple[cudaMemcpy3DBa ---------- numOps : size_t Total number of memcpy operations. - opList : List[:py:obj:`~.cudaMemcpy3DBatchOp`] + opList : list[:py:obj:`~.cudaMemcpy3DBatchOp`] Array of size `numOps` containing the actual memcpy operations. flags : unsigned long long Flags for future use, must be zero now. @@ -26118,7 +26118,7 @@ def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[Tuple[cudaMemcpy3DBa cystream = pstream opList = [] if opList is None else opList if not all(isinstance(_x, (cudaMemcpy3DBatchOp,)) for _x in opList): - raise TypeError("Argument 'opList' is not instance of type (expected Tuple[cyruntime.cudaMemcpy3DBatchOp,] or List[cyruntime.cudaMemcpy3DBatchOp,]") + raise TypeError("Argument 'opList' is not instance of type (expected tuple[cyruntime.cudaMemcpy3DBatchOp,] or list[cyruntime.cudaMemcpy3DBatchOp,]") if numOps > len(opList): raise RuntimeError("List is too small: " + str(len(opList)) + " < " + str(numOps)) cdef cyruntime.cudaMemcpy3DBatchOp* cyopList = NULL if len(opList) > 1: @@ -26830,7 +26830,7 @@ def cudaMemPrefetchAsync(devPtr, size_t count, location not None : cudaMemLocati {{if 'cudaMemPrefetchBatchAsync' in found_functions}} @cython.embedsignature(True) -def cudaMemPrefetchBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : Tuple[int] | List[int], size_t count, prefetchLocs : Optional[Tuple[cudaMemLocation] | List[cudaMemLocation]], prefetchLocIdxs : Tuple[int] | List[int], size_t numPrefetchLocs, unsigned long long flags, stream): +def cudaMemPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream): """ Performs a batch of memory prefetches asynchronously. Performs a batch of memory prefetches. The batch as a whole executes in @@ -26867,15 +26867,15 @@ def cudaMemPrefetchBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : Parameters ---------- - dptrs : List[Any] + dptrs : list[Any] Array of pointers to be prefetched - sizes : List[int] + sizes : list[int] Array of sizes for memory prefetch operations. count : size_t Size of `dptrs` and `sizes` arrays. - prefetchLocs : List[:py:obj:`~.cudaMemLocation`] + prefetchLocs : list[:py:obj:`~.cudaMemLocation`] Array of locations to prefetch to. - prefetchLocIdxs : List[int] + prefetchLocIdxs : list[int] Array of indices to specify which operands each entry in the `prefetchLocs` array applies to. The locations specified in prefetchLocs[k] will be applied to copies starting from @@ -26904,12 +26904,12 @@ def cudaMemPrefetchBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : pstream = int(cudaStream_t(stream)) cystream = pstream if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs): - raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]") prefetchLocs = [] if prefetchLocs is None else prefetchLocs if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs): - raise TypeError("Argument 'prefetchLocs' is not instance of type (expected Tuple[cyruntime.cudaMemLocation,] or List[cyruntime.cudaMemLocation,]") + raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]") if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") dptrs = [] if dptrs is None else dptrs pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs] cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist) @@ -26939,7 +26939,7 @@ def cudaMemPrefetchBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : {{if 'cudaMemDiscardBatchAsync' in found_functions}} @cython.embedsignature(True) -def cudaMemDiscardBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : Tuple[int] | List[int], size_t count, unsigned long long flags, stream): +def cudaMemDiscardBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, unsigned long long flags, stream): """ Performs a batch of memory discards asynchronously. Performs a batch of memory discards. The batch as a whole executes in @@ -26971,9 +26971,9 @@ def cudaMemDiscardBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : T Parameters ---------- - dptrs : List[Any] + dptrs : list[Any] Array of pointers to be discarded - sizes : List[int] + sizes : list[int] Array of sizes for memory discard operations. count : size_t Size of `dptrs` and `sizes` arrays. @@ -26997,7 +26997,7 @@ def cudaMemDiscardBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : T pstream = int(cudaStream_t(stream)) cystream = pstream if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") dptrs = [] if dptrs is None else dptrs pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs] cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist) @@ -27013,7 +27013,7 @@ def cudaMemDiscardBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : T {{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} @cython.embedsignature(True) -def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]], sizes : Tuple[int] | List[int], size_t count, prefetchLocs : Optional[Tuple[cudaMemLocation] | List[cudaMemLocation]], prefetchLocIdxs : Tuple[int] | List[int], size_t numPrefetchLocs, unsigned long long flags, stream): +def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : tuple[int] | list[int], size_t count, prefetchLocs : Optional[tuple[cudaMemLocation] | list[cudaMemLocation]], prefetchLocIdxs : tuple[int] | list[int], size_t numPrefetchLocs, unsigned long long flags, stream): """ Performs a batch of memory discards and prefetches asynchronously. Performs a batch of memory discards followed by prefetches. The batch @@ -27058,15 +27058,15 @@ def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]] Parameters ---------- - dptrs : List[Any] + dptrs : list[Any] Array of pointers to be discarded - sizes : List[int] + sizes : list[int] Array of sizes for memory discard operations. count : size_t Size of `dptrs` and `sizes` arrays. - prefetchLocs : List[:py:obj:`~.cudaMemLocation`] + prefetchLocs : list[:py:obj:`~.cudaMemLocation`] Array of locations to prefetch to. - prefetchLocIdxs : List[int] + prefetchLocIdxs : list[int] Array of indices to specify which operands each entry in the `prefetchLocs` array applies to. The locations specified in prefetchLocs[k] will be applied to operations starting from @@ -27095,12 +27095,12 @@ def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[Tuple[Any] | List[Any]] pstream = int(cudaStream_t(stream)) cystream = pstream if not all(isinstance(_x, (int)) for _x in prefetchLocIdxs): - raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'prefetchLocIdxs' is not instance of type (expected tuple[int] or list[int]") prefetchLocs = [] if prefetchLocs is None else prefetchLocs if not all(isinstance(_x, (cudaMemLocation,)) for _x in prefetchLocs): - raise TypeError("Argument 'prefetchLocs' is not instance of type (expected Tuple[cyruntime.cudaMemLocation,] or List[cyruntime.cudaMemLocation,]") + raise TypeError("Argument 'prefetchLocs' is not instance of type (expected tuple[cyruntime.cudaMemLocation,] or list[cyruntime.cudaMemLocation,]") if not all(isinstance(_x, (int)) for _x in sizes): - raise TypeError("Argument 'sizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'sizes' is not instance of type (expected tuple[int] or list[int]") dptrs = [] if dptrs is None else dptrs pylist = [_HelperInputVoidPtr(pydptrs) for pydptrs in dptrs] cdef _InputVoidPtrPtrHelper voidStarHelperdptrs = _InputVoidPtrPtrHelper(pylist) @@ -27477,7 +27477,7 @@ def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeA {{if 'cudaMemRangeGetAttributes' in found_functions}} @cython.embedsignature(True) -def cudaMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : Optional[Tuple[cudaMemRangeAttribute] | List[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count): +def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : Optional[tuple[cudaMemRangeAttribute] | list[cudaMemRangeAttribute]], size_t numAttributes, devPtr, size_t count): """ Query attributes of a given memory range. Query attributes of the memory range starting at `devPtr` with a size @@ -27510,9 +27510,9 @@ def cudaMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : O Parameters ---------- - dataSizes : List[int] + dataSizes : list[int] Array containing the sizes of each result - attributes : List[:py:obj:`~.cudaMemRangeAttribute`] + attributes : list[:py:obj:`~.cudaMemRangeAttribute`] An array of attributes to query (numAttributes and the number of attributes in this array should match) numAttributes : size_t @@ -27526,7 +27526,7 @@ def cudaMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : O ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` - data : List[Any] + data : list[Any] A two-dimensional array containing pointers to memory locations where the result of each attribute query will be written to. @@ -27536,9 +27536,9 @@ def cudaMemRangeGetAttributes(dataSizes : Tuple[int] | List[int], attributes : O """ attributes = [] if attributes is None else attributes if not all(isinstance(_x, (cudaMemRangeAttribute)) for _x in attributes): - raise TypeError("Argument 'attributes' is not instance of type (expected Tuple[cyruntime.cudaMemRangeAttribute] or List[cyruntime.cudaMemRangeAttribute]") + raise TypeError("Argument 'attributes' is not instance of type (expected tuple[cyruntime.cudaMemRangeAttribute] or list[cyruntime.cudaMemRangeAttribute]") if not all(isinstance(_x, (int)) for _x in dataSizes): - raise TypeError("Argument 'dataSizes' is not instance of type (expected Tuple[int] or List[int]") + raise TypeError("Argument 'dataSizes' is not instance of type (expected tuple[int] or list[int]") pylist = [_HelperCUmem_range_attribute(pyattributes, pydataSizes) for (pyattributes, pydataSizes) in zip(attributes, dataSizes)] cdef _InputVoidPtrPtrHelper voidStarHelperdata = _InputVoidPtrPtrHelper(pylist) cdef void** cyvoidStarHelper_ptr = voidStarHelperdata.cptr @@ -28209,14 +28209,14 @@ def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr): {{if 'cudaMemPoolSetAccess' in found_functions}} @cython.embedsignature(True) -def cudaMemPoolSetAccess(memPool, descList : Optional[Tuple[cudaMemAccessDesc] | List[cudaMemAccessDesc]], size_t count): +def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count): """ Controls visibility of pools between devices. Parameters ---------- pool : :py:obj:`~.CUmemoryPool` or :py:obj:`~.cudaMemPool_t` The pool being modified - map : List[:py:obj:`~.cudaMemAccessDesc`] + map : list[:py:obj:`~.cudaMemAccessDesc`] Array of access descriptors. Each descriptor instructs the access to enable for a single gpu count : size_t @@ -28233,7 +28233,7 @@ def cudaMemPoolSetAccess(memPool, descList : Optional[Tuple[cudaMemAccessDesc] | """ descList = [] if descList is None else descList if not all(isinstance(_x, (cudaMemAccessDesc,)) for _x in descList): - raise TypeError("Argument 'descList' is not instance of type (expected Tuple[cyruntime.cudaMemAccessDesc,] or List[cyruntime.cudaMemAccessDesc,]") + raise TypeError("Argument 'descList' is not instance of type (expected tuple[cyruntime.cudaMemAccessDesc,] or list[cyruntime.cudaMemAccessDesc,]") cdef cyruntime.cudaMemPool_t cymemPool if memPool is None: pmemPool = 0 @@ -30317,7 +30317,7 @@ def cudaGraphCreate(unsigned int flags): {{if 'cudaGraphAddKernelNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddKernelNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaKernelNodeParams]): +def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaKernelNodeParams]): """ Creates a kernel execution node and adds it to a graph. Creates a new kernel execution node and adds it to `graph` with @@ -30381,7 +30381,7 @@ def cudaGraphAddKernelNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -30405,7 +30405,7 @@ def cudaGraphAddKernelNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -30659,7 +30659,7 @@ def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, {{if 'cudaGraphAddMemcpyNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, pCopyParams : Optional[cudaMemcpy3DParms]): +def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pCopyParams : Optional[cudaMemcpy3DParms]): """ Creates a memcpy node and adds it to a graph. Creates a new memcpy node and adds it to `graph` with `numDependencies` @@ -30681,7 +30681,7 @@ def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -30701,7 +30701,7 @@ def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -30735,7 +30735,7 @@ def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t {{if 'cudaGraphAddMemcpyNode1D' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind not None : cudaMemcpyKind): +def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dst, src, size_t count, kind not None : cudaMemcpyKind): """ Creates a 1D memcpy node and adds it to a graph. Creates a new 1D memcpy node and adds it to `graph` with @@ -30767,7 +30767,7 @@ def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[Tuple[cudaGraphNode ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -30793,7 +30793,7 @@ def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[Tuple[cudaGraphNode """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -30970,7 +30970,7 @@ def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : {{if 'cudaGraphAddMemsetNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddMemsetNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, pMemsetParams : Optional[cudaMemsetParams]): +def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pMemsetParams : Optional[cudaMemsetParams]): """ Creates a memset node and adds it to a graph. Creates a new memset node and adds it to `graph` with `numDependencies` @@ -30986,7 +30986,7 @@ def cudaGraphAddMemsetNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31006,7 +31006,7 @@ def cudaGraphAddMemsetNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -31118,7 +31118,7 @@ def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]) {{if 'cudaGraphAddHostNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddHostNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaHostNodeParams]): +def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, pNodeParams : Optional[cudaHostNodeParams]): """ Creates a host execution node and adds it to a graph. Creates a new CPU execution node and adds it to `graph` with @@ -31135,7 +31135,7 @@ def cudaGraphAddHostNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31155,7 +31155,7 @@ def cudaGraphAddHostNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -31267,7 +31267,7 @@ def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]) {{if 'cudaGraphAddChildGraphNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, childGraph): +def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph): """ Creates a child graph node and adds it to a graph. Creates a new node which executes an embedded graph, and adds it to @@ -31287,7 +31287,7 @@ def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[Tuple[cudaGraphNo ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31315,7 +31315,7 @@ def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[Tuple[cudaGraphNo cychildGraph = pchildGraph pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -31393,7 +31393,7 @@ def cudaGraphChildGraphNodeGetGraph(node): {{if 'cudaGraphAddEmptyNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddEmptyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies): +def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies): """ Creates an empty node and adds it to a graph. Creates a new node which performs no operation, and adds it to `graph` @@ -31413,7 +31413,7 @@ def cudaGraphAddEmptyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31431,7 +31431,7 @@ def cudaGraphAddEmptyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -31464,7 +31464,7 @@ def cudaGraphAddEmptyNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] {{if 'cudaGraphAddEventRecordNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, event): +def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event): """ Creates an event record node and adds it to a graph. Creates a new event record node and adds it to `hGraph` with @@ -31483,7 +31483,7 @@ def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[Tuple[cudaGraphN ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.cudaGraphNode_t`] + dependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31511,7 +31511,7 @@ def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[Tuple[cudaGraphN cyevent = pevent pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -31629,7 +31629,7 @@ def cudaGraphEventRecordNodeSetEvent(node, event): {{if 'cudaGraphAddEventWaitNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, event): +def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event): """ Creates an event wait node and adds it to a graph. Creates a new event wait node and adds it to `hGraph` with @@ -31651,7 +31651,7 @@ def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[Tuple[cudaGraphNod ---------- hGraph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - dependencies : List[:py:obj:`~.cudaGraphNode_t`] + dependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31679,7 +31679,7 @@ def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[Tuple[cudaGraphNod cyevent = pevent pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -31797,7 +31797,7 @@ def cudaGraphEventWaitNodeSetEvent(node, event): {{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): +def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): """ Creates an external semaphore signal node and adds it to a graph. Creates a new external semaphore signal node and adds it to `graph` @@ -31815,7 +31815,7 @@ def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[Tup ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31835,7 +31835,7 @@ def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[Tup """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -31954,7 +31954,7 @@ def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[ {{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): +def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): """ Creates an external semaphore wait node and adds it to a graph. Creates a new external semaphore wait node and adds it to `graph` with @@ -31972,7 +31972,7 @@ def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[Tuple ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -31992,7 +31992,7 @@ def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[Tuple """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -32111,7 +32111,7 @@ def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cu {{if 'cudaGraphAddMemAllocNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaMemAllocNodeParams]): +def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, nodeParams : Optional[cudaMemAllocNodeParams]): """ Creates an allocation node and adds it to a graph. Creates a new allocation node and adds it to `graph` with @@ -32168,7 +32168,7 @@ def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[Tuple[cudaGraphNode ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -32188,7 +32188,7 @@ def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[Tuple[cudaGraphNode """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -32265,7 +32265,7 @@ def cudaGraphMemAllocNodeGetParams(node): {{if 'cudaGraphAddMemFreeNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], size_t numDependencies, dptr): +def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr): """ Creates a memory free node and adds it to a graph. Creates a new memory free node and adds it to `graph` with @@ -32300,7 +32300,7 @@ def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_ ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node numDependencies : size_t Number of dependencies @@ -32320,7 +32320,7 @@ def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_ """ pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -32686,7 +32686,7 @@ def cudaGraphGetNodes(graph, size_t numNodes = 0): ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` - nodes : List[:py:obj:`~.cudaGraphNode_t`] + nodes : list[:py:obj:`~.cudaGraphNode_t`] Pointer to return the nodes numNodes : int See description @@ -32745,7 +32745,7 @@ def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue` - pRootNodes : List[:py:obj:`~.cudaGraphNode_t`] + pRootNodes : list[:py:obj:`~.cudaGraphNode_t`] Pointer to return the root nodes pNumRootNodes : int See description @@ -32811,11 +32811,11 @@ def cudaGraphGetEdges(graph, size_t numEdges = 0): ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue` - from : List[:py:obj:`~.cudaGraphNode_t`] + from : list[:py:obj:`~.cudaGraphNode_t`] Location to return edge endpoints - to : List[:py:obj:`~.cudaGraphNode_t`] + to : list[:py:obj:`~.cudaGraphNode_t`] Location to return edge endpoints - edgeData : List[:py:obj:`~.cudaGraphEdgeData`] + edgeData : list[:py:obj:`~.cudaGraphEdgeData`] Optional location to return edge data numEdges : int See description @@ -32900,9 +32900,9 @@ def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue` - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Pointer to return the dependencies - edgeData : List[:py:obj:`~.cudaGraphEdgeData`] + edgeData : list[:py:obj:`~.cudaGraphEdgeData`] Optional array to return edge data for each dependency pNumDependencies : int See description @@ -32977,9 +32977,9 @@ def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorLossyQuery`, :py:obj:`~.cudaErrorInvalidValue` - pDependentNodes : List[:py:obj:`~.cudaGraphNode_t`] + pDependentNodes : list[:py:obj:`~.cudaGraphNode_t`] Pointer to return the dependent nodes - edgeData : List[:py:obj:`~.cudaGraphEdgeData`] + edgeData : list[:py:obj:`~.cudaGraphEdgeData`] Optional pointer to return edge data for dependent nodes pNumDependentNodes : int See description @@ -33027,7 +33027,7 @@ def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): {{if 'cudaGraphAddDependencies' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddDependencies(graph, from_ : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], to : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], edgeData : Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies): +def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies): """ Adds dependency edges to a graph. The number of dependencies to be added is defined by `numDependencies` @@ -33041,11 +33041,11 @@ def cudaGraphAddDependencies(graph, from_ : Optional[Tuple[cudaGraphNode_t] | Li ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which dependencies are added - from : List[:py:obj:`~.cudaGraphNode_t`] + from : list[:py:obj:`~.cudaGraphNode_t`] Array of nodes that provide the dependencies - to : List[:py:obj:`~.cudaGraphNode_t`] + to : list[:py:obj:`~.cudaGraphNode_t`] Array of dependent nodes - edgeData : List[:py:obj:`~.cudaGraphEdgeData`] + edgeData : list[:py:obj:`~.cudaGraphEdgeData`] Optional array of edge data. If NULL, default (zeroed) edge data is assumed. numDependencies : size_t @@ -33062,13 +33062,13 @@ def cudaGraphAddDependencies(graph, from_ : Optional[Tuple[cudaGraphNode_t] | Li """ edgeData = [] if edgeData is None else edgeData if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData): - raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[cyruntime.cudaGraphEdgeData,] or List[cyruntime.cudaGraphEdgeData,]") + raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]") to = [] if to is None else to if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to): - raise TypeError("Argument 'to' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") from_ = [] if from_ is None else from_ if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_): - raise TypeError("Argument 'from_' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -33120,7 +33120,7 @@ def cudaGraphAddDependencies(graph, from_ : Optional[Tuple[cudaGraphNode_t] | Li {{if 'cudaGraphRemoveDependencies' in found_functions}} @cython.embedsignature(True) -def cudaGraphRemoveDependencies(graph, from_ : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], to : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], edgeData : Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies): +def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], to : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], edgeData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies): """ Removes dependency edges from a graph. The number of `pDependencies` to be removed is defined by @@ -33137,11 +33137,11 @@ def cudaGraphRemoveDependencies(graph, from_ : Optional[Tuple[cudaGraphNode_t] | ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph from which to remove dependencies - from : List[:py:obj:`~.cudaGraphNode_t`] + from : list[:py:obj:`~.cudaGraphNode_t`] Array of nodes that provide the dependencies - to : List[:py:obj:`~.cudaGraphNode_t`] + to : list[:py:obj:`~.cudaGraphNode_t`] Array of dependent nodes - edgeData : List[:py:obj:`~.cudaGraphEdgeData`] + edgeData : list[:py:obj:`~.cudaGraphEdgeData`] Optional array of edge data. If NULL, edge data is assumed to be default (zeroed). numDependencies : size_t @@ -33158,13 +33158,13 @@ def cudaGraphRemoveDependencies(graph, from_ : Optional[Tuple[cudaGraphNode_t] | """ edgeData = [] if edgeData is None else edgeData if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in edgeData): - raise TypeError("Argument 'edgeData' is not instance of type (expected Tuple[cyruntime.cudaGraphEdgeData,] or List[cyruntime.cudaGraphEdgeData,]") + raise TypeError("Argument 'edgeData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]") to = [] if to is None else to if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in to): - raise TypeError("Argument 'to' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'to' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") from_ = [] if from_ is None else from_ if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in from_): - raise TypeError("Argument 'from_' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'from_' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -35083,7 +35083,7 @@ def cudaGraphReleaseUserObject(graph, object, unsigned int count): {{if 'cudaGraphAddNode' in found_functions}} @cython.embedsignature(True) -def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | List[cudaGraphNode_t]], dependencyData : Optional[Tuple[cudaGraphEdgeData] | List[cudaGraphEdgeData]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): +def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], dependencyData : Optional[tuple[cudaGraphEdgeData] | list[cudaGraphEdgeData]], size_t numDependencies, nodeParams : Optional[cudaGraphNodeParams]): """ Adds a node of arbitrary type to a graph. Creates a new node in `graph` described by `nodeParams` with @@ -35109,9 +35109,9 @@ def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | Li ---------- graph : :py:obj:`~.CUgraph` or :py:obj:`~.cudaGraph_t` Graph to which to add the node - pDependencies : List[:py:obj:`~.cudaGraphNode_t`] + pDependencies : list[:py:obj:`~.cudaGraphNode_t`] Dependencies of the node - dependencyData : List[:py:obj:`~.cudaGraphEdgeData`] + dependencyData : list[:py:obj:`~.cudaGraphEdgeData`] Optional edge data for the dependencies. If NULL, the data is assumed to be default (zeroed) for all dependencies. numDependencies : size_t @@ -35132,10 +35132,10 @@ def cudaGraphAddNode(graph, pDependencies : Optional[Tuple[cudaGraphNode_t] | Li """ dependencyData = [] if dependencyData is None else dependencyData if not all(isinstance(_x, (cudaGraphEdgeData,)) for _x in dependencyData): - raise TypeError("Argument 'dependencyData' is not instance of type (expected Tuple[cyruntime.cudaGraphEdgeData,] or List[cyruntime.cudaGraphEdgeData,]") + raise TypeError("Argument 'dependencyData' is not instance of type (expected tuple[cyruntime.cudaGraphEdgeData,] or list[cyruntime.cudaGraphEdgeData,]") pDependencies = [] if pDependencies is None else pDependencies if not all(isinstance(_x, (cudaGraphNode_t,driver.CUgraphNode)) for _x in pDependencies): - raise TypeError("Argument 'pDependencies' is not instance of type (expected Tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or List[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") + raise TypeError("Argument 'pDependencies' is not instance of type (expected tuple[cyruntime.cudaGraphNode_t,driver.CUgraphNode] or list[cyruntime.cudaGraphNode_t,driver.CUgraphNode]") cdef cyruntime.cudaGraph_t cygraph if graph is None: pgraph = 0 @@ -35547,7 +35547,7 @@ def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, uns {{if 'cudaLibraryLoadData' in found_functions}} @cython.embedsignature(True) -def cudaLibraryLoadData(code, jitOptions : Optional[Tuple[cudaJitOption] | List[cudaJitOption]], jitOptionsValues : Optional[Tuple[Any] | List[Any]], unsigned int numJitOptions, libraryOptions : Optional[Tuple[cudaLibraryOption] | List[cudaLibraryOption]], libraryOptionValues : Optional[Tuple[Any] | List[Any]], unsigned int numLibraryOptions): +def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): """ Load a library with specified code and options. Takes a pointer `code` and loads the corresponding library `library` @@ -35589,15 +35589,15 @@ def cudaLibraryLoadData(code, jitOptions : Optional[Tuple[cudaJitOption] | List[ ---------- code : Any Code to load - jitOptions : List[:py:obj:`~.cudaJitOption`] + jitOptions : list[:py:obj:`~.cudaJitOption`] Options for JIT - jitOptionsValues : List[Any] + jitOptionsValues : list[Any] Option values for JIT numJitOptions : unsigned int Number of options - libraryOptions : List[:py:obj:`~.cudaLibraryOption`] + libraryOptions : list[:py:obj:`~.cudaLibraryOption`] Options for loading - libraryOptionValues : List[Any] + libraryOptionValues : list[Any] Option values for loading numLibraryOptions : unsigned int Number of options for loading @@ -35616,11 +35616,11 @@ def cudaLibraryLoadData(code, jitOptions : Optional[Tuple[cudaJitOption] | List[ libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues libraryOptions = [] if libraryOptions is None else libraryOptions if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions): - raise TypeError("Argument 'libraryOptions' is not instance of type (expected Tuple[cyruntime.cudaLibraryOption] or List[cyruntime.cudaLibraryOption]") + raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]") jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues jitOptions = [] if jitOptions is None else jitOptions if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions): - raise TypeError("Argument 'jitOptions' is not instance of type (expected Tuple[cyruntime.cudaJitOption] or List[cyruntime.cudaJitOption]") + raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]") cdef cudaLibrary_t library = cudaLibrary_t() cycode = _HelperInputVoidPtr(code) cdef void* cycode_ptr = cycode.cptr @@ -35646,7 +35646,7 @@ def cudaLibraryLoadData(code, jitOptions : Optional[Tuple[cudaJitOption] | List[ {{if 'cudaLibraryLoadFromFile' in found_functions}} @cython.embedsignature(True) -def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[Tuple[cudaJitOption] | List[cudaJitOption]], jitOptionsValues : Optional[Tuple[Any] | List[Any]], unsigned int numJitOptions, libraryOptions : Optional[Tuple[cudaLibraryOption] | List[cudaLibraryOption]], libraryOptionValues : Optional[Tuple[Any] | List[Any]], unsigned int numLibraryOptions): +def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitOption] | list[cudaJitOption]], jitOptionsValues : Optional[tuple[Any] | list[Any]], unsigned int numJitOptions, libraryOptions : Optional[tuple[cudaLibraryOption] | list[cudaLibraryOption]], libraryOptionValues : Optional[tuple[Any] | list[Any]], unsigned int numLibraryOptions): """ Load a library with specified file and options. Takes a pointer `code` and loads the corresponding library `library` @@ -35688,15 +35688,15 @@ def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[Tuple[cudaJitO ---------- fileName : bytes File to load from - jitOptions : List[:py:obj:`~.cudaJitOption`] + jitOptions : list[:py:obj:`~.cudaJitOption`] Options for JIT - jitOptionsValues : List[Any] + jitOptionsValues : list[Any] Option values for JIT numJitOptions : unsigned int Number of options - libraryOptions : List[:py:obj:`~.cudaLibraryOption`] + libraryOptions : list[:py:obj:`~.cudaLibraryOption`] Options for loading - libraryOptionValues : List[Any] + libraryOptionValues : list[Any] Option values for loading numLibraryOptions : unsigned int Number of options for loading @@ -35715,11 +35715,11 @@ def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[Tuple[cudaJitO libraryOptionValues = [] if libraryOptionValues is None else libraryOptionValues libraryOptions = [] if libraryOptions is None else libraryOptions if not all(isinstance(_x, (cudaLibraryOption)) for _x in libraryOptions): - raise TypeError("Argument 'libraryOptions' is not instance of type (expected Tuple[cyruntime.cudaLibraryOption] or List[cyruntime.cudaLibraryOption]") + raise TypeError("Argument 'libraryOptions' is not instance of type (expected tuple[cyruntime.cudaLibraryOption] or list[cyruntime.cudaLibraryOption]") jitOptionsValues = [] if jitOptionsValues is None else jitOptionsValues jitOptions = [] if jitOptions is None else jitOptions if not all(isinstance(_x, (cudaJitOption)) for _x in jitOptions): - raise TypeError("Argument 'jitOptions' is not instance of type (expected Tuple[cyruntime.cudaJitOption] or List[cyruntime.cudaJitOption]") + raise TypeError("Argument 'jitOptions' is not instance of type (expected tuple[cyruntime.cudaJitOption] or list[cyruntime.cudaJitOption]") cdef cudaLibrary_t library = cudaLibrary_t() cdef vector[cyruntime.cudaJitOption] cyjitOptions = [pyjitOptions.value for pyjitOptions in (jitOptions)] pylist = [_HelperCudaJitOption(pyoptions, pyoptionValues) for pyoptions, pyoptionValues in zip(jitOptions, jitOptionsValues)] @@ -36032,7 +36032,7 @@ def cudaLibraryEnumerateKernels(unsigned int numKernels, lib): ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorCudartUnloading`, :py:obj:`~.cudaErrorInitializationError`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle` - kernels : List[:py:obj:`~.cudaKernel_t`] + kernels : list[:py:obj:`~.cudaKernel_t`] Buffer where the kernel handles are returned to See Also @@ -37084,7 +37084,7 @@ def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLD pCudaDeviceCount : unsigned int Returned number of CUDA devices corresponding to the current OpenGL context - pCudaDevices : List[int] + pCudaDevices : list[int] Returned CUDA devices corresponding to the current OpenGL context See Also diff --git a/cuda_bindings/pyproject.toml b/cuda_bindings/pyproject.toml index 2637f0b0e7..6af49d1efa 100644 --- a/cuda_bindings/pyproject.toml +++ b/cuda_bindings/pyproject.toml @@ -84,7 +84,6 @@ select = [ ] ignore = [ - "UP006", "UP007", "E741", # ambiguous variable name such as I "B007", # rename unsued loop variable to _name diff --git a/cuda_core/cuda/core/experimental/_linker.py b/cuda_core/cuda/core/experimental/_linker.py index bda91fb46d..2c35efd1b0 100644 --- a/cuda_core/cuda/core/experimental/_linker.py +++ b/cuda_core/cuda/core/experimental/_linker.py @@ -8,7 +8,7 @@ import weakref from contextlib import contextmanager from dataclasses import dataclass -from typing import TYPE_CHECKING, List, Tuple, Union +from typing import TYPE_CHECKING, Union from warnings import warn if TYPE_CHECKING: @@ -140,14 +140,14 @@ class LinkerOptions: fma : bool, optional Use fast multiply-add. Default: True. - kernels_used : [Union[str, Tuple[str], List[str]]], optional + kernels_used : [Union[str, tuple[str], list[str]]], optional Pass a kernel or sequence of kernels that are used; any not in the list can be removed. - variables_used : [Union[str, Tuple[str], List[str]]], optional + variables_used : [Union[str, tuple[str], list[str]]], optional Pass a variable or sequence of variables that are used; any not in the list can be removed. optimize_unused_variables : bool, optional Assume that if a variable is not referenced in device code, it can be removed. Default: False. - ptxas_options : [Union[str, Tuple[str], List[str]]], optional + ptxas_options : [Union[str, tuple[str], list[str]]], optional Pass options to PTXAS. split_compile : int, optional Split compilation maximum thread count. Use 0 to use all available processors. Value of 1 disables split @@ -177,10 +177,10 @@ class LinkerOptions: prec_div: bool | None = None prec_sqrt: bool | None = None fma: bool | None = None - kernels_used: Union[str, Tuple[str], List[str]] | None = None - variables_used: Union[str, Tuple[str], List[str]] | None = None + kernels_used: Union[str, tuple[str], list[str]] | None = None + variables_used: Union[str, tuple[str], list[str]] | None = None optimize_unused_variables: bool | None = None - ptxas_options: Union[str, Tuple[str], List[str]] | None = None + ptxas_options: Union[str, tuple[str], list[str]] | None = None split_compile: int | None = None split_compile_extended: int | None = None no_cache: bool | None = None diff --git a/cuda_core/cuda/core/experimental/_memory.pyx b/cuda_core/cuda/core/experimental/_memory.pyx index 3eb80875e8..44e7a77c77 100644 --- a/cuda_core/cuda/core/experimental/_memory.pyx +++ b/cuda_core/cuda/core/experimental/_memory.pyx @@ -11,7 +11,7 @@ from cuda.core.experimental._utils.cuda_utils cimport ( ) import abc -from typing import Tuple, TypeVar, Union +from typing import TypeVar, Union from cuda.core.experimental._dlpack import DLDeviceType, make_py_capsule from cuda.core.experimental._stream import Stream, default_stream @@ -183,8 +183,8 @@ cdef class Buffer: self, *, stream: int | None = None, - max_version: Tuple[int, int] | None = None, - dl_device: Tuple[int, int] | None = None, + max_version: tuple[int, int] | None = None, + dl_device: tuple[int, int] | None = None, copy: bool | None = None, ) -> PyCapsule: # Note: we ignore the stream argument entirely (as if it is -1). @@ -197,12 +197,12 @@ cdef class Buffer: versioned = False else: if not isinstance(max_version, tuple) or len(max_version) != 2: - raise BufferError(f"Expected max_version Tuple[int, int], got {max_version}") + raise BufferError(f"Expected max_version tuple[int, int], got {max_version}") versioned = max_version >= (1, 0) capsule = make_py_capsule(self, versioned) return capsule - def __dlpack_device__(self) -> Tuple[int, int]: + def __dlpack_device__(self) -> tuple[int, int]: cdef bint d = self.is_device_accessible cdef bint h = self.is_host_accessible if d and (not h): diff --git a/cuda_core/cuda/core/experimental/_program.py b/cuda_core/cuda/core/experimental/_program.py index fbba1db92d..d8b875bceb 100644 --- a/cuda_core/cuda/core/experimental/_program.py +++ b/cuda_core/cuda/core/experimental/_program.py @@ -6,7 +6,7 @@ import weakref from dataclasses import dataclass -from typing import TYPE_CHECKING, List, Tuple, Union +from typing import TYPE_CHECKING, Union from warnings import warn if TYPE_CHECKING: @@ -33,14 +33,14 @@ def _process_define_macro_inner(formatted_options, macro): return True if isinstance(macro, tuple): if len(macro) != 2 or any(not isinstance(val, str) for val in macro): - raise RuntimeError(f"Expected define_macro Tuple[str, str], got {macro}") + raise RuntimeError(f"Expected define_macro tuple[str, str], got {macro}") formatted_options.append(f"--define-macro={macro[0]}={macro[1]}") return True return False def _process_define_macro(formatted_options, macro): - union_type = "Union[str, Tuple[str, str]]" + union_type = "Union[str, tuple[str, str]]" if _process_define_macro_inner(formatted_options, macro): return if is_nested_sequence(macro): @@ -48,7 +48,7 @@ def _process_define_macro(formatted_options, macro): if not _process_define_macro_inner(formatted_options, seq_macro): raise RuntimeError(f"Expected define_macro {union_type}, got {seq_macro}") return - raise RuntimeError(f"Expected define_macro {union_type}, List[{union_type}], got {macro}") + raise RuntimeError(f"Expected define_macro {union_type}, list[{union_type}], got {macro}") @dataclass @@ -79,7 +79,7 @@ class ProgramOptions: Enable device code optimization. When specified along with ā€˜-G’, enables limited debug information generation for optimized device code. Default: None - ptxas_options : Union[str, List[str]], optional + ptxas_options : Union[str, list[str]], optional Specify one or more options directly to ptxas, the PTX optimizing assembler. Options should be strings. For example ["-v", "-O2"]. Default: None @@ -113,17 +113,17 @@ class ProgramOptions: gen_opt_lto : bool, optional Run the optimizer passes before generating the LTO IR. Default: False - define_macro : Union[str, Tuple[str, str], List[Union[str, Tuple[str, str]]]], optional + define_macro : Union[str, tuple[str, str], list[Union[str, tuple[str, str]]]], optional Predefine a macro. Can be either a string, in which case that macro will be set to 1, a 2 element tuple of strings, in which case the first element is defined as the second, or a list of strings or tuples. Default: None - undefine_macro : Union[str, List[str]], optional + undefine_macro : Union[str, list[str]], optional Cancel any previous definition of a macro, or list of macros. Default: None - include_path : Union[str, List[str]], optional + include_path : Union[str, list[str]], optional Add the directory or directories to the list of directories to be searched for headers. Default: None - pre_include : Union[str, List[str]], optional + pre_include : Union[str, list[str]], optional Preinclude one or more headers during preprocessing. Can be either a string or a list of strings. Default: None no_source_include : bool, optional @@ -156,13 +156,13 @@ class ProgramOptions: no_display_error_number : bool, optional Disable the display of a diagnostic number for warning messages. Default: False - diag_error : Union[int, List[int]], optional + diag_error : Union[int, list[int]], optional Emit error for a specified diagnostic message number or comma separated list of numbers. Default: None - diag_suppress : Union[int, List[int]], optional + diag_suppress : Union[int, list[int]], optional Suppress a specified diagnostic message number or comma separated list of numbers. Default: None - diag_warn : Union[int, List[int]], optional + diag_warn : Union[int, list[int]], optional Emit warning for a specified diagnostic message number or comma separated lis of numbers. Default: None brief_diagnostics : bool, optional @@ -189,7 +189,7 @@ class ProgramOptions: debug: bool | None = None lineinfo: bool | None = None device_code_optimize: bool | None = None - ptxas_options: Union[str, List[str], Tuple[str]] | None = None + ptxas_options: Union[str, list[str], tuple[str]] | None = None max_register_count: int | None = None ftz: bool | None = None prec_sqrt: bool | None = None @@ -200,11 +200,11 @@ class ProgramOptions: link_time_optimization: bool | None = None gen_opt_lto: bool | None = None define_macro: ( - Union[str, Tuple[str, str], List[Union[str, Tuple[str, str]]], Tuple[Union[str, Tuple[str, str]]]] | None + Union[str, tuple[str, str], list[Union[str, tuple[str, str]]], tuple[Union[str, tuple[str, str]]]] | None ) = None - undefine_macro: Union[str, List[str], Tuple[str]] | None = None - include_path: Union[str, List[str], Tuple[str]] | None = None - pre_include: Union[str, List[str], Tuple[str]] | None = None + undefine_macro: Union[str, list[str], tuple[str]] | None = None + include_path: Union[str, list[str], tuple[str]] | None = None + pre_include: Union[str, list[str], tuple[str]] | None = None no_source_include: bool | None = None std: str | None = None builtin_move_forward: bool | None = None @@ -215,9 +215,9 @@ class ProgramOptions: device_int128: bool | None = None optimization_info: str | None = None no_display_error_number: bool | None = None - diag_error: Union[int, List[int], Tuple[int]] | None = None - diag_suppress: Union[int, List[int], Tuple[int]] | None = None - diag_warn: Union[int, List[int], Tuple[int]] | None = None + diag_error: Union[int, list[int], tuple[int]] | None = None + diag_suppress: Union[int, list[int], tuple[int]] | None = None + diag_warn: Union[int, list[int], tuple[int]] | None = None brief_diagnostics: bool | None = None time: str | None = None split_compile: int | None = None @@ -453,7 +453,7 @@ def compile(self, target_type, name_expressions=(), logs=None): target_type : Any String of the targeted compilation type. Supported options are "ptx", "cubin" and "ltoir". - name_expressions : Union[List, Tuple], optional + name_expressions : Union[list, tuple], optional List of explicit name expressions to become accessible. (Default to no expressions) logs : Any, optional diff --git a/cuda_core/cuda/core/experimental/_stream.pyx b/cuda_core/cuda/core/experimental/_stream.pyx index d73156523b..64ae09529f 100644 --- a/cuda_core/cuda/core/experimental/_stream.pyx +++ b/cuda_core/cuda/core/experimental/_stream.pyx @@ -12,7 +12,7 @@ from cuda.core.experimental._utils.cuda_utils cimport ( import os import warnings from dataclasses import dataclass -from typing import TYPE_CHECKING, Optional, Protocol, Tuple, Union +from typing import TYPE_CHECKING, Optional, Protocol, Union if TYPE_CHECKING: import cuda.bindings @@ -47,7 +47,7 @@ cdef class StreamOptions: class IsStreamT(Protocol): - def __cuda_stream__(self) -> Tuple[int, int]: + def __cuda_stream__(self) -> tuple[int, int]: """ For any Python object that is meant to be interpreted as a CUDA stream, the intent can be communicated by implementing this protocol that returns a 2-tuple: The protocol @@ -201,7 +201,7 @@ cdef class Stream: self._owner = None self._handle = None - def __cuda_stream__(self) -> Tuple[int, int]: + def __cuda_stream__(self) -> tuple[int, int]: """Return an instance of a __cuda_stream__ protocol.""" return (0, int(self.handle)) diff --git a/cuda_core/cuda/core/experimental/_system.py b/cuda_core/cuda/core/experimental/_system.py index a4e54d1ba1..cbbc1a83cb 100644 --- a/cuda_core/cuda/core/experimental/_system.py +++ b/cuda_core/cuda/core/experimental/_system.py @@ -2,8 +2,6 @@ # # SPDX-License-Identifier: Apache-2.0 -from typing import Tuple - from cuda.core.experimental._device import Device from cuda.core.experimental._utils.cuda_utils import driver, handle_return, runtime @@ -26,7 +24,7 @@ def __init__(self): self._initialized = True @property - def driver_version(self) -> Tuple[int, int]: + def driver_version(self) -> tuple[int, int]: """ Query the CUDA driver version. diff --git a/cuda_core/pyproject.toml b/cuda_core/pyproject.toml index 76e312b0d7..3609396617 100644 --- a/cuda_core/pyproject.toml +++ b/cuda_core/pyproject.toml @@ -97,7 +97,6 @@ select = [ ] ignore = [ - "UP006", "UP007", "E741", # ambiguous variable name such as I "B007", # rename unsued loop variable to _name diff --git a/cuda_core/tests/test_memory.py b/cuda_core/tests/test_memory.py index eb2a57f654..491521ff9d 100644 --- a/cuda_core/tests/test_memory.py +++ b/cuda_core/tests/test_memory.py @@ -229,9 +229,9 @@ def test_buffer_dunder_dlpack(): buffer.__dlpack__(dl_device=()) with pytest.raises(BufferError, match=r"^Sorry, not supported: copy=True$"): buffer.__dlpack__(copy=True) - with pytest.raises(BufferError, match=r"^Expected max_version Tuple\[int, int\], got \(\)$"): + with pytest.raises(BufferError, match=r"^Expected max_version tuple\[int, int\], got \(\)$"): buffer.__dlpack__(max_version=()) - with pytest.raises(BufferError, match=r"^Expected max_version Tuple\[int, int\], got \(9, 8, 7\)$"): + with pytest.raises(BufferError, match=r"^Expected max_version tuple\[int, int\], got \(9, 8, 7\)$"): buffer.__dlpack__(max_version=(9, 8, 7))