diff --git a/.gitignore b/.gitignore index c55480b7551..66062511ba8 100644 --- a/.gitignore +++ b/.gitignore @@ -20,10 +20,7 @@ cache_runtime cache_nvrtc # CUDA Python specific (auto-generated) -cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd -cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx -cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd -cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx +cuda_bindings/cuda/bindings/_internal/cudla.pyx cuda_bindings/cuda/bindings/_internal/driver.pyx cuda_bindings/cuda/bindings/_internal/nvrtc.pyx cuda_bindings/cuda/bindings/_internal/cufile.pyx @@ -31,12 +28,8 @@ cuda_bindings/cuda/bindings/_internal/nvfatbin.pyx cuda_bindings/cuda/bindings/_internal/nvjitlink.pyx cuda_bindings/cuda/bindings/_internal/nvml.pyx cuda_bindings/cuda/bindings/_internal/nvvm.pyx -cuda_bindings/cuda/bindings/cyruntime.pxd -cuda_bindings/cuda/bindings/cyruntime.pyx -cuda_bindings/cuda/bindings/cyruntime_functions.pxi -cuda_bindings/cuda/bindings/cyruntime_types.pxi -cuda_bindings/cuda/bindings/runtime.pxd -cuda_bindings/cuda/bindings/runtime.pyx +cuda_bindings/cuda/bindings/_internal/runtime.pyx +cuda_bindings/cuda/bindings/_internal/runtime_ptds.pyx cuda_bindings/cuda/bindings/utils/_get_handle.pyx # Version files from setuptools_scm diff --git a/cuda_bindings/AGENTS.md b/cuda_bindings/AGENTS.md index 9688c9f94ca..820fd176e02 100644 --- a/cuda_bindings/AGENTS.md +++ b/cuda_bindings/AGENTS.md @@ -18,21 +18,18 @@ subpackage in the `cuda-python` monorepo. glue and loader helpers used by public modules. - **Platform internals**: `cuda/bindings/_internal/` contains platform-specific implementation files and support code. -- **Build/codegen backend**: `build_hooks.py` drives header parsing, template - expansion, extension configuration, and Cythonization. +- **Build backend**: `build_hooks.py` drives extension configuration and + Cythonization. ## Generated-source workflow - **Do not hand-edit generated binding files**: many files under - `cuda/bindings/` (including `*.pyx`, `*.pxd`, `*.pyx.in`, and `*.pxd.in`) - are generated artifacts. + `cuda/bindings/` (including `*.pyx` and `*.pxd`) are generated artifacts. - **Generated files are synchronized from another repository**: changes to these files in this repo are expected to be overwritten by the next sync. - **If generated output must change**: make the change at the generation source and sync the updated artifacts back here, rather than patching generated files directly in this repo. -- **Header-driven generation**: parser behavior and required CUDA headers are - defined in `build_hooks.py`; update those rules when introducing new symbols. - **Platform split files**: keep `_linux.pyx` and `_windows.pyx` variants aligned when behavior should be equivalent. @@ -49,9 +46,8 @@ subpackage in the `cuda-python` monorepo. ## Build and environment notes - `CUDA_HOME` or `CUDA_PATH` must point to a valid CUDA Toolkit for source - builds that parse headers. + builds. - `CUDA_PYTHON_PARALLEL_LEVEL` controls build parallelism. -- `CUDA_PYTHON_PARSER_CACHING` controls parser-cache behavior during generation. - Runtime behavior is affected by `CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM` and `CUDA_PYTHON_DISABLE_MAJOR_VERSION_WARNING`. diff --git a/cuda_bindings/build_hooks.py b/cuda_bindings/build_hooks.py index a04fa3a3c89..4da02dd48c4 100644 --- a/cuda_bindings/build_hooks.py +++ b/cuda_bindings/build_hooks.py @@ -2,7 +2,7 @@ # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # This module implements basic PEP 517 backend support to defer CUDA-dependent -# logic (header parsing, code generation, cythonization) to build time. See: +# logic (cythonization) to build time. See: # - https://peps.python.org/pep-0517/ # - https://setuptools.pypa.io/en/latest/build_meta.html#dynamic-build-dependencies-and-other-build-meta-tweaks # - https://github.com/NVIDIA/cuda-python/issues/1635 @@ -74,207 +74,6 @@ def _get_cuda_path() -> str: return cuda_path -# ----------------------------------------------------------------------- -# Header parsing helpers (called only from _build_cuda_bindings) - -_REQUIRED_HEADERS = { - "runtime": [ - "driver_types.h", - "vector_types.h", - "cuda_runtime.h", - "surface_types.h", - "texture_types.h", - "library_types.h", - "cuda_runtime_api.h", - "device_types.h", - "driver_functions.h", - "cuda_profiler_api.h", - ], - # nvrtc: headers no longer parsed at build time (pre-generated by cybind). - # During compilation, Cython will reference C headers that are not - # explicitly parsed above. These are the known dependencies: - # - # - crt/host_defines.h - # - builtin_types.h - # - cuda_device_runtime_api.h -} - - -class _Struct: - def __init__(self, name, members): - self._name = name - self._member_names = [] - self._member_types = [] - self._member_declarators = [] - for var_name, var_type, _ in members: - base_type = var_type[0] - base_type = base_type.removeprefix("struct ") - base_type = base_type.removeprefix("union ") - - self._member_names += [var_name] - self._member_types += [base_type] - self._member_declarators += [tuple(var_type[1:])] - - def member_type(self, member_name): - try: - return self._member_types[self._member_names.index(member_name)] - except ValueError: - return None - - def member_array_length(self, member_name): - try: - declarators = self._member_declarators[self._member_names.index(member_name)] - except ValueError: - return None - - for declarator in declarators: - if isinstance(declarator, list) and len(declarator) == 1: - return declarator[0] - return None - - def discoverMembers(self, memberDict, prefix, seen=None): - if seen is None: - seen = set() - elif self._name in seen: - return [] - - discovered = [] - next_seen = set(seen) - next_seen.add(self._name) - - for memberName, memberType in zip(self._member_names, self._member_types): - if memberName: - discovered.append(".".join([prefix, memberName])) - - t = memberType.replace("const ", "").replace("volatile ", "").strip().rstrip(" *") - if t in memberDict and t != self._name: - discovered += memberDict[t].discoverMembers( - memberDict, discovered[-1] if memberName else prefix, next_seen - ) - - return discovered - - def __repr__(self): - return f"{self._name}: {self._member_names} with types {self._member_types}" - - -def _fetch_header_paths(required_headers, include_path_list): - header_dict = {} - missing_headers = [] - for library, header_list in required_headers.items(): - header_paths = [] - for header in header_list: - path_candidate = [os.path.join(path, header) for path in include_path_list] - for path in path_candidate: - if os.path.exists(path): - header_paths += [path] - break - else: - missing_headers += [header] - - header_dict[library] = header_paths - - if missing_headers: - error_message = "Couldn't find required headers: " - error_message += ", ".join(missing_headers) - cuda_path = _get_cuda_path() - raise RuntimeError(f'{error_message}\nIs CUDA_PATH setup correctly? (CUDA_PATH="{cuda_path}")') - - return header_dict - - -def _parse_headers(header_dict, include_path_list, parser_caching): - from pyclibrary import CParser - - found_types = [] - found_functions = [] - found_values = [] - found_struct = [] - struct_list = {} - - replace = { - " __device_builtin__ ": " ", - "CUDARTAPI ": " ", - "typedef __device_builtin__ enum cudaError cudaError_t;": "typedef cudaError cudaError_t;", - "typedef __device_builtin__ enum cudaOutputMode cudaOutputMode_t;": "typedef cudaOutputMode cudaOutputMode_t;", - "typedef enum cudaError cudaError_t;": "typedef cudaError cudaError_t;", - "typedef enum cudaOutputMode cudaOutputMode_t;": "typedef cudaOutputMode cudaOutputMode_t;", - "typedef enum cudaDataType_t cudaDataType_t;": "", - "typedef enum libraryPropertyType_t libraryPropertyType_t;": "", - " enum ": " ", - ", enum ": ", ", - "\\(enum ": "(", - # Since we only support 64 bit architectures, we can inline the sizeof(T*) to 8 and then compute the - # result in Python. The arithmetic expression is preserved to help with clarity and understanding - r"char reserved\[52 - sizeof\(CUcheckpointGpuPair \*\)\];": rf"char reserved[{52 - 8}];", - r"char reserved\[64 - sizeof\(CUcheckpointGpuPair \*\) - sizeof\(unsigned int\)\];": rf"char reserved[{64 - 8 - 4}];", - } - - print(f'Parsing headers in "{include_path_list}" (Caching = {parser_caching})', flush=True) - for library, header_paths in header_dict.items(): - print(f"Parsing {library} headers", flush=True) - parser = CParser( - header_paths, cache="./cache_{}".format(library.split(".")[0]) if parser_caching else None, replace=replace - ) - - if library == "driver": - CUDA_VERSION = parser.defs["macros"].get("CUDA_VERSION", "Unknown") - print(f"Found CUDA_VERSION: {CUDA_VERSION}", flush=True) - - found_types += set(parser.defs["types"]) - found_types += set(parser.defs["structs"]) - found_types += set(parser.defs["unions"]) - found_types += set(parser.defs["enums"]) - found_functions += set(parser.defs["functions"]) - found_values += set(parser.defs["values"]) - - for key, value in parser.defs["structs"].items(): - struct_list[key] = _Struct(key, value["members"]) - for key, value in parser.defs["unions"].items(): - struct_list[key] = _Struct(key, value["members"]) - - for key, value in struct_list.items(): - if key.startswith(("anon_union", "anon_struct")): - continue - - found_struct += [key] - discovered = value.discoverMembers(struct_list, key) - if discovered: - found_struct += discovered - - # TODO(#1312): make this work properly - found_types.append("CUstreamAtomicReductionDataType_enum") - - return found_types, found_functions, found_values, found_struct, struct_list - - -# ----------------------------------------------------------------------- -# Code generation helpers - - -def _fetch_input_files(path): - return [os.path.join(path, f) for f in os.listdir(path) if f.endswith(".in")] - - -def _generate_output(infile, template_vars): - from Cython import Tempita - - assert infile.endswith(".in") - outfile = infile[:-3] - - with open(infile, encoding="utf-8") as f: - pxdcontent = Tempita.Template(f.read()).substitute(template_vars) - - if os.path.exists(outfile): - with open(outfile, encoding="utf-8") as f: - if f.read() == pxdcontent: - print(f"Skipping {infile} (No change)", flush=True) - return - with open(outfile, "w", encoding="utf-8") as f: - print(f"Generating {infile}", flush=True) - f.write(pxdcontent) - - # ----------------------------------------------------------------------- # Extension preparation helpers @@ -328,9 +127,8 @@ def _prep_extensions(sources, libraries, include_dirs, library_dirs, extra_compi def _build_cuda_bindings(debug=False): """Build all cuda-bindings extensions. - All CUDA-dependent logic (header parsing, code generation, cythonization) - is deferred to this function so that metadata queries do not require a - CUDA toolkit installation. + All CUDA-dependent logic (cythonization) is deferred to this function so + that metadata queries do not require a CUDA toolkit installation. """ from Cython.Build import cythonize @@ -348,54 +146,10 @@ def _build_cuda_bindings(debug=False): else: nthreads = int(os.environ.get("CUDA_PYTHON_PARALLEL_LEVEL", "0") or "0") - parser_caching = bool(os.environ.get("CUDA_PYTHON_PARSER_CACHING", False)) compile_for_coverage = bool(int(os.environ.get("CUDA_PYTHON_COVERAGE", "0"))) - # Parse CUDA headers - include_path_list = [os.path.join(cuda_path, "include")] - header_dict = _fetch_header_paths(_REQUIRED_HEADERS, include_path_list) - found_types, found_functions, found_values, found_struct, struct_list = _parse_headers( - header_dict, include_path_list, parser_caching - ) - struct_field_types = {} - struct_field_array_lengths = {} - for struct_name, struct in struct_list.items(): - for member_name in struct._member_names: - key = f"{struct_name}.{member_name}" - struct_field_types[key] = struct.member_type(member_name) - struct_field_array_lengths[key] = struct.member_array_length(member_name) - - # Generate code from .in templates - path_list = [ - os.path.join("cuda"), - os.path.join("cuda", "bindings"), - os.path.join("cuda", "bindings", "_bindings"), - os.path.join("cuda", "bindings", "_internal"), - os.path.join("cuda", "bindings", "_lib"), - os.path.join("cuda", "bindings", "utils"), - ] - input_files = [] - for path in path_list: - input_files += _fetch_input_files(path) - - import platform - - template_vars = { - "found_types": found_types, - "found_functions": found_functions, - "found_values": found_values, - "found_struct": found_struct, - "struct_list": struct_list, - "struct_field_types": struct_field_types, - "struct_field_array_lengths": struct_field_array_lengths, - "os": os, - "sys": sys, - "platform": platform, - } - for file in input_files: - _generate_output(file, template_vars) - # Prepare compile/link arguments + include_path_list = [os.path.join(cuda_path, "include")] include_dirs = [ os.path.dirname(sysconfig.get_path("include")), ] + include_path_list @@ -439,21 +193,26 @@ def _cleanup_dst_files(): # Build extension list extensions = [] - static_runtime_libraries = ["cudart_static", "rt"] if sys.platform == "linux" else ["cudart_static"] cuda_bindings_files = glob.glob("cuda/bindings/*.pyx") if sys.platform == "win32": cuda_bindings_files = [f for f in cuda_bindings_files if "cufile" not in f] + + def get_static_libraries(f): + if os.path.basename(f) in ("runtime.pyx", "runtime_ptds.pyx"): + if sys.platform == "linux": + return ["cudart_static", "rt"] + else: + return ["cudart_static"] + return None + sources_list = [ - # private - (["cuda/bindings/_bindings/cyruntime.pyx"], static_runtime_libraries), - (["cuda/bindings/_bindings/cyruntime_ptds.pyx"], static_runtime_libraries), # utils (["cuda/bindings/utils/*.pyx"], None), # public *(([f], None) for f in cuda_bindings_files), # internal files used by generated bindings (["cuda/bindings/_internal/utils.pyx"], None), - *(([f], None) for f in dst_files if f.endswith(".pyx")), + *(([f], get_static_libraries(f)) for f in dst_files if f.endswith(".pyx")), ] for sources, libraries in sources_list: diff --git a/cuda_bindings/cuda/bindings/_bindings/__init__.py b/cuda_bindings/cuda/bindings/_bindings/__init__.py deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in b/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in deleted file mode 100644 index 6321378cf1d..00000000000 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pyx.in +++ /dev/null @@ -1,1938 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. -cdef extern from "": - """ - #define CUDA_API_PER_THREAD_DEFAULT_STREAM - """ - -include "../cyruntime_functions.pxi" - -cimport cython - -{{if 'cudaDeviceReset' in found_functions}} - -cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceReset() -{{endif}} - -{{if 'cudaDeviceSynchronize' in found_functions}} - -cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSynchronize() -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - -cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetLimit(limit, value) -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - -cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetLimit(pValue, limit) -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetCacheConfig(pCacheConfig) -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - -cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetCacheConfig(cacheConfig) -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetByPCIBusId(device, pciBusId) -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetPCIBusId(pciBusId, length, device) -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - -cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcGetEventHandle(handle, event) -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - -cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcOpenEventHandle(event, handle) -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - -cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcGetMemHandle(handle, devPtr) -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - -cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcOpenMemHandle(devPtr, handle, flags) -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - -cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaIpcCloseMemHandle(devPtr) -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - -cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - -cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - -cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceUnregisterAsyncNotification(device, callback) -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetSharedMemConfig(pConfig) -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - -cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetSharedMemConfig(config) -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - -cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetLastError() -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - -cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaPeekAtLastError() -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil: - return cudaGetErrorName(error) -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil: - return cudaGetErrorString(error) -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - -cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDeviceCount(count) -{{endif}} - -{{if 'cudaGetDeviceProperties' in found_functions}} - -cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDeviceProperties(prop, device) -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetAttribute(value, attr, device) -{{endif}} - -{{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - -cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetDefaultMemPool(memPool, device) -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - -cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetMemPool(device, memPool) -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - -cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetMemPool(memPool, device) -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{endif}} - -{{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - -cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaChooseDevice(device, prop) -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - -cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaInitDevice(device, deviceFlags, flags) -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - -cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaSetDevice(device) -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - -cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDevice(device) -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - -cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaSetDeviceFlags(flags) -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - -cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDeviceFlags(flags) -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - -cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCreate(pStream) -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - -cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCreateWithFlags(pStream, flags) -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - -cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCreateWithPriority(pStream, flags, priority) -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - -cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetPriority(hStream, priority) -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - -cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetFlags(hStream, flags) -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - -cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetId(hStream, streamId) -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - -cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetDevice(hStream, device) -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - -cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaCtxResetPersistingL2Cache() -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - -cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamCopyAttributes(dst, src) -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetAttribute(hStream, attr, value_out) -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamSetAttribute(hStream, attr, value) -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - -cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamDestroy(stream) -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - -cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamWaitEvent(stream, event, flags) -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - -cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamAddCallback(stream, callback, userData, flags) -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - -cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamSynchronize(stream) -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - -cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamQuery(stream) -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - -cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - -cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamBeginCapture(stream, mode) -{{endif}} - -{{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} - -cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - -cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - -cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaThreadExchangeStreamCaptureMode(mode) -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - -cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamEndCapture(stream, pGraph) -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - -cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamIsCapturing(stream, pCaptureStatus) -{{endif}} - -{{if 'cudaStreamGetCaptureInfo' in found_functions}} - -cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - -cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - -cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventCreate(event) -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - -cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventCreateWithFlags(event, flags) -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - -cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventRecord(event, stream) -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - -cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventRecordWithFlags(event, stream, flags) -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - -cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventQuery(event) -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - -cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventSynchronize(event) -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - -cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventDestroy(event) -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - -cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaEventElapsedTime(ms, start, end) -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - -cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaImportExternalMemory(extMem_out, memHandleDesc) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - -cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - -cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroyExternalMemory(extMem) -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - -cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - -cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroyExternalSemaphore(extSem) -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - -cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncSetCacheConfig(func, cacheConfig) -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - -cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncGetAttributes(attr, func) -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - -cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncSetAttribute(func, attr, value) -{{endif}} - -{{if 'cudaFuncGetParamCount' in found_functions}} - -cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncGetParamCount(func, paramCount) -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - -cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLaunchHostFunc(stream, fn, userData) -{{endif}} - -{{if 'cudaLaunchHostFunc_v2' in found_functions}} - -cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - -cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFuncSetSharedMemConfig(func, config) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - -cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocManaged(devPtr, size, flags) -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - -cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMalloc(devPtr, size) -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - -cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocHost(ptr, size) -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - -cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocPitch(devPtr, pitch, width, height) -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - -cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocArray(array, desc, width, height, flags) -{{endif}} - -{{if 'cudaFree' in found_functions}} - -cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFree(devPtr) -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - -cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeHost(ptr) -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - -cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeArray(array) -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeMipmappedArray(mipmappedArray) -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - -cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostAlloc(pHost, size, flags) -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - -cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostRegister(ptr, size, flags) -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - -cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostUnregister(ptr) -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - -cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostGetDevicePointer(pDevice, pHost, flags) -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - -cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaHostGetFlags(pFlags, pHost) -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - -cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMalloc3D(pitchedDevPtr, extent) -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - -cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMalloc3DArray(array, desc, extent, flags) -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - -cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - -cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3D(p) -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DPeer(p) -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DAsync(p, stream) -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DPeerAsync(p, stream) -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - -cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemGetInfo(free, total) -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - -cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetInfo(desc, extent, flags, array) -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - -cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaArrayGetSparseProperties(sparseProperties, array) -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - -cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy(dst, src, count, kind) -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - -cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - -cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyAsync(dst, src, count, kind, stream) -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) -{{endif}} - -{{if 'cudaMemcpyWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) -{{endif}} - -{{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy3DWithAttributesAsync(op, flags, stream) -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{endif}} - -{{if 'cudaMemset' in found_functions}} - -cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset(devPtr, value, count) -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - -cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset2D(devPtr, pitch, value, width, height) -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - -cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset3D(pitchedDevPtr, value, extent) -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - -cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemsetAsync(devPtr, value, count, stream) -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - -cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - -cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - -cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPrefetchAsync(devPtr, count, location, flags, stream) -{{endif}} - -{{if 'cudaMemPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -{{endif}} - -{{if 'cudaMemDiscardBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) -{{endif}} - -{{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - -cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemAdvise(devPtr, count, advice, location) -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - -cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - -cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - -cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - -cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - -cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocAsync(devPtr, size, hStream) -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - -cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaFreeAsync(devPtr, hStream) -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - -cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - -cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolSetAttribute(memPool, attr, value) -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - -cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolGetAttribute(memPool, attr, value) -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - -cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolSetAccess(memPool, descList, count) -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - -cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolGetAccess(flags, memPool, location) -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - -cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolCreate(memPool, poolProps) -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - -cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolDestroy(memPool) -{{endif}} - -{{if 'cudaMemGetDefaultMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemGetDefaultMemPool(memPool, location, typename) -{{endif}} - -{{if 'cudaMemGetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemGetMemPool(memPool, location, typename) -{{endif}} - -{{if 'cudaMemSetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType typename, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemSetMemPool(location, typename, memPool) -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - -cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - -cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - -cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - -cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolExportPointer(exportData, ptr) -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - -cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaMemPoolImportPointer(ptr, memPool, exportData) -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - -cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaPointerGetAttributes(attributes, ptr) -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - -cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - -cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceEnablePeerAccess(peerDevice, flags) -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - -cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceDisablePeerAccess(peerDevice) -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - -cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsUnregisterResource(resource) -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - -cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsResourceSetMapFlags(resource, flags) -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - -cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsMapResources(count, resources, stream) -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - -cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsUnmapResources(count, resources, stream) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - -cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - -cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetChannelDesc(desc, array) -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: - return cudaCreateChannelDesc(x, y, z, w, f) -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - -cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - -cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroyTextureObject(texObject) -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - -cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - -cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - -cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - -cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - -cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDestroySurfaceObject(surfObject) -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - -cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - -cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDriverGetVersion(driverVersion) -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - -cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaRuntimeGetVersion(runtimeVersion) -{{endif}} - -{{if 'cudaLogsRegisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLogsRegisterCallback(callbackFunc, userData, callback_out) -{{endif}} - -{{if 'cudaLogsUnregisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLogsUnregisterCallback(callback) -{{endif}} - -{{if 'cudaLogsCurrent' in found_functions}} - -cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLogsCurrent(iterator_out, flags) -{{endif}} - -{{if 'cudaLogsDumpToFile' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLogsDumpToFile(iterator, pathToFile, flags) -{{endif}} - -{{if 'cudaLogsDumpToMemory' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLogsDumpToMemory(iterator, buffer, size, flags) -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - -cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphCreate(pGraph, flags) -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeCopyAttributes(hDst, hSrc) -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphHostNodeGetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphHostNodeSetParams(node, pNodeParams) -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - -cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventRecordNodeGetEvent(node, event_out) -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventRecordNodeSetEvent(node, event) -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventWaitNodeGetEvent(node, event_out) -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphEventWaitNodeSetEvent(node, event) -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemAllocNodeGetParams(node, params_out) -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - -cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGraphMemTrim(device) -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetGraphMemAttribute(device, attr, value) -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - -cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceSetGraphMemAttribute(device, attr, value) -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - -cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphClone(pGraphClone, originalGraph) -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - -cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetType(node, pType) -{{endif}} - -{{if 'cudaGraphNodeGetContainingGraph' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetContainingGraph(hNode, phGraph) -{{endif}} - -{{if 'cudaGraphNodeGetLocalId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetLocalId(hNode, nodeId) -{{endif}} - -{{if 'cudaGraphNodeGetToolsId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetToolsId(hNode, toolsNodeId) -{{endif}} - -{{if 'cudaGraphGetId' in found_functions}} - -cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetId(hGraph, graphID) -{{endif}} - -{{if 'cudaGraphExecGetId' in found_functions}} - -cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecGetId(hGraphExec, graphID) -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - -cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetNodes(graph, nodes, numNodes) -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - -cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - -cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - -cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - -cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - -cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphDestroyNode(node) -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - -cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphInstantiate(pGraphExec, graph, flags) -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - -cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - -cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - -cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecGetFlags(graphExec, flags) -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - -cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - -cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - -cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphUpload(graphExec, stream) -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - -cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphLaunch(graphExec, stream) -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - -cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecDestroy(graphExec) -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - -cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphDestroy(graph) -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - -cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphDebugDotPrint(graph, path, flags) -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - -cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - -cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaUserObjectRetain(object, count) -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - -cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaUserObjectRelease(object, count) -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - -cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphRetainUserObject(graph, object, count, flags) -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - -cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphReleaseUserObject(graph, object, count) -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - -cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeSetParams(node, nodeParams) -{{endif}} - -{{if 'cudaGraphNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphNodeGetParams(node, nodeParams) -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - -cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - -cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} - -cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - -cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - -cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - -cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - -cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - -cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryUnload(library) -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - -cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetKernel(pKernel, library, name) -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetGlobal(dptr, numbytes, library, name) -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetManaged(dptr, numbytes, library, name) -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - -cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - -cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryGetKernelCount(count, lib) -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - -cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - -cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{endif}} - -{{if 'cudaDeviceGetDevResource' in found_functions}} - -cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetDevResource(device, resource, typename) -{{endif}} - -{{if 'cudaDevSmResourceSplitByCount' in found_functions}} - -cdef cudaError_t _cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) -{{endif}} - -{{if 'cudaDevSmResourceSplit' in found_functions}} - -cdef cudaError_t _cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) -{{endif}} - -{{if 'cudaDevResourceGenerateDesc' in found_functions}} - -cdef cudaError_t _cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDevResourceGenerateDesc(phDesc, resources, nbResources) -{{endif}} - -{{if 'cudaGreenCtxCreate' in found_functions}} - -cdef cudaError_t _cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGreenCtxCreate(phCtx, desc, device, flags) -{{endif}} - -{{if 'cudaExecutionCtxDestroy' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxDestroy(ctx) -{{endif}} - -{{if 'cudaExecutionCtxGetDevResource' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxGetDevResource(ctx, resource, typename) -{{endif}} - -{{if 'cudaExecutionCtxGetDevice' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxGetDevice(device, ctx) -{{endif}} - -{{if 'cudaExecutionCtxGetId' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxGetId(ctx, ctxId) -{{endif}} - -{{if 'cudaExecutionCtxStreamCreate' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) -{{endif}} - -{{if 'cudaExecutionCtxSynchronize' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxSynchronize(ctx) -{{endif}} - -{{if 'cudaStreamGetDevResource' in found_functions}} - -cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaStreamGetDevResource(hStream, resource, typename) -{{endif}} - -{{if 'cudaExecutionCtxRecordEvent' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxRecordEvent(ctx, event) -{{endif}} - -{{if 'cudaExecutionCtxWaitEvent' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaExecutionCtxWaitEvent(ctx, event) -{{endif}} - -{{if 'cudaDeviceGetExecutionCtx' in found_functions}} - -cdef cudaError_t _cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaDeviceGetExecutionCtx(ctx, device) -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - -cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetExportTable(ppExportTable, pExportTableId) -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - -cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaGetKernel(kernelPtr, entryFuncAddr) -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: - return make_cudaPitchedPtr(d, p, xsz, ysz) -{{endif}} - -{{if 'make_cudaPos' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil: - return make_cudaPos(x, y, z) -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: - return make_cudaExtent(w, h, d) -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - -cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaProfilerStart() -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - -cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: - return cudaProfilerStop() -{{endif}} diff --git a/cuda_bindings/cuda/bindings/_internal/_fast_enum.py b/cuda_bindings/cuda/bindings/_internal/_fast_enum.py index cd0a8e5610e..46acc09adbb 100644 --- a/cuda_bindings/cuda/bindings/_internal/_fast_enum.py +++ b/cuda_bindings/cuda/bindings/_internal/_fast_enum.py @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated across versions from 12.9.1 to 13.3.0, generator version 0.3.1.dev1719+g565f73f4e. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. """ diff --git a/cuda_bindings/cuda/bindings/_internal/driver.pxd b/cuda_bindings/cuda/bindings/_internal/driver.pxd index 1a537e4792a..4bff977a51f 100644 --- a/cuda_bindings/cuda/bindings/_internal/driver.pxd +++ b/cuda_bindings/cuda/bindings/_internal/driver.pxd @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1622+g48467ab08.d20260421. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. from ..cydriver cimport * @@ -36,6 +36,8 @@ cdef CUresult _cuDevicePrimaryCtxRelease_v2(CUdevice dev) except ?CUDA_ERROR_NOT cdef CUresult _cuDevicePrimaryCtxSetFlags_v2(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult _cuCtxCreate_v2(CUcontext* pctx, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult _cuCtxCreate_v3(CUcontext* pctx, CUexecAffinityParam* paramsArray, int numParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuCtxDestroy_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuCtxPushCurrent_v2(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil @@ -224,6 +226,7 @@ cdef CUresult _cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, con cdef CUresult _cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult _cuStreamGetCaptureInfo_v2(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuStreamGetCaptureInfo_v3(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuStreamUpdateCaptureDependencies_v2(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult _cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil diff --git a/cuda_bindings/cuda/bindings/_internal/driver_linux.pyx b/cuda_bindings/cuda/bindings/_internal/driver_linux.pyx index 0f92ba8bb33..d57bac8086c 100644 --- a/cuda_bindings/cuda/bindings/_internal/driver_linux.pyx +++ b/cuda_bindings/cuda/bindings/_internal/driver_linux.pyx @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1738+g1060a290f. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. from libc.stdint cimport intptr_t, uintptr_t @@ -85,6 +85,8 @@ cdef void* __cuDevicePrimaryCtxRelease_v2 = NULL cdef void* __cuDevicePrimaryCtxSetFlags_v2 = NULL cdef void* __cuDevicePrimaryCtxGetState = NULL cdef void* __cuDevicePrimaryCtxReset_v2 = NULL +cdef void* __cuCtxCreate_v2 = NULL +cdef void* __cuCtxCreate_v3 = NULL cdef void* __cuCtxCreate_v4 = NULL cdef void* __cuCtxDestroy_v2 = NULL cdef void* __cuCtxPushCurrent_v2 = NULL @@ -273,6 +275,7 @@ cdef void* __cuStreamBeginCaptureToGraph = NULL cdef void* __cuThreadExchangeStreamCaptureMode = NULL cdef void* __cuStreamEndCapture = NULL cdef void* __cuStreamIsCapturing = NULL +cdef void* __cuStreamGetCaptureInfo_v2 = NULL cdef void* __cuStreamGetCaptureInfo_v3 = NULL cdef void* __cuStreamUpdateCaptureDependencies_v2 = NULL cdef void* __cuStreamAttachMemAsync = NULL @@ -689,6 +692,12 @@ cdef int _init_driver() except -1 nogil: global __cuDevicePrimaryCtxReset_v2 _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, ptds_mode, NULL) + global __cuCtxCreate_v2 + _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v2, 3020, ptds_mode, NULL) + + global __cuCtxCreate_v3 + _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v3, 11040, ptds_mode, NULL) + global __cuCtxCreate_v4 _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, ptds_mode, NULL) @@ -1253,6 +1262,9 @@ cdef int _init_driver() except -1 nogil: global __cuStreamIsCapturing _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, ptds_mode, NULL) + global __cuStreamGetCaptureInfo_v2 + _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v2, 11030, ptds_mode, NULL) + global __cuStreamGetCaptureInfo_v3 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, ptds_mode, NULL) @@ -2252,6 +2264,12 @@ cpdef dict _inspect_function_pointers(): global __cuDevicePrimaryCtxReset_v2 data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 + global __cuCtxCreate_v2 + data["__cuCtxCreate_v2"] = __cuCtxCreate_v2 + + global __cuCtxCreate_v3 + data["__cuCtxCreate_v3"] = __cuCtxCreate_v3 + global __cuCtxCreate_v4 data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 @@ -2816,6 +2834,9 @@ cpdef dict _inspect_function_pointers(): global __cuStreamIsCapturing data["__cuStreamIsCapturing"] = __cuStreamIsCapturing + global __cuStreamGetCaptureInfo_v2 + data["__cuStreamGetCaptureInfo_v2"] = __cuStreamGetCaptureInfo_v2 + global __cuStreamGetCaptureInfo_v3 data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 @@ -3984,6 +4005,26 @@ cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_F dev) +cdef CUresult _cuCtxCreate_v2(CUcontext* pctx, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: + global __cuCtxCreate_v2 + _check_or_init_driver() + if __cuCtxCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxCreate_v2 is not found") + return (__cuCtxCreate_v2)( + pctx, flags, dev) + + +cdef CUresult _cuCtxCreate_v3(CUcontext* pctx, CUexecAffinityParam* paramsArray, int numParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: + global __cuCtxCreate_v3 + _check_or_init_driver() + if __cuCtxCreate_v3 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxCreate_v3 is not found") + return (__cuCtxCreate_v3)( + pctx, paramsArray, numParams, flags, dev) + + cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: global __cuCtxCreate_v4 _check_or_init_driver() @@ -5864,6 +5905,16 @@ cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* capt hStream, captureStatus) +cdef CUresult _cuStreamGetCaptureInfo_v2(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil: + global __cuStreamGetCaptureInfo_v2 + _check_or_init_driver() + if __cuStreamGetCaptureInfo_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCaptureInfo_v2 is not found") + return (__cuStreamGetCaptureInfo_v2)( + hStream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) + + cdef CUresult _cuStreamGetCaptureInfo_v3(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil: global __cuStreamGetCaptureInfo_v3 _check_or_init_driver() diff --git a/cuda_bindings/cuda/bindings/_internal/driver_windows.pyx b/cuda_bindings/cuda/bindings/_internal/driver_windows.pyx index 68f8862b36f..1a0fca0b8f7 100644 --- a/cuda_bindings/cuda/bindings/_internal/driver_windows.pyx +++ b/cuda_bindings/cuda/bindings/_internal/driver_windows.pyx @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1622+g48467ab08.d20260421. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. from libc.stdint cimport intptr_t @@ -103,6 +103,8 @@ cdef void* __cuDevicePrimaryCtxRelease_v2 = NULL cdef void* __cuDevicePrimaryCtxSetFlags_v2 = NULL cdef void* __cuDevicePrimaryCtxGetState = NULL cdef void* __cuDevicePrimaryCtxReset_v2 = NULL +cdef void* __cuCtxCreate_v2 = NULL +cdef void* __cuCtxCreate_v3 = NULL cdef void* __cuCtxCreate_v4 = NULL cdef void* __cuCtxDestroy_v2 = NULL cdef void* __cuCtxPushCurrent_v2 = NULL @@ -291,6 +293,7 @@ cdef void* __cuStreamBeginCaptureToGraph = NULL cdef void* __cuThreadExchangeStreamCaptureMode = NULL cdef void* __cuStreamEndCapture = NULL cdef void* __cuStreamIsCapturing = NULL +cdef void* __cuStreamGetCaptureInfo_v2 = NULL cdef void* __cuStreamGetCaptureInfo_v3 = NULL cdef void* __cuStreamUpdateCaptureDependencies_v2 = NULL cdef void* __cuStreamAttachMemAsync = NULL @@ -707,6 +710,12 @@ cdef int _init_driver() except -1 nogil: global __cuDevicePrimaryCtxReset_v2 _F_cuGetProcAddress_v2('cuDevicePrimaryCtxReset', &__cuDevicePrimaryCtxReset_v2, 11000, ptds_mode, NULL) + global __cuCtxCreate_v2 + _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v2, 3020, ptds_mode, NULL) + + global __cuCtxCreate_v3 + _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v3, 11040, ptds_mode, NULL) + global __cuCtxCreate_v4 _F_cuGetProcAddress_v2('cuCtxCreate', &__cuCtxCreate_v4, 12050, ptds_mode, NULL) @@ -1271,6 +1280,9 @@ cdef int _init_driver() except -1 nogil: global __cuStreamIsCapturing _F_cuGetProcAddress_v2('cuStreamIsCapturing', &__cuStreamIsCapturing, 10000, ptds_mode, NULL) + global __cuStreamGetCaptureInfo_v2 + _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v2, 11030, ptds_mode, NULL) + global __cuStreamGetCaptureInfo_v3 _F_cuGetProcAddress_v2('cuStreamGetCaptureInfo', &__cuStreamGetCaptureInfo_v3, 12030, ptds_mode, NULL) @@ -2270,6 +2282,12 @@ cpdef dict _inspect_function_pointers(): global __cuDevicePrimaryCtxReset_v2 data["__cuDevicePrimaryCtxReset_v2"] = __cuDevicePrimaryCtxReset_v2 + global __cuCtxCreate_v2 + data["__cuCtxCreate_v2"] = __cuCtxCreate_v2 + + global __cuCtxCreate_v3 + data["__cuCtxCreate_v3"] = __cuCtxCreate_v3 + global __cuCtxCreate_v4 data["__cuCtxCreate_v4"] = __cuCtxCreate_v4 @@ -2834,6 +2852,9 @@ cpdef dict _inspect_function_pointers(): global __cuStreamIsCapturing data["__cuStreamIsCapturing"] = __cuStreamIsCapturing + global __cuStreamGetCaptureInfo_v2 + data["__cuStreamGetCaptureInfo_v2"] = __cuStreamGetCaptureInfo_v2 + global __cuStreamGetCaptureInfo_v3 data["__cuStreamGetCaptureInfo_v3"] = __cuStreamGetCaptureInfo_v3 @@ -4002,6 +4023,26 @@ cdef CUresult _cuDevicePrimaryCtxReset_v2(CUdevice dev) except ?CUDA_ERROR_NOT_F dev) +cdef CUresult _cuCtxCreate_v2(CUcontext* pctx, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: + global __cuCtxCreate_v2 + _check_or_init_driver() + if __cuCtxCreate_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxCreate_v2 is not found") + return (__cuCtxCreate_v2)( + pctx, flags, dev) + + +cdef CUresult _cuCtxCreate_v3(CUcontext* pctx, CUexecAffinityParam* paramsArray, int numParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: + global __cuCtxCreate_v3 + _check_or_init_driver() + if __cuCtxCreate_v3 == NULL: + with gil: + raise FunctionNotFoundError("function cuCtxCreate_v3 is not found") + return (__cuCtxCreate_v3)( + pctx, paramsArray, numParams, flags, dev) + + cdef CUresult _cuCtxCreate_v4(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: global __cuCtxCreate_v4 _check_or_init_driver() @@ -5882,6 +5923,16 @@ cdef CUresult _cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* capt hStream, captureStatus) +cdef CUresult _cuStreamGetCaptureInfo_v2(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil: + global __cuStreamGetCaptureInfo_v2 + _check_or_init_driver() + if __cuStreamGetCaptureInfo_v2 == NULL: + with gil: + raise FunctionNotFoundError("function cuStreamGetCaptureInfo_v2 is not found") + return (__cuStreamGetCaptureInfo_v2)( + hStream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) + + cdef CUresult _cuStreamGetCaptureInfo_v3(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil: global __cuStreamGetCaptureInfo_v3 _check_or_init_driver() diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/_internal/runtime.pxd similarity index 68% rename from cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in rename to cuda_bindings/cuda/bindings/_internal/runtime.pxd index 981ed513768..126b2bb20a1 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pxd.in +++ b/cuda_bindings/cuda/bindings/_internal/runtime.pxd @@ -1,1612 +1,338 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. -include "../cyruntime_types.pxi" +from ..cyruntime cimport * +# EGL/GL/VDPAU helper declarations (implementations included in runtime_linux/windows.pyx) include "../_lib/cyruntime/cyruntime.pxd" -{{if 'cudaDeviceReset' in found_functions}} +cdef cudaError_t _getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} -{{if 'cudaDeviceSynchronize' in found_functions}} +############################################################################### +# Wrapper functions +############################################################################### +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceProperties' in found_functions}} - -cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} - -cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo' in found_functions}} - -cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetParamCount' in found_functions}} - -cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc_v2' in found_functions}} - -cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFree' in found_functions}} - cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - +cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset' in found_functions}} - cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemDiscardBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetDefaultMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemSetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType typename, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} - cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsRegisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsUnregisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsCurrent' in found_functions}} - -cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsDumpToFile' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsDumpToMemory' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetContainingGraph' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetLocalId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetToolsId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetId' in found_functions}} - -cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetId' in found_functions}} - -cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} - -cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDevResource' in found_functions}} - -cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevSmResourceSplitByCount' in found_functions}} - +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevSmResourceSplit' in found_functions}} - cdef cudaError_t _cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevResourceGenerateDesc' in found_functions}} - cdef cudaError_t _cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGreenCtxCreate' in found_functions}} - cdef cudaError_t _cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxDestroy' in found_functions}} - cdef cudaError_t _cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetDevResource' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetDevice' in found_functions}} - +cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetId' in found_functions}} - cdef cudaError_t _cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxStreamCreate' in found_functions}} - cdef cudaError_t _cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxSynchronize' in found_functions}} - cdef cudaError_t _cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevResource' in found_functions}} - -cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxRecordEvent' in found_functions}} - +cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxWaitEvent' in found_functions}} - cdef cudaError_t _cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetExecutionCtx' in found_functions}} - cdef cudaError_t _cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - -cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - -cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} - -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil -{{endif}} - -{{if 'make_cudaPos' in found_functions}} - -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} - -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - -cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - -cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} +cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil diff --git a/cuda_bindings/cuda/bindings/_internal/runtime_linux.pyx b/cuda_bindings/cuda/bindings/_internal/runtime_linux.pyx new file mode 100644 index 00000000000..a4015482b88 --- /dev/null +++ b/cuda_bindings/cuda/bindings/_internal/runtime_linux.pyx @@ -0,0 +1,3287 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. + +import os + +from libc.stdint cimport uintptr_t + +from cuda.pathfinder import load_nvidia_dynamic_lib +cimport cuda.bindings._lib.dlfcn as dlfcn +cimport cuda.bindings._internal.runtime_ptds as ptds +cimport cython + + +############################################################################### +# Per-thread default stream dispatch +############################################################################### + +cdef bint __cudaPythonInit = False +cdef bint __usePTDS = False + +cdef int _cudaPythonInit() except -1 nogil: + global __cudaPythonInit + global __usePTDS + with gil: + __usePTDS = bool(int(os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0))) + __cudaPythonInit = True + return __usePTDS + +cdef inline int cudaPythonInit() except -1 nogil: + if __cudaPythonInit: + return __usePTDS + return _cudaPythonInit() + + +############################################################################### +# EGL/GL/VDPAU helpers (implementations delegating to driver EGL/VDPAU/GL APIs) +############################################################################### + +include "../_lib/cyruntime/cyruntime.pxi" + + +############################################################################### +# getLocalRuntimeVersion — dynamically loads cudart to read its own version +############################################################################### + +cdef cudaError_t _getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + # Load cudart dynamically to read its embedded version number. + with gil: + loaded_dl = load_nvidia_dynamic_lib("cudart") + handle = loaded_dl._handle_uint + + cdef void* __cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion') + + if __cudaRuntimeGetVersion == NULL: + with gil: + raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {loaded_dl.abs_path}') + + # We explicitly do *NOT* cleanup the library handle here, acknowledging + # that, yes, the handle leaks. The reason is that there's a + # `functools.cache` on the top-level caller of this function. + # + # This means this library would be opened once and then immediately closed, + # all the while remaining in the cache lurking there for people to call. + # + # Since we open the library one time (technically once per unique library name), + # there's not a ton of leakage, which we deem acceptable for the 1000x speedup + # achieved by caching (ultimately) `ctypes.CDLL` calls. + # + # Long(er)-term we can explore cleaning up the library using higher-level + # Python mechanisms, like `__del__` or `weakref.finalizer`s. + + cdef cudaError_t err = cudaSuccess + err = ( __cudaRuntimeGetVersion)(runtimeVersion) + return err + + +############################################################################### +# C function declarations for static cudart (avoids infinite recursion through +# the same-named Cython wrappers imported via `from ..cyruntime cimport *`) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hDst, cudaGraphNode_t hSrc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties "cudaGetDeviceProperties" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetHostAtomicCapabilities "cudaDeviceGetHostAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAtomicCapabilities "cudaDeviceGetP2PAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo "cudaStreamGetCaptureInfo" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync "cudaSignalExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync "cudaWaitExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchBatchAsync "cudaMemPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardBatchAsync "cudaMemDiscardBatchAsync" (void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardAndPrefetchBatchAsync "cudaMemDiscardAndPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetDefaultMemPool "cudaMemGetDefaultMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetMemPool "cudaMemGetMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemSetMemPool "cudaMemSetMemPool" (cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsRegisterCallback "cudaLogsRegisterCallback" (cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsUnregisterCallback "cudaLogsUnregisterCallback" (cudaLogsCallbackHandle callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsCurrent "cudaLogsCurrent" (cudaLogIterator* iterator_out, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToFile "cudaLogsDumpToFile" (cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToMemory "cudaLogsDumpToMemory" (cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetContainingGraph "cudaGraphNodeGetContainingGraph" (cudaGraphNode_t hNode, cudaGraph_t* phGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetLocalId "cudaGraphNodeGetLocalId" (cudaGraphNode_t hNode, unsigned int* nodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetToolsId "cudaGraphNodeGetToolsId" (cudaGraphNode_t hNode, unsigned long long* toolsNodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetId "cudaGraphGetId" (cudaGraph_t hGraph, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetId "cudaGraphExecGetId" (cudaGraphExec_t hGraphExec, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate_v2 "cudaGraphConditionalHandleCreate_v2" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDevResource "cudaDeviceGetDevResource" (int device, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplitByCount "cudaDevSmResourceSplitByCount" (cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplit "cudaDevSmResourceSplit" (cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevResourceGenerateDesc "cudaDevResourceGenerateDesc" (cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGreenCtxCreate "cudaGreenCtxCreate" (cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxDestroy "cudaExecutionCtxDestroy" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevResource "cudaExecutionCtxGetDevResource" (cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevice "cudaExecutionCtxGetDevice" (int* device, cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetId "cudaExecutionCtxGetId" (cudaExecutionContext_t ctx, unsigned long long* ctxId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxStreamCreate "cudaExecutionCtxStreamCreate" (cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxSynchronize "cudaExecutionCtxSynchronize" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevResource "cudaStreamGetDevResource" (cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxRecordEvent "cudaExecutionCtxRecordEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxWaitEvent "cudaExecutionCtxWaitEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetExecutionCtx "cudaDeviceGetExecutionCtx" (cudaExecutionContext_t* ctx, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamCount "cudaFuncGetParamCount" (const void* func, size_t* paramCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc_v2 "cudaLaunchHostFunc_v2" (cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyWithAttributesAsync "cudaMemcpyWithAttributesAsync" (void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DWithAttributesAsync "cudaMemcpy3DWithAttributesAsync" (cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetParams "cudaGraphNodeGetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginRecaptureToGraph "cudaStreamBeginRecaptureToGraph" (cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) noexcept + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceReset() + return _static_cudaDeviceReset() + + +cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSynchronize() + return _static_cudaDeviceSynchronize() + + +cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetLimit(limit, value) + return _static_cudaDeviceSetLimit(limit, value) + + +cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetLimit(pValue, limit) + return _static_cudaDeviceGetLimit(pValue, limit) + + +cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + + +cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetCacheConfig(pCacheConfig) + return _static_cudaDeviceGetCacheConfig(pCacheConfig) + + +cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + + +cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetCacheConfig(cacheConfig) + return _static_cudaDeviceSetCacheConfig(cacheConfig) + + +cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetByPCIBusId(device, pciBusId) + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) + + +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetPCIBusId(pciBusId, len, device) + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) + + +cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcGetEventHandle(handle, event) + return _static_cudaIpcGetEventHandle(handle, event) + + +cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcOpenEventHandle(event, handle) + return _static_cudaIpcOpenEventHandle(event, handle) + + +cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcGetMemHandle(handle, devPtr) + return _static_cudaIpcGetMemHandle(handle, devPtr) + + +cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcOpenMemHandle(devPtr, handle, flags) + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) + + +cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaIpcCloseMemHandle(devPtr) + return _static_cudaIpcCloseMemHandle(devPtr) + + +cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + + +cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + + +cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceUnregisterAsyncNotification(device, callback) + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) + + +cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetSharedMemConfig(pConfig) + return _static_cudaDeviceGetSharedMemConfig(pConfig) + + +cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetSharedMemConfig(config) + return _static_cudaDeviceSetSharedMemConfig(config) + + +cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetLastError() + return _static_cudaGetLastError() + + +cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaPeekAtLastError() + return _static_cudaPeekAtLastError() + + +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetErrorName(error) + return _static_cudaGetErrorName(error) + + +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetErrorString(error) + return _static_cudaGetErrorString(error) + + +cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDeviceCount(count) + return _static_cudaGetDeviceCount(count) + + +cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetAttribute(value, attr, device) + return _static_cudaDeviceGetAttribute(value, attr, device) + + +cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetDefaultMemPool(memPool, device) + return _static_cudaDeviceGetDefaultMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetMemPool(device, memPool) + return _static_cudaDeviceSetMemPool(device, memPool) + + +cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetMemPool(memPool, device) + return _static_cudaDeviceGetMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + + +cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + + +cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaChooseDevice(device, prop) + return _static_cudaChooseDevice(device, prop) + + +cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaInitDevice(device, deviceFlags, flags) + return _static_cudaInitDevice(device, deviceFlags, flags) + + +cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaSetDevice(device) + return _static_cudaSetDevice(device) + + +cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDevice(device) + return _static_cudaGetDevice(device) + + +cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaSetDeviceFlags(flags) + return _static_cudaSetDeviceFlags(flags) + + +cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDeviceFlags(flags) + return _static_cudaGetDeviceFlags(flags) + + +cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCreate(pStream) + return _static_cudaStreamCreate(pStream) + + +cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCreateWithFlags(pStream, flags) + return _static_cudaStreamCreateWithFlags(pStream, flags) + + +cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCreateWithPriority(pStream, flags, priority) + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) + + +cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetPriority(hStream, priority) + return _static_cudaStreamGetPriority(hStream, priority) + + +cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetFlags(hStream, flags) + return _static_cudaStreamGetFlags(hStream, flags) + + +cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetId(hStream, streamId) + return _static_cudaStreamGetId(hStream, streamId) + + +cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetDevice(hStream, device) + return _static_cudaStreamGetDevice(hStream, device) + + +cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCtxResetPersistingL2Cache() + return _static_cudaCtxResetPersistingL2Cache() + + +cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamCopyAttributes(dst, src) + return _static_cudaStreamCopyAttributes(dst, src) + + +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetAttribute(hStream, attr, value_out) + return _static_cudaStreamGetAttribute(hStream, attr, value_out) + + +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamSetAttribute(hStream, attr, value) + return _static_cudaStreamSetAttribute(hStream, attr, value) + + +cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamDestroy(stream) + return _static_cudaStreamDestroy(stream) + + +cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamWaitEvent(stream, event, flags) + return _static_cudaStreamWaitEvent(stream, event, flags) + + +cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamAddCallback(stream, callback, userData, flags) + return _static_cudaStreamAddCallback(stream, callback, userData, flags) + + +cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamSynchronize(stream) + return _static_cudaStreamSynchronize(stream) + + +cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamQuery(stream) + return _static_cudaStreamQuery(stream) + + +cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamAttachMemAsync(stream, devPtr, length, flags) + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) + + +cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamBeginCapture(stream, mode) + return _static_cudaStreamBeginCapture(stream, mode) + + +cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + + +cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaThreadExchangeStreamCaptureMode(mode) + return _static_cudaThreadExchangeStreamCaptureMode(mode) + + +cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamEndCapture(stream, pGraph) + return _static_cudaStreamEndCapture(stream, pGraph) + + +cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamIsCapturing(stream, pCaptureStatus) + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) + + +cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventCreate(event) + return _static_cudaEventCreate(event) + + +cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventCreateWithFlags(event, flags) + return _static_cudaEventCreateWithFlags(event, flags) + + +cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventRecord(event, stream) + return _static_cudaEventRecord(event, stream) + + +cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventRecordWithFlags(event, stream, flags) + return _static_cudaEventRecordWithFlags(event, stream, flags) + + +cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventQuery(event) + return _static_cudaEventQuery(event) + + +cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventSynchronize(event) + return _static_cudaEventSynchronize(event) + + +cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventDestroy(event) + return _static_cudaEventDestroy(event) + + +cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaEventElapsedTime(ms, start, end) + return _static_cudaEventElapsedTime(ms, start, end) + + +cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaImportExternalMemory(extMem_out, memHandleDesc) + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + + +cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroyExternalMemory(extMem) + return _static_cudaDestroyExternalMemory(extMem) + + +cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaImportExternalSemaphore(extSem_out, semHandleDesc) + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) + + +cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroyExternalSemaphore(extSem) + return _static_cudaDestroyExternalSemaphore(extSem) + + +cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncSetCacheConfig(func, cacheConfig) + return _static_cudaFuncSetCacheConfig(func, cacheConfig) + + +cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetAttributes(attr, func) + return _static_cudaFuncGetAttributes(attr, func) + + +cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncSetAttribute(func, attr, value) + return _static_cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetName(name, func) + return _static_cudaFuncGetName(name, func) + + +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + + +cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLaunchHostFunc(stream, fn, userData) + return _static_cudaLaunchHostFunc(stream, fn, userData) + + +cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncSetSharedMemConfig(func, config) + return _static_cudaFuncSetSharedMemConfig(func, config) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + + +cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocManaged(devPtr, size, flags) + return _static_cudaMallocManaged(devPtr, size, flags) + + +cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMalloc(devPtr, size) + return _static_cudaMalloc(devPtr, size) + + +cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocHost(ptr, size) + return _static_cudaMallocHost(ptr, size) + + +cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocPitch(devPtr, pitch, width, height) + return _static_cudaMallocPitch(devPtr, pitch, width, height) + + +cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocArray(array, desc, width, height, flags) + return _static_cudaMallocArray(array, desc, width, height, flags) + + +cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFree(devPtr) + return _static_cudaFree(devPtr) + + +cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeHost(ptr) + return _static_cudaFreeHost(ptr) + + +cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeArray(array) + return _static_cudaFreeArray(array) + + +cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeMipmappedArray(mipmappedArray) + return _static_cudaFreeMipmappedArray(mipmappedArray) + + +cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostAlloc(pHost, size, flags) + return _static_cudaHostAlloc(pHost, size, flags) + + +cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostRegister(ptr, size, flags) + return _static_cudaHostRegister(ptr, size, flags) + + +cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostUnregister(ptr) + return _static_cudaHostUnregister(ptr) + + +cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostGetDevicePointer(pDevice, pHost, flags) + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) + + +cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaHostGetFlags(pFlags, pHost) + return _static_cudaHostGetFlags(pFlags, pHost) + + +cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMalloc3D(pitchedDevPtr, extent) + return _static_cudaMalloc3D(pitchedDevPtr, extent) + + +cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMalloc3DArray(array, desc, extent, flags) + return _static_cudaMalloc3DArray(array, desc, extent, flags) + + +cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + + +cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + + +cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3D(p) + return _static_cudaMemcpy3D(p) + + +cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DPeer(p) + return _static_cudaMemcpy3DPeer(p) + + +cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DAsync(p, stream) + return _static_cudaMemcpy3DAsync(p, stream) + + +cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DPeerAsync(p, stream) + return _static_cudaMemcpy3DPeerAsync(p, stream) + + +cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemGetInfo(free, total) + return _static_cudaMemGetInfo(free, total) + + +cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetInfo(desc, extent, flags, array) + return _static_cudaArrayGetInfo(desc, extent, flags, array) + + +cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + + +cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + + +cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + + +cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaArrayGetSparseProperties(sparseProperties, array) + return _static_cudaArrayGetSparseProperties(sparseProperties, array) + + +cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + + +cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy(dst, src, count, kind) + return _static_cudaMemcpy(dst, src, count, kind) + + +cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + + +cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + + +cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyAsync(dst, src, count, kind, stream) + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + + +cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) + + +cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) + return _static_cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) + + +cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + + +cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset(devPtr, value, count) + return _static_cudaMemset(devPtr, value, count) + + +cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset2D(devPtr, pitch, value, width, height) + return _static_cudaMemset2D(devPtr, pitch, value, width, height) + + +cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset3D(pitchedDevPtr, value, extent) + return _static_cudaMemset3D(pitchedDevPtr, value, extent) + + +cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemsetAsync(devPtr, value, count, stream) + return _static_cudaMemsetAsync(devPtr, value, count, stream) + + +cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + + +cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPrefetchAsync(devPtr, count, location, flags, stream) + return _static_cudaMemPrefetchAsync(devPtr, count, location, flags, stream) + + +cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemAdvise(devPtr, count, advice, location) + return _static_cudaMemAdvise(devPtr, count, advice, location) + + +cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + + +cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + + +cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + + +cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + + +cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + + +cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocAsync(devPtr, size, hStream) + return _static_cudaMallocAsync(devPtr, size, hStream) + + +cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFreeAsync(devPtr, hStream) + return _static_cudaFreeAsync(devPtr, hStream) + + +cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolTrimTo(memPool, minBytesToKeep) + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) + + +cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolSetAttribute(memPool, attr, value) + return _static_cudaMemPoolSetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolGetAttribute(memPool, attr, value) + return _static_cudaMemPoolGetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolSetAccess(memPool, descList, count) + return _static_cudaMemPoolSetAccess(memPool, descList, count) + + +cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolGetAccess(flags, memPool, location) + return _static_cudaMemPoolGetAccess(flags, memPool, location) + + +cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolCreate(memPool, poolProps) + return _static_cudaMemPoolCreate(memPool, poolProps) + + +cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolDestroy(memPool) + return _static_cudaMemPoolDestroy(memPool) + + +cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMallocFromPoolAsync(ptr, size, memPool, stream) + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) + + +cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + + +cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + + +cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolExportPointer(exportData, ptr) + return _static_cudaMemPoolExportPointer(exportData, ptr) + + +cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPoolImportPointer(ptr, memPool, exportData) + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) + + +cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaPointerGetAttributes(attributes, ptr) + return _static_cudaPointerGetAttributes(attributes, ptr) + + +cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + + +cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceEnablePeerAccess(peerDevice, flags) + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) + + +cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceDisablePeerAccess(peerDevice) + return _static_cudaDeviceDisablePeerAccess(peerDevice) + + +cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsUnregisterResource(resource) + return _static_cudaGraphicsUnregisterResource(resource) + + +cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsResourceSetMapFlags(resource, flags) + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) + + +cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsMapResources(count, resources, stream) + return _static_cudaGraphicsMapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsUnmapResources(count, resources, stream) + return _static_cudaGraphicsUnmapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + + +cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + + +cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetChannelDesc(desc, array) + return _static_cudaGetChannelDesc(desc, array) + + +cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCreateChannelDesc(x, y, z, w, f) + return _static_cudaCreateChannelDesc(x, y, z, w, f) + + +cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroyTextureObject(texObject) + return _static_cudaDestroyTextureObject(texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetTextureObjectResourceDesc(pResDesc, texObject) + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + + +cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaCreateSurfaceObject(pSurfObject, pResDesc) + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) + + +cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDestroySurfaceObject(surfObject) + return _static_cudaDestroySurfaceObject(surfObject) + + +cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + + +cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDriverGetVersion(driverVersion) + return _static_cudaDriverGetVersion(driverVersion) + + +cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaRuntimeGetVersion(runtimeVersion) + return _static_cudaRuntimeGetVersion(runtimeVersion) + + +cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphCreate(pGraph, flags) + return _static_cudaGraphCreate(pGraph, flags) + + +cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeGetParams(node, pNodeParams) + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeSetParams(node, pNodeParams) + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeCopyAttributes(hDst, hSrc) + return _static_cudaGraphKernelNodeCopyAttributes(hDst, hSrc) + + +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + + +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphKernelNodeSetAttribute(hNode, attr, value) + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) + + +cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + + +cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemcpyNodeGetParams(node, pNodeParams) + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemcpyNodeSetParams(node, pNodeParams) + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + + +cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemsetNodeGetParams(node, pNodeParams) + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemsetNodeSetParams(node, pNodeParams) + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphHostNodeGetParams(node, pNodeParams) + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphHostNodeSetParams(node, pNodeParams) + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + + +cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphChildGraphNodeGetGraph(node, pGraph) + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) + + +cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + + +cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventRecordNodeGetEvent(node, event_out) + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventRecordNodeSetEvent(node, event) + return _static_cudaGraphEventRecordNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventWaitNodeGetEvent(node, event_out) + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphEventWaitNodeSetEvent(node, event) + return _static_cudaGraphEventWaitNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemAllocNodeGetParams(node, params_out) + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) + + +cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + + +cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphMemFreeNodeGetParams(node, dptr_out) + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) + + +cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGraphMemTrim(device) + return _static_cudaDeviceGraphMemTrim(device) + + +cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetGraphMemAttribute(device, attr, value) + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceSetGraphMemAttribute(device, attr, value) + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphClone(pGraphClone, originalGraph) + return _static_cudaGraphClone(pGraphClone, originalGraph) + + +cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + + +cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetType(node, pType) + return _static_cudaGraphNodeGetType(node, pType) + + +cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetNodes(graph, nodes, numNodes) + return _static_cudaGraphGetNodes(graph, nodes, numNodes) + + +cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + + +cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) + return _static_cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) + + +cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) + return _static_cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) + return _static_cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) + return _static_cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphDestroyNode(node) + return _static_cudaGraphDestroyNode(node) + + +cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphInstantiate(pGraphExec, graph, flags) + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + + +cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecGetFlags(graphExec, flags) + return _static_cudaGraphExecGetFlags(graphExec, flags) + + +cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + + +cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + + +cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphUpload(graphExec, stream) + return _static_cudaGraphUpload(graphExec, stream) + + +cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphLaunch(graphExec, stream) + return _static_cudaGraphLaunch(graphExec, stream) + + +cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecDestroy(graphExec) + return _static_cudaGraphExecDestroy(graphExec) + + +cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphDestroy(graph) + return _static_cudaGraphDestroy(graph) + + +cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphDebugDotPrint(graph, path, flags) + return _static_cudaGraphDebugDotPrint(graph, path, flags) + + +cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + + +cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaUserObjectRetain(object, count) + return _static_cudaUserObjectRetain(object, count) + + +cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaUserObjectRelease(object, count) + return _static_cudaUserObjectRelease(object, count) + + +cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphRetainUserObject(graph, object, count, flags) + return _static_cudaGraphRetainUserObject(graph, object, count, flags) + + +cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphReleaseUserObject(graph, object, count) + return _static_cudaGraphReleaseUserObject(graph, object, count) + + +cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeSetParams(node, nodeParams) + return _static_cudaGraphNodeSetParams(node, nodeParams) + + +cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + + +cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + + +cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryUnload(library) + return _static_cudaLibraryUnload(library) + + +cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetKernel(pKernel, library, name) + return _static_cudaLibraryGetKernel(pKernel, library, name) + + +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetGlobal(dptr, bytes, library, name) + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetManaged(dptr, bytes, library, name) + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetUnifiedFunction(fptr, library, symbol) + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) + + +cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryGetKernelCount(count, lib) + return _static_cudaLibraryGetKernelCount(count, lib) + + +cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLibraryEnumerateKernels(kernels, numKernels, lib) + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) + + +cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaKernelSetAttributeForDevice(kernel, attr, value, device) + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) + + +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetExportTable(ppExportTable, pExportTableId) + return _static_cudaGetExportTable(ppExportTable, pExportTableId) + + +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetKernel(kernelPtr, entryFuncAddr) + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) + + +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaProfilerStart() + return _static_cudaProfilerStart() + + +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaProfilerStop() + return _static_cudaProfilerStop() + + +cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDeviceProperties(prop, device) + return _static_cudaGetDeviceProperties(prop, device) + + +cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) + return _static_cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) + + +cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) + return _static_cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) + + +cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + return _static_cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + return _static_cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + return _static_cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + return _static_cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) + return _static_cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) + + +cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + return _static_cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemGetDefaultMemPool(memPool, location, type) + return _static_cudaMemGetDefaultMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemGetMemPool(memPool, location, type) + return _static_cudaMemGetMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemSetMemPool(location, type, memPool) + return _static_cudaMemSetMemPool(location, type, memPool) + + +cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsRegisterCallback(callbackFunc, userData, callback_out) + return _static_cudaLogsRegisterCallback(callbackFunc, userData, callback_out) + + +cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsUnregisterCallback(callback) + return _static_cudaLogsUnregisterCallback(callback) + + +cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsCurrent(iterator_out, flags) + return _static_cudaLogsCurrent(iterator_out, flags) + + +cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsDumpToFile(iterator, pathToFile, flags) + return _static_cudaLogsDumpToFile(iterator, pathToFile, flags) + + +cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsDumpToMemory(iterator, buffer, size, flags) + return _static_cudaLogsDumpToMemory(iterator, buffer, size, flags) + + +cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetContainingGraph(hNode, phGraph) + return _static_cudaGraphNodeGetContainingGraph(hNode, phGraph) + + +cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetLocalId(hNode, nodeId) + return _static_cudaGraphNodeGetLocalId(hNode, nodeId) + + +cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetToolsId(hNode, toolsNodeId) + return _static_cudaGraphNodeGetToolsId(hNode, toolsNodeId) + + +cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetId(hGraph, graphID) + return _static_cudaGraphGetId(hGraph, graphID) + + +cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecGetId(hGraphExec, graphID) + return _static_cudaGraphExecGetId(hGraphExec, graphID) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) + return _static_cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetDevResource(device, resource, type) + return _static_cudaDeviceGetDevResource(device, resource, type) + + +cdef cudaError_t _cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) + return _static_cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) + + +cdef cudaError_t _cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) + return _static_cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) + + +cdef cudaError_t _cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDevResourceGenerateDesc(phDesc, resources, nbResources) + return _static_cudaDevResourceGenerateDesc(phDesc, resources, nbResources) + + +cdef cudaError_t _cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGreenCtxCreate(phCtx, desc, device, flags) + return _static_cudaGreenCtxCreate(phCtx, desc, device, flags) + + +cdef cudaError_t _cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxDestroy(ctx) + return _static_cudaExecutionCtxDestroy(ctx) + + +cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxGetDevResource(ctx, resource, type) + return _static_cudaExecutionCtxGetDevResource(ctx, resource, type) + + +cdef cudaError_t _cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxGetDevice(device, ctx) + return _static_cudaExecutionCtxGetDevice(device, ctx) + + +cdef cudaError_t _cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxGetId(ctx, ctxId) + return _static_cudaExecutionCtxGetId(ctx, ctxId) + + +cdef cudaError_t _cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) + return _static_cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) + + +cdef cudaError_t _cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxSynchronize(ctx) + return _static_cudaExecutionCtxSynchronize(ctx) + + +cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetDevResource(hStream, resource, type) + return _static_cudaStreamGetDevResource(hStream, resource, type) + + +cdef cudaError_t _cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxRecordEvent(ctx, event) + return _static_cudaExecutionCtxRecordEvent(ctx, event) + + +cdef cudaError_t _cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaExecutionCtxWaitEvent(ctx, event) + return _static_cudaExecutionCtxWaitEvent(ctx, event) + + +cdef cudaError_t _cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetExecutionCtx(ctx, device) + return _static_cudaDeviceGetExecutionCtx(ctx, device) + + +cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaFuncGetParamCount(func, paramCount) + return _static_cudaFuncGetParamCount(func, paramCount) + + +cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) + return _static_cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) + + +cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) + return _static_cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) + + +cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemcpy3DWithAttributesAsync(op, flags, stream) + return _static_cudaMemcpy3DWithAttributesAsync(op, flags, stream) + + +cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetParams(node, nodeParams) + return _static_cudaGraphNodeGetParams(node, nodeParams) + + +cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) + return _static_cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in b/cuda_bindings/cuda/bindings/_internal/runtime_ptds.pxd similarity index 67% rename from cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in rename to cuda_bindings/cuda/bindings/_internal/runtime_ptds.pxd index 259248f22ac..020d39bef87 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime_ptds.pxd.in +++ b/cuda_bindings/cuda/bindings/_internal/runtime_ptds.pxd @@ -1,1615 +1,333 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. -cdef extern from "": - """ - #define CUDA_API_PER_THREAD_DEFAULT_STREAM - """ +from ..cyruntime cimport * -include "../cyruntime_types.pxi" -{{if 'cudaDeviceReset' in found_functions}} +############################################################################### +# Wrapper functions +############################################################################### cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSynchronize' in found_functions}} - cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceProperties' in found_functions}} - -cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - -cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} - -cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo' in found_functions}} - -cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetParamCount' in found_functions}} - -cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc_v2' in found_functions}} - -cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFree' in found_functions}} - cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - +cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset' in found_functions}} - cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemDiscardBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetDefaultMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemSetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType typename, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} - cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsRegisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsUnregisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsCurrent' in found_functions}} - -cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsDumpToFile' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsDumpToMemory' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - -cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetContainingGraph' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetLocalId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetToolsId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetId' in found_functions}} - -cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetId' in found_functions}} - -cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} - -cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDevResource' in found_functions}} - -cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevSmResourceSplitByCount' in found_functions}} - +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevSmResourceSplit' in found_functions}} - cdef cudaError_t _cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevResourceGenerateDesc' in found_functions}} - cdef cudaError_t _cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGreenCtxCreate' in found_functions}} - cdef cudaError_t _cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxDestroy' in found_functions}} - cdef cudaError_t _cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetDevResource' in found_functions}} - -cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetDevice' in found_functions}} - +cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetId' in found_functions}} - cdef cudaError_t _cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxStreamCreate' in found_functions}} - cdef cudaError_t _cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxSynchronize' in found_functions}} - cdef cudaError_t _cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevResource' in found_functions}} - -cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxRecordEvent' in found_functions}} - +cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil cdef cudaError_t _cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxWaitEvent' in found_functions}} - cdef cudaError_t _cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetExecutionCtx' in found_functions}} - cdef cudaError_t _cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - -cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - -cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} - -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil -{{endif}} - -{{if 'make_cudaPos' in found_functions}} - -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} - -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - -cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - -cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} +cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil diff --git a/cuda_bindings/cuda/bindings/_internal/runtime_ptds_linux.pyx b/cuda_bindings/cuda/bindings/_internal/runtime_ptds_linux.pyx new file mode 100644 index 00000000000..1a246b628fa --- /dev/null +++ b/cuda_bindings/cuda/bindings/_internal/runtime_ptds_linux.pyx @@ -0,0 +1,2261 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. + +cdef extern from "": + """ + #define CUDA_API_PER_THREAD_DEFAULT_STREAM + """ + + +############################################################################### +# C function declarations for static cudart with per-thread default stream +# (CUDA_API_PER_THREAD_DEFAULT_STREAM causes cudaXxx to resolve to the _ptsz +# per-thread-stream symbol variants) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hDst, cudaGraphNode_t hSrc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties "cudaGetDeviceProperties" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetHostAtomicCapabilities "cudaDeviceGetHostAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAtomicCapabilities "cudaDeviceGetP2PAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo "cudaStreamGetCaptureInfo" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync "cudaSignalExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync "cudaWaitExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchBatchAsync "cudaMemPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardBatchAsync "cudaMemDiscardBatchAsync" (void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardAndPrefetchBatchAsync "cudaMemDiscardAndPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetDefaultMemPool "cudaMemGetDefaultMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetMemPool "cudaMemGetMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemSetMemPool "cudaMemSetMemPool" (cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsRegisterCallback "cudaLogsRegisterCallback" (cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsUnregisterCallback "cudaLogsUnregisterCallback" (cudaLogsCallbackHandle callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsCurrent "cudaLogsCurrent" (cudaLogIterator* iterator_out, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToFile "cudaLogsDumpToFile" (cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToMemory "cudaLogsDumpToMemory" (cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetContainingGraph "cudaGraphNodeGetContainingGraph" (cudaGraphNode_t hNode, cudaGraph_t* phGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetLocalId "cudaGraphNodeGetLocalId" (cudaGraphNode_t hNode, unsigned int* nodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetToolsId "cudaGraphNodeGetToolsId" (cudaGraphNode_t hNode, unsigned long long* toolsNodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetId "cudaGraphGetId" (cudaGraph_t hGraph, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetId "cudaGraphExecGetId" (cudaGraphExec_t hGraphExec, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate_v2 "cudaGraphConditionalHandleCreate_v2" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDevResource "cudaDeviceGetDevResource" (int device, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplitByCount "cudaDevSmResourceSplitByCount" (cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplit "cudaDevSmResourceSplit" (cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevResourceGenerateDesc "cudaDevResourceGenerateDesc" (cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGreenCtxCreate "cudaGreenCtxCreate" (cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxDestroy "cudaExecutionCtxDestroy" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevResource "cudaExecutionCtxGetDevResource" (cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevice "cudaExecutionCtxGetDevice" (int* device, cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetId "cudaExecutionCtxGetId" (cudaExecutionContext_t ctx, unsigned long long* ctxId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxStreamCreate "cudaExecutionCtxStreamCreate" (cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxSynchronize "cudaExecutionCtxSynchronize" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevResource "cudaStreamGetDevResource" (cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxRecordEvent "cudaExecutionCtxRecordEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxWaitEvent "cudaExecutionCtxWaitEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetExecutionCtx "cudaDeviceGetExecutionCtx" (cudaExecutionContext_t* ctx, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamCount "cudaFuncGetParamCount" (const void* func, size_t* paramCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc_v2 "cudaLaunchHostFunc_v2" (cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyWithAttributesAsync "cudaMemcpyWithAttributesAsync" (void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DWithAttributesAsync "cudaMemcpy3DWithAttributesAsync" (cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetParams "cudaGraphNodeGetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginRecaptureToGraph "cudaStreamBeginRecaptureToGraph" (cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) noexcept + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceReset() + + +cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSynchronize() + + +cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetLimit(limit, value) + + +cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetLimit(pValue, limit) + + +cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + + +cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetCacheConfig(pCacheConfig) + + +cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + + +cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetCacheConfig(cacheConfig) + + +cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) + + +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) + + +cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetEventHandle(handle, event) + + +cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenEventHandle(event, handle) + + +cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetMemHandle(handle, devPtr) + + +cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) + + +cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcCloseMemHandle(devPtr) + + +cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + + +cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + + +cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) + + +cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetSharedMemConfig(pConfig) + + +cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetSharedMemConfig(config) + + +cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetLastError() + + +cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPeekAtLastError() + + +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorName(error) + + +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorString(error) + + +cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceCount(count) + + +cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetAttribute(value, attr, device) + + +cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetDefaultMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetMemPool(device, memPool) + + +cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + + +cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + + +cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaChooseDevice(device, prop) + + +cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaInitDevice(device, deviceFlags, flags) + + +cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDevice(device) + + +cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDevice(device) + + +cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDeviceFlags(flags) + + +cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceFlags(flags) + + +cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreate(pStream) + + +cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithFlags(pStream, flags) + + +cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) + + +cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetPriority(hStream, priority) + + +cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetFlags(hStream, flags) + + +cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetId(hStream, streamId) + + +cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetDevice(hStream, device) + + +cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCtxResetPersistingL2Cache() + + +cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCopyAttributes(dst, src) + + +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetAttribute(hStream, attr, value_out) + + +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSetAttribute(hStream, attr, value) + + +cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamDestroy(stream) + + +cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamWaitEvent(stream, event, flags) + + +cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAddCallback(stream, callback, userData, flags) + + +cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSynchronize(stream) + + +cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamQuery(stream) + + +cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) + + +cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCapture(stream, mode) + + +cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + + +cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaThreadExchangeStreamCaptureMode(mode) + + +cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamEndCapture(stream, pGraph) + + +cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) + + +cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreate(event) + + +cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreateWithFlags(event, flags) + + +cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecord(event, stream) + + +cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecordWithFlags(event, stream, flags) + + +cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventQuery(event) + + +cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventSynchronize(event) + + +cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventDestroy(event) + + +cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventElapsedTime(ms, start, end) + + +cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + + +cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalMemory(extMem) + + +cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) + + +cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalSemaphore(extSem) + + +cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetCacheConfig(func, cacheConfig) + + +cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetAttributes(attr, func) + + +cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetName(name, func) + + +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + + +cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLaunchHostFunc(stream, fn, userData) + + +cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetSharedMemConfig(func, config) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + + +cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocManaged(devPtr, size, flags) + + +cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc(devPtr, size) + + +cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocHost(ptr, size) + + +cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocPitch(devPtr, pitch, width, height) + + +cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocArray(array, desc, width, height, flags) + + +cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFree(devPtr) + + +cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeHost(ptr) + + +cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeArray(array) + + +cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeMipmappedArray(mipmappedArray) + + +cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostAlloc(pHost, size, flags) + + +cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostRegister(ptr, size, flags) + + +cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostUnregister(ptr) + + +cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) + + +cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetFlags(pFlags, pHost) + + +cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3D(pitchedDevPtr, extent) + + +cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3DArray(array, desc, extent, flags) + + +cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + + +cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + + +cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3D(p) + + +cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeer(p) + + +cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DAsync(p, stream) + + +cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeerAsync(p, stream) + + +cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetInfo(free, total) + + +cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetInfo(desc, extent, flags, array) + + +cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + + +cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + + +cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + + +cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetSparseProperties(sparseProperties, array) + + +cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + + +cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy(dst, src, count, kind) + + +cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + + +cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + + +cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + + +cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) + + +cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) + + +cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + + +cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset(devPtr, value, count) + + +cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2D(devPtr, pitch, value, width, height) + + +cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3D(pitchedDevPtr, value, extent) + + +cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemsetAsync(devPtr, value, count, stream) + + +cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + + +cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchAsync(devPtr, count, location, flags, stream) + + +cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemAdvise(devPtr, count, advice, location) + + +cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + + +cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + + +cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + + +cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + + +cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + + +cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocAsync(devPtr, size, hStream) + + +cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeAsync(devPtr, hStream) + + +cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) + + +cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAccess(memPool, descList, count) + + +cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAccess(flags, memPool, location) + + +cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolCreate(memPool, poolProps) + + +cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolDestroy(memPool) + + +cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) + + +cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + + +cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + + +cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportPointer(exportData, ptr) + + +cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) + + +cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPointerGetAttributes(attributes, ptr) + + +cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + + +cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) + + +cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceDisablePeerAccess(peerDevice) + + +cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnregisterResource(resource) + + +cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) + + +cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsMapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnmapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + + +cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + + +cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetChannelDesc(desc, array) + + +cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: + return _static_cudaCreateChannelDesc(x, y, z, w, f) + + +cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyTextureObject(texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + + +cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) + + +cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroySurfaceObject(surfObject) + + +cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + + +cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDriverGetVersion(driverVersion) + + +cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaRuntimeGetVersion(runtimeVersion) + + +cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphCreate(pGraph, flags) + + +cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeCopyAttributes(hDst, hSrc) + + +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + + +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) + + +cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + + +cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + + +cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + + +cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) + + +cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + + +cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) + + +cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + + +cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) + + +cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGraphMemTrim(device) + + +cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphClone(pGraphClone, originalGraph) + + +cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + + +cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetType(node, pType) + + +cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetNodes(graph, nodes, numNodes) + + +cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + + +cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) + + +cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroyNode(node) + + +cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + + +cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecGetFlags(graphExec, flags) + + +cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + + +cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + + +cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphUpload(graphExec, stream) + + +cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphLaunch(graphExec, stream) + + +cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecDestroy(graphExec) + + +cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroy(graph) + + +cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDebugDotPrint(graph, path, flags) + + +cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + + +cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRetain(object, count) + + +cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRelease(object, count) + + +cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRetainUserObject(graph, object, count, flags) + + +cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphReleaseUserObject(graph, object, count) + + +cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetParams(node, nodeParams) + + +cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + + +cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + + +cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryUnload(library) + + +cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernel(pKernel, library, name) + + +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) + + +cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernelCount(count, lib) + + +cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) + + +cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) + + +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetExportTable(ppExportTable, pExportTableId) + + +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) + + +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStart() + + +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStop() + + +cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceProperties(prop, device) + + +cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) + + +cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) + + +cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) + + +cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetDefaultMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemSetMemPool(location, type, memPool) + + +cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsRegisterCallback(callbackFunc, userData, callback_out) + + +cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsUnregisterCallback(callback) + + +cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsCurrent(iterator_out, flags) + + +cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsDumpToFile(iterator, pathToFile, flags) + + +cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsDumpToMemory(iterator, buffer, size, flags) + + +cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetContainingGraph(hNode, phGraph) + + +cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetLocalId(hNode, nodeId) + + +cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetToolsId(hNode, toolsNodeId) + + +cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetId(hGraph, graphID) + + +cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecGetId(hGraphExec, graphID) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetDevResource(device, resource, type) + + +cdef cudaError_t _cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) + + +cdef cudaError_t _cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) + + +cdef cudaError_t _cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDevResourceGenerateDesc(phDesc, resources, nbResources) + + +cdef cudaError_t _cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGreenCtxCreate(phCtx, desc, device, flags) + + +cdef cudaError_t _cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxDestroy(ctx) + + +cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxGetDevResource(ctx, resource, type) + + +cdef cudaError_t _cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxGetDevice(device, ctx) + + +cdef cudaError_t _cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxGetId(ctx, ctxId) + + +cdef cudaError_t _cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) + + +cdef cudaError_t _cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxSynchronize(ctx) + + +cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetDevResource(hStream, resource, type) + + +cdef cudaError_t _cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxRecordEvent(ctx, event) + + +cdef cudaError_t _cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxWaitEvent(ctx, event) + + +cdef cudaError_t _cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetExecutionCtx(ctx, device) + + +cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetParamCount(func, paramCount) + + +cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) + + +cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) + + +cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DWithAttributesAsync(op, flags, stream) + + +cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetParams(node, nodeParams) + + +cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) diff --git a/cuda_bindings/cuda/bindings/_internal/runtime_ptds_windows.pyx b/cuda_bindings/cuda/bindings/_internal/runtime_ptds_windows.pyx new file mode 100644 index 00000000000..1a246b628fa --- /dev/null +++ b/cuda_bindings/cuda/bindings/_internal/runtime_ptds_windows.pyx @@ -0,0 +1,2261 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. + +cdef extern from "": + """ + #define CUDA_API_PER_THREAD_DEFAULT_STREAM + """ + + +############################################################################### +# C function declarations for static cudart with per-thread default stream +# (CUDA_API_PER_THREAD_DEFAULT_STREAM causes cudaXxx to resolve to the _ptsz +# per-thread-stream symbol variants) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hDst, cudaGraphNode_t hSrc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties "cudaGetDeviceProperties" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetHostAtomicCapabilities "cudaDeviceGetHostAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAtomicCapabilities "cudaDeviceGetP2PAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo "cudaStreamGetCaptureInfo" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync "cudaSignalExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync "cudaWaitExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchBatchAsync "cudaMemPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardBatchAsync "cudaMemDiscardBatchAsync" (void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardAndPrefetchBatchAsync "cudaMemDiscardAndPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetDefaultMemPool "cudaMemGetDefaultMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetMemPool "cudaMemGetMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemSetMemPool "cudaMemSetMemPool" (cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsRegisterCallback "cudaLogsRegisterCallback" (cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsUnregisterCallback "cudaLogsUnregisterCallback" (cudaLogsCallbackHandle callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsCurrent "cudaLogsCurrent" (cudaLogIterator* iterator_out, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToFile "cudaLogsDumpToFile" (cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToMemory "cudaLogsDumpToMemory" (cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetContainingGraph "cudaGraphNodeGetContainingGraph" (cudaGraphNode_t hNode, cudaGraph_t* phGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetLocalId "cudaGraphNodeGetLocalId" (cudaGraphNode_t hNode, unsigned int* nodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetToolsId "cudaGraphNodeGetToolsId" (cudaGraphNode_t hNode, unsigned long long* toolsNodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetId "cudaGraphGetId" (cudaGraph_t hGraph, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetId "cudaGraphExecGetId" (cudaGraphExec_t hGraphExec, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate_v2 "cudaGraphConditionalHandleCreate_v2" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDevResource "cudaDeviceGetDevResource" (int device, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplitByCount "cudaDevSmResourceSplitByCount" (cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplit "cudaDevSmResourceSplit" (cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevResourceGenerateDesc "cudaDevResourceGenerateDesc" (cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGreenCtxCreate "cudaGreenCtxCreate" (cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxDestroy "cudaExecutionCtxDestroy" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevResource "cudaExecutionCtxGetDevResource" (cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevice "cudaExecutionCtxGetDevice" (int* device, cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetId "cudaExecutionCtxGetId" (cudaExecutionContext_t ctx, unsigned long long* ctxId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxStreamCreate "cudaExecutionCtxStreamCreate" (cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxSynchronize "cudaExecutionCtxSynchronize" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevResource "cudaStreamGetDevResource" (cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxRecordEvent "cudaExecutionCtxRecordEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxWaitEvent "cudaExecutionCtxWaitEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetExecutionCtx "cudaDeviceGetExecutionCtx" (cudaExecutionContext_t* ctx, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamCount "cudaFuncGetParamCount" (const void* func, size_t* paramCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc_v2 "cudaLaunchHostFunc_v2" (cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyWithAttributesAsync "cudaMemcpyWithAttributesAsync" (void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DWithAttributesAsync "cudaMemcpy3DWithAttributesAsync" (cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetParams "cudaGraphNodeGetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginRecaptureToGraph "cudaStreamBeginRecaptureToGraph" (cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) noexcept + + +############################################################################### +# Wrapper functions +############################################################################### + +cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceReset() + + +cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSynchronize() + + +cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetLimit(limit, value) + + +cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetLimit(pValue, limit) + + +cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) + + +cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetCacheConfig(pCacheConfig) + + +cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) + + +cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetCacheConfig(cacheConfig) + + +cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) + + +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) + + +cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetEventHandle(handle, event) + + +cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenEventHandle(event, handle) + + +cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcGetMemHandle(handle, devPtr) + + +cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) + + +cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaIpcCloseMemHandle(devPtr) + + +cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) + + +cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) + + +cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) + + +cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetSharedMemConfig(pConfig) + + +cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetSharedMemConfig(config) + + +cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetLastError() + + +cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPeekAtLastError() + + +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorName(error) + + +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: + return _static_cudaGetErrorString(error) + + +cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceCount(count) + + +cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetAttribute(value, attr, device) + + +cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetDefaultMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetMemPool(device, memPool) + + +cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetMemPool(memPool, device) + + +cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) + + +cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) + + +cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaChooseDevice(device, prop) + + +cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaInitDevice(device, deviceFlags, flags) + + +cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDevice(device) + + +cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDevice(device) + + +cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSetDeviceFlags(flags) + + +cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceFlags(flags) + + +cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreate(pStream) + + +cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithFlags(pStream, flags) + + +cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) + + +cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetPriority(hStream, priority) + + +cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetFlags(hStream, flags) + + +cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetId(hStream, streamId) + + +cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetDevice(hStream, device) + + +cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCtxResetPersistingL2Cache() + + +cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamCopyAttributes(dst, src) + + +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetAttribute(hStream, attr, value_out) + + +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSetAttribute(hStream, attr, value) + + +cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamDestroy(stream) + + +cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamWaitEvent(stream, event, flags) + + +cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAddCallback(stream, callback, userData, flags) + + +cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamSynchronize(stream) + + +cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamQuery(stream) + + +cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) + + +cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCapture(stream, mode) + + +cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) + + +cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaThreadExchangeStreamCaptureMode(mode) + + +cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamEndCapture(stream, pGraph) + + +cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) + + +cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) + + +cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreate(event) + + +cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventCreateWithFlags(event, flags) + + +cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecord(event, stream) + + +cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventRecordWithFlags(event, stream, flags) + + +cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventQuery(event) + + +cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventSynchronize(event) + + +cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventDestroy(event) + + +cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaEventElapsedTime(ms, start, end) + + +cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) + + +cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) + + +cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalMemory(extMem) + + +cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) + + +cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyExternalSemaphore(extSem) + + +cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetCacheConfig(func, cacheConfig) + + +cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetAttributes(attr, func) + + +cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetAttribute(func, attr, value) + + +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetName(name, func) + + +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + + +cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLaunchHostFunc(stream, fn, userData) + + +cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncSetSharedMemConfig(func, config) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) + + +cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) + + +cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) + + +cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocManaged(devPtr, size, flags) + + +cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc(devPtr, size) + + +cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocHost(ptr, size) + + +cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocPitch(devPtr, pitch, width, height) + + +cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocArray(array, desc, width, height, flags) + + +cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFree(devPtr) + + +cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeHost(ptr) + + +cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeArray(array) + + +cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeMipmappedArray(mipmappedArray) + + +cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostAlloc(pHost, size, flags) + + +cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostRegister(ptr, size, flags) + + +cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostUnregister(ptr) + + +cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) + + +cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaHostGetFlags(pFlags, pHost) + + +cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3D(pitchedDevPtr, extent) + + +cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMalloc3DArray(array, desc, extent, flags) + + +cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) + + +cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) + + +cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3D(p) + + +cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeer(p) + + +cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DAsync(p, stream) + + +cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DPeerAsync(p, stream) + + +cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetInfo(free, total) + + +cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetInfo(desc, extent, flags, array) + + +cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) + + +cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) + + +cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) + + +cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaArrayGetSparseProperties(sparseProperties, array) + + +cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) + + +cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy(dst, src, count, kind) + + +cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) + + +cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) + + +cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) + + +cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) + + +cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) + + +cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) + + +cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) + + +cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) + + +cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset(devPtr, value, count) + + +cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2D(devPtr, pitch, value, width, height) + + +cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3D(pitchedDevPtr, value, extent) + + +cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemsetAsync(devPtr, value, count, stream) + + +cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) + + +cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) + + +cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchAsync(devPtr, count, location, flags, stream) + + +cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemAdvise(devPtr, count, advice, location) + + +cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) + + +cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) + + +cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) + + +cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) + + +cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) + + +cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) + + +cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) + + +cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocAsync(devPtr, size, hStream) + + +cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFreeAsync(devPtr, hStream) + + +cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) + + +cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAttribute(memPool, attr, value) + + +cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolSetAccess(memPool, descList, count) + + +cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolGetAccess(flags, memPool, location) + + +cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolCreate(memPool, poolProps) + + +cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolDestroy(memPool) + + +cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) + + +cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) + + +cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) + + +cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolExportPointer(exportData, ptr) + + +cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) + + +cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaPointerGetAttributes(attributes, ptr) + + +cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) + + +cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) + + +cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceDisablePeerAccess(peerDevice) + + +cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnregisterResource(resource) + + +cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) + + +cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsMapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsUnmapResources(count, resources, stream) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) + + +cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) + + +cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) + + +cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetChannelDesc(desc, array) + + +cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: + return _static_cudaCreateChannelDesc(x, y, z, w, f) + + +cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) + + +cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroyTextureObject(texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) + + +cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) + + +cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) + + +cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDestroySurfaceObject(surfObject) + + +cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) + + +cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDriverGetVersion(driverVersion) + + +cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaRuntimeGetVersion(runtimeVersion) + + +cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphCreate(pGraph, flags) + + +cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeCopyAttributes(hDst, hSrc) + + +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) + + +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) + + +cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) + + +cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) + + +cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) + + +cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) + + +cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) + + +cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) + + +cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventRecordNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) + + +cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) + + +cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphEventWaitNodeSetEvent(node, event) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) + + +cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) + + +cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) + + +cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) + + +cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) + + +cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGraphMemTrim(device) + + +cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) + + +cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphClone(pGraphClone, originalGraph) + + +cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) + + +cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetType(node, pType) + + +cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetNodes(graph, nodes, numNodes) + + +cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) + + +cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) + + +cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) + + +cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) + + +cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) + + +cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroyNode(node) + + +cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) + + +cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) + + +cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecGetFlags(graphExec, flags) + + +cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) + + +cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) + + +cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) + + +cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) + + +cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) + + +cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphUpload(graphExec, stream) + + +cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphLaunch(graphExec, stream) + + +cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecDestroy(graphExec) + + +cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDestroy(graph) + + +cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphDebugDotPrint(graph, path, flags) + + +cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) + + +cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRetain(object, count) + + +cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaUserObjectRelease(object, count) + + +cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphRetainUserObject(graph, object, count, flags) + + +cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphReleaseUserObject(graph, object, count) + + +cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) + + +cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeSetParams(node, nodeParams) + + +cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) + + +cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) + + +cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) + + +cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryUnload(library) + + +cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernel(pKernel, library, name) + + +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) + + +cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) + + +cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryGetKernelCount(count, lib) + + +cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) + + +cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) + + +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetExportTable(ppExportTable, pExportTableId) + + +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) + + +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStart() + + +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaProfilerStop() + + +cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGetDeviceProperties(prop, device) + + +cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) + + +cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) + + +cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) + + +cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetDefaultMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemGetMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemSetMemPool(location, type, memPool) + + +cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsRegisterCallback(callbackFunc, userData, callback_out) + + +cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsUnregisterCallback(callback) + + +cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsCurrent(iterator_out, flags) + + +cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsDumpToFile(iterator, pathToFile, flags) + + +cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLogsDumpToMemory(iterator, buffer, size, flags) + + +cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetContainingGraph(hNode, phGraph) + + +cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetLocalId(hNode, nodeId) + + +cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetToolsId(hNode, toolsNodeId) + + +cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphGetId(hGraph, graphID) + + +cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphExecGetId(hGraphExec, graphID) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetDevResource(device, resource, type) + + +cdef cudaError_t _cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) + + +cdef cudaError_t _cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) + + +cdef cudaError_t _cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDevResourceGenerateDesc(phDesc, resources, nbResources) + + +cdef cudaError_t _cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGreenCtxCreate(phCtx, desc, device, flags) + + +cdef cudaError_t _cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxDestroy(ctx) + + +cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxGetDevResource(ctx, resource, type) + + +cdef cudaError_t _cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxGetDevice(device, ctx) + + +cdef cudaError_t _cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxGetId(ctx, ctxId) + + +cdef cudaError_t _cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) + + +cdef cudaError_t _cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxSynchronize(ctx) + + +cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamGetDevResource(hStream, resource, type) + + +cdef cudaError_t _cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxRecordEvent(ctx, event) + + +cdef cudaError_t _cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaExecutionCtxWaitEvent(ctx, event) + + +cdef cudaError_t _cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaDeviceGetExecutionCtx(ctx, device) + + +cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaFuncGetParamCount(func, paramCount) + + +cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) + + +cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) + + +cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaMemcpy3DWithAttributesAsync(op, flags, stream) + + +cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaGraphNodeGetParams(node, nodeParams) + + +cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _static_cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) diff --git a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/_internal/runtime_windows.pyx similarity index 50% rename from cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in rename to cuda_bindings/cuda/bindings/_internal/runtime_windows.pyx index 5e43fc655e5..e3ffdd6c7cf 100644 --- a/cuda_bindings/cuda/bindings/_bindings/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/_internal/runtime_windows.pyx @@ -1,2919 +1,3275 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. -include "../cyruntime_functions.pxi" +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. import os -cimport cuda.bindings._bindings.cyruntime_ptds as ptds + +from libc.stdint cimport uintptr_t + +from cuda.pathfinder import load_nvidia_dynamic_lib +cimport cuda.bindings._lib.windll as windll +cimport cuda.bindings._internal.runtime_ptds as ptds cimport cython + +############################################################################### +# Per-thread default stream dispatch +############################################################################### + cdef bint __cudaPythonInit = False cdef bint __usePTDS = False -cdef int _cudaPythonInit() except -1 nogil: - global __cudaPythonInit - global __usePTDS - with gil: - __usePTDS = bool(int(os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0))) - __cudaPythonInit = True - return __usePTDS +cdef int _cudaPythonInit() except -1 nogil: + global __cudaPythonInit + global __usePTDS + with gil: + __usePTDS = bool(int(os.getenv('CUDA_PYTHON_CUDA_PER_THREAD_DEFAULT_STREAM', default=0))) + __cudaPythonInit = True + return __usePTDS -# Create a very small function to check whether we are init'ed, so the C -# compiler can inline it. cdef inline int cudaPythonInit() except -1 nogil: if __cudaPythonInit: return __usePTDS return _cudaPythonInit() -{{if 'cudaDeviceReset' in found_functions}} + +############################################################################### +# EGL/GL/VDPAU helpers (implementations delegating to driver EGL/VDPAU/GL APIs) +############################################################################### + +include "../_lib/cyruntime/cyruntime.pxi" + + +############################################################################### +# getLocalRuntimeVersion — dynamically loads cudart to read its own version +############################################################################### + +cdef cudaError_t _getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: + # Load cudart dynamically to read its embedded version number. + with gil: + loaded_dl = load_nvidia_dynamic_lib("cudart") + handle = loaded_dl._handle_uint + + cdef void* __cudaRuntimeGetVersion = windll.GetProcAddress(handle, b'cudaRuntimeGetVersion') + + if __cudaRuntimeGetVersion == NULL: + with gil: + raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {loaded_dl.abs_path}') + + # We explicitly do *NOT* cleanup the library handle here — see runtime_linux.pyx comment. + + cdef cudaError_t err = cudaSuccess + err = ( __cudaRuntimeGetVersion)(runtimeVersion) + return err + + +############################################################################### +# C function declarations for static cudart (avoids infinite recursion through +# the same-named Cython wrappers imported via `from ..cyruntime cimport *`) +############################################################################### + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceReset "cudaDeviceReset" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSynchronize "cudaDeviceSynchronize" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetLimit "cudaDeviceSetLimit" (cudaLimit limit, size_t value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetLimit "cudaDeviceGetLimit" (size_t* pValue, cudaLimit limit) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetTexture1DLinearMaxWidth "cudaDeviceGetTexture1DLinearMaxWidth" (size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetCacheConfig "cudaDeviceGetCacheConfig" (cudaFuncCache* pCacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetStreamPriorityRange "cudaDeviceGetStreamPriorityRange" (int* leastPriority, int* greatestPriority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetCacheConfig "cudaDeviceSetCacheConfig" (cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetByPCIBusId "cudaDeviceGetByPCIBusId" (int* device, const char* pciBusId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetPCIBusId "cudaDeviceGetPCIBusId" (char* pciBusId, int len, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetEventHandle "cudaIpcGetEventHandle" (cudaIpcEventHandle_t* handle, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenEventHandle "cudaIpcOpenEventHandle" (cudaEvent_t* event, cudaIpcEventHandle_t handle) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcGetMemHandle "cudaIpcGetMemHandle" (cudaIpcMemHandle_t* handle, void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcOpenMemHandle "cudaIpcOpenMemHandle" (void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaIpcCloseMemHandle "cudaIpcCloseMemHandle" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceFlushGPUDirectRDMAWrites "cudaDeviceFlushGPUDirectRDMAWrites" (cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceRegisterAsyncNotification "cudaDeviceRegisterAsyncNotification" (int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceUnregisterAsyncNotification "cudaDeviceUnregisterAsyncNotification" (int device, cudaAsyncCallbackHandle_t callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetSharedMemConfig "cudaDeviceGetSharedMemConfig" (cudaSharedMemConfig* pConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetSharedMemConfig "cudaDeviceSetSharedMemConfig" (cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetLastError "cudaGetLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPeekAtLastError "cudaPeekAtLastError" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorName "cudaGetErrorName" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + const char* _static_cudaGetErrorString "cudaGetErrorString" (cudaError_t error) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceCount "cudaGetDeviceCount" (int* count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetAttribute "cudaDeviceGetAttribute" (int* value, cudaDeviceAttr attr, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDefaultMemPool "cudaDeviceGetDefaultMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetMemPool "cudaDeviceSetMemPool" (int device, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetMemPool "cudaDeviceGetMemPool" (cudaMemPool_t* memPool, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetNvSciSyncAttributes "cudaDeviceGetNvSciSyncAttributes" (void* nvSciSyncAttrList, int device, int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAttribute "cudaDeviceGetP2PAttribute" (int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaChooseDevice "cudaChooseDevice" (int* device, const cudaDeviceProp* prop) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaInitDevice "cudaInitDevice" (int device, unsigned int deviceFlags, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDevice "cudaSetDevice" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDevice "cudaGetDevice" (int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSetDeviceFlags "cudaSetDeviceFlags" (unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceFlags "cudaGetDeviceFlags" (unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreate "cudaStreamCreate" (cudaStream_t* pStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithFlags "cudaStreamCreateWithFlags" (cudaStream_t* pStream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCreateWithPriority "cudaStreamCreateWithPriority" (cudaStream_t* pStream, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetPriority "cudaStreamGetPriority" (cudaStream_t hStream, int* priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetFlags "cudaStreamGetFlags" (cudaStream_t hStream, unsigned int* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetId "cudaStreamGetId" (cudaStream_t hStream, unsigned long long* streamId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevice "cudaStreamGetDevice" (cudaStream_t hStream, int* device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCtxResetPersistingL2Cache "cudaCtxResetPersistingL2Cache" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamCopyAttributes "cudaStreamCopyAttributes" (cudaStream_t dst, cudaStream_t src) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetAttribute "cudaStreamGetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSetAttribute "cudaStreamSetAttribute" (cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamDestroy "cudaStreamDestroy" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamWaitEvent "cudaStreamWaitEvent" (cudaStream_t stream, cudaEvent_t event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAddCallback "cudaStreamAddCallback" (cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamSynchronize "cudaStreamSynchronize" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamQuery "cudaStreamQuery" (cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamAttachMemAsync "cudaStreamAttachMemAsync" (cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCapture "cudaStreamBeginCapture" (cudaStream_t stream, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginCaptureToGraph "cudaStreamBeginCaptureToGraph" (cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaThreadExchangeStreamCaptureMode "cudaThreadExchangeStreamCaptureMode" (cudaStreamCaptureMode* mode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamEndCapture "cudaStreamEndCapture" (cudaStream_t stream, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamIsCapturing "cudaStreamIsCapturing" (cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamUpdateCaptureDependencies "cudaStreamUpdateCaptureDependencies" (cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreate "cudaEventCreate" (cudaEvent_t* event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventCreateWithFlags "cudaEventCreateWithFlags" (cudaEvent_t* event, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecord "cudaEventRecord" (cudaEvent_t event, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventRecordWithFlags "cudaEventRecordWithFlags" (cudaEvent_t event, cudaStream_t stream, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventQuery "cudaEventQuery" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventSynchronize "cudaEventSynchronize" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventDestroy "cudaEventDestroy" (cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaEventElapsedTime "cudaEventElapsedTime" (float* ms, cudaEvent_t start, cudaEvent_t end) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalMemory "cudaImportExternalMemory" (cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedBuffer "cudaExternalMemoryGetMappedBuffer" (void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExternalMemoryGetMappedMipmappedArray "cudaExternalMemoryGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalMemory "cudaDestroyExternalMemory" (cudaExternalMemory_t extMem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaImportExternalSemaphore "cudaImportExternalSemaphore" (cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyExternalSemaphore "cudaDestroyExternalSemaphore" (cudaExternalSemaphore_t extSem) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetCacheConfig "cudaFuncSetCacheConfig" (const void* func, cudaFuncCache cacheConfig) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetAttributes "cudaFuncGetAttributes" (cudaFuncAttributes* attr, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetAttribute "cudaFuncSetAttribute" (const void* func, cudaFuncAttribute attr, int value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetName "cudaFuncGetName" (const char** name, const void* func) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamInfo "cudaFuncGetParamInfo" (const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc "cudaLaunchHostFunc" (cudaStream_t stream, cudaHostFn_t fn, void* userData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncSetSharedMemConfig "cudaFuncSetSharedMemConfig" (const void* func, cudaSharedMemConfig config) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor "cudaOccupancyMaxActiveBlocksPerMultiprocessor" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyAvailableDynamicSMemPerBlock "cudaOccupancyAvailableDynamicSMemPerBlock" (size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags "cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags" (int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocManaged "cudaMallocManaged" (void** devPtr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc "cudaMalloc" (void** devPtr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocHost "cudaMallocHost" (void** ptr, size_t size) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocPitch "cudaMallocPitch" (void** devPtr, size_t* pitch, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocArray "cudaMallocArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFree "cudaFree" (void* devPtr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeHost "cudaFreeHost" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeArray "cudaFreeArray" (cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeMipmappedArray "cudaFreeMipmappedArray" (cudaMipmappedArray_t mipmappedArray) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostAlloc "cudaHostAlloc" (void** pHost, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostRegister "cudaHostRegister" (void* ptr, size_t size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostUnregister "cudaHostUnregister" (void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetDevicePointer "cudaHostGetDevicePointer" (void** pDevice, void* pHost, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaHostGetFlags "cudaHostGetFlags" (unsigned int* pFlags, void* pHost) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3D "cudaMalloc3D" (cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMalloc3DArray "cudaMalloc3DArray" (cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocMipmappedArray "cudaMallocMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetMipmappedArrayLevel "cudaGetMipmappedArrayLevel" (cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3D "cudaMemcpy3D" (const cudaMemcpy3DParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeer "cudaMemcpy3DPeer" (const cudaMemcpy3DPeerParms* p) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DAsync "cudaMemcpy3DAsync" (const cudaMemcpy3DParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DPeerAsync "cudaMemcpy3DPeerAsync" (const cudaMemcpy3DPeerParms* p, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetInfo "cudaMemGetInfo" (size_t* free, size_t* total) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetInfo "cudaArrayGetInfo" (cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetPlane "cudaArrayGetPlane" (cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetMemoryRequirements "cudaArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetMemoryRequirements "cudaMipmappedArrayGetMemoryRequirements" (cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaArrayGetSparseProperties "cudaArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaArray_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMipmappedArrayGetSparseProperties "cudaMipmappedArrayGetSparseProperties" (cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy "cudaMemcpy" (void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeer "cudaMemcpyPeer" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2D "cudaMemcpy2D" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArray "cudaMemcpy2DToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArray "cudaMemcpy2DFromArray" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DArrayToArray "cudaMemcpy2DArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyAsync "cudaMemcpyAsync" (void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyPeerAsync "cudaMemcpyPeerAsync" (void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyBatchAsync "cudaMemcpyBatchAsync" (void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DBatchAsync "cudaMemcpy3DBatchAsync" (size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DAsync "cudaMemcpy2DAsync" (void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DToArrayAsync "cudaMemcpy2DToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy2DFromArrayAsync "cudaMemcpy2DFromArrayAsync" (void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset "cudaMemset" (void* devPtr, int value, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2D "cudaMemset2D" (void* devPtr, size_t pitch, int value, size_t width, size_t height) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3D "cudaMemset3D" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemsetAsync "cudaMemsetAsync" (void* devPtr, int value, size_t count, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset2DAsync "cudaMemset2DAsync" (void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemset3DAsync "cudaMemset3DAsync" (cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchAsync "cudaMemPrefetchAsync" (const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemAdvise "cudaMemAdvise" (const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttribute "cudaMemRangeGetAttribute" (void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemRangeGetAttributes "cudaMemRangeGetAttributes" (void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArray "cudaMemcpyToArray" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArray "cudaMemcpyFromArray" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyArrayToArray "cudaMemcpyArrayToArray" (cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyToArrayAsync "cudaMemcpyToArrayAsync" (cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyFromArrayAsync "cudaMemcpyFromArrayAsync" (void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocAsync "cudaMallocAsync" (void** devPtr, size_t size, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFreeAsync "cudaFreeAsync" (void* devPtr, cudaStream_t hStream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolTrimTo "cudaMemPoolTrimTo" (cudaMemPool_t memPool, size_t minBytesToKeep) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAttribute "cudaMemPoolSetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAttribute "cudaMemPoolGetAttribute" (cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolSetAccess "cudaMemPoolSetAccess" (cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolGetAccess "cudaMemPoolGetAccess" (cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolCreate "cudaMemPoolCreate" (cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolDestroy "cudaMemPoolDestroy" (cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMallocFromPoolAsync "cudaMallocFromPoolAsync" (void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportToShareableHandle "cudaMemPoolExportToShareableHandle" (void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportFromShareableHandle "cudaMemPoolImportFromShareableHandle" (cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolExportPointer "cudaMemPoolExportPointer" (cudaMemPoolPtrExportData* exportData, void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPoolImportPointer "cudaMemPoolImportPointer" (void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaPointerGetAttributes "cudaPointerGetAttributes" (cudaPointerAttributes* attributes, const void* ptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceCanAccessPeer "cudaDeviceCanAccessPeer" (int* canAccessPeer, int device, int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceEnablePeerAccess "cudaDeviceEnablePeerAccess" (int peerDevice, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceDisablePeerAccess "cudaDeviceDisablePeerAccess" (int peerDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnregisterResource "cudaGraphicsUnregisterResource" (cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceSetMapFlags "cudaGraphicsResourceSetMapFlags" (cudaGraphicsResource_t resource, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsMapResources "cudaGraphicsMapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsUnmapResources "cudaGraphicsUnmapResources" (int count, cudaGraphicsResource_t* resources, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedPointer "cudaGraphicsResourceGetMappedPointer" (void** devPtr, size_t* size, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsSubResourceGetMappedArray "cudaGraphicsSubResourceGetMappedArray" (cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphicsResourceGetMappedMipmappedArray "cudaGraphicsResourceGetMappedMipmappedArray" (cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetChannelDesc "cudaGetChannelDesc" (cudaChannelFormatDesc* desc, cudaArray_const_t array) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaChannelFormatDesc _static_cudaCreateChannelDesc "cudaCreateChannelDesc" (int x, int y, int z, int w, cudaChannelFormatKind f) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateTextureObject "cudaCreateTextureObject" (cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroyTextureObject "cudaDestroyTextureObject" (cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceDesc "cudaGetTextureObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectTextureDesc "cudaGetTextureObjectTextureDesc" (cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetTextureObjectResourceViewDesc "cudaGetTextureObjectResourceViewDesc" (cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaCreateSurfaceObject "cudaCreateSurfaceObject" (cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDestroySurfaceObject "cudaDestroySurfaceObject" (cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetSurfaceObjectResourceDesc "cudaGetSurfaceObjectResourceDesc" (cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDriverGetVersion "cudaDriverGetVersion" (int* driverVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaRuntimeGetVersion "cudaRuntimeGetVersion" (int* runtimeVersion) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphCreate "cudaGraphCreate" (cudaGraph_t* pGraph, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddKernelNode "cudaGraphAddKernelNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetParams "cudaGraphKernelNodeGetParams" (cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetParams "cudaGraphKernelNodeSetParams" (cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeCopyAttributes "cudaGraphKernelNodeCopyAttributes" (cudaGraphNode_t hDst, cudaGraphNode_t hSrc) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeGetAttribute "cudaGraphKernelNodeGetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphKernelNodeSetAttribute "cudaGraphKernelNodeSetAttribute" (cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode "cudaGraphAddMemcpyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemcpyNode1D "cudaGraphAddMemcpyNode1D" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeGetParams "cudaGraphMemcpyNodeGetParams" (cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams "cudaGraphMemcpyNodeSetParams" (cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemcpyNodeSetParams1D "cudaGraphMemcpyNodeSetParams1D" (cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemsetNode "cudaGraphAddMemsetNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeGetParams "cudaGraphMemsetNodeGetParams" (cudaGraphNode_t node, cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemsetNodeSetParams "cudaGraphMemsetNodeSetParams" (cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddHostNode "cudaGraphAddHostNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeGetParams "cudaGraphHostNodeGetParams" (cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphHostNodeSetParams "cudaGraphHostNodeSetParams" (cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddChildGraphNode "cudaGraphAddChildGraphNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphChildGraphNodeGetGraph "cudaGraphChildGraphNodeGetGraph" (cudaGraphNode_t node, cudaGraph_t* pGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEmptyNode "cudaGraphAddEmptyNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventRecordNode "cudaGraphAddEventRecordNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeGetEvent "cudaGraphEventRecordNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventRecordNodeSetEvent "cudaGraphEventRecordNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddEventWaitNode "cudaGraphAddEventWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeGetEvent "cudaGraphEventWaitNodeGetEvent" (cudaGraphNode_t node, cudaEvent_t* event_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphEventWaitNodeSetEvent "cudaGraphEventWaitNodeSetEvent" (cudaGraphNode_t node, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresSignalNode "cudaGraphAddExternalSemaphoresSignalNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeGetParams "cudaGraphExternalSemaphoresSignalNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresSignalNodeSetParams "cudaGraphExternalSemaphoresSignalNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddExternalSemaphoresWaitNode "cudaGraphAddExternalSemaphoresWaitNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeGetParams "cudaGraphExternalSemaphoresWaitNodeGetParams" (cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExternalSemaphoresWaitNodeSetParams "cudaGraphExternalSemaphoresWaitNodeSetParams" (cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemAllocNode "cudaGraphAddMemAllocNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemAllocNodeGetParams "cudaGraphMemAllocNodeGetParams" (cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddMemFreeNode "cudaGraphAddMemFreeNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphMemFreeNodeGetParams "cudaGraphMemFreeNodeGetParams" (cudaGraphNode_t node, void* dptr_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGraphMemTrim "cudaDeviceGraphMemTrim" (int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetGraphMemAttribute "cudaDeviceGetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceSetGraphMemAttribute "cudaDeviceSetGraphMemAttribute" (int device, cudaGraphMemAttributeType attr, void* value) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphClone "cudaGraphClone" (cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeFindInClone "cudaGraphNodeFindInClone" (cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetType "cudaGraphNodeGetType" (cudaGraphNode_t node, cudaGraphNodeType* pType) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetNodes "cudaGraphGetNodes" (cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetRootNodes "cudaGraphGetRootNodes" (cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetEdges "cudaGraphGetEdges" (cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependencies "cudaGraphNodeGetDependencies" (cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetDependentNodes "cudaGraphNodeGetDependentNodes" (cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddDependencies "cudaGraphAddDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRemoveDependencies "cudaGraphRemoveDependencies" (cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroyNode "cudaGraphDestroyNode" (cudaGraphNode_t node) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiate "cudaGraphInstantiate" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithFlags "cudaGraphInstantiateWithFlags" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphInstantiateWithParams "cudaGraphInstantiateWithParams" (cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetFlags "cudaGraphExecGetFlags" (cudaGraphExec_t graphExec, unsigned long long* flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecKernelNodeSetParams "cudaGraphExecKernelNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams "cudaGraphExecMemcpyNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemcpyNodeSetParams1D "cudaGraphExecMemcpyNodeSetParams1D" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecMemsetNodeSetParams "cudaGraphExecMemsetNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecHostNodeSetParams "cudaGraphExecHostNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecChildGraphNodeSetParams "cudaGraphExecChildGraphNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventRecordNodeSetEvent "cudaGraphExecEventRecordNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecEventWaitNodeSetEvent "cudaGraphExecEventWaitNodeSetEvent" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams "cudaGraphExecExternalSemaphoresSignalNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams "cudaGraphExecExternalSemaphoresWaitNodeSetParams" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetEnabled "cudaGraphNodeSetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetEnabled "cudaGraphNodeGetEnabled" (cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecUpdate "cudaGraphExecUpdate" (cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphUpload "cudaGraphUpload" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphLaunch "cudaGraphLaunch" (cudaGraphExec_t graphExec, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecDestroy "cudaGraphExecDestroy" (cudaGraphExec_t graphExec) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDestroy "cudaGraphDestroy" (cudaGraph_t graph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphDebugDotPrint "cudaGraphDebugDotPrint" (cudaGraph_t graph, const char* path, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectCreate "cudaUserObjectCreate" (cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRetain "cudaUserObjectRetain" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaUserObjectRelease "cudaUserObjectRelease" (cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphRetainUserObject "cudaGraphRetainUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphReleaseUserObject "cudaGraphReleaseUserObject" (cudaGraph_t graph, cudaUserObject_t object, unsigned int count) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphAddNode "cudaGraphAddNode" (cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeSetParams "cudaGraphNodeSetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecNodeSetParams "cudaGraphExecNodeSetParams" (cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate "cudaGraphConditionalHandleCreate" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPoint "cudaGetDriverEntryPoint" (const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDriverEntryPointByVersion "cudaGetDriverEntryPointByVersion" (const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadData "cudaLibraryLoadData" (cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryLoadFromFile "cudaLibraryLoadFromFile" (cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryUnload "cudaLibraryUnload" (cudaLibrary_t library) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernel "cudaLibraryGetKernel" (cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetGlobal "cudaLibraryGetGlobal" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetManaged "cudaLibraryGetManaged" (void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetUnifiedFunction "cudaLibraryGetUnifiedFunction" (void** fptr, cudaLibrary_t library, const char* symbol) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryGetKernelCount "cudaLibraryGetKernelCount" (unsigned int* count, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLibraryEnumerateKernels "cudaLibraryEnumerateKernels" (cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaKernelSetAttributeForDevice "cudaKernelSetAttributeForDevice" (cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetExportTable "cudaGetExportTable" (const void** ppExportTable, const cudaUUID_t* pExportTableId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetKernel "cudaGetKernel" (cudaKernel_t* kernelPtr, const void* entryFuncAddr) noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStart "cudaProfilerStart" () noexcept + +cdef extern from 'cuda_profiler_api.h' nogil: + cudaError_t _static_cudaProfilerStop "cudaProfilerStop" () noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGetDeviceProperties "cudaGetDeviceProperties" (cudaDeviceProp* prop, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetHostAtomicCapabilities "cudaDeviceGetHostAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetP2PAtomicCapabilities "cudaDeviceGetP2PAtomicCapabilities" (unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetCaptureInfo "cudaStreamGetCaptureInfo" (cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaSignalExternalSemaphoresAsync "cudaSignalExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaWaitExternalSemaphoresAsync "cudaWaitExternalSemaphoresAsync" (const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemPrefetchBatchAsync "cudaMemPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardBatchAsync "cudaMemDiscardBatchAsync" (void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemDiscardAndPrefetchBatchAsync "cudaMemDiscardAndPrefetchBatchAsync" (void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetDefaultMemPool "cudaMemGetDefaultMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemGetMemPool "cudaMemGetMemPool" (cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemSetMemPool "cudaMemSetMemPool" (cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsRegisterCallback "cudaLogsRegisterCallback" (cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsUnregisterCallback "cudaLogsUnregisterCallback" (cudaLogsCallbackHandle callback) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsCurrent "cudaLogsCurrent" (cudaLogIterator* iterator_out, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToFile "cudaLogsDumpToFile" (cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLogsDumpToMemory "cudaLogsDumpToMemory" (cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetContainingGraph "cudaGraphNodeGetContainingGraph" (cudaGraphNode_t hNode, cudaGraph_t* phGraph) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetLocalId "cudaGraphNodeGetLocalId" (cudaGraphNode_t hNode, unsigned int* nodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetToolsId "cudaGraphNodeGetToolsId" (cudaGraphNode_t hNode, unsigned long long* toolsNodeId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphGetId "cudaGraphGetId" (cudaGraph_t hGraph, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphExecGetId "cudaGraphExecGetId" (cudaGraphExec_t hGraphExec, unsigned int* graphID) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphConditionalHandleCreate_v2 "cudaGraphConditionalHandleCreate_v2" (cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetDevResource "cudaDeviceGetDevResource" (int device, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplitByCount "cudaDevSmResourceSplitByCount" (cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevSmResourceSplit "cudaDevSmResourceSplit" (cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDevResourceGenerateDesc "cudaDevResourceGenerateDesc" (cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGreenCtxCreate "cudaGreenCtxCreate" (cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxDestroy "cudaExecutionCtxDestroy" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevResource "cudaExecutionCtxGetDevResource" (cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetDevice "cudaExecutionCtxGetDevice" (int* device, cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxGetId "cudaExecutionCtxGetId" (cudaExecutionContext_t ctx, unsigned long long* ctxId) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxStreamCreate "cudaExecutionCtxStreamCreate" (cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxSynchronize "cudaExecutionCtxSynchronize" (cudaExecutionContext_t ctx) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamGetDevResource "cudaStreamGetDevResource" (cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxRecordEvent "cudaExecutionCtxRecordEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaExecutionCtxWaitEvent "cudaExecutionCtxWaitEvent" (cudaExecutionContext_t ctx, cudaEvent_t event) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaDeviceGetExecutionCtx "cudaDeviceGetExecutionCtx" (cudaExecutionContext_t* ctx, int device) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaFuncGetParamCount "cudaFuncGetParamCount" (const void* func, size_t* paramCount) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaLaunchHostFunc_v2 "cudaLaunchHostFunc_v2" (cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpyWithAttributesAsync "cudaMemcpyWithAttributesAsync" (void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaMemcpy3DWithAttributesAsync "cudaMemcpy3DWithAttributesAsync" (cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaGraphNodeGetParams "cudaGraphNodeGetParams" (cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) noexcept + +cdef extern from 'cuda_runtime_api.h' nogil: + cudaError_t _static_cudaStreamBeginRecaptureToGraph "cudaStreamBeginRecaptureToGraph" (cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) noexcept + + +############################################################################### +# Wrapper functions +############################################################################### cdef cudaError_t _cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceReset() - return cudaDeviceReset() -{{endif}} + return _static_cudaDeviceReset() -{{if 'cudaDeviceSynchronize' in found_functions}} cdef cudaError_t _cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSynchronize() - return cudaDeviceSynchronize() -{{endif}} + return _static_cudaDeviceSynchronize() -{{if 'cudaDeviceSetLimit' in found_functions}} cdef cudaError_t _cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetLimit(limit, value) - return cudaDeviceSetLimit(limit, value) -{{endif}} + return _static_cudaDeviceSetLimit(limit, value) -{{if 'cudaDeviceGetLimit' in found_functions}} cdef cudaError_t _cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetLimit(pValue, limit) - return cudaDeviceGetLimit(pValue, limit) -{{endif}} + return _static_cudaDeviceGetLimit(pValue, limit) -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} cdef cudaError_t _cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) - return cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{endif}} + return _static_cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{if 'cudaDeviceGetCacheConfig' in found_functions}} cdef cudaError_t _cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetCacheConfig(pCacheConfig) - return cudaDeviceGetCacheConfig(pCacheConfig) -{{endif}} + return _static_cudaDeviceGetCacheConfig(pCacheConfig) -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} cdef cudaError_t _cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) - return cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{endif}} + return _static_cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{if 'cudaDeviceSetCacheConfig' in found_functions}} cdef cudaError_t _cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetCacheConfig(cacheConfig) - return cudaDeviceSetCacheConfig(cacheConfig) -{{endif}} + return _static_cudaDeviceSetCacheConfig(cacheConfig) -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} cdef cudaError_t _cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetByPCIBusId(device, pciBusId) - return cudaDeviceGetByPCIBusId(device, pciBusId) -{{endif}} + return _static_cudaDeviceGetByPCIBusId(device, pciBusId) -{{if 'cudaDeviceGetPCIBusId' in found_functions}} -cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaDeviceGetPCIBusId(pciBusId, length, device) - return cudaDeviceGetPCIBusId(pciBusId, length, device) -{{endif}} + return ptds._cudaDeviceGetPCIBusId(pciBusId, len, device) + return _static_cudaDeviceGetPCIBusId(pciBusId, len, device) -{{if 'cudaIpcGetEventHandle' in found_functions}} cdef cudaError_t _cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcGetEventHandle(handle, event) - return cudaIpcGetEventHandle(handle, event) -{{endif}} + return _static_cudaIpcGetEventHandle(handle, event) -{{if 'cudaIpcOpenEventHandle' in found_functions}} cdef cudaError_t _cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcOpenEventHandle(event, handle) - return cudaIpcOpenEventHandle(event, handle) -{{endif}} + return _static_cudaIpcOpenEventHandle(event, handle) -{{if 'cudaIpcGetMemHandle' in found_functions}} cdef cudaError_t _cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcGetMemHandle(handle, devPtr) - return cudaIpcGetMemHandle(handle, devPtr) -{{endif}} + return _static_cudaIpcGetMemHandle(handle, devPtr) -{{if 'cudaIpcOpenMemHandle' in found_functions}} cdef cudaError_t _cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcOpenMemHandle(devPtr, handle, flags) - return cudaIpcOpenMemHandle(devPtr, handle, flags) -{{endif}} + return _static_cudaIpcOpenMemHandle(devPtr, handle, flags) -{{if 'cudaIpcCloseMemHandle' in found_functions}} cdef cudaError_t _cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaIpcCloseMemHandle(devPtr) - return cudaIpcCloseMemHandle(devPtr) -{{endif}} + return _static_cudaIpcCloseMemHandle(devPtr) -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} cdef cudaError_t _cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) - return cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{endif}} + return _static_cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} cdef cudaError_t _cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) - return cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{endif}} + return _static_cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} cdef cudaError_t _cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceUnregisterAsyncNotification(device, callback) - return cudaDeviceUnregisterAsyncNotification(device, callback) -{{endif}} + return _static_cudaDeviceUnregisterAsyncNotification(device, callback) -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} cdef cudaError_t _cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetSharedMemConfig(pConfig) - return cudaDeviceGetSharedMemConfig(pConfig) -{{endif}} + return _static_cudaDeviceGetSharedMemConfig(pConfig) -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} cdef cudaError_t _cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetSharedMemConfig(config) - return cudaDeviceSetSharedMemConfig(config) -{{endif}} + return _static_cudaDeviceSetSharedMemConfig(config) -{{if 'cudaGetLastError' in found_functions}} cdef cudaError_t _cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetLastError() - return cudaGetLastError() -{{endif}} + return _static_cudaGetLastError() -{{if 'cudaPeekAtLastError' in found_functions}} cdef cudaError_t _cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaPeekAtLastError() - return cudaPeekAtLastError() -{{endif}} + return _static_cudaPeekAtLastError() -{{if 'cudaGetErrorName' in found_functions}} -cdef const char* _cudaGetErrorName(cudaError_t error) except ?NULL nogil: +cdef const char* _cudaGetErrorName(cudaError_t error) except?NULL nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetErrorName(error) - return cudaGetErrorName(error) -{{endif}} + return _static_cudaGetErrorName(error) -{{if 'cudaGetErrorString' in found_functions}} -cdef const char* _cudaGetErrorString(cudaError_t error) except ?NULL nogil: +cdef const char* _cudaGetErrorString(cudaError_t error) except?NULL nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetErrorString(error) - return cudaGetErrorString(error) -{{endif}} + return _static_cudaGetErrorString(error) -{{if 'cudaGetDeviceCount' in found_functions}} cdef cudaError_t _cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDeviceCount(count) - return cudaGetDeviceCount(count) -{{endif}} - -{{if 'cudaGetDeviceProperties' in found_functions}} - -cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGetDeviceProperties(prop, device) - return cudaGetDeviceProperties(prop, device) -{{endif}} + return _static_cudaGetDeviceCount(count) -{{if 'cudaDeviceGetAttribute' in found_functions}} cdef cudaError_t _cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetAttribute(value, attr, device) - return cudaDeviceGetAttribute(value, attr, device) -{{endif}} - -{{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) - return cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) -{{endif}} + return _static_cudaDeviceGetAttribute(value, attr, device) -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} cdef cudaError_t _cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetDefaultMemPool(memPool, device) - return cudaDeviceGetDefaultMemPool(memPool, device) -{{endif}} + return _static_cudaDeviceGetDefaultMemPool(memPool, device) -{{if 'cudaDeviceSetMemPool' in found_functions}} cdef cudaError_t _cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetMemPool(device, memPool) - return cudaDeviceSetMemPool(device, memPool) -{{endif}} + return _static_cudaDeviceSetMemPool(device, memPool) -{{if 'cudaDeviceGetMemPool' in found_functions}} cdef cudaError_t _cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetMemPool(memPool, device) - return cudaDeviceGetMemPool(memPool, device) -{{endif}} + return _static_cudaDeviceGetMemPool(memPool, device) -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} cdef cudaError_t _cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) - return cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{endif}} + return _static_cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} cdef cudaError_t _cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) - return cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{endif}} + return _static_cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) - return cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} cdef cudaError_t _cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaChooseDevice(device, prop) - return cudaChooseDevice(device, prop) -{{endif}} + return _static_cudaChooseDevice(device, prop) -{{if 'cudaInitDevice' in found_functions}} cdef cudaError_t _cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaInitDevice(device, deviceFlags, flags) - return cudaInitDevice(device, deviceFlags, flags) -{{endif}} + return _static_cudaInitDevice(device, deviceFlags, flags) -{{if 'cudaSetDevice' in found_functions}} cdef cudaError_t _cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaSetDevice(device) - return cudaSetDevice(device) -{{endif}} + return _static_cudaSetDevice(device) -{{if 'cudaGetDevice' in found_functions}} cdef cudaError_t _cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDevice(device) - return cudaGetDevice(device) -{{endif}} + return _static_cudaGetDevice(device) -{{if 'cudaSetDeviceFlags' in found_functions}} cdef cudaError_t _cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaSetDeviceFlags(flags) - return cudaSetDeviceFlags(flags) -{{endif}} + return _static_cudaSetDeviceFlags(flags) -{{if 'cudaGetDeviceFlags' in found_functions}} cdef cudaError_t _cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDeviceFlags(flags) - return cudaGetDeviceFlags(flags) -{{endif}} + return _static_cudaGetDeviceFlags(flags) -{{if 'cudaStreamCreate' in found_functions}} cdef cudaError_t _cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCreate(pStream) - return cudaStreamCreate(pStream) -{{endif}} + return _static_cudaStreamCreate(pStream) -{{if 'cudaStreamCreateWithFlags' in found_functions}} cdef cudaError_t _cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCreateWithFlags(pStream, flags) - return cudaStreamCreateWithFlags(pStream, flags) -{{endif}} + return _static_cudaStreamCreateWithFlags(pStream, flags) -{{if 'cudaStreamCreateWithPriority' in found_functions}} cdef cudaError_t _cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCreateWithPriority(pStream, flags, priority) - return cudaStreamCreateWithPriority(pStream, flags, priority) -{{endif}} + return _static_cudaStreamCreateWithPriority(pStream, flags, priority) -{{if 'cudaStreamGetPriority' in found_functions}} cdef cudaError_t _cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetPriority(hStream, priority) - return cudaStreamGetPriority(hStream, priority) -{{endif}} + return _static_cudaStreamGetPriority(hStream, priority) -{{if 'cudaStreamGetFlags' in found_functions}} cdef cudaError_t _cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetFlags(hStream, flags) - return cudaStreamGetFlags(hStream, flags) -{{endif}} + return _static_cudaStreamGetFlags(hStream, flags) -{{if 'cudaStreamGetId' in found_functions}} cdef cudaError_t _cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetId(hStream, streamId) - return cudaStreamGetId(hStream, streamId) -{{endif}} + return _static_cudaStreamGetId(hStream, streamId) -{{if 'cudaStreamGetDevice' in found_functions}} cdef cudaError_t _cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetDevice(hStream, device) - return cudaStreamGetDevice(hStream, device) -{{endif}} + return _static_cudaStreamGetDevice(hStream, device) -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} cdef cudaError_t _cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCtxResetPersistingL2Cache() - return cudaCtxResetPersistingL2Cache() -{{endif}} + return _static_cudaCtxResetPersistingL2Cache() -{{if 'cudaStreamCopyAttributes' in found_functions}} cdef cudaError_t _cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamCopyAttributes(dst, src) - return cudaStreamCopyAttributes(dst, src) -{{endif}} + return _static_cudaStreamCopyAttributes(dst, src) -{{if 'cudaStreamGetAttribute' in found_functions}} -cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamGetAttribute(hStream, attr, value_out) - return cudaStreamGetAttribute(hStream, attr, value_out) -{{endif}} + return _static_cudaStreamGetAttribute(hStream, attr, value_out) -{{if 'cudaStreamSetAttribute' in found_functions}} -cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamSetAttribute(hStream, attr, value) - return cudaStreamSetAttribute(hStream, attr, value) -{{endif}} + return _static_cudaStreamSetAttribute(hStream, attr, value) -{{if 'cudaStreamDestroy' in found_functions}} cdef cudaError_t _cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamDestroy(stream) - return cudaStreamDestroy(stream) -{{endif}} + return _static_cudaStreamDestroy(stream) -{{if 'cudaStreamWaitEvent' in found_functions}} cdef cudaError_t _cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamWaitEvent(stream, event, flags) - return cudaStreamWaitEvent(stream, event, flags) -{{endif}} + return _static_cudaStreamWaitEvent(stream, event, flags) -{{if 'cudaStreamAddCallback' in found_functions}} cdef cudaError_t _cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamAddCallback(stream, callback, userData, flags) - return cudaStreamAddCallback(stream, callback, userData, flags) -{{endif}} + return _static_cudaStreamAddCallback(stream, callback, userData, flags) -{{if 'cudaStreamSynchronize' in found_functions}} cdef cudaError_t _cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamSynchronize(stream) - return cudaStreamSynchronize(stream) -{{endif}} + return _static_cudaStreamSynchronize(stream) -{{if 'cudaStreamQuery' in found_functions}} cdef cudaError_t _cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamQuery(stream) - return cudaStreamQuery(stream) -{{endif}} + return _static_cudaStreamQuery(stream) -{{if 'cudaStreamAttachMemAsync' in found_functions}} cdef cudaError_t _cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamAttachMemAsync(stream, devPtr, length, flags) - return cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{endif}} + return _static_cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{if 'cudaStreamBeginCapture' in found_functions}} cdef cudaError_t _cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamBeginCapture(stream, mode) - return cudaStreamBeginCapture(stream, mode) -{{endif}} - -{{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} + return _static_cudaStreamBeginCapture(stream, mode) -cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) - return cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} cdef cudaError_t _cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) - return cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{endif}} + return _static_cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} cdef cudaError_t _cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaThreadExchangeStreamCaptureMode(mode) - return cudaThreadExchangeStreamCaptureMode(mode) -{{endif}} + return _static_cudaThreadExchangeStreamCaptureMode(mode) -{{if 'cudaStreamEndCapture' in found_functions}} cdef cudaError_t _cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamEndCapture(stream, pGraph) - return cudaStreamEndCapture(stream, pGraph) -{{endif}} + return _static_cudaStreamEndCapture(stream, pGraph) -{{if 'cudaStreamIsCapturing' in found_functions}} cdef cudaError_t _cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamIsCapturing(stream, pCaptureStatus) - return cudaStreamIsCapturing(stream, pCaptureStatus) -{{endif}} + return _static_cudaStreamIsCapturing(stream, pCaptureStatus) -{{if 'cudaStreamGetCaptureInfo' in found_functions}} - -cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) - return cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} cdef cudaError_t _cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) - return cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) -{{endif}} + return _static_cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) -{{if 'cudaEventCreate' in found_functions}} cdef cudaError_t _cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventCreate(event) - return cudaEventCreate(event) -{{endif}} + return _static_cudaEventCreate(event) -{{if 'cudaEventCreateWithFlags' in found_functions}} cdef cudaError_t _cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventCreateWithFlags(event, flags) - return cudaEventCreateWithFlags(event, flags) -{{endif}} + return _static_cudaEventCreateWithFlags(event, flags) -{{if 'cudaEventRecord' in found_functions}} cdef cudaError_t _cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventRecord(event, stream) - return cudaEventRecord(event, stream) -{{endif}} + return _static_cudaEventRecord(event, stream) -{{if 'cudaEventRecordWithFlags' in found_functions}} cdef cudaError_t _cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventRecordWithFlags(event, stream, flags) - return cudaEventRecordWithFlags(event, stream, flags) -{{endif}} + return _static_cudaEventRecordWithFlags(event, stream, flags) -{{if 'cudaEventQuery' in found_functions}} cdef cudaError_t _cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventQuery(event) - return cudaEventQuery(event) -{{endif}} + return _static_cudaEventQuery(event) -{{if 'cudaEventSynchronize' in found_functions}} cdef cudaError_t _cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventSynchronize(event) - return cudaEventSynchronize(event) -{{endif}} + return _static_cudaEventSynchronize(event) -{{if 'cudaEventDestroy' in found_functions}} cdef cudaError_t _cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventDestroy(event) - return cudaEventDestroy(event) -{{endif}} + return _static_cudaEventDestroy(event) -{{if 'cudaEventElapsedTime' in found_functions}} cdef cudaError_t _cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaEventElapsedTime(ms, start, end) - return cudaEventElapsedTime(ms, start, end) -{{endif}} + return _static_cudaEventElapsedTime(ms, start, end) -{{if 'cudaImportExternalMemory' in found_functions}} cdef cudaError_t _cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaImportExternalMemory(extMem_out, memHandleDesc) - return cudaImportExternalMemory(extMem_out, memHandleDesc) -{{endif}} + return _static_cudaImportExternalMemory(extMem_out, memHandleDesc) -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} cdef cudaError_t _cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) - return cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{endif}} + return _static_cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} cdef cudaError_t _cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) - return cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{endif}} + return _static_cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{if 'cudaDestroyExternalMemory' in found_functions}} cdef cudaError_t _cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroyExternalMemory(extMem) - return cudaDestroyExternalMemory(extMem) -{{endif}} + return _static_cudaDestroyExternalMemory(extMem) -{{if 'cudaImportExternalSemaphore' in found_functions}} cdef cudaError_t _cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaImportExternalSemaphore(extSem_out, semHandleDesc) - return cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{endif}} + return _static_cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) - return cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) - return cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} cdef cudaError_t _cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroyExternalSemaphore(extSem) - return cudaDestroyExternalSemaphore(extSem) -{{endif}} + return _static_cudaDestroyExternalSemaphore(extSem) -{{if 'cudaFuncSetCacheConfig' in found_functions}} cdef cudaError_t _cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncSetCacheConfig(func, cacheConfig) - return cudaFuncSetCacheConfig(func, cacheConfig) -{{endif}} + return _static_cudaFuncSetCacheConfig(func, cacheConfig) -{{if 'cudaFuncGetAttributes' in found_functions}} cdef cudaError_t _cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncGetAttributes(attr, func) - return cudaFuncGetAttributes(attr, func) -{{endif}} + return _static_cudaFuncGetAttributes(attr, func) -{{if 'cudaFuncSetAttribute' in found_functions}} cdef cudaError_t _cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncSetAttribute(func, attr, value) - return cudaFuncSetAttribute(func, attr, value) -{{endif}} + return _static_cudaFuncSetAttribute(func, attr, value) -{{if 'cudaFuncGetParamCount' in found_functions}} -cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaFuncGetParamCount(func, paramCount) - return cudaFuncGetParamCount(func, paramCount) -{{endif}} + return ptds._cudaFuncGetName(name, func) + return _static_cudaFuncGetName(name, func) -{{if 'cudaLaunchHostFunc' in found_functions}} -cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaLaunchHostFunc(stream, fn, userData) - return cudaLaunchHostFunc(stream, fn, userData) -{{endif}} + return ptds._cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) + return _static_cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) -{{if 'cudaLaunchHostFunc_v2' in found_functions}} -cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) - return cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) -{{endif}} + return ptds._cudaLaunchHostFunc(stream, fn, userData) + return _static_cudaLaunchHostFunc(stream, fn, userData) -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} cdef cudaError_t _cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFuncSetSharedMemConfig(func, config) - return cudaFuncSetSharedMemConfig(func, config) -{{endif}} + return _static_cudaFuncSetSharedMemConfig(func, config) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) - return cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{endif}} + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} cdef cudaError_t _cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) - return cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{endif}} + return _static_cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} cdef cudaError_t _cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) - return cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{endif}} + return _static_cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{if 'cudaMallocManaged' in found_functions}} cdef cudaError_t _cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocManaged(devPtr, size, flags) - return cudaMallocManaged(devPtr, size, flags) -{{endif}} + return _static_cudaMallocManaged(devPtr, size, flags) -{{if 'cudaMalloc' in found_functions}} cdef cudaError_t _cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMalloc(devPtr, size) - return cudaMalloc(devPtr, size) -{{endif}} + return _static_cudaMalloc(devPtr, size) -{{if 'cudaMallocHost' in found_functions}} cdef cudaError_t _cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocHost(ptr, size) - return cudaMallocHost(ptr, size) -{{endif}} + return _static_cudaMallocHost(ptr, size) -{{if 'cudaMallocPitch' in found_functions}} cdef cudaError_t _cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocPitch(devPtr, pitch, width, height) - return cudaMallocPitch(devPtr, pitch, width, height) -{{endif}} + return _static_cudaMallocPitch(devPtr, pitch, width, height) -{{if 'cudaMallocArray' in found_functions}} cdef cudaError_t _cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocArray(array, desc, width, height, flags) - return cudaMallocArray(array, desc, width, height, flags) -{{endif}} + return _static_cudaMallocArray(array, desc, width, height, flags) -{{if 'cudaFree' in found_functions}} cdef cudaError_t _cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFree(devPtr) - return cudaFree(devPtr) -{{endif}} + return _static_cudaFree(devPtr) -{{if 'cudaFreeHost' in found_functions}} cdef cudaError_t _cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeHost(ptr) - return cudaFreeHost(ptr) -{{endif}} + return _static_cudaFreeHost(ptr) -{{if 'cudaFreeArray' in found_functions}} cdef cudaError_t _cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeArray(array) - return cudaFreeArray(array) -{{endif}} + return _static_cudaFreeArray(array) -{{if 'cudaFreeMipmappedArray' in found_functions}} cdef cudaError_t _cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeMipmappedArray(mipmappedArray) - return cudaFreeMipmappedArray(mipmappedArray) -{{endif}} + return _static_cudaFreeMipmappedArray(mipmappedArray) -{{if 'cudaHostAlloc' in found_functions}} cdef cudaError_t _cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostAlloc(pHost, size, flags) - return cudaHostAlloc(pHost, size, flags) -{{endif}} + return _static_cudaHostAlloc(pHost, size, flags) -{{if 'cudaHostRegister' in found_functions}} cdef cudaError_t _cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostRegister(ptr, size, flags) - return cudaHostRegister(ptr, size, flags) -{{endif}} + return _static_cudaHostRegister(ptr, size, flags) -{{if 'cudaHostUnregister' in found_functions}} cdef cudaError_t _cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostUnregister(ptr) - return cudaHostUnregister(ptr) -{{endif}} + return _static_cudaHostUnregister(ptr) -{{if 'cudaHostGetDevicePointer' in found_functions}} cdef cudaError_t _cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostGetDevicePointer(pDevice, pHost, flags) - return cudaHostGetDevicePointer(pDevice, pHost, flags) -{{endif}} + return _static_cudaHostGetDevicePointer(pDevice, pHost, flags) -{{if 'cudaHostGetFlags' in found_functions}} cdef cudaError_t _cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaHostGetFlags(pFlags, pHost) - return cudaHostGetFlags(pFlags, pHost) -{{endif}} + return _static_cudaHostGetFlags(pFlags, pHost) -{{if 'cudaMalloc3D' in found_functions}} cdef cudaError_t _cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMalloc3D(pitchedDevPtr, extent) - return cudaMalloc3D(pitchedDevPtr, extent) -{{endif}} + return _static_cudaMalloc3D(pitchedDevPtr, extent) -{{if 'cudaMalloc3DArray' in found_functions}} cdef cudaError_t _cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMalloc3DArray(array, desc, extent, flags) - return cudaMalloc3DArray(array, desc, extent, flags) -{{endif}} + return _static_cudaMalloc3DArray(array, desc, extent, flags) -{{if 'cudaMallocMipmappedArray' in found_functions}} cdef cudaError_t _cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) - return cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{endif}} + return _static_cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} cdef cudaError_t _cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) - return cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{endif}} + return _static_cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{if 'cudaMemcpy3D' in found_functions}} cdef cudaError_t _cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3D(p) - return cudaMemcpy3D(p) -{{endif}} + return _static_cudaMemcpy3D(p) -{{if 'cudaMemcpy3DPeer' in found_functions}} cdef cudaError_t _cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DPeer(p) - return cudaMemcpy3DPeer(p) -{{endif}} + return _static_cudaMemcpy3DPeer(p) -{{if 'cudaMemcpy3DAsync' in found_functions}} cdef cudaError_t _cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DAsync(p, stream) - return cudaMemcpy3DAsync(p, stream) -{{endif}} + return _static_cudaMemcpy3DAsync(p, stream) -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} cdef cudaError_t _cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DPeerAsync(p, stream) - return cudaMemcpy3DPeerAsync(p, stream) -{{endif}} + return _static_cudaMemcpy3DPeerAsync(p, stream) -{{if 'cudaMemGetInfo' in found_functions}} cdef cudaError_t _cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemGetInfo(free, total) - return cudaMemGetInfo(free, total) -{{endif}} + return _static_cudaMemGetInfo(free, total) -{{if 'cudaArrayGetInfo' in found_functions}} cdef cudaError_t _cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetInfo(desc, extent, flags, array) - return cudaArrayGetInfo(desc, extent, flags, array) -{{endif}} + return _static_cudaArrayGetInfo(desc, extent, flags, array) -{{if 'cudaArrayGetPlane' in found_functions}} cdef cudaError_t _cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) - return cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{endif}} + return _static_cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t _cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) - return cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{endif}} + return _static_cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t _cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) - return cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{endif}} + return _static_cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{if 'cudaArrayGetSparseProperties' in found_functions}} cdef cudaError_t _cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaArrayGetSparseProperties(sparseProperties, array) - return cudaArrayGetSparseProperties(sparseProperties, array) -{{endif}} + return _static_cudaArrayGetSparseProperties(sparseProperties, array) -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} cdef cudaError_t _cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) - return cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{endif}} + return _static_cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{if 'cudaMemcpy' in found_functions}} cdef cudaError_t _cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy(dst, src, count, kind) - return cudaMemcpy(dst, src, count, kind) -{{endif}} + return _static_cudaMemcpy(dst, src, count, kind) -{{if 'cudaMemcpyPeer' in found_functions}} cdef cudaError_t _cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) - return cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{endif}} + return _static_cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{if 'cudaMemcpy2D' in found_functions}} cdef cudaError_t _cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) - return cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{endif}} + return _static_cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DToArray' in found_functions}} cdef cudaError_t _cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) - return cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{endif}} + return _static_cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DFromArray' in found_functions}} cdef cudaError_t _cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) - return cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{endif}} + return _static_cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} cdef cudaError_t _cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) - return cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{endif}} + return _static_cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{if 'cudaMemcpyAsync' in found_functions}} cdef cudaError_t _cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyAsync(dst, src, count, kind, stream) - return cudaMemcpyAsync(dst, src, count, kind, stream) -{{endif}} + return _static_cudaMemcpyAsync(dst, src, count, kind, stream) -{{if 'cudaMemcpyPeerAsync' in found_functions}} cdef cudaError_t _cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) - return cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{endif}} + return _static_cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{if 'cudaMemcpyBatchAsync' in found_functions}} -cdef cudaError_t _cudaMemcpyBatchAsync(const void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) - return cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) -{{endif}} + return _static_cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} cdef cudaError_t _cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) - return cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) -{{endif}} + return _static_cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) -{{if 'cudaMemcpyWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) - return cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) -{{endif}} - -{{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} - -cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemcpy3DWithAttributesAsync(op, flags, stream) - return cudaMemcpy3DWithAttributesAsync(op, flags, stream) -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} cdef cudaError_t _cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) - return cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{endif}} + return _static_cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) - return cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{endif}} + return _static_cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) - return cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{endif}} + return _static_cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{if 'cudaMemset' in found_functions}} cdef cudaError_t _cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset(devPtr, value, count) - return cudaMemset(devPtr, value, count) -{{endif}} + return _static_cudaMemset(devPtr, value, count) -{{if 'cudaMemset2D' in found_functions}} cdef cudaError_t _cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset2D(devPtr, pitch, value, width, height) - return cudaMemset2D(devPtr, pitch, value, width, height) -{{endif}} + return _static_cudaMemset2D(devPtr, pitch, value, width, height) -{{if 'cudaMemset3D' in found_functions}} cdef cudaError_t _cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset3D(pitchedDevPtr, value, extent) - return cudaMemset3D(pitchedDevPtr, value, extent) -{{endif}} + return _static_cudaMemset3D(pitchedDevPtr, value, extent) -{{if 'cudaMemsetAsync' in found_functions}} cdef cudaError_t _cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemsetAsync(devPtr, value, count, stream) - return cudaMemsetAsync(devPtr, value, count, stream) -{{endif}} + return _static_cudaMemsetAsync(devPtr, value, count, stream) -{{if 'cudaMemset2DAsync' in found_functions}} cdef cudaError_t _cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) - return cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{endif}} + return _static_cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{if 'cudaMemset3DAsync' in found_functions}} cdef cudaError_t _cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) - return cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{endif}} + return _static_cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{if 'cudaMemPrefetchAsync' in found_functions}} cdef cudaError_t _cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPrefetchAsync(devPtr, count, location, flags, stream) - return cudaMemPrefetchAsync(devPtr, count, location, flags, stream) -{{endif}} - -{{if 'cudaMemPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) - return cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -{{endif}} - -{{if 'cudaMemDiscardBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) - return cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) -{{endif}} - -{{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) - return cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -{{endif}} + return _static_cudaMemPrefetchAsync(devPtr, count, location, flags, stream) -{{if 'cudaMemAdvise' in found_functions}} cdef cudaError_t _cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemAdvise(devPtr, count, advice, location) - return cudaMemAdvise(devPtr, count, advice, location) -{{endif}} + return _static_cudaMemAdvise(devPtr, count, advice, location) -{{if 'cudaMemRangeGetAttribute' in found_functions}} cdef cudaError_t _cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) - return cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{endif}} + return _static_cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{if 'cudaMemRangeGetAttributes' in found_functions}} cdef cudaError_t _cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) - return cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{endif}} + return _static_cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{if 'cudaMemcpyToArray' in found_functions}} cdef cudaError_t _cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) - return cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{endif}} + return _static_cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{if 'cudaMemcpyFromArray' in found_functions}} cdef cudaError_t _cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) - return cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{endif}} + return _static_cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{if 'cudaMemcpyArrayToArray' in found_functions}} cdef cudaError_t _cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) - return cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{endif}} + return _static_cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{if 'cudaMemcpyToArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) - return cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{endif}} + return _static_cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} cdef cudaError_t _cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) - return cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{endif}} + return _static_cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{if 'cudaMallocAsync' in found_functions}} cdef cudaError_t _cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocAsync(devPtr, size, hStream) - return cudaMallocAsync(devPtr, size, hStream) -{{endif}} + return _static_cudaMallocAsync(devPtr, size, hStream) -{{if 'cudaFreeAsync' in found_functions}} cdef cudaError_t _cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaFreeAsync(devPtr, hStream) - return cudaFreeAsync(devPtr, hStream) -{{endif}} + return _static_cudaFreeAsync(devPtr, hStream) -{{if 'cudaMemPoolTrimTo' in found_functions}} cdef cudaError_t _cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolTrimTo(memPool, minBytesToKeep) - return cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{endif}} + return _static_cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{if 'cudaMemPoolSetAttribute' in found_functions}} cdef cudaError_t _cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolSetAttribute(memPool, attr, value) - return cudaMemPoolSetAttribute(memPool, attr, value) -{{endif}} + return _static_cudaMemPoolSetAttribute(memPool, attr, value) -{{if 'cudaMemPoolGetAttribute' in found_functions}} cdef cudaError_t _cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolGetAttribute(memPool, attr, value) - return cudaMemPoolGetAttribute(memPool, attr, value) -{{endif}} + return _static_cudaMemPoolGetAttribute(memPool, attr, value) -{{if 'cudaMemPoolSetAccess' in found_functions}} cdef cudaError_t _cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolSetAccess(memPool, descList, count) - return cudaMemPoolSetAccess(memPool, descList, count) -{{endif}} + return _static_cudaMemPoolSetAccess(memPool, descList, count) -{{if 'cudaMemPoolGetAccess' in found_functions}} cdef cudaError_t _cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolGetAccess(flags, memPool, location) - return cudaMemPoolGetAccess(flags, memPool, location) -{{endif}} + return _static_cudaMemPoolGetAccess(flags, memPool, location) -{{if 'cudaMemPoolCreate' in found_functions}} cdef cudaError_t _cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolCreate(memPool, poolProps) - return cudaMemPoolCreate(memPool, poolProps) -{{endif}} + return _static_cudaMemPoolCreate(memPool, poolProps) -{{if 'cudaMemPoolDestroy' in found_functions}} cdef cudaError_t _cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaMemPoolDestroy(memPool) - return cudaMemPoolDestroy(memPool) -{{endif}} - -{{if 'cudaMemGetDefaultMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemGetDefaultMemPool(memPool, location, typename) - return cudaMemGetDefaultMemPool(memPool, location, typename) -{{endif}} - -{{if 'cudaMemGetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemGetMemPool(memPool, location, typename) - return cudaMemGetMemPool(memPool, location, typename) -{{endif}} - -{{if 'cudaMemSetMemPool' in found_functions}} - -cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType typename, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaMemSetMemPool(location, typename, memPool) - return cudaMemSetMemPool(location, typename, memPool) -{{endif}} + return ptds._cudaMemPoolDestroy(memPool) + return _static_cudaMemPoolDestroy(memPool) -{{if 'cudaMallocFromPoolAsync' in found_functions}} cdef cudaError_t _cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMallocFromPoolAsync(ptr, size, memPool, stream) - return cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{endif}} + return _static_cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} cdef cudaError_t _cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) - return cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{endif}} + return _static_cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} cdef cudaError_t _cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) - return cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{endif}} + return _static_cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{if 'cudaMemPoolExportPointer' in found_functions}} cdef cudaError_t _cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolExportPointer(exportData, ptr) - return cudaMemPoolExportPointer(exportData, ptr) -{{endif}} + return _static_cudaMemPoolExportPointer(exportData, ptr) -{{if 'cudaMemPoolImportPointer' in found_functions}} cdef cudaError_t _cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaMemPoolImportPointer(ptr, memPool, exportData) - return cudaMemPoolImportPointer(ptr, memPool, exportData) -{{endif}} + return _static_cudaMemPoolImportPointer(ptr, memPool, exportData) -{{if 'cudaPointerGetAttributes' in found_functions}} cdef cudaError_t _cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaPointerGetAttributes(attributes, ptr) - return cudaPointerGetAttributes(attributes, ptr) -{{endif}} + return _static_cudaPointerGetAttributes(attributes, ptr) -{{if 'cudaDeviceCanAccessPeer' in found_functions}} cdef cudaError_t _cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) - return cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{endif}} + return _static_cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} cdef cudaError_t _cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceEnablePeerAccess(peerDevice, flags) - return cudaDeviceEnablePeerAccess(peerDevice, flags) -{{endif}} + return _static_cudaDeviceEnablePeerAccess(peerDevice, flags) -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} cdef cudaError_t _cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceDisablePeerAccess(peerDevice) - return cudaDeviceDisablePeerAccess(peerDevice) -{{endif}} + return _static_cudaDeviceDisablePeerAccess(peerDevice) -{{if 'cudaGraphicsUnregisterResource' in found_functions}} cdef cudaError_t _cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsUnregisterResource(resource) - return cudaGraphicsUnregisterResource(resource) -{{endif}} + return _static_cudaGraphicsUnregisterResource(resource) -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} cdef cudaError_t _cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsResourceSetMapFlags(resource, flags) - return cudaGraphicsResourceSetMapFlags(resource, flags) -{{endif}} + return _static_cudaGraphicsResourceSetMapFlags(resource, flags) -{{if 'cudaGraphicsMapResources' in found_functions}} cdef cudaError_t _cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsMapResources(count, resources, stream) - return cudaGraphicsMapResources(count, resources, stream) -{{endif}} + return _static_cudaGraphicsMapResources(count, resources, stream) -{{if 'cudaGraphicsUnmapResources' in found_functions}} cdef cudaError_t _cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsUnmapResources(count, resources, stream) - return cudaGraphicsUnmapResources(count, resources, stream) -{{endif}} + return _static_cudaGraphicsUnmapResources(count, resources, stream) -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} cdef cudaError_t _cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) - return cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{endif}} + return _static_cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} cdef cudaError_t _cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) - return cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{endif}} + return _static_cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} cdef cudaError_t _cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) - return cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{endif}} + return _static_cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{if 'cudaGetChannelDesc' in found_functions}} cdef cudaError_t _cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetChannelDesc(desc, array) - return cudaGetChannelDesc(desc, array) -{{endif}} + return _static_cudaGetChannelDesc(desc, array) + -{{if 'cudaCreateChannelDesc' in found_functions}} -@cython.show_performance_hints(False) cdef cudaChannelFormatDesc _cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCreateChannelDesc(x, y, z, w, f) - return cudaCreateChannelDesc(x, y, z, w, f) -{{endif}} + return _static_cudaCreateChannelDesc(x, y, z, w, f) -{{if 'cudaCreateTextureObject' in found_functions}} cdef cudaError_t _cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) - return cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{endif}} + return _static_cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{if 'cudaDestroyTextureObject' in found_functions}} cdef cudaError_t _cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroyTextureObject(texObject) - return cudaDestroyTextureObject(texObject) -{{endif}} + return _static_cudaDestroyTextureObject(texObject) -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} cdef cudaError_t _cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetTextureObjectResourceDesc(pResDesc, texObject) - return cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{endif}} + return _static_cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} cdef cudaError_t _cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) - return cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{endif}} + return _static_cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} cdef cudaError_t _cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) - return cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{endif}} + return _static_cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{if 'cudaCreateSurfaceObject' in found_functions}} cdef cudaError_t _cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaCreateSurfaceObject(pSurfObject, pResDesc) - return cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{endif}} + return _static_cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{if 'cudaDestroySurfaceObject' in found_functions}} cdef cudaError_t _cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDestroySurfaceObject(surfObject) - return cudaDestroySurfaceObject(surfObject) -{{endif}} + return _static_cudaDestroySurfaceObject(surfObject) -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} cdef cudaError_t _cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) - return cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{endif}} + return _static_cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{if 'cudaDriverGetVersion' in found_functions}} cdef cudaError_t _cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDriverGetVersion(driverVersion) - return cudaDriverGetVersion(driverVersion) -{{endif}} + return _static_cudaDriverGetVersion(driverVersion) -{{if 'cudaRuntimeGetVersion' in found_functions}} cdef cudaError_t _cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaRuntimeGetVersion(runtimeVersion) - return cudaRuntimeGetVersion(runtimeVersion) -{{endif}} - -{{if 'cudaLogsRegisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaLogsRegisterCallback(callbackFunc, userData, callback_out) - return cudaLogsRegisterCallback(callbackFunc, userData, callback_out) -{{endif}} - -{{if 'cudaLogsUnregisterCallback' in found_functions}} - -cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaLogsUnregisterCallback(callback) - return cudaLogsUnregisterCallback(callback) -{{endif}} - -{{if 'cudaLogsCurrent' in found_functions}} - -cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaLogsCurrent(iterator_out, flags) - return cudaLogsCurrent(iterator_out, flags) -{{endif}} - -{{if 'cudaLogsDumpToFile' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaLogsDumpToFile(iterator, pathToFile, flags) - return cudaLogsDumpToFile(iterator, pathToFile, flags) -{{endif}} - -{{if 'cudaLogsDumpToMemory' in found_functions}} - -cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaLogsDumpToMemory(iterator, buffer, size, flags) - return cudaLogsDumpToMemory(iterator, buffer, size, flags) -{{endif}} + return _static_cudaRuntimeGetVersion(runtimeVersion) -{{if 'cudaGraphCreate' in found_functions}} cdef cudaError_t _cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphCreate(pGraph, flags) - return cudaGraphCreate(pGraph, flags) -{{endif}} + return _static_cudaGraphCreate(pGraph, flags) -{{if 'cudaGraphAddKernelNode' in found_functions}} cdef cudaError_t _cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) - return cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _static_cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeGetParams(node, pNodeParams) - return cudaGraphKernelNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphKernelNodeGetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeSetParams(node, pNodeParams) - return cudaGraphKernelNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphKernelNodeSetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} cdef cudaError_t _cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeCopyAttributes(hDst, hSrc) - return cudaGraphKernelNodeCopyAttributes(hDst, hSrc) -{{endif}} + return _static_cudaGraphKernelNodeCopyAttributes(hDst, hSrc) -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} -cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) - return cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{endif}} + return _static_cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} -cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphKernelNodeSetAttribute(hNode, attr, value) - return cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{endif}} + return _static_cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{if 'cudaGraphAddMemcpyNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) - return cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{endif}} + return _static_cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} cdef cudaError_t _cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) - return cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{endif}} + return _static_cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemcpyNodeGetParams(node, pNodeParams) - return cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemcpyNodeSetParams(node, pNodeParams) - return cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t _cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) - return cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{endif}} + return _static_cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{if 'cudaGraphAddMemsetNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) - return cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{endif}} + return _static_cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemsetNodeGetParams(node, pNodeParams) - return cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemsetNodeSetParams(node, pNodeParams) - return cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddHostNode' in found_functions}} cdef cudaError_t _cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) - return cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _static_cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphHostNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphHostNodeGetParams(node, pNodeParams) - return cudaGraphHostNodeGetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphHostNodeGetParams(node, pNodeParams) -{{if 'cudaGraphHostNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphHostNodeSetParams(node, pNodeParams) - return cudaGraphHostNodeSetParams(node, pNodeParams) -{{endif}} + return _static_cudaGraphHostNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddChildGraphNode' in found_functions}} cdef cudaError_t _cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) - return cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{endif}} + return _static_cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} cdef cudaError_t _cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphChildGraphNodeGetGraph(node, pGraph) - return cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{endif}} + return _static_cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{if 'cudaGraphAddEmptyNode' in found_functions}} cdef cudaError_t _cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) - return cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{endif}} + return _static_cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{if 'cudaGraphAddEventRecordNode' in found_functions}} cdef cudaError_t _cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) - return cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _static_cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventRecordNodeGetEvent(node, event_out) - return cudaGraphEventRecordNodeGetEvent(node, event_out) -{{endif}} + return _static_cudaGraphEventRecordNodeGetEvent(node, event_out) -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventRecordNodeSetEvent(node, event) - return cudaGraphEventRecordNodeSetEvent(node, event) -{{endif}} + return _static_cudaGraphEventRecordNodeSetEvent(node, event) -{{if 'cudaGraphAddEventWaitNode' in found_functions}} cdef cudaError_t _cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) - return cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _static_cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventWaitNodeGetEvent(node, event_out) - return cudaGraphEventWaitNodeGetEvent(node, event_out) -{{endif}} + return _static_cudaGraphEventWaitNodeGetEvent(node, event_out) -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphEventWaitNodeSetEvent(node, event) - return cudaGraphEventWaitNodeSetEvent(node, event) -{{endif}} + return _static_cudaGraphEventWaitNodeSetEvent(node, event) -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} cdef cudaError_t _cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) - return cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) - return cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{endif}} + return _static_cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) - return cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{endif}} + return _static_cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} cdef cudaError_t _cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) - return cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) - return cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{endif}} + return _static_cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) - return cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{endif}} + return _static_cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddMemAllocNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) - return cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemAllocNodeGetParams(node, params_out) - return cudaGraphMemAllocNodeGetParams(node, params_out) -{{endif}} + return _static_cudaGraphMemAllocNodeGetParams(node, params_out) -{{if 'cudaGraphAddMemFreeNode' in found_functions}} cdef cudaError_t _cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) - return cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{endif}} + return _static_cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} cdef cudaError_t _cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphMemFreeNodeGetParams(node, dptr_out) - return cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{endif}} + return _static_cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{if 'cudaDeviceGraphMemTrim' in found_functions}} cdef cudaError_t _cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGraphMemTrim(device) - return cudaDeviceGraphMemTrim(device) -{{endif}} + return _static_cudaDeviceGraphMemTrim(device) -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} cdef cudaError_t _cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetGraphMemAttribute(device, attr, value) - return cudaDeviceGetGraphMemAttribute(device, attr, value) -{{endif}} + return _static_cudaDeviceGetGraphMemAttribute(device, attr, value) -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} cdef cudaError_t _cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceSetGraphMemAttribute(device, attr, value) - return cudaDeviceSetGraphMemAttribute(device, attr, value) -{{endif}} + return _static_cudaDeviceSetGraphMemAttribute(device, attr, value) -{{if 'cudaGraphClone' in found_functions}} cdef cudaError_t _cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphClone(pGraphClone, originalGraph) - return cudaGraphClone(pGraphClone, originalGraph) -{{endif}} + return _static_cudaGraphClone(pGraphClone, originalGraph) -{{if 'cudaGraphNodeFindInClone' in found_functions}} cdef cudaError_t _cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) - return cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{endif}} + return _static_cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{if 'cudaGraphNodeGetType' in found_functions}} cdef cudaError_t _cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetType(node, pType) - return cudaGraphNodeGetType(node, pType) -{{endif}} + return _static_cudaGraphNodeGetType(node, pType) -{{if 'cudaGraphNodeGetContainingGraph' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGraphNodeGetContainingGraph(hNode, phGraph) - return cudaGraphNodeGetContainingGraph(hNode, phGraph) -{{endif}} - -{{if 'cudaGraphNodeGetLocalId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGraphNodeGetLocalId(hNode, nodeId) - return cudaGraphNodeGetLocalId(hNode, nodeId) -{{endif}} - -{{if 'cudaGraphNodeGetToolsId' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGraphNodeGetToolsId(hNode, toolsNodeId) - return cudaGraphNodeGetToolsId(hNode, toolsNodeId) -{{endif}} - -{{if 'cudaGraphGetId' in found_functions}} - -cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGraphGetId(hGraph, graphID) - return cudaGraphGetId(hGraph, graphID) -{{endif}} - -{{if 'cudaGraphExecGetId' in found_functions}} - -cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGraphExecGetId(hGraphExec, graphID) - return cudaGraphExecGetId(hGraphExec, graphID) -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} cdef cudaError_t _cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphGetNodes(graph, nodes, numNodes) - return cudaGraphGetNodes(graph, nodes, numNodes) -{{endif}} + return _static_cudaGraphGetNodes(graph, nodes, numNodes) -{{if 'cudaGraphGetRootNodes' in found_functions}} cdef cudaError_t _cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) - return cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{endif}} + return _static_cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{if 'cudaGraphGetEdges' in found_functions}} cdef cudaError_t _cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) - return cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) -{{endif}} + return _static_cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) -{{if 'cudaGraphNodeGetDependencies' in found_functions}} cdef cudaError_t _cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) - return cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) -{{endif}} + return _static_cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} cdef cudaError_t _cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) - return cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) -{{endif}} + return _static_cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) -{{if 'cudaGraphAddDependencies' in found_functions}} cdef cudaError_t _cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) - return cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _static_cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphRemoveDependencies' in found_functions}} cdef cudaError_t _cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) - return cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _static_cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphDestroyNode' in found_functions}} cdef cudaError_t _cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphDestroyNode(node) - return cudaGraphDestroyNode(node) -{{endif}} + return _static_cudaGraphDestroyNode(node) -{{if 'cudaGraphInstantiate' in found_functions}} cdef cudaError_t _cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphInstantiate(pGraphExec, graph, flags) - return cudaGraphInstantiate(pGraphExec, graph, flags) -{{endif}} + return _static_cudaGraphInstantiate(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} cdef cudaError_t _cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) - return cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{endif}} + return _static_cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithParams' in found_functions}} cdef cudaError_t _cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) - return cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{endif}} + return _static_cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{if 'cudaGraphExecGetFlags' in found_functions}} cdef cudaError_t _cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecGetFlags(graphExec, flags) - return cudaGraphExecGetFlags(graphExec, flags) -{{endif}} + return _static_cudaGraphExecGetFlags(graphExec, flags) -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t _cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) - return cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{endif}} + return _static_cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) - return cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _static_cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) - return cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{endif}} + return _static_cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) - return cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _static_cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t _cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) - return cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _static_cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) - return cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _static_cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) - return cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _static_cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphNodeSetEnabled' in found_functions}} cdef cudaError_t _cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) - return cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _static_cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphNodeGetEnabled' in found_functions}} cdef cudaError_t _cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) - return cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _static_cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphExecUpdate' in found_functions}} cdef cudaError_t _cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) - return cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{endif}} + return _static_cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{if 'cudaGraphUpload' in found_functions}} cdef cudaError_t _cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphUpload(graphExec, stream) - return cudaGraphUpload(graphExec, stream) -{{endif}} + return _static_cudaGraphUpload(graphExec, stream) -{{if 'cudaGraphLaunch' in found_functions}} cdef cudaError_t _cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphLaunch(graphExec, stream) - return cudaGraphLaunch(graphExec, stream) -{{endif}} + return _static_cudaGraphLaunch(graphExec, stream) -{{if 'cudaGraphExecDestroy' in found_functions}} cdef cudaError_t _cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecDestroy(graphExec) - return cudaGraphExecDestroy(graphExec) -{{endif}} + return _static_cudaGraphExecDestroy(graphExec) -{{if 'cudaGraphDestroy' in found_functions}} cdef cudaError_t _cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphDestroy(graph) - return cudaGraphDestroy(graph) -{{endif}} + return _static_cudaGraphDestroy(graph) -{{if 'cudaGraphDebugDotPrint' in found_functions}} cdef cudaError_t _cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphDebugDotPrint(graph, path, flags) - return cudaGraphDebugDotPrint(graph, path, flags) -{{endif}} + return _static_cudaGraphDebugDotPrint(graph, path, flags) -{{if 'cudaUserObjectCreate' in found_functions}} cdef cudaError_t _cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) - return cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{endif}} + return _static_cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{if 'cudaUserObjectRetain' in found_functions}} cdef cudaError_t _cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaUserObjectRetain(object, count) - return cudaUserObjectRetain(object, count) -{{endif}} + return _static_cudaUserObjectRetain(object, count) -{{if 'cudaUserObjectRelease' in found_functions}} cdef cudaError_t _cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaUserObjectRelease(object, count) - return cudaUserObjectRelease(object, count) -{{endif}} + return _static_cudaUserObjectRelease(object, count) -{{if 'cudaGraphRetainUserObject' in found_functions}} cdef cudaError_t _cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphRetainUserObject(graph, object, count, flags) - return cudaGraphRetainUserObject(graph, object, count, flags) -{{endif}} + return _static_cudaGraphRetainUserObject(graph, object, count, flags) -{{if 'cudaGraphReleaseUserObject' in found_functions}} cdef cudaError_t _cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphReleaseUserObject(graph, object, count) - return cudaGraphReleaseUserObject(graph, object, count) -{{endif}} + return _static_cudaGraphReleaseUserObject(graph, object, count) -{{if 'cudaGraphAddNode' in found_functions}} cdef cudaError_t _cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) - return cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{endif}} + return _static_cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{if 'cudaGraphNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphNodeSetParams(node, nodeParams) - return cudaGraphNodeSetParams(node, nodeParams) -{{endif}} - -{{if 'cudaGraphNodeGetParams' in found_functions}} - -cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGraphNodeGetParams(node, nodeParams) - return cudaGraphNodeGetParams(node, nodeParams) -{{endif}} + return _static_cudaGraphNodeSetParams(node, nodeParams) -{{if 'cudaGraphExecNodeSetParams' in found_functions}} cdef cudaError_t _cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) - return cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{endif}} + return _static_cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} cdef cudaError_t _cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) - return cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} - -cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) - return cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) -{{endif}} + return _static_cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{if 'cudaGetDriverEntryPoint' in found_functions}} cdef cudaError_t _cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) - return cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{endif}} + return _static_cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} cdef cudaError_t _cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) - return cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{endif}} + return _static_cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{if 'cudaLibraryLoadData' in found_functions}} cdef cudaError_t _cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) - return cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _static_cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryLoadFromFile' in found_functions}} cdef cudaError_t _cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) - return cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _static_cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryUnload' in found_functions}} cdef cudaError_t _cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryUnload(library) - return cudaLibraryUnload(library) -{{endif}} + return _static_cudaLibraryUnload(library) -{{if 'cudaLibraryGetKernel' in found_functions}} cdef cudaError_t _cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryGetKernel(pKernel, library, name) - return cudaLibraryGetKernel(pKernel, library, name) -{{endif}} + return _static_cudaLibraryGetKernel(pKernel, library, name) -{{if 'cudaLibraryGetGlobal' in found_functions}} -cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaLibraryGetGlobal(dptr, numbytes, library, name) - return cudaLibraryGetGlobal(dptr, numbytes, library, name) -{{endif}} + return ptds._cudaLibraryGetGlobal(dptr, bytes, library, name) + return _static_cudaLibraryGetGlobal(dptr, bytes, library, name) -{{if 'cudaLibraryGetManaged' in found_functions}} -cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaLibraryGetManaged(dptr, numbytes, library, name) - return cudaLibraryGetManaged(dptr, numbytes, library, name) -{{endif}} + return ptds._cudaLibraryGetManaged(dptr, bytes, library, name) + return _static_cudaLibraryGetManaged(dptr, bytes, library, name) -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} cdef cudaError_t _cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryGetUnifiedFunction(fptr, library, symbol) - return cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{endif}} + return _static_cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{if 'cudaLibraryGetKernelCount' in found_functions}} cdef cudaError_t _cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryGetKernelCount(count, lib) - return cudaLibraryGetKernelCount(count, lib) -{{endif}} + return _static_cudaLibraryGetKernelCount(count, lib) -{{if 'cudaLibraryEnumerateKernels' in found_functions}} cdef cudaError_t _cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaLibraryEnumerateKernels(kernels, numKernels, lib) - return cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{endif}} + return _static_cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} cdef cudaError_t _cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaKernelSetAttributeForDevice(kernel, attr, value, device) - return cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{endif}} + return _static_cudaKernelSetAttributeForDevice(kernel, attr, value, device) + + +cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetExportTable(ppExportTable, pExportTableId) + return _static_cudaGetExportTable(ppExportTable, pExportTableId) + + +cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetKernel(kernelPtr, entryFuncAddr) + return _static_cudaGetKernel(kernelPtr, entryFuncAddr) + + +cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaProfilerStart() + return _static_cudaProfilerStart() + + +cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaProfilerStop() + return _static_cudaProfilerStop() + + +cdef cudaError_t _cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGetDeviceProperties(prop, device) + return _static_cudaGetDeviceProperties(prop, device) + + +cdef cudaError_t _cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) + return _static_cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) + + +cdef cudaError_t _cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) + return _static_cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) + + +cdef cudaError_t _cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + return _static_cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) + + +cdef cudaError_t _cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + return _static_cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{if 'cudaDeviceGetDevResource' in found_functions}} -cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + return _static_cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) + + +cdef cudaError_t _cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + return _static_cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) + return _static_cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) + + +cdef cudaError_t _cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + return _static_cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) + + +cdef cudaError_t _cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemGetDefaultMemPool(memPool, location, type) + return _static_cudaMemGetDefaultMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemGetMemPool(memPool, location, type) + return _static_cudaMemGetMemPool(memPool, location, type) + + +cdef cudaError_t _cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaMemSetMemPool(location, type, memPool) + return _static_cudaMemSetMemPool(location, type, memPool) + + +cdef cudaError_t _cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsRegisterCallback(callbackFunc, userData, callback_out) + return _static_cudaLogsRegisterCallback(callbackFunc, userData, callback_out) + + +cdef cudaError_t _cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsUnregisterCallback(callback) + return _static_cudaLogsUnregisterCallback(callback) + + +cdef cudaError_t _cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsCurrent(iterator_out, flags) + return _static_cudaLogsCurrent(iterator_out, flags) + + +cdef cudaError_t _cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsDumpToFile(iterator, pathToFile, flags) + return _static_cudaLogsDumpToFile(iterator, pathToFile, flags) + + +cdef cudaError_t _cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaLogsDumpToMemory(iterator, buffer, size, flags) + return _static_cudaLogsDumpToMemory(iterator, buffer, size, flags) + + +cdef cudaError_t _cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetContainingGraph(hNode, phGraph) + return _static_cudaGraphNodeGetContainingGraph(hNode, phGraph) + + +cdef cudaError_t _cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetLocalId(hNode, nodeId) + return _static_cudaGraphNodeGetLocalId(hNode, nodeId) + + +cdef cudaError_t _cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphNodeGetToolsId(hNode, toolsNodeId) + return _static_cudaGraphNodeGetToolsId(hNode, toolsNodeId) + + +cdef cudaError_t _cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphGetId(hGraph, graphID) + return _static_cudaGraphGetId(hGraph, graphID) + + +cdef cudaError_t _cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphExecGetId(hGraphExec, graphID) + return _static_cudaGraphExecGetId(hGraphExec, graphID) + + +cdef cudaError_t _cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + cdef bint usePTDS = cudaPythonInit() + if usePTDS: + return ptds._cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) + return _static_cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) + + +cdef cudaError_t _cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaDeviceGetDevResource(device, resource, typename) - return cudaDeviceGetDevResource(device, resource, typename) -{{endif}} + return ptds._cudaDeviceGetDevResource(device, resource, type) + return _static_cudaDeviceGetDevResource(device, resource, type) -{{if 'cudaDevSmResourceSplitByCount' in found_functions}} cdef cudaError_t _cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) - return cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) -{{endif}} + return _static_cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) -{{if 'cudaDevSmResourceSplit' in found_functions}} cdef cudaError_t _cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) - return cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) -{{endif}} + return _static_cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) -{{if 'cudaDevResourceGenerateDesc' in found_functions}} cdef cudaError_t _cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDevResourceGenerateDesc(phDesc, resources, nbResources) - return cudaDevResourceGenerateDesc(phDesc, resources, nbResources) -{{endif}} + return _static_cudaDevResourceGenerateDesc(phDesc, resources, nbResources) -{{if 'cudaGreenCtxCreate' in found_functions}} cdef cudaError_t _cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaGreenCtxCreate(phCtx, desc, device, flags) - return cudaGreenCtxCreate(phCtx, desc, device, flags) -{{endif}} + return _static_cudaGreenCtxCreate(phCtx, desc, device, flags) -{{if 'cudaExecutionCtxDestroy' in found_functions}} cdef cudaError_t _cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExecutionCtxDestroy(ctx) - return cudaExecutionCtxDestroy(ctx) -{{endif}} + return _static_cudaExecutionCtxDestroy(ctx) -{{if 'cudaExecutionCtxGetDevResource' in found_functions}} -cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaExecutionCtxGetDevResource(ctx, resource, typename) - return cudaExecutionCtxGetDevResource(ctx, resource, typename) -{{endif}} + return ptds._cudaExecutionCtxGetDevResource(ctx, resource, type) + return _static_cudaExecutionCtxGetDevResource(ctx, resource, type) -{{if 'cudaExecutionCtxGetDevice' in found_functions}} cdef cudaError_t _cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExecutionCtxGetDevice(device, ctx) - return cudaExecutionCtxGetDevice(device, ctx) -{{endif}} + return _static_cudaExecutionCtxGetDevice(device, ctx) -{{if 'cudaExecutionCtxGetId' in found_functions}} cdef cudaError_t _cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExecutionCtxGetId(ctx, ctxId) - return cudaExecutionCtxGetId(ctx, ctxId) -{{endif}} + return _static_cudaExecutionCtxGetId(ctx, ctxId) -{{if 'cudaExecutionCtxStreamCreate' in found_functions}} cdef cudaError_t _cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) - return cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) -{{endif}} + return _static_cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) -{{if 'cudaExecutionCtxSynchronize' in found_functions}} cdef cudaError_t _cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExecutionCtxSynchronize(ctx) - return cudaExecutionCtxSynchronize(ctx) -{{endif}} + return _static_cudaExecutionCtxSynchronize(ctx) -{{if 'cudaStreamGetDevResource' in found_functions}} -cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaStreamGetDevResource(hStream, resource, typename) - return cudaStreamGetDevResource(hStream, resource, typename) -{{endif}} + return ptds._cudaStreamGetDevResource(hStream, resource, type) + return _static_cudaStreamGetDevResource(hStream, resource, type) -{{if 'cudaExecutionCtxRecordEvent' in found_functions}} cdef cudaError_t _cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExecutionCtxRecordEvent(ctx, event) - return cudaExecutionCtxRecordEvent(ctx, event) -{{endif}} + return _static_cudaExecutionCtxRecordEvent(ctx, event) -{{if 'cudaExecutionCtxWaitEvent' in found_functions}} cdef cudaError_t _cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaExecutionCtxWaitEvent(ctx, event) - return cudaExecutionCtxWaitEvent(ctx, event) -{{endif}} + return _static_cudaExecutionCtxWaitEvent(ctx, event) -{{if 'cudaDeviceGetExecutionCtx' in found_functions}} cdef cudaError_t _cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: return ptds._cudaDeviceGetExecutionCtx(ctx, device) - return cudaDeviceGetExecutionCtx(ctx, device) -{{endif}} + return _static_cudaDeviceGetExecutionCtx(ctx, device) -{{if 'cudaGetExportTable' in found_functions}} -cdef cudaError_t _cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaGetExportTable(ppExportTable, pExportTableId) - return cudaGetExportTable(ppExportTable, pExportTableId) -{{endif}} + return ptds._cudaFuncGetParamCount(func, paramCount) + return _static_cudaFuncGetParamCount(func, paramCount) -{{if 'cudaGetKernel' in found_functions}} -cdef cudaError_t _cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaGetKernel(kernelPtr, entryFuncAddr) - return cudaGetKernel(kernelPtr, entryFuncAddr) -{{endif}} + return ptds._cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) + return _static_cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) -{{if 'make_cudaPitchedPtr' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPitchedPtr _make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: - cdef bint usePTDS = cudaPythonInit() - if usePTDS: - return ptds._make_cudaPitchedPtr(d, p, xsz, ysz) - return make_cudaPitchedPtr(d, p, xsz, ysz) -{{endif}} -{{if 'make_cudaPos' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPos _make_cudaPos(size_t x, size_t y, size_t z) except* nogil: +cdef cudaError_t _cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._make_cudaPos(x, y, z) - return make_cudaPos(x, y, z) -{{endif}} + return ptds._cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) + return _static_cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) -{{if 'make_cudaExtent' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaExtent _make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: + +cdef cudaError_t _cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._make_cudaExtent(w, h, d) - return make_cudaExtent(w, h, d) -{{endif}} + return ptds._cudaMemcpy3DWithAttributesAsync(op, flags, stream) + return _static_cudaMemcpy3DWithAttributesAsync(op, flags, stream) -{{if 'cudaProfilerStart' in found_functions}} -cdef cudaError_t _cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaProfilerStart() - return cudaProfilerStart() -{{endif}} + return ptds._cudaGraphNodeGetParams(node, nodeParams) + return _static_cudaGraphNodeGetParams(node, nodeParams) -{{if 'cudaProfilerStop' in found_functions}} -cdef cudaError_t _cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: cdef bint usePTDS = cudaPythonInit() if usePTDS: - return ptds._cudaProfilerStop() - return cudaProfilerStop() -{{endif}} - - -include "../_lib/cyruntime/cyruntime.pxi" + return ptds._cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) + return _static_cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd index e84c2e8b255..85b111f9610 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxd @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -cimport cuda.bindings.cyruntime as cyruntime cimport cuda.bindings._internal.driver as _cydriver # These graphics API are the reimplemented version of what's supported by CUDA Runtime. @@ -17,27 +16,27 @@ cimport cuda.bindings._internal.driver as _cydriver # independent modules (c.b._lib.cyruntime.cyruntime and # c.b._lib.cyruntime.utils), but was merged into one. -cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cyruntime.cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaVDPAUGetDevice(int* device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, cyruntime.VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, cyruntime.VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cyruntime.cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, cyruntime.GLuint image, cyruntime.GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, cyruntime.GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, cyruntime.EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamProducerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, cyruntime.EGLint width, cyruntime.EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEGLStreamProducerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, cyruntime.EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil # utility functions -cdef cudaError_t getDriverEglFrame(_cydriver.CUeglFrame *cuEglFrame, cyruntime.cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil -cdef cudaError_t getRuntimeEglFrame(cyruntime.cudaEglFrame *eglFrame, _cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t getDriverEglFrame(_cydriver.CUeglFrame *cuEglFrame, cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t getRuntimeEglFrame(cudaEglFrame *eglFrame, _cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil diff --git a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi index ad186557ce8..985dd5d24f0 100644 --- a/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi +++ b/cuda_bindings/cuda/bindings/_lib/cyruntime/cyruntime.pxi @@ -11,14 +11,22 @@ # Prior to https://github.com/NVIDIA/cuda-python/pull/914, this was two # independent modules (c.b._lib.cyruntime.cyruntime and # c.b._lib.cyruntime.utils), but was merged into one. +import cython +cimport cython from libc.string cimport memset cimport cuda.bindings._internal.driver as cydriver -cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: +# Call make_cudaPitchedPtr directly from the C header to avoid a runtime import +# of cuda.bindings.cyruntime (the Cython wrapper lives there but including it +# here would create a circular import via _internal.runtime → cyruntime → _internal.runtime). +cdef extern from 'driver_functions.h': + cudaPitchedPtr _cylib_make_cudaPitchedPtr "make_cudaPitchedPtr"(void* d, size_t p, size_t xsz, size_t ysz) nogil + +cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err cdef cydriver.CUeglFrame cueglFrame @@ -28,10 +36,10 @@ cdef cudaError_t _cudaEGLStreamProducerPresentFrame(cyruntime.cudaEglStreamConne err = cydriver._cuEGLStreamProducerPresentFrame(conn, cueglFrame, pStream) return err -cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnection* conn, cyruntime.cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err if eglframe == NULL: @@ -44,10 +52,10 @@ cdef cudaError_t _cudaEGLStreamProducerReturnFrame(cyruntime.cudaEglStreamConnec err = getRuntimeEglFrame(eglframe, cueglFrame) return err -cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cyruntime.cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err cdef cydriver.CUeglFrame cueglFrame @@ -58,139 +66,139 @@ cdef cudaError_t _cudaGraphicsResourceGetMappedEglFrame(cyruntime.cudaEglFrame* err = getRuntimeEglFrame(eglFrame, cueglFrame) return err -cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: return cudaErrorNotSupported -cdef cudaError_t _cudaVDPAUGetDevice(int* device, cyruntime.VdpDevice vdpDevice, cyruntime.VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuVDPAUGetDevice(device, vdpDevice, vdpGetProcAddress) return err -cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, cyruntime.VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsVDPAURegisterVideoSurface(resource, vdpSurface, flags) return err -cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, cyruntime.VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsVDPAURegisterOutputSurface(resource, vdpSurface, flags) return err -cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cyruntime.cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGLGetDevices_v2(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) return err -cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, cyruntime.GLuint image, cyruntime.GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsGLRegisterImage(resource, image, target, flags) return err -cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, cyruntime.GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsGLRegisterBuffer(resource, buffer, flags) return err -cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, cyruntime.EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaGraphicsEGLRegisterImage(cudaGraphicsResource_t* pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuGraphicsEGLRegisterImage(pCudaResource, image, flags) return err -cdef cudaError_t _cudaEGLStreamConsumerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerConnect(conn, eglStream) return err -cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerConnectWithFlags(conn, eglStream, flags) return err -cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerDisconnect(conn) return err -cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) return err -cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cyruntime.cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) return err -cdef cudaError_t _cudaEGLStreamProducerConnect(cyruntime.cudaEglStreamConnection* conn, cyruntime.EGLStreamKHR eglStream, cyruntime.EGLint width, cyruntime.EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamProducerConnect(conn, eglStream, width, height) return err -cdef cudaError_t _cudaEGLStreamProducerDisconnect(cyruntime.cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEGLStreamProducerDisconnect(conn) return err -cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, cyruntime.EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t _cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess # cudaFree(0) is a NOP operations that initializes the context state - err = cudaFree(0) + err = _cudaFree(0) if err != cudaSuccess: return err err = cydriver._cuEventCreateFromEGLSync(phEvent, eglSync, flags) @@ -564,7 +572,7 @@ cdef cudaError_t getChannelFormatDescFromDriverDesc(cudaChannelFormatDesc* pRunt pWidth[0] = pDriverDesc[0].Width return cudaSuccess -cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cyruntime.cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cudaEglFrame eglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess cdef unsigned int i = 0 @@ -572,7 +580,7 @@ cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cyruntime.cu if err != cudaSuccess: return err for i in range(eglFrame.planeCount): - if eglFrame.frameType == cyruntime.cudaEglFrameTypeArray: + if eglFrame.frameType == cudaEglFrameTypeArray: cuEglFrame[0].frame.pArray[i] = eglFrame.frame.pArray[i] else: cuEglFrame[0].frame.pPitch[i] = eglFrame.frame.pPitch[i].ptr @@ -581,243 +589,243 @@ cdef cudaError_t getDriverEglFrame(cydriver.CUeglFrame *cuEglFrame, cyruntime.cu cuEglFrame[0].depth = eglFrame.planeDesc[0].depth cuEglFrame[0].pitch = eglFrame.planeDesc[0].pitch cuEglFrame[0].planeCount = eglFrame.planeCount - if eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar: + if eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUYV422: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUYV422: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_422 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY422: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY422: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_422 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY709: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatARGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatARGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ARGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatRGBA: + elif eglFrame.eglColorFormat == cudaEglColorFormatRGBA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RGBA - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatABGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatABGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ABGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBGRA: + elif eglFrame.eglColorFormat == cudaEglColorFormatBGRA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BGRA - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatL: + elif eglFrame.eglColorFormat == cudaEglColorFormatL: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_L - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatR: + elif eglFrame.eglColorFormat == cudaEglColorFormatR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_R - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatA: + elif eglFrame.eglColorFormat == cudaEglColorFormatA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_A - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatAYUV: + elif eglFrame.eglColorFormat == cudaEglColorFormatAYUV: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_444SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_420SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatVYUY_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatVYUY_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatUYVY_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatUYVY_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUYV_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUYV_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVYU_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVYU_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUVA_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUVA_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatAYUV_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatAYUV_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV422SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV422SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerRGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerRGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerBGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerBGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerGRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerGRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerGBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerGBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer14GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer14GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20RGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20RGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20BGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20BGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20GRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20GRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer20GBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer20GBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspRGGB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspRGGB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspBGGR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspBGGR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspGRBG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspGRBG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerIspGBRG: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerIspGBRG: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU444Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU444Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU422Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU422Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerBCCR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerBCCR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BCCR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerRCCB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerRCCB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RCCB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerCRBC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerCRBC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CRBC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayerCBRC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayerCBRC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CBRC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer10CCCC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer10CCCC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_CCCC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12BCCR: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12BCCR: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BCCR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12RCCB: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12RCCB: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RCCB - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12CRBC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12CRBC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CRBC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12CBRC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12CBRC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CBRC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatBayer12CCCC: + elif eglFrame.eglColorFormat == cudaEglColorFormatBayer12CCCC: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CCCC - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY: + elif eglFrame.eglColorFormat == cudaEglColorFormatY: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUV420Planar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUV420Planar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVU420Planar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVU420Planar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_2020: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_422SemiPlanar_2020: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_422SemiPlanar: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_709: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_422SemiPlanar_709: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709 - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYUVA: + elif eglFrame.eglColorFormat == cudaEglColorFormatYUVA: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatYVYU: + elif eglFrame.eglColorFormat == cudaEglColorFormatYVYU: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatVYUY: + elif eglFrame.eglColorFormat == cudaEglColorFormatVYUY: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_420SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_444SemiPlanar_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER - elif eglFrame.eglColorFormat == cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER: + elif eglFrame.eglColorFormat == cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER: cuEglFrame[0].eglColorFormat = cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER else: return cudaErrorInvalidValue - if eglFrame.frameType == cyruntime.cudaEglFrameTypeArray: + if eglFrame.frameType == cudaEglFrameTypeArray: cuEglFrame[0].frameType = cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_ARRAY - elif eglFrame.frameType == cyruntime.cudaEglFrameTypePitch: + elif eglFrame.frameType == cudaEglFrameTypePitch: cuEglFrame[0].frameType = cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_PITCH else: return cudaErrorInvalidValue @cython.show_performance_hints(False) -cdef cudaError_t getRuntimeEglFrame(cyruntime.cudaEglFrame *eglFrame, cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: +cdef cudaError_t getRuntimeEglFrame(cudaEglFrame *eglFrame, cydriver.CUeglFrame cueglFrame) except ?cudaErrorCallRequiresNewerDriver nogil: cdef cudaError_t err = cudaSuccess cdef unsigned int i cdef cydriver.CUDA_ARRAY3D_DESCRIPTOR_v2 ad @@ -935,242 +943,242 @@ cdef cudaError_t getRuntimeEglFrame(cyruntime.cudaEglFrame *eglFrame, cydriver.C if cueglFrame.frameType == cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_ARRAY: eglFrame[0].frame.pArray[i] = cueglFrame.frame.pArray[i] else: - pPtr = make_cudaPitchedPtr(cueglFrame.frame.pPitch[i], eglFrame[0].planeDesc[i].pitch, + pPtr = _cylib_make_cudaPitchedPtr(cueglFrame.frame.pPitch[i], eglFrame[0].planeDesc[i].pitch, eglFrame[0].planeDesc[i].width, eglFrame[0].planeDesc[i].height) eglFrame[0].frame.pPitch[i] = pPtr eglFrame[0].planeCount = cueglFrame.planeCount if cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_422: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUYV422 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUYV422 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_422: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY422 + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY422 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY709 + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ARGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatARGB + eglFrame[0].eglColorFormat = cudaEglColorFormatARGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RGBA: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatRGBA + eglFrame[0].eglColorFormat = cudaEglColorFormatRGBA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_ABGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatABGR + eglFrame[0].eglColorFormat = cudaEglColorFormatABGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BGRA: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBGRA + eglFrame[0].eglColorFormat = cudaEglColorFormatBGRA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_L: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatL + eglFrame[0].eglColorFormat = cudaEglColorFormatL elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_R: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatR + eglFrame[0].eglColorFormat = cudaEglColorFormatR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_A: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatA + eglFrame[0].eglColorFormat = cudaEglColorFormatA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_RG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatRG + eglFrame[0].eglColorFormat = cudaEglColorFormatRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatAYUV + eglFrame[0].eglColorFormat = cudaEglColorFormatAYUV elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_444SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_420SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatVYUY_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatVYUY_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_UYVY_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatUYVY_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatUYVY_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUYV_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUYV_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUYV_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVYU_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVYU_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUVA_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUVA_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_AYUV_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatAYUV_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatAYUV_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV422_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV422SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV422SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerRGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerRGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerBGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerBGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerGRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerGRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerGBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerGBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER14_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer14GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer14GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20RGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20RGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20BGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20BGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20GRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20GRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER20_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer20GBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer20GBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_RGGB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspRGGB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspRGGB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_BGGR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspBGGR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspBGGR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GRBG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspGRBG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspGRBG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_ISP_GBRG: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerIspGBRG + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerIspGBRG elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU444_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU444Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU444Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU422_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU422Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU422Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_BCCR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerBCCR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerBCCR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_RCCB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerRCCB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerRCCB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CRBC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerCRBC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerCRBC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER_CBRC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayerCBRC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayerCBRC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER10_CCCC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer10CCCC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer10CCCC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_BCCR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12BCCR + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12BCCR elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_RCCB: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12RCCB + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12RCCB elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CRBC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12CRBC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12CRBC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CBRC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12CBRC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12CBRC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_BAYER12_CCCC: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatBayer12CCCC + eglFrame[0].eglColorFormat = cudaEglColorFormatBayer12CCCC elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY + eglFrame[0].eglColorFormat = cudaEglColorFormatY elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUV420_PLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUV420Planar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYUV420Planar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVU420_PLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVU420Planar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatYVU420Planar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_2020: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_2020 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_422SemiPlanar_2020 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_422SemiPlanar elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_422_SEMIPLANAR_709: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_422SemiPlanar_709 + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_422SemiPlanar_709 elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YUVA: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYUVA + eglFrame[0].eglColorFormat = cudaEglColorFormatYUVA elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_YVYU: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatYVYU + eglFrame[0].eglColorFormat = cudaEglColorFormatYVYU elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_VYUY: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatVYUY + eglFrame[0].eglColorFormat = cudaEglColorFormatVYUY elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_420_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y10V10U10_444_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_420SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_420_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_444SemiPlanar_ER elif cueglFrame.eglColorFormat == cydriver.CUeglColorFormat_enum.CU_EGL_COLOR_FORMAT_Y12V12U12_444_SEMIPLANAR_709_ER: - eglFrame[0].eglColorFormat = cyruntime.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER + eglFrame[0].eglColorFormat = cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER else: return cudaErrorInvalidValue if cueglFrame.frameType == cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_ARRAY: - eglFrame[0].frameType = cyruntime.cudaEglFrameTypeArray + eglFrame[0].frameType = cudaEglFrameTypeArray elif cueglFrame.frameType == cydriver.CUeglFrameType_enum.CU_EGL_FRAME_TYPE_PITCH: - eglFrame[0].frameType = cyruntime.cudaEglFrameTypePitch + eglFrame[0].frameType = cudaEglFrameTypePitch else: return cudaErrorInvalidValue diff --git a/cuda_bindings/cuda/bindings/cydriver.pxd b/cuda_bindings/cuda/bindings/cydriver.pxd index 1d26517b0b2..42eb20484c8 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pxd +++ b/cuda_bindings/cuda/bindings/cydriver.pxd @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1738+g1060a290f. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260625. Do not modify it directly. from libc.stdint cimport uint32_t, uint64_t @@ -28,19 +28,19 @@ ctypedef uint32_t VdpOutputSurface # ENUMS cdef extern from 'cuda.h': - ctypedef enum CUipcMem_flags_enum: + cdef enum CUipcMem_flags_enum: CU_IPC_MEM_LAZY_ENABLE_PEER_ACCESS ctypedef CUipcMem_flags_enum CUipcMem_flags cdef extern from 'cuda.h': - ctypedef enum CUmemAttach_flags_enum: + cdef enum CUmemAttach_flags_enum: CU_MEM_ATTACH_GLOBAL CU_MEM_ATTACH_HOST CU_MEM_ATTACH_SINGLE ctypedef CUmemAttach_flags_enum CUmemAttach_flags cdef extern from 'cuda.h': - ctypedef enum CUctx_flags_enum: + cdef enum CUctx_flags_enum: CU_CTX_SCHED_AUTO CU_CTX_SCHED_SPIN CU_CTX_SCHED_YIELD @@ -56,7 +56,7 @@ cdef extern from 'cuda.h': ctypedef CUctx_flags_enum CUctx_flags cdef extern from 'cuda.h': - ctypedef enum CUevent_sched_flags_enum: + cdef enum CUevent_sched_flags_enum: CU_EVENT_SCHED_AUTO CU_EVENT_SCHED_SPIN CU_EVENT_SCHED_YIELD @@ -64,7 +64,7 @@ cdef extern from 'cuda.h': ctypedef CUevent_sched_flags_enum CUevent_sched_flags cdef extern from 'cuda.h': - ctypedef enum cl_event_flags_enum: + cdef enum cl_event_flags_enum: NVCL_EVENT_SCHED_AUTO NVCL_EVENT_SCHED_SPIN NVCL_EVENT_SCHED_YIELD @@ -72,7 +72,7 @@ cdef extern from 'cuda.h': ctypedef cl_event_flags_enum cl_event_flags cdef extern from 'cuda.h': - ctypedef enum cl_context_flags_enum: + cdef enum cl_context_flags_enum: NVCL_CTX_SCHED_AUTO NVCL_CTX_SCHED_SPIN NVCL_CTX_SCHED_YIELD @@ -80,13 +80,13 @@ cdef extern from 'cuda.h': ctypedef cl_context_flags_enum cl_context_flags cdef extern from 'cuda.h': - ctypedef enum CUstream_flags_enum: + cdef enum CUstream_flags_enum: CU_STREAM_DEFAULT CU_STREAM_NON_BLOCKING ctypedef CUstream_flags_enum CUstream_flags cdef extern from 'cuda.h': - ctypedef enum CUevent_flags_enum: + cdef enum CUevent_flags_enum: CU_EVENT_DEFAULT CU_EVENT_BLOCKING_SYNC CU_EVENT_DISABLE_TIMING @@ -94,19 +94,19 @@ cdef extern from 'cuda.h': ctypedef CUevent_flags_enum CUevent_flags cdef extern from 'cuda.h': - ctypedef enum CUevent_record_flags_enum: + cdef enum CUevent_record_flags_enum: CU_EVENT_RECORD_DEFAULT CU_EVENT_RECORD_EXTERNAL ctypedef CUevent_record_flags_enum CUevent_record_flags cdef extern from 'cuda.h': - ctypedef enum CUevent_wait_flags_enum: + cdef enum CUevent_wait_flags_enum: CU_EVENT_WAIT_DEFAULT CU_EVENT_WAIT_EXTERNAL ctypedef CUevent_wait_flags_enum CUevent_wait_flags cdef extern from 'cuda.h': - ctypedef enum CUstreamWaitValue_flags_enum: + cdef enum CUstreamWaitValue_flags_enum: CU_STREAM_WAIT_VALUE_GEQ CU_STREAM_WAIT_VALUE_EQ CU_STREAM_WAIT_VALUE_AND @@ -115,13 +115,13 @@ cdef extern from 'cuda.h': ctypedef CUstreamWaitValue_flags_enum CUstreamWaitValue_flags cdef extern from 'cuda.h': - ctypedef enum CUstreamWriteValue_flags_enum: + cdef enum CUstreamWriteValue_flags_enum: CU_STREAM_WRITE_VALUE_DEFAULT CU_STREAM_WRITE_VALUE_NO_MEMORY_BARRIER ctypedef CUstreamWriteValue_flags_enum CUstreamWriteValue_flags cdef extern from 'cuda.h': - ctypedef enum CUstreamBatchMemOpType_enum: + cdef enum CUstreamBatchMemOpType_enum: CU_STREAM_MEM_OP_WAIT_VALUE_32 CU_STREAM_MEM_OP_WRITE_VALUE_32 CU_STREAM_MEM_OP_WAIT_VALUE_64 @@ -132,30 +132,30 @@ cdef extern from 'cuda.h': ctypedef CUstreamBatchMemOpType_enum CUstreamBatchMemOpType cdef extern from 'cuda.h': - ctypedef enum CUstreamMemoryBarrier_flags_enum: + cdef enum CUstreamMemoryBarrier_flags_enum: CU_STREAM_MEMORY_BARRIER_TYPE_SYS CU_STREAM_MEMORY_BARRIER_TYPE_GPU ctypedef CUstreamMemoryBarrier_flags_enum CUstreamMemoryBarrier_flags cdef extern from 'cuda.h': - ctypedef enum CUoccupancy_flags_enum: + cdef enum CUoccupancy_flags_enum: CU_OCCUPANCY_DEFAULT CU_OCCUPANCY_DISABLE_CACHING_OVERRIDE ctypedef CUoccupancy_flags_enum CUoccupancy_flags cdef extern from 'cuda.h': - ctypedef enum CUstreamUpdateCaptureDependencies_flags_enum: + cdef enum CUstreamUpdateCaptureDependencies_flags_enum: CU_STREAM_ADD_CAPTURE_DEPENDENCIES CU_STREAM_SET_CAPTURE_DEPENDENCIES ctypedef CUstreamUpdateCaptureDependencies_flags_enum CUstreamUpdateCaptureDependencies_flags cdef extern from 'cuda.h': - ctypedef enum CUasyncNotificationType_enum: + cdef enum CUasyncNotificationType_enum: CU_ASYNC_NOTIFICATION_TYPE_OVER_BUDGET ctypedef CUasyncNotificationType_enum CUasyncNotificationType cdef extern from 'cuda.h': - ctypedef enum CUarray_format_enum: + cdef enum CUarray_format_enum: CU_AD_FORMAT_UNSIGNED_INT8 CU_AD_FORMAT_UNSIGNED_INT16 CU_AD_FORMAT_UNSIGNED_INT32 @@ -225,7 +225,7 @@ cdef extern from 'cuda.h': ctypedef CUarray_format_enum CUarray_format cdef extern from 'cuda.h': - ctypedef enum CUaddress_mode_enum: + cdef enum CUaddress_mode_enum: CU_TR_ADDRESS_MODE_WRAP CU_TR_ADDRESS_MODE_CLAMP CU_TR_ADDRESS_MODE_MIRROR @@ -233,13 +233,13 @@ cdef extern from 'cuda.h': ctypedef CUaddress_mode_enum CUaddress_mode cdef extern from 'cuda.h': - ctypedef enum CUfilter_mode_enum: + cdef enum CUfilter_mode_enum: CU_TR_FILTER_MODE_POINT CU_TR_FILTER_MODE_LINEAR ctypedef CUfilter_mode_enum CUfilter_mode cdef extern from 'cuda.h': - ctypedef enum CUdevice_attribute_enum: + cdef enum CUdevice_attribute_enum: CU_DEVICE_ATTRIBUTE_MAX_THREADS_PER_BLOCK CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_X CU_DEVICE_ATTRIBUTE_MAX_BLOCK_DIM_Y @@ -404,7 +404,7 @@ cdef extern from 'cuda.h': ctypedef CUdevice_attribute_enum CUdevice_attribute cdef extern from 'cuda.h': - ctypedef enum CUpointer_attribute_enum: + cdef enum CUpointer_attribute_enum: CU_POINTER_ATTRIBUTE_CONTEXT CU_POINTER_ATTRIBUTE_MEMORY_TYPE CU_POINTER_ATTRIBUTE_DEVICE_POINTER @@ -429,7 +429,7 @@ cdef extern from 'cuda.h': ctypedef CUpointer_attribute_enum CUpointer_attribute cdef extern from 'cuda.h': - ctypedef enum CUfunction_attribute_enum: + cdef enum CUfunction_attribute_enum: CU_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK CU_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES CU_FUNC_ATTRIBUTE_CONST_SIZE_BYTES @@ -451,7 +451,7 @@ cdef extern from 'cuda.h': ctypedef CUfunction_attribute_enum CUfunction_attribute cdef extern from 'cuda.h': - ctypedef enum CUfunc_cache_enum: + cdef enum CUfunc_cache_enum: CU_FUNC_CACHE_PREFER_NONE CU_FUNC_CACHE_PREFER_SHARED CU_FUNC_CACHE_PREFER_L1 @@ -459,21 +459,21 @@ cdef extern from 'cuda.h': ctypedef CUfunc_cache_enum CUfunc_cache cdef extern from 'cuda.h': - ctypedef enum CUsharedconfig_enum: + cdef enum CUsharedconfig_enum: CU_SHARED_MEM_CONFIG_DEFAULT_BANK_SIZE CU_SHARED_MEM_CONFIG_FOUR_BYTE_BANK_SIZE CU_SHARED_MEM_CONFIG_EIGHT_BYTE_BANK_SIZE ctypedef CUsharedconfig_enum CUsharedconfig cdef extern from 'cuda.h': - ctypedef enum CUshared_carveout_enum: + cdef enum CUshared_carveout_enum: CU_SHAREDMEM_CARVEOUT_DEFAULT CU_SHAREDMEM_CARVEOUT_MAX_SHARED CU_SHAREDMEM_CARVEOUT_MAX_L1 ctypedef CUshared_carveout_enum CUshared_carveout cdef extern from 'cuda.h': - ctypedef enum CUmemorytype_enum: + cdef enum CUmemorytype_enum: CU_MEMORYTYPE_HOST CU_MEMORYTYPE_DEVICE CU_MEMORYTYPE_ARRAY @@ -481,14 +481,14 @@ cdef extern from 'cuda.h': ctypedef CUmemorytype_enum CUmemorytype cdef extern from 'cuda.h': - ctypedef enum CUcomputemode_enum: + cdef enum CUcomputemode_enum: CU_COMPUTEMODE_DEFAULT CU_COMPUTEMODE_PROHIBITED CU_COMPUTEMODE_EXCLUSIVE_PROCESS ctypedef CUcomputemode_enum CUcomputemode cdef extern from 'cuda.h': - ctypedef enum CUmem_advise_enum: + cdef enum CUmem_advise_enum: CU_MEM_ADVISE_SET_READ_MOSTLY CU_MEM_ADVISE_UNSET_READ_MOSTLY CU_MEM_ADVISE_SET_PREFERRED_LOCATION @@ -498,7 +498,7 @@ cdef extern from 'cuda.h': ctypedef CUmem_advise_enum CUmem_advise cdef extern from 'cuda.h': - ctypedef enum CUmem_range_attribute_enum: + cdef enum CUmem_range_attribute_enum: CU_MEM_RANGE_ATTRIBUTE_READ_MOSTLY CU_MEM_RANGE_ATTRIBUTE_PREFERRED_LOCATION CU_MEM_RANGE_ATTRIBUTE_ACCESSED_BY @@ -510,7 +510,7 @@ cdef extern from 'cuda.h': ctypedef CUmem_range_attribute_enum CUmem_range_attribute cdef extern from 'cuda.h': - ctypedef enum CUjit_option_enum: + cdef enum CUjit_option_enum: CU_JIT_MAX_REGISTERS CU_JIT_THREADS_PER_BLOCK CU_JIT_WALL_TIME @@ -551,7 +551,7 @@ cdef extern from 'cuda.h': ctypedef CUjit_option_enum CUjit_option cdef extern from 'cuda.h': - ctypedef enum CUjit_target_enum: + cdef enum CUjit_target_enum: CU_TARGET_COMPUTE_30 CU_TARGET_COMPUTE_32 CU_TARGET_COMPUTE_35 @@ -592,20 +592,20 @@ cdef extern from 'cuda.h': ctypedef CUjit_target_enum CUjit_target cdef extern from 'cuda.h': - ctypedef enum CUjit_fallback_enum: + cdef enum CUjit_fallback_enum: CU_PREFER_PTX CU_PREFER_BINARY ctypedef CUjit_fallback_enum CUjit_fallback cdef extern from 'cuda.h': - ctypedef enum CUjit_cacheMode_enum: + cdef enum CUjit_cacheMode_enum: CU_JIT_CACHE_OPTION_NONE CU_JIT_CACHE_OPTION_CG CU_JIT_CACHE_OPTION_CA ctypedef CUjit_cacheMode_enum CUjit_cacheMode cdef extern from 'cuda.h': - ctypedef enum CUjitInputType_enum: + cdef enum CUjitInputType_enum: CU_JIT_INPUT_CUBIN CU_JIT_INPUT_PTX CU_JIT_INPUT_FATBINARY @@ -616,7 +616,7 @@ cdef extern from 'cuda.h': ctypedef CUjitInputType_enum CUjitInputType cdef extern from 'cuda.h': - ctypedef enum CUgraphicsRegisterFlags_enum: + cdef enum CUgraphicsRegisterFlags_enum: CU_GRAPHICS_REGISTER_FLAGS_NONE CU_GRAPHICS_REGISTER_FLAGS_READ_ONLY CU_GRAPHICS_REGISTER_FLAGS_WRITE_DISCARD @@ -625,14 +625,14 @@ cdef extern from 'cuda.h': ctypedef CUgraphicsRegisterFlags_enum CUgraphicsRegisterFlags cdef extern from 'cuda.h': - ctypedef enum CUgraphicsMapResourceFlags_enum: + cdef enum CUgraphicsMapResourceFlags_enum: CU_GRAPHICS_MAP_RESOURCE_FLAGS_NONE CU_GRAPHICS_MAP_RESOURCE_FLAGS_READ_ONLY CU_GRAPHICS_MAP_RESOURCE_FLAGS_WRITE_DISCARD ctypedef CUgraphicsMapResourceFlags_enum CUgraphicsMapResourceFlags cdef extern from 'cuda.h': - ctypedef enum CUarray_cubemap_face_enum: + cdef enum CUarray_cubemap_face_enum: CU_CUBEMAP_FACE_POSITIVE_X CU_CUBEMAP_FACE_NEGATIVE_X CU_CUBEMAP_FACE_POSITIVE_Y @@ -642,7 +642,7 @@ cdef extern from 'cuda.h': ctypedef CUarray_cubemap_face_enum CUarray_cubemap_face cdef extern from 'cuda.h': - ctypedef enum CUlimit_enum: + cdef enum CUlimit_enum: CU_LIMIT_STACK_SIZE CU_LIMIT_PRINTF_FIFO_SIZE CU_LIMIT_MALLOC_HEAP_SIZE @@ -657,7 +657,7 @@ cdef extern from 'cuda.h': ctypedef CUlimit_enum CUlimit cdef extern from 'cuda.h': - ctypedef enum CUresourcetype_enum: + cdef enum CUresourcetype_enum: CU_RESOURCE_TYPE_ARRAY CU_RESOURCE_TYPE_MIPMAPPED_ARRAY CU_RESOURCE_TYPE_LINEAR @@ -665,21 +665,21 @@ cdef extern from 'cuda.h': ctypedef CUresourcetype_enum CUresourcetype cdef extern from 'cuda.h': - ctypedef enum CUaccessProperty_enum: + cdef enum CUaccessProperty_enum: CU_ACCESS_PROPERTY_NORMAL CU_ACCESS_PROPERTY_STREAMING CU_ACCESS_PROPERTY_PERSISTING ctypedef CUaccessProperty_enum CUaccessProperty cdef extern from 'cuda.h': - ctypedef enum CUgraphConditionalNodeType_enum: + cdef enum CUgraphConditionalNodeType_enum: CU_GRAPH_COND_TYPE_IF CU_GRAPH_COND_TYPE_WHILE CU_GRAPH_COND_TYPE_SWITCH ctypedef CUgraphConditionalNodeType_enum CUgraphConditionalNodeType cdef extern from 'cuda.h': - ctypedef enum CUgraphNodeType_enum: + cdef enum CUgraphNodeType_enum: CU_GRAPH_NODE_TYPE_KERNEL CU_GRAPH_NODE_TYPE_MEMCPY CU_GRAPH_NODE_TYPE_MEMSET @@ -698,13 +698,13 @@ cdef extern from 'cuda.h': ctypedef CUgraphNodeType_enum CUgraphNodeType cdef extern from 'cuda.h': - ctypedef enum CUgraphDependencyType_enum: + cdef enum CUgraphDependencyType_enum: CU_GRAPH_DEPENDENCY_TYPE_DEFAULT CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC ctypedef CUgraphDependencyType_enum CUgraphDependencyType cdef extern from 'cuda.h': - ctypedef enum CUgraphInstantiateResult_enum: + cdef enum CUgraphInstantiateResult_enum: CUDA_GRAPH_INSTANTIATE_SUCCESS CUDA_GRAPH_INSTANTIATE_ERROR CUDA_GRAPH_INSTANTIATE_INVALID_STRUCTURE @@ -714,7 +714,7 @@ cdef extern from 'cuda.h': ctypedef CUgraphInstantiateResult_enum CUgraphInstantiateResult cdef extern from 'cuda.h': - ctypedef enum CUsynchronizationPolicy_enum: + cdef enum CUsynchronizationPolicy_enum: CU_SYNC_POLICY_AUTO CU_SYNC_POLICY_SPIN CU_SYNC_POLICY_YIELD @@ -722,20 +722,20 @@ cdef extern from 'cuda.h': ctypedef CUsynchronizationPolicy_enum CUsynchronizationPolicy cdef extern from 'cuda.h': - ctypedef enum CUclusterSchedulingPolicy_enum: + cdef enum CUclusterSchedulingPolicy_enum: CU_CLUSTER_SCHEDULING_POLICY_DEFAULT CU_CLUSTER_SCHEDULING_POLICY_SPREAD CU_CLUSTER_SCHEDULING_POLICY_LOAD_BALANCING ctypedef CUclusterSchedulingPolicy_enum CUclusterSchedulingPolicy cdef extern from 'cuda.h': - ctypedef enum CUlaunchMemSyncDomain_enum: + cdef enum CUlaunchMemSyncDomain_enum: CU_LAUNCH_MEM_SYNC_DOMAIN_DEFAULT CU_LAUNCH_MEM_SYNC_DOMAIN_REMOTE ctypedef CUlaunchMemSyncDomain_enum CUlaunchMemSyncDomain cdef extern from 'cuda.h': - ctypedef enum CUlaunchAttributeID_enum: + cdef enum CUlaunchAttributeID_enum: CU_LAUNCH_ATTRIBUTE_IGNORE CU_LAUNCH_ATTRIBUTE_ACCESS_POLICY_WINDOW CU_LAUNCH_ATTRIBUTE_COOPERATIVE @@ -757,54 +757,54 @@ cdef extern from 'cuda.h': ctypedef CUlaunchAttributeID_enum CUlaunchAttributeID cdef extern from 'cuda.h': - ctypedef enum CUstreamCaptureStatus_enum: + cdef enum CUstreamCaptureStatus_enum: CU_STREAM_CAPTURE_STATUS_NONE CU_STREAM_CAPTURE_STATUS_ACTIVE CU_STREAM_CAPTURE_STATUS_INVALIDATED ctypedef CUstreamCaptureStatus_enum CUstreamCaptureStatus cdef extern from 'cuda.h': - ctypedef enum CUstreamCaptureMode_enum: + cdef enum CUstreamCaptureMode_enum: CU_STREAM_CAPTURE_MODE_GLOBAL CU_STREAM_CAPTURE_MODE_THREAD_LOCAL CU_STREAM_CAPTURE_MODE_RELAXED ctypedef CUstreamCaptureMode_enum CUstreamCaptureMode cdef extern from 'cuda.h': - ctypedef enum CUdriverProcAddress_flags_enum: + cdef enum CUdriverProcAddress_flags_enum: CU_GET_PROC_ADDRESS_DEFAULT CU_GET_PROC_ADDRESS_LEGACY_STREAM CU_GET_PROC_ADDRESS_PER_THREAD_DEFAULT_STREAM ctypedef CUdriverProcAddress_flags_enum CUdriverProcAddress_flags cdef extern from 'cuda.h': - ctypedef enum CUdriverProcAddressQueryResult_enum: + cdef enum CUdriverProcAddressQueryResult_enum: CU_GET_PROC_ADDRESS_SUCCESS CU_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND CU_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT ctypedef CUdriverProcAddressQueryResult_enum CUdriverProcAddressQueryResult cdef extern from 'cuda.h': - ctypedef enum CUexecAffinityType_enum: + cdef enum CUexecAffinityType_enum: CU_EXEC_AFFINITY_TYPE_SM_COUNT CU_EXEC_AFFINITY_TYPE_MAX ctypedef CUexecAffinityType_enum CUexecAffinityType cdef extern from 'cuda.h': - ctypedef enum CUcigDataType_enum: + cdef enum CUcigDataType_enum: CIG_DATA_TYPE_D3D12_COMMAND_QUEUE CIG_DATA_TYPE_NV_BLOB ctypedef CUcigDataType_enum CUcigDataType cdef extern from 'cuda.h': - ctypedef enum CUlibraryOption_enum: + cdef enum CUlibraryOption_enum: CU_LIBRARY_HOST_UNIVERSAL_FUNCTION_AND_DATA_TABLE CU_LIBRARY_BINARY_IS_PRESERVED CU_LIBRARY_NUM_OPTIONS ctypedef CUlibraryOption_enum CUlibraryOption cdef extern from 'cuda.h': - ctypedef enum cudaError_enum: + cdef enum cudaError_enum: CUDA_SUCCESS CUDA_ERROR_INVALID_VALUE CUDA_ERROR_OUT_OF_MEMORY @@ -911,7 +911,7 @@ cdef extern from 'cuda.h': ctypedef cudaError_enum CUresult cdef extern from 'cuda.h': - ctypedef enum CUdevice_P2PAttribute_enum: + cdef enum CUdevice_P2PAttribute_enum: CU_DEVICE_P2P_ATTRIBUTE_PERFORMANCE_RANK CU_DEVICE_P2P_ATTRIBUTE_ACCESS_SUPPORTED CU_DEVICE_P2P_ATTRIBUTE_NATIVE_ATOMIC_SUPPORTED @@ -921,7 +921,7 @@ cdef extern from 'cuda.h': ctypedef CUdevice_P2PAttribute_enum CUdevice_P2PAttribute cdef extern from 'cuda.h': - ctypedef enum CUresourceViewFormat_enum: + cdef enum CUresourceViewFormat_enum: CU_RES_VIEW_FORMAT_NONE CU_RES_VIEW_FORMAT_UINT_1X8 CU_RES_VIEW_FORMAT_UINT_2X8 @@ -960,7 +960,7 @@ cdef extern from 'cuda.h': ctypedef CUresourceViewFormat_enum CUresourceViewFormat cdef extern from 'cuda.h': - ctypedef enum CUtensorMapDataType_enum: + cdef enum CUtensorMapDataType_enum: CU_TENSOR_MAP_DATA_TYPE_UINT8 CU_TENSOR_MAP_DATA_TYPE_UINT16 CU_TENSOR_MAP_DATA_TYPE_UINT32 @@ -980,14 +980,14 @@ cdef extern from 'cuda.h': ctypedef CUtensorMapDataType_enum CUtensorMapDataType cdef extern from 'cuda.h': - ctypedef enum CUtensorMapInterleave_enum: + cdef enum CUtensorMapInterleave_enum: CU_TENSOR_MAP_INTERLEAVE_NONE CU_TENSOR_MAP_INTERLEAVE_16B CU_TENSOR_MAP_INTERLEAVE_32B ctypedef CUtensorMapInterleave_enum CUtensorMapInterleave cdef extern from 'cuda.h': - ctypedef enum CUtensorMapSwizzle_enum: + cdef enum CUtensorMapSwizzle_enum: CU_TENSOR_MAP_SWIZZLE_NONE CU_TENSOR_MAP_SWIZZLE_32B CU_TENSOR_MAP_SWIZZLE_64B @@ -998,7 +998,7 @@ cdef extern from 'cuda.h': ctypedef CUtensorMapSwizzle_enum CUtensorMapSwizzle cdef extern from 'cuda.h': - ctypedef enum CUtensorMapL2promotion_enum: + cdef enum CUtensorMapL2promotion_enum: CU_TENSOR_MAP_L2_PROMOTION_NONE CU_TENSOR_MAP_L2_PROMOTION_L2_64B CU_TENSOR_MAP_L2_PROMOTION_L2_128B @@ -1006,26 +1006,26 @@ cdef extern from 'cuda.h': ctypedef CUtensorMapL2promotion_enum CUtensorMapL2promotion cdef extern from 'cuda.h': - ctypedef enum CUtensorMapFloatOOBfill_enum: + cdef enum CUtensorMapFloatOOBfill_enum: CU_TENSOR_MAP_FLOAT_OOB_FILL_NONE CU_TENSOR_MAP_FLOAT_OOB_FILL_NAN_REQUEST_ZERO_FMA ctypedef CUtensorMapFloatOOBfill_enum CUtensorMapFloatOOBfill cdef extern from 'cuda.h': - ctypedef enum CUtensorMapIm2ColWideMode_enum: + cdef enum CUtensorMapIm2ColWideMode_enum: CU_TENSOR_MAP_IM2COL_WIDE_MODE_W CU_TENSOR_MAP_IM2COL_WIDE_MODE_W128 ctypedef CUtensorMapIm2ColWideMode_enum CUtensorMapIm2ColWideMode cdef extern from 'cuda.h': - ctypedef enum CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum: + cdef enum CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum: CU_POINTER_ATTRIBUTE_ACCESS_FLAG_NONE CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READ CU_POINTER_ATTRIBUTE_ACCESS_FLAG_READWRITE ctypedef CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS_enum CUDA_POINTER_ATTRIBUTE_ACCESS_FLAGS cdef extern from 'cuda.h': - ctypedef enum CUexternalMemoryHandleType_enum: + cdef enum CUexternalMemoryHandleType_enum: CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_FD CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32 CU_EXTERNAL_MEMORY_HANDLE_TYPE_OPAQUE_WIN32_KMT @@ -1038,7 +1038,7 @@ cdef extern from 'cuda.h': ctypedef CUexternalMemoryHandleType_enum CUexternalMemoryHandleType cdef extern from 'cuda.h': - ctypedef enum CUexternalSemaphoreHandleType_enum: + cdef enum CUexternalSemaphoreHandleType_enum: CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_FD CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32 CU_EXTERNAL_SEMAPHORE_HANDLE_TYPE_OPAQUE_WIN32_KMT @@ -1052,7 +1052,7 @@ cdef extern from 'cuda.h': ctypedef CUexternalSemaphoreHandleType_enum CUexternalSemaphoreHandleType cdef extern from 'cuda.h': - ctypedef enum CUmemAllocationHandleType_enum: + cdef enum CUmemAllocationHandleType_enum: CU_MEM_HANDLE_TYPE_NONE CU_MEM_HANDLE_TYPE_POSIX_FILE_DESCRIPTOR CU_MEM_HANDLE_TYPE_WIN32 @@ -1062,7 +1062,7 @@ cdef extern from 'cuda.h': ctypedef CUmemAllocationHandleType_enum CUmemAllocationHandleType cdef extern from 'cuda.h': - ctypedef enum CUmemAccess_flags_enum: + cdef enum CUmemAccess_flags_enum: CU_MEM_ACCESS_FLAGS_PROT_NONE CU_MEM_ACCESS_FLAGS_PROT_READ CU_MEM_ACCESS_FLAGS_PROT_READWRITE @@ -1070,7 +1070,7 @@ cdef extern from 'cuda.h': ctypedef CUmemAccess_flags_enum CUmemAccess_flags cdef extern from 'cuda.h': - ctypedef enum CUmemLocationType_enum: + cdef enum CUmemLocationType_enum: CU_MEM_LOCATION_TYPE_INVALID CU_MEM_LOCATION_TYPE_NONE CU_MEM_LOCATION_TYPE_DEVICE @@ -1082,7 +1082,7 @@ cdef extern from 'cuda.h': ctypedef CUmemLocationType_enum CUmemLocationType cdef extern from 'cuda.h': - ctypedef enum CUmemAllocationType_enum: + cdef enum CUmemAllocationType_enum: CU_MEM_ALLOCATION_TYPE_INVALID CU_MEM_ALLOCATION_TYPE_PINNED CU_MEM_ALLOCATION_TYPE_MANAGED @@ -1090,53 +1090,53 @@ cdef extern from 'cuda.h': ctypedef CUmemAllocationType_enum CUmemAllocationType cdef extern from 'cuda.h': - ctypedef enum CUmemAllocationGranularity_flags_enum: + cdef enum CUmemAllocationGranularity_flags_enum: CU_MEM_ALLOC_GRANULARITY_MINIMUM CU_MEM_ALLOC_GRANULARITY_RECOMMENDED ctypedef CUmemAllocationGranularity_flags_enum CUmemAllocationGranularity_flags cdef extern from 'cuda.h': - ctypedef enum CUmemRangeHandleType_enum: + cdef enum CUmemRangeHandleType_enum: CU_MEM_RANGE_HANDLE_TYPE_DMA_BUF_FD CU_MEM_RANGE_HANDLE_TYPE_MAX ctypedef CUmemRangeHandleType_enum CUmemRangeHandleType cdef extern from 'cuda.h': - ctypedef enum CUmemRangeFlags_enum: + cdef enum CUmemRangeFlags_enum: CU_MEM_RANGE_FLAG_DMA_BUF_MAPPING_TYPE_PCIE ctypedef CUmemRangeFlags_enum CUmemRangeFlags cdef extern from 'cuda.h': - ctypedef enum CUarraySparseSubresourceType_enum: + cdef enum CUarraySparseSubresourceType_enum: CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_SPARSE_LEVEL CU_ARRAY_SPARSE_SUBRESOURCE_TYPE_MIPTAIL ctypedef CUarraySparseSubresourceType_enum CUarraySparseSubresourceType cdef extern from 'cuda.h': - ctypedef enum CUmemOperationType_enum: + cdef enum CUmemOperationType_enum: CU_MEM_OPERATION_TYPE_MAP CU_MEM_OPERATION_TYPE_UNMAP ctypedef CUmemOperationType_enum CUmemOperationType cdef extern from 'cuda.h': - ctypedef enum CUmemHandleType_enum: + cdef enum CUmemHandleType_enum: CU_MEM_HANDLE_TYPE_GENERIC ctypedef CUmemHandleType_enum CUmemHandleType cdef extern from 'cuda.h': - ctypedef enum CUmemAllocationCompType_enum: + cdef enum CUmemAllocationCompType_enum: CU_MEM_ALLOCATION_COMP_NONE CU_MEM_ALLOCATION_COMP_GENERIC ctypedef CUmemAllocationCompType_enum CUmemAllocationCompType cdef extern from 'cuda.h': - ctypedef enum CUmulticastGranularity_flags_enum: + cdef enum CUmulticastGranularity_flags_enum: CU_MULTICAST_GRANULARITY_MINIMUM CU_MULTICAST_GRANULARITY_RECOMMENDED ctypedef CUmulticastGranularity_flags_enum CUmulticastGranularity_flags cdef extern from 'cuda.h': - ctypedef enum CUgraphExecUpdateResult_enum: + cdef enum CUgraphExecUpdateResult_enum: CU_GRAPH_EXEC_UPDATE_SUCCESS CU_GRAPH_EXEC_UPDATE_ERROR CU_GRAPH_EXEC_UPDATE_ERROR_TOPOLOGY_CHANGED @@ -1149,7 +1149,7 @@ cdef extern from 'cuda.h': ctypedef CUgraphExecUpdateResult_enum CUgraphExecUpdateResult cdef extern from 'cuda.h': - ctypedef enum CUmemPool_attribute_enum: + cdef enum CUmemPool_attribute_enum: CU_MEMPOOL_ATTR_REUSE_FOLLOW_EVENT_DEPENDENCIES CU_MEMPOOL_ATTR_REUSE_ALLOW_OPPORTUNISTIC CU_MEMPOOL_ATTR_REUSE_ALLOW_INTERNAL_DEPENDENCIES @@ -1167,13 +1167,13 @@ cdef extern from 'cuda.h': ctypedef CUmemPool_attribute_enum CUmemPool_attribute cdef extern from 'cuda.h': - ctypedef enum CUmemcpyFlags_enum: + cdef enum CUmemcpyFlags_enum: CU_MEMCPY_FLAG_DEFAULT CU_MEMCPY_FLAG_PREFER_OVERLAP_WITH_COMPUTE ctypedef CUmemcpyFlags_enum CUmemcpyFlags cdef extern from 'cuda.h': - ctypedef enum CUmemcpySrcAccessOrder_enum: + cdef enum CUmemcpySrcAccessOrder_enum: CU_MEMCPY_SRC_ACCESS_ORDER_INVALID CU_MEMCPY_SRC_ACCESS_ORDER_STREAM CU_MEMCPY_SRC_ACCESS_ORDER_DURING_API_CALL @@ -1182,14 +1182,14 @@ cdef extern from 'cuda.h': ctypedef CUmemcpySrcAccessOrder_enum CUmemcpySrcAccessOrder cdef extern from 'cuda.h': - ctypedef enum CUmemcpy3DOperandType_enum: + cdef enum CUmemcpy3DOperandType_enum: CU_MEMCPY_OPERAND_TYPE_POINTER CU_MEMCPY_OPERAND_TYPE_ARRAY CU_MEMCPY_OPERAND_TYPE_MAX ctypedef CUmemcpy3DOperandType_enum CUmemcpy3DOperandType cdef extern from 'cuda.h': - ctypedef enum CUgraphMem_attribute_enum: + cdef enum CUgraphMem_attribute_enum: CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT CU_GRAPH_MEM_ATTR_USED_MEM_HIGH CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT @@ -1197,38 +1197,38 @@ cdef extern from 'cuda.h': ctypedef CUgraphMem_attribute_enum CUgraphMem_attribute cdef extern from 'cuda.h': - ctypedef enum CUgraphChildGraphNodeOwnership_enum: + cdef enum CUgraphChildGraphNodeOwnership_enum: CU_GRAPH_CHILD_GRAPH_OWNERSHIP_CLONE CU_GRAPH_CHILD_GRAPH_OWNERSHIP_MOVE CU_GRAPH_CHILD_GRAPH_OWNERSHIP_INVALID ctypedef CUgraphChildGraphNodeOwnership_enum CUgraphChildGraphNodeOwnership cdef extern from 'cuda.h': - ctypedef enum CUflushGPUDirectRDMAWritesOptions_enum: + cdef enum CUflushGPUDirectRDMAWritesOptions_enum: CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_HOST CU_FLUSH_GPU_DIRECT_RDMA_WRITES_OPTION_MEMOPS ctypedef CUflushGPUDirectRDMAWritesOptions_enum CUflushGPUDirectRDMAWritesOptions cdef extern from 'cuda.h': - ctypedef enum CUGPUDirectRDMAWritesOrdering_enum: + cdef enum CUGPUDirectRDMAWritesOrdering_enum: CU_GPU_DIRECT_RDMA_WRITES_ORDERING_NONE CU_GPU_DIRECT_RDMA_WRITES_ORDERING_OWNER CU_GPU_DIRECT_RDMA_WRITES_ORDERING_ALL_DEVICES ctypedef CUGPUDirectRDMAWritesOrdering_enum CUGPUDirectRDMAWritesOrdering cdef extern from 'cuda.h': - ctypedef enum CUflushGPUDirectRDMAWritesScope_enum: + cdef enum CUflushGPUDirectRDMAWritesScope_enum: CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_OWNER CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TO_ALL_DEVICES ctypedef CUflushGPUDirectRDMAWritesScope_enum CUflushGPUDirectRDMAWritesScope cdef extern from 'cuda.h': - ctypedef enum CUflushGPUDirectRDMAWritesTarget_enum: + cdef enum CUflushGPUDirectRDMAWritesTarget_enum: CU_FLUSH_GPU_DIRECT_RDMA_WRITES_TARGET_CURRENT_CTX ctypedef CUflushGPUDirectRDMAWritesTarget_enum CUflushGPUDirectRDMAWritesTarget cdef extern from 'cuda.h': - ctypedef enum CUgraphDebugDot_flags_enum: + cdef enum CUgraphDebugDot_flags_enum: CU_GRAPH_DEBUG_DOT_FLAGS_VERBOSE CU_GRAPH_DEBUG_DOT_FLAGS_RUNTIME_TYPES CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS @@ -1248,17 +1248,17 @@ cdef extern from 'cuda.h': ctypedef CUgraphDebugDot_flags_enum CUgraphDebugDot_flags cdef extern from 'cuda.h': - ctypedef enum CUuserObject_flags_enum: + cdef enum CUuserObject_flags_enum: CU_USER_OBJECT_NO_DESTRUCTOR_SYNC ctypedef CUuserObject_flags_enum CUuserObject_flags cdef extern from 'cuda.h': - ctypedef enum CUuserObjectRetain_flags_enum: + cdef enum CUuserObjectRetain_flags_enum: CU_GRAPH_USER_OBJECT_MOVE ctypedef CUuserObjectRetain_flags_enum CUuserObjectRetain_flags cdef extern from 'cuda.h': - ctypedef enum CUgraphInstantiate_flags_enum: + cdef enum CUgraphInstantiate_flags_enum: CUDA_GRAPH_INSTANTIATE_FLAG_AUTO_FREE_ON_LAUNCH CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH @@ -1266,13 +1266,13 @@ cdef extern from 'cuda.h': ctypedef CUgraphInstantiate_flags_enum CUgraphInstantiate_flags cdef extern from 'cuda.h': - ctypedef enum CUdeviceNumaConfig_enum: + cdef enum CUdeviceNumaConfig_enum: CU_DEVICE_NUMA_CONFIG_NONE CU_DEVICE_NUMA_CONFIG_NUMA_NODE ctypedef CUdeviceNumaConfig_enum CUdeviceNumaConfig cdef extern from 'cuda.h': - ctypedef enum CUprocessState_enum: + cdef enum CUprocessState_enum: CU_PROCESS_STATE_RUNNING CU_PROCESS_STATE_LOCKED CU_PROCESS_STATE_CHECKPOINTED @@ -1280,13 +1280,13 @@ cdef extern from 'cuda.h': ctypedef CUprocessState_enum CUprocessState cdef extern from 'cuda.h': - ctypedef enum CUmoduleLoadingMode_enum: + cdef enum CUmoduleLoadingMode_enum: CU_MODULE_EAGER_LOADING CU_MODULE_LAZY_LOADING ctypedef CUmoduleLoadingMode_enum CUmoduleLoadingMode cdef extern from 'cuda.h': - ctypedef enum CUmemDecompressAlgorithm_enum: + cdef enum CUmemDecompressAlgorithm_enum: CU_MEM_DECOMPRESS_UNSUPPORTED CU_MEM_DECOMPRESS_ALGORITHM_DEFLATE CU_MEM_DECOMPRESS_ALGORITHM_SNAPPY @@ -1294,14 +1294,14 @@ cdef extern from 'cuda.h': ctypedef CUmemDecompressAlgorithm_enum CUmemDecompressAlgorithm cdef extern from 'cuda.h': - ctypedef enum CUfunctionLoadingState_enum: + cdef enum CUfunctionLoadingState_enum: CU_FUNCTION_LOADING_STATE_UNLOADED CU_FUNCTION_LOADING_STATE_LOADED CU_FUNCTION_LOADING_STATE_MAX ctypedef CUfunctionLoadingState_enum CUfunctionLoadingState cdef extern from 'cuda.h': - ctypedef enum CUcoredumpSettings_enum: + cdef enum CUcoredumpSettings_enum: CU_COREDUMP_ENABLE_ON_EXCEPTION CU_COREDUMP_TRIGGER_HOST CU_COREDUMP_LIGHTWEIGHT @@ -1313,7 +1313,7 @@ cdef extern from 'cuda.h': ctypedef CUcoredumpSettings_enum CUcoredumpSettings cdef extern from 'cuda.h': - ctypedef enum CUCoredumpGenerationFlags: + cdef enum CUCoredumpGenerationFlags: CU_COREDUMP_DEFAULT_FLAGS CU_COREDUMP_SKIP_NONRELOCATED_ELF_IMAGES CU_COREDUMP_SKIP_GLOBAL_MEMORY @@ -1328,19 +1328,19 @@ cdef extern from 'cuda.h': CU_COREDUMP_LIGHTWEIGHT_FLAGS cdef extern from 'cuda.h': - ctypedef enum CUgreenCtxCreate_flags: + ctypedef enum CUgreenCtxCreate_flags "CUgreenCtxCreate_flags": CU_GREEN_CTX_NONE CU_GREEN_CTX_DEFAULT_STREAM cdef extern from 'cuda.h': - ctypedef enum CUdevResourceType: + ctypedef enum CUdevResourceType "CUdevResourceType": CU_DEV_RESOURCE_TYPE_INVALID CU_DEV_RESOURCE_TYPE_SM CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG CU_DEV_RESOURCE_TYPE_WORKQUEUE cdef extern from 'cuda.h': - ctypedef enum CUlogLevel_enum: + cdef enum CUlogLevel_enum: CU_LOG_LEVEL_ERROR CU_LOG_LEVEL_WARNING ctypedef CUlogLevel_enum CUlogLevel @@ -1488,7 +1488,7 @@ ctypedef enum CUoutput_mode_enum "CUoutput_mode_enum": ctypedef CUoutput_mode_enum CUoutput_mode "CUoutput_mode" cdef extern from 'cuda.h': - ctypedef enum CUatomicOperation_enum: + cdef enum CUatomicOperation_enum: CU_ATOMIC_OPERATION_INTEGER_ADD CU_ATOMIC_OPERATION_INTEGER_MIN CU_ATOMIC_OPERATION_INTEGER_MAX @@ -1506,7 +1506,7 @@ cdef extern from 'cuda.h': ctypedef CUatomicOperation_enum CUatomicOperation cdef extern from 'cuda.h': - ctypedef enum CUatomicOperationCapability_enum: + cdef enum CUatomicOperationCapability_enum: CU_ATOMIC_CAPABILITY_SIGNED CU_ATOMIC_CAPABILITY_UNSIGNED CU_ATOMIC_CAPABILITY_REDUCTION @@ -1517,111 +1517,106 @@ cdef extern from 'cuda.h': ctypedef CUatomicOperationCapability_enum CUatomicOperationCapability cdef extern from 'cuda.h': - ctypedef enum CUstreamAtomicReductionOpType_enum: + cdef enum CUstreamAtomicReductionOpType_enum: CU_STREAM_ATOMIC_REDUCTION_OP_OR CU_STREAM_ATOMIC_REDUCTION_OP_AND CU_STREAM_ATOMIC_REDUCTION_OP_ADD ctypedef CUstreamAtomicReductionOpType_enum CUstreamAtomicReductionOpType cdef extern from 'cuda.h': - ctypedef enum CUstreamAtomicReductionDataType_enum: + cdef enum CUstreamAtomicReductionDataType_enum: CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_32 CU_STREAM_ATOMIC_REDUCTION_UNSIGNED_64 ctypedef CUstreamAtomicReductionDataType_enum CUstreamAtomicReductionDataType cdef extern from 'cuda.h': - ctypedef enum CUdevSmResourceGroup_flags: + ctypedef enum CUdevSmResourceGroup_flags "CUdevSmResourceGroup_flags": CU_DEV_SM_RESOURCE_GROUP_DEFAULT CU_DEV_SM_RESOURCE_GROUP_BACKFILL cdef extern from 'cuda.h': - ctypedef enum CUdevSmResourceSplitByCount_flags: + ctypedef enum CUdevSmResourceSplitByCount_flags "CUdevSmResourceSplitByCount_flags": CU_DEV_SM_RESOURCE_SPLIT_IGNORE_SM_COSCHEDULING CU_DEV_SM_RESOURCE_SPLIT_MAX_POTENTIAL_CLUSTER_SIZE cdef extern from 'cuda.h': - ctypedef enum CUdevWorkqueueConfigScope: + ctypedef enum CUdevWorkqueueConfigScope "CUdevWorkqueueConfigScope": CU_WORKQUEUE_SCOPE_DEVICE_CTX CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED cdef extern from 'cuda.h': - ctypedef enum CUhostTaskSyncMode_enum: + cdef enum CUhostTaskSyncMode_enum: CU_HOST_TASK_BLOCKING CU_HOST_TASK_SPINWAIT ctypedef CUhostTaskSyncMode_enum CUhostTaskSyncMode cdef extern from 'cuda.h': - ctypedef enum CUlaunchAttributePortableClusterMode_enum: + cdef enum CUlaunchAttributePortableClusterMode_enum: CU_LAUNCH_PORTABLE_CLUSTER_MODE_DEFAULT CU_LAUNCH_PORTABLE_CLUSTER_MODE_REQUIRE_PORTABLE CU_LAUNCH_PORTABLE_CLUSTER_MODE_ALLOW_NON_PORTABLE ctypedef CUlaunchAttributePortableClusterMode_enum CUlaunchAttributePortableClusterMode cdef extern from 'cuda.h': - ctypedef enum CUsharedMemoryMode_enum: + cdef enum CUsharedMemoryMode_enum: CU_SHARED_MEMORY_MODE_DEFAULT CU_SHARED_MEMORY_MODE_REQUIRE_PORTABLE CU_SHARED_MEMORY_MODE_ALLOW_NON_PORTABLE ctypedef CUsharedMemoryMode_enum CUsharedMemoryMode cdef extern from 'cuda.h': - ctypedef enum CUstreamCigDataType_enum: + cdef enum CUstreamCigDataType_enum: STREAM_CIG_DATA_TYPE_D3D12_COMMAND_LIST ctypedef CUstreamCigDataType_enum CUstreamCigDataType cdef extern from 'cuda.h': - ctypedef enum CUlogicalEndpointIpcHandleType_enum: + cdef enum CUlogicalEndpointIpcHandleType_enum: CU_LOGICAL_ENDPOINT_IPC_HANDLE_TYPE_NONE CU_LOGICAL_ENDPOINT_IPC_HANDLE_TYPE_FABRIC ctypedef CUlogicalEndpointIpcHandleType_enum CUlogicalEndpointIpcHandleType cdef extern from 'cuda.h': - ctypedef enum CUlogicalEndpointType_enum: + cdef enum CUlogicalEndpointType_enum: CU_LOGICAL_ENDPOINT_TYPE_INVALID CU_LOGICAL_ENDPOINT_TYPE_UNICAST CU_LOGICAL_ENDPOINT_TYPE_MULTICAST ctypedef CUlogicalEndpointType_enum CUlogicalEndpointType cdef extern from 'cuda.h': - ctypedef enum CUlogicalEndpointFlag_enum: + cdef enum CUlogicalEndpointFlag_enum: CU_LOGICAL_ENDPOINT_FLAG_NONE CU_LOGICAL_ENDPOINT_FLAG_COUNTED_OPS ctypedef CUlogicalEndpointFlag_enum CUlogicalEndpointFlag cdef extern from 'cuda.h': - ctypedef enum CUgraphRecaptureStatus_enum: + cdef enum CUgraphRecaptureStatus_enum: CU_GRAPH_RECAPTURE_ELIGIBLE_FOR_UPDATE CU_GRAPH_RECAPTURE_INELIGIBLE_FOR_UPDATE CU_GRAPH_RECAPTURE_ERROR ctypedef CUgraphRecaptureStatus_enum CUgraphRecaptureStatus cdef enum: _CURESULT_INTERNAL_LOADING_ERROR = CUresult.CUDA_ERROR_NOT_FOUND +cdef enum: CUDA_VERSION = 13030 # TYPES cdef extern from 'cuda.h': ctypedef uint32_t cuuint32_t 'cuuint32_t' - cdef extern from 'cuda.h': ctypedef uint64_t cuuint64_t 'cuuint64_t' - cdef extern from 'cuda.h': ctypedef unsigned long long CUdeviceptr_v2 'CUdeviceptr_v2' - cdef extern from 'cuda.h': ctypedef int CUdevice_v1 'CUdevice_v1' - cdef extern from 'cuda.h': ctypedef unsigned long long CUtexObject_v1 'CUtexObject_v1' - cdef extern from 'cuda.h': ctypedef unsigned long long CUsurfObject_v1 'CUsurfObject_v1' - cdef extern from 'cuda.h': cdef struct CUmemFabricHandle_st: unsigned char data[64] @@ -1663,11 +1658,9 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUlaunchAttributeID CUkernelNodeAttrID 'CUkernelNodeAttrID' - cdef extern from 'cuda.h': ctypedef CUlaunchAttributeID CUstreamAttrID 'CUstreamAttrID' - cdef extern from 'cuda.h': cdef struct CUexecAffinitySmCount_st: unsigned int val @@ -1742,7 +1735,6 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef unsigned long long CUmemGenericAllocationHandle_v1 'CUmemGenericAllocationHandle_v1' - cdef extern from 'cuda.h': cdef struct CUmulticastObjectProp_st: unsigned int numDevices @@ -1773,175 +1765,148 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef unsigned int CUlogIterator 'CUlogIterator' - cdef extern from 'cuda.h': ctypedef struct CUctx_st: pass ctypedef CUctx_st* CUcontext 'CUcontext' - cdef extern from 'cuda.h': ctypedef struct CUmod_st: pass ctypedef CUmod_st* CUmodule 'CUmodule' - cdef extern from 'cuda.h': ctypedef struct CUfunc_st: pass ctypedef CUfunc_st* CUfunction 'CUfunction' - cdef extern from 'cuda.h': ctypedef struct CUlib_st: pass ctypedef CUlib_st* CUlibrary 'CUlibrary' - cdef extern from 'cuda.h': ctypedef struct CUkern_st: pass ctypedef CUkern_st* CUkernel 'CUkernel' - cdef extern from 'cuda.h': ctypedef struct CUarray_st: pass ctypedef CUarray_st* CUarray 'CUarray' - cdef extern from 'cuda.h': ctypedef struct CUmipmappedArray_st: pass ctypedef CUmipmappedArray_st* CUmipmappedArray 'CUmipmappedArray' - cdef extern from 'cuda.h': ctypedef struct CUtexref_st: pass ctypedef CUtexref_st* CUtexref 'CUtexref' - cdef extern from 'cuda.h': ctypedef struct CUsurfref_st: pass ctypedef CUsurfref_st* CUsurfref 'CUsurfref' - cdef extern from 'cuda.h': ctypedef struct CUevent_st: pass ctypedef CUevent_st* CUevent 'CUevent' - cdef extern from 'cuda.h': ctypedef struct CUstream_st: pass ctypedef CUstream_st* CUstream 'CUstream' - cdef extern from 'cuda.h': ctypedef struct CUgraphicsResource_st: pass ctypedef CUgraphicsResource_st* CUgraphicsResource 'CUgraphicsResource' - cdef extern from 'cuda.h': ctypedef struct CUextMemory_st: pass ctypedef CUextMemory_st* CUexternalMemory 'CUexternalMemory' - cdef extern from 'cuda.h': ctypedef struct CUextSemaphore_st: pass ctypedef CUextSemaphore_st* CUexternalSemaphore 'CUexternalSemaphore' - cdef extern from 'cuda.h': ctypedef struct CUgraph_st: pass ctypedef CUgraph_st* CUgraph 'CUgraph' - cdef extern from 'cuda.h': ctypedef struct CUgraphNode_st: pass ctypedef CUgraphNode_st* CUgraphNode 'CUgraphNode' - cdef extern from 'cuda.h': ctypedef struct CUgraphExec_st: pass ctypedef CUgraphExec_st* CUgraphExec 'CUgraphExec' - cdef extern from 'cuda.h': ctypedef struct CUmemPoolHandle_st: pass ctypedef CUmemPoolHandle_st* CUmemoryPool 'CUmemoryPool' - cdef extern from 'cuda.h': ctypedef struct CUuserObject_st: pass ctypedef CUuserObject_st* CUuserObject 'CUuserObject' - cdef extern from 'cuda.h': ctypedef struct CUgraphDeviceUpdatableNode_st: pass ctypedef CUgraphDeviceUpdatableNode_st* CUgraphDeviceNode 'CUgraphDeviceNode' - cdef extern from 'cuda.h': ctypedef struct CUasyncCallbackEntry_st: pass ctypedef CUasyncCallbackEntry_st* CUasyncCallbackHandle 'CUasyncCallbackHandle' - cdef extern from 'cuda.h': ctypedef struct CUgreenCtx_st: pass ctypedef CUgreenCtx_st* CUgreenCtx 'CUgreenCtx' - cdef extern from 'cuda.h': ctypedef struct CUlinkState_st: pass ctypedef CUlinkState_st* CUlinkState 'CUlinkState' - cdef extern from 'cuda.h': ctypedef struct CUdevResourceDesc_st: pass ctypedef CUdevResourceDesc_st* CUdevResourceDesc 'CUdevResourceDesc' - cdef extern from 'cuda.h': ctypedef struct CUlogsCallbackEntry_st: pass ctypedef CUlogsCallbackEntry_st* CUlogsCallbackHandle 'CUlogsCallbackHandle' - cdef extern from 'cuda.h': ctypedef struct CUcoredumpCallbackEntry_st: pass ctypedef CUcoredumpCallbackEntry_st* CUcoredumpCallbackHandle 'CUcoredumpCallbackHandle' - cdef extern from 'cuda.h': cdef struct CUuuid_st: char bytes[16] ctypedef CUuuid_st CUuuid cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpFlushRemoteWritesParams_st 'CUstreamMemOpFlushRemoteWritesParams_st': + cdef struct CUstreamMemOpFlushRemoteWritesParams_st: CUstreamBatchMemOpType operation unsigned int flags cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpMemoryBarrierParams_st 'CUstreamMemOpMemoryBarrierParams_st': + cdef struct CUstreamMemOpMemoryBarrierParams_st: CUstreamBatchMemOpType operation unsigned int flags @@ -1953,7 +1918,6 @@ cdef extern from 'cuda.h': void* userData ) - cdef extern from 'cuda.h': cdef struct CUgraphEdgeData_st: unsigned char from_port @@ -2091,7 +2055,6 @@ cdef extern from 'cuda.h': int blockSize ) - cdef extern from 'cuda.h': ctypedef void (*CUlogsCallback 'CUlogsCallback')( void* data, @@ -2100,11 +2063,9 @@ cdef extern from 'cuda.h': size_t length ) - cdef extern from 'cuda.h': ctypedef cuuint32_t CUlogicalEndpointId 'CUlogicalEndpointId' - cdef extern from 'cuda.h': cdef struct CUmemDecompressParams_st: size_t srcNumBytes @@ -2119,7 +2080,6 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef cuuint64_t CUgraphConditionalHandle 'CUgraphConditionalHandle' - cdef extern from 'cuda.h': cdef struct CUtensorMap_st: cuuint64_t opaque[16] @@ -2145,91 +2105,69 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUdeviceptr_v2 CUdeviceptr 'CUdeviceptr' - cdef extern from 'cuda.h': ctypedef CUdevice_v1 CUdevice 'CUdevice' - cdef extern from 'cuda.h': ctypedef CUtexObject_v1 CUtexObject 'CUtexObject' - cdef extern from 'cuda.h': ctypedef CUsurfObject_v1 CUsurfObject 'CUsurfObject' - cdef extern from 'cuda.h': ctypedef CUmemFabricHandle_v1 CUmemFabricHandle 'CUmemFabricHandle' - cdef extern from 'cuda.h': ctypedef CUipcEventHandle_v1 CUipcEventHandle 'CUipcEventHandle' - cdef extern from 'cuda.h': ctypedef CUipcMemHandle_v1 CUipcMemHandle 'CUipcMemHandle' - cdef extern from 'cuda.h': ctypedef CUdevprop_v1 CUdevprop 'CUdevprop' - cdef extern from 'cuda.h': ctypedef CUaccessPolicyWindow_v1 CUaccessPolicyWindow 'CUaccessPolicyWindow' - cdef extern from 'cuda.h': ctypedef CUexecAffinitySmCount_v1 CUexecAffinitySmCount 'CUexecAffinitySmCount' - cdef extern from 'cuda.h': ctypedef CUDA_ARRAY_DESCRIPTOR_v2 CUDA_ARRAY_DESCRIPTOR 'CUDA_ARRAY_DESCRIPTOR' - cdef extern from 'cuda.h': ctypedef CUDA_ARRAY3D_DESCRIPTOR_v2 CUDA_ARRAY3D_DESCRIPTOR 'CUDA_ARRAY3D_DESCRIPTOR' - cdef extern from 'cuda.h': ctypedef CUDA_ARRAY_MEMORY_REQUIREMENTS_v1 CUDA_ARRAY_MEMORY_REQUIREMENTS 'CUDA_ARRAY_MEMORY_REQUIREMENTS' - cdef extern from 'cuda.h': ctypedef CUDA_TEXTURE_DESC_v1 CUDA_TEXTURE_DESC 'CUDA_TEXTURE_DESC' - cdef extern from 'cuda.h': ctypedef CUDA_RESOURCE_VIEW_DESC_v1 CUDA_RESOURCE_VIEW_DESC 'CUDA_RESOURCE_VIEW_DESC' - cdef extern from 'cuda.h': ctypedef CUDA_POINTER_ATTRIBUTE_P2P_TOKENS_v1 CUDA_POINTER_ATTRIBUTE_P2P_TOKENS 'CUDA_POINTER_ATTRIBUTE_P2P_TOKENS' - cdef extern from 'cuda.h': ctypedef CUDA_EXTERNAL_MEMORY_BUFFER_DESC_v1 CUDA_EXTERNAL_MEMORY_BUFFER_DESC 'CUDA_EXTERNAL_MEMORY_BUFFER_DESC' - cdef extern from 'cuda.h': ctypedef CUmemGenericAllocationHandle_v1 CUmemGenericAllocationHandle 'CUmemGenericAllocationHandle' - cdef extern from 'cuda.h': ctypedef CUmulticastObjectProp_v1 CUmulticastObjectProp 'CUmulticastObjectProp' - cdef extern from 'cuda.h': ctypedef CUmemPoolPtrExportData_v1 CUmemPoolPtrExportData 'CUmemPoolPtrExportData' - cdef extern from 'cuda.h': ctypedef CUoffset3D_v1 CUoffset3D 'CUoffset3D' - cdef extern from 'cuda.h': ctypedef CUextent3D_v1 CUextent3D 'CUextent3D' - cdef extern from 'cuda.h': cdef struct CUDA_KERNEL_NODE_PARAMS_st: CUfunction func @@ -2326,7 +2264,6 @@ cdef extern from 'cuda.h': void* userData ) - cdef extern from 'cuda.h': cdef struct CUDA_CHILD_GRAPH_NODE_PARAMS_st: CUgraph graph @@ -2421,7 +2358,7 @@ cdef extern from 'cuda.h': ctypedef CUstreamCigCaptureParams_st CUstreamCigCaptureParams cdef extern from 'cuda.h': - ctypedef struct CUDA_CONDITIONAL_NODE_PARAMS 'CUDA_CONDITIONAL_NODE_PARAMS': + cdef struct CUDA_CONDITIONAL_NODE_PARAMS: CUgraphConditionalHandle handle CUgraphConditionalNodeType type unsigned int size @@ -2429,7 +2366,7 @@ cdef extern from 'cuda.h': CUcontext ctx cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpWaitValueParams_st 'CUstreamMemOpWaitValueParams_st': + cdef struct CUstreamMemOpWaitValueParams_st: CUstreamBatchMemOpType operation CUdeviceptr address cuuint32_t value @@ -2438,7 +2375,7 @@ cdef extern from 'cuda.h': CUdeviceptr alias cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpWriteValueParams_st 'CUstreamMemOpWriteValueParams_st': + cdef struct CUstreamMemOpWriteValueParams_st: CUstreamBatchMemOpType operation CUdeviceptr address cuuint32_t value @@ -2447,7 +2384,7 @@ cdef extern from 'cuda.h': CUdeviceptr alias cdef extern from 'cuda.h': - ctypedef struct CUstreamMemOpAtomicReductionParams_st 'CUstreamMemOpAtomicReductionParams_st': + cdef struct CUstreamMemOpAtomicReductionParams_st: CUstreamBatchMemOpType operation unsigned int flags CUstreamAtomicReductionOpType reductionOp @@ -2591,7 +2528,6 @@ cdef extern from 'cuda.h': CUdevice dev ) - cdef union cuda_bindings_driver__anon_pod9: CUexecAffinitySmCount smCount @@ -2613,15 +2549,12 @@ cdef struct cuda_bindings_driver__anon_pod38: cdef extern from 'cuda.h': ctypedef CUDA_KERNEL_NODE_PARAMS_v2 CUDA_KERNEL_NODE_PARAMS 'CUDA_KERNEL_NODE_PARAMS' - cdef extern from 'cuda.h': ctypedef CUDA_LAUNCH_PARAMS_v1 CUDA_LAUNCH_PARAMS 'CUDA_LAUNCH_PARAMS' - cdef extern from 'cuda.h': ctypedef CUgraphExecUpdateResultInfo_v1 CUgraphExecUpdateResultInfo 'CUgraphExecUpdateResultInfo' - cdef extern from 'cuda.h': cdef union CUlaunchAttributeValue_union: char pad[64] @@ -2660,11 +2593,9 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUDA_HOST_NODE_PARAMS_v1 CUDA_HOST_NODE_PARAMS 'CUDA_HOST_NODE_PARAMS' - cdef extern from 'cuda.h': ctypedef CUDA_ARRAY_SPARSE_PROPERTIES_v1 CUDA_ARRAY_SPARSE_PROPERTIES 'CUDA_ARRAY_SPARSE_PROPERTIES' - cdef extern from 'cuda.h': cdef struct CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: CUexternalMemoryHandleType type @@ -2699,7 +2630,6 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUmemLocation_v1 CUmemLocation 'CUmemLocation' - cdef extern from 'cuda.h': cdef union CUstreamBatchMemOpParams_union: CUstreamBatchMemOpType operation @@ -2714,19 +2644,15 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUDA_MEMSET_NODE_PARAMS_v1 CUDA_MEMSET_NODE_PARAMS 'CUDA_MEMSET_NODE_PARAMS' - cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY2D_v2 CUDA_MEMCPY2D 'CUDA_MEMCPY2D' - cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY3D_v2 CUDA_MEMCPY3D 'CUDA_MEMCPY3D' - cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY3D_PEER_v1 CUDA_MEMCPY3D_PEER 'CUDA_MEMCPY3D_PEER' - cdef union cuda_bindings_driver__anon_pod11: cuda_bindings_driver__anon_pod12 array cuda_bindings_driver__anon_pod13 mipmap @@ -2743,7 +2669,6 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC_v1 CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC 'CUDA_EXTERNAL_MEMORY_MIPMAPPED_ARRAY_DESC' - cdef extern from 'cuda.h': cdef struct CUarrayMapInfo_st: CUresourcetype resourceType @@ -2762,11 +2687,9 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUlaunchAttributeValue CUkernelNodeAttrValue_v1 'CUkernelNodeAttrValue_v1' - cdef extern from 'cuda.h': ctypedef CUlaunchAttributeValue CUstreamAttrValue_v1 'CUstreamAttrValue_v1' - cdef extern from 'cuda.h': cdef struct CUlaunchAttribute_st: CUlaunchAttributeID id @@ -2780,23 +2703,18 @@ cdef extern from 'cuda.h': CUasyncCallbackHandle callback ) - cdef extern from 'cuda.h': ctypedef CUDA_EXTERNAL_MEMORY_HANDLE_DESC_v1 CUDA_EXTERNAL_MEMORY_HANDLE_DESC 'CUDA_EXTERNAL_MEMORY_HANDLE_DESC' - cdef extern from 'cuda.h': ctypedef CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_v1 CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC 'CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC' - cdef extern from 'cuda.h': ctypedef CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS_v1 CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS 'CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS' - cdef extern from 'cuda.h': ctypedef CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS_v1 CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS 'CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS' - cdef extern from 'cuda.h': cdef struct CUmemAllocationProp_st: CUmemAllocationType type @@ -2840,7 +2758,6 @@ cdef struct cuda_bindings_driver__anon_pod37: cdef extern from 'cuda.h': ctypedef CUstreamBatchMemOpParams_v1 CUstreamBatchMemOpParams 'CUstreamBatchMemOpParams' - cdef extern from 'cuda.h': cdef struct CUDA_MEMCPY_NODE_PARAMS_st: int flags @@ -2880,19 +2797,15 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUexecAffinityParam_v1 CUexecAffinityParam 'CUexecAffinityParam' - cdef extern from 'cuda.h': ctypedef CUarrayMapInfo_v1 CUarrayMapInfo 'CUarrayMapInfo' - cdef extern from 'cuda.h': ctypedef CUkernelNodeAttrValue_v1 CUkernelNodeAttrValue 'CUkernelNodeAttrValue' - cdef extern from 'cuda.h': ctypedef CUstreamAttrValue_v1 CUstreamAttrValue 'CUstreamAttrValue' - cdef extern from 'cuda.h': cdef struct CUlaunchConfig_st: unsigned int gridDimX @@ -2938,19 +2851,15 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUmemAllocationProp_v1 CUmemAllocationProp 'CUmemAllocationProp' - cdef extern from 'cuda.h': ctypedef CUmemAccessDesc_v1 CUmemAccessDesc 'CUmemAccessDesc' - cdef extern from 'cuda.h': ctypedef CUmemPoolProps_v1 CUmemPoolProps 'CUmemPoolProps' - cdef extern from 'cuda.h': ctypedef CUmemcpyAttributes_v1 CUmemcpyAttributes 'CUmemcpyAttributes' - cdef union cuda_bindings_driver__anon_pod36: cuda_bindings_driver__anon_pod37 ptr cuda_bindings_driver__anon_pod38 array @@ -2974,11 +2883,9 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUDA_RESOURCE_DESC_v1 CUDA_RESOURCE_DESC 'CUDA_RESOURCE_DESC' - cdef extern from 'cuda.h': ctypedef CUdevResource_v1 CUdevResource 'CUdevResource' - cdef extern from 'cuda.h': cdef struct CUctxCreateParams_st: CUexecAffinityParam* execAffinityParams @@ -2989,11 +2896,9 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUDA_EXT_SEM_SIGNAL_NODE_PARAMS_v1 CUDA_EXT_SEM_SIGNAL_NODE_PARAMS 'CUDA_EXT_SEM_SIGNAL_NODE_PARAMS' - cdef extern from 'cuda.h': ctypedef CUDA_EXT_SEM_WAIT_NODE_PARAMS_v1 CUDA_EXT_SEM_WAIT_NODE_PARAMS 'CUDA_EXT_SEM_WAIT_NODE_PARAMS' - cdef extern from 'cuda.h': cdef struct CUDA_MEM_ALLOC_NODE_PARAMS_v1_st: CUmemPoolProps poolProps @@ -3021,15 +2926,12 @@ cdef extern from 'cuda.h': cdef extern from 'cuda.h': ctypedef CUDA_BATCH_MEM_OP_NODE_PARAMS_v1 CUDA_BATCH_MEM_OP_NODE_PARAMS 'CUDA_BATCH_MEM_OP_NODE_PARAMS' - cdef extern from 'cuda.h': ctypedef CUDA_MEM_ALLOC_NODE_PARAMS_v1 CUDA_MEM_ALLOC_NODE_PARAMS 'CUDA_MEM_ALLOC_NODE_PARAMS' - cdef extern from 'cuda.h': ctypedef CUmemcpy3DOperand_v1 CUmemcpy3DOperand 'CUmemcpy3DOperand' - cdef extern from 'cuda.h': cdef struct CUgraphNodeParams_st: CUgraphNodeType type @@ -3070,12 +2972,10 @@ cdef extern from 'cuda.h': CUgraphRecaptureStatus status ) - cdef extern from 'cuda.h': ctypedef CUDA_MEMCPY3D_BATCH_OP_v1 CUDA_MEMCPY3D_BATCH_OP 'CUDA_MEMCPY3D_BATCH_OP' - # Defining the types here in this way is not necessary to work, but we need to # define them as 'cdef extern from ""' to be ABI-backward-compatible with the # old cython-gen based bindings. @@ -3138,6 +3038,8 @@ cdef CUresult cuDevicePrimaryCtxRelease(CUdevice dev) except ?CUDA_ERROR_NOT_FOU cdef CUresult cuDevicePrimaryCtxSetFlags(CUdevice dev, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuDevicePrimaryCtxGetState(CUdevice dev, unsigned int* flags, int* active) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuDevicePrimaryCtxReset(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult cuCtxCreate_v2(CUcontext* pctx, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult cuCtxCreate_v3(CUcontext* pctx, CUexecAffinityParam* paramsArray, int numParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuCtxCreate(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuCtxDestroy(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuCtxPushCurrent(CUcontext ctx) except ?CUDA_ERROR_NOT_FOUND nogil @@ -3326,6 +3228,7 @@ cdef CUresult cuStreamBeginCaptureToGraph(CUstream hStream, CUgraph hGraph, cons cdef CUresult cuThreadExchangeStreamCaptureMode(CUstreamCaptureMode* mode) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuStreamEndCapture(CUstream hStream, CUgraph* phGraph) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captureStatus) except ?CUDA_ERROR_NOT_FOUND nogil +cdef CUresult cuStreamGetCaptureInfo_v2(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuStreamGetCaptureInfo(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuStreamUpdateCaptureDependencies(CUstream hStream, CUgraphNode* dependencies, const CUgraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil cdef CUresult cuStreamAttachMemAsync(CUstream hStream, CUdeviceptr dptr, size_t length, unsigned int flags) except ?CUDA_ERROR_NOT_FOUND nogil @@ -3629,13 +3532,8 @@ cdef CUresult cuLogicalEndpointQuery(CUlogicalEndpointId leId, cuuint32_t count, cdef CUresult cuStreamBeginRecaptureToGraph(CUstream hStream, CUstreamCaptureMode mode, CUgraph hGraph, CUgraphRecaptureCallback callbackFunc, void* userData) except ?CUDA_ERROR_NOT_FOUND nogil -# cdef extern from "cuda.h": -# ctypedef CUdevSmResourceSplit_flags CUdevSmResourceSplitByCount_flags - # TODO: Extract these defines somehow? -cdef enum: CUDA_VERSION = 13020 - cdef enum: CU_IPC_HANDLE_SIZE = 64 cdef enum: CU_STREAM_LEGACY = 1 @@ -3777,3 +3675,7 @@ cdef enum: CU_DEVICE_INVALID = -2 cdef enum: MAX_PLANES = 3 cdef enum: CUDA_EGL_INFINITE_TIMEOUT = 4294967295 + +cdef enum: RESOURCE_ABI_VERSION = 1 + +cdef enum: RESOURCE_ABI_EXTERNAL_BYTES = 42 diff --git a/cuda_bindings/cuda/bindings/cydriver.pyx b/cuda_bindings/cuda/bindings/cydriver.pyx index 93372ecd3fc..320ad40b833 100644 --- a/cuda_bindings/cuda/bindings/cydriver.pyx +++ b/cuda_bindings/cuda/bindings/cydriver.pyx @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE # -# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1622+g48467ab08.d20260421. Do not modify it directly. +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. from ._internal cimport driver as _driver @@ -106,6 +106,14 @@ cdef CUresult cuDevicePrimaryCtxReset(CUdevice dev) except ?CUDA_ERROR_NOT_FOUND return _driver._cuDevicePrimaryCtxReset_v2(dev) +cdef CUresult cuCtxCreate_v2(CUcontext* pctx, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: + return _driver._cuCtxCreate_v2(pctx, flags, dev) + + +cdef CUresult cuCtxCreate_v3(CUcontext* pctx, CUexecAffinityParam* paramsArray, int numParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: + return _driver._cuCtxCreate_v3(pctx, paramsArray, numParams, flags, dev) + + cdef CUresult cuCtxCreate(CUcontext* pctx, CUctxCreateParams* ctxCreateParams, unsigned int flags, CUdevice dev) except ?CUDA_ERROR_NOT_FOUND nogil: return _driver._cuCtxCreate_v4(pctx, ctxCreateParams, flags, dev) @@ -858,6 +866,10 @@ cdef CUresult cuStreamIsCapturing(CUstream hStream, CUstreamCaptureStatus* captu return _driver._cuStreamIsCapturing(hStream, captureStatus) +cdef CUresult cuStreamGetCaptureInfo_v2(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil: + return _driver._cuStreamGetCaptureInfo_v2(hStream, captureStatus_out, id_out, graph_out, dependencies_out, numDependencies_out) + + cdef CUresult cuStreamGetCaptureInfo(CUstream hStream, CUstreamCaptureStatus* captureStatus_out, cuuint64_t* id_out, CUgraph* graph_out, const CUgraphNode** dependencies_out, const CUgraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?CUDA_ERROR_NOT_FOUND nogil: return _driver._cuStreamGetCaptureInfo_v3(hStream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) diff --git a/cuda_bindings/cuda/bindings/cyruntime.pxd b/cuda_bindings/cuda/bindings/cyruntime.pxd new file mode 100644 index 00000000000..f9722ea1014 --- /dev/null +++ b/cuda_bindings/cuda/bindings/cyruntime.pxd @@ -0,0 +1,2636 @@ +# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# +# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260625. Do not modify it directly. + +from libc.stdint cimport uint32_t, uint64_t + + +# Types overridden or aliased here because they are macros in driver_types.h +# (not real C types) and cannot be generated from headers directly. + +# GL +ctypedef unsigned int GLenum +ctypedef unsigned int GLuint + +# EGL +ctypedef void *EGLImageKHR +ctypedef void *EGLStreamKHR +ctypedef unsigned int EGLint +ctypedef void *EGLSyncKHR + +# VDPAU +ctypedef uint32_t VdpDevice +ctypedef unsigned long long VdpGetProcAddress +ctypedef uint32_t VdpVideoSurface +ctypedef uint32_t VdpOutputSurface + +# These four names are preprocessor macros in driver_types.h that alias the +# cudaLaunchAttribute* types. Declaring them here as Cython type aliases lets +# the generated bindings use the legacy names in function signatures. +ctypedef cudaLaunchAttributeID cudaStreamAttrID 'cudaStreamAttrID' +ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID 'cudaKernelNodeAttrID' +ctypedef cudaLaunchAttributeValue cudaStreamAttrValue 'cudaStreamAttrValue' +ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue 'cudaKernelNodeAttrValue' + +# dim3 is used as a member type in several CUDA structs +cdef extern from 'vector_types.h': + ctypedef struct dim3 'dim3': + unsigned int x + unsigned int y + unsigned int z + +# Opaque CUDA runtime handle types declared as their underlying CU*_st pointer types +# (matching cydriver's declarations) so that runtime wrapper classes sharing _pvt_ptr +# with driver wrapper classes can assign values without Cython type errors. +cdef extern from 'driver_types.h': + cdef struct CUstream_st 'CUstream_st': + pass + ctypedef CUstream_st* cudaStream_t 'cudaStream_t' + +cdef extern from 'driver_types.h': + cdef struct CUevent_st 'CUevent_st': + pass + ctypedef CUevent_st* cudaEvent_t 'cudaEvent_t' + +cdef extern from 'driver_types.h': + cdef struct CUexternalMemory_st 'CUexternalMemory_st': + pass + ctypedef CUexternalMemory_st* cudaExternalMemory_t 'cudaExternalMemory_t' + +cdef extern from 'driver_types.h': + cdef struct CUexternalSemaphore_st 'CUexternalSemaphore_st': + pass + ctypedef CUexternalSemaphore_st* cudaExternalSemaphore_t 'cudaExternalSemaphore_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraph_st 'CUgraph_st': + pass + ctypedef CUgraph_st* cudaGraph_t 'cudaGraph_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraphNode_st 'CUgraphNode_st': + pass + ctypedef CUgraphNode_st* cudaGraphNode_t 'cudaGraphNode_t' + +cdef extern from 'driver_types.h': + cdef struct CUuserObject_st 'CUuserObject_st': + pass + ctypedef CUuserObject_st* cudaUserObject_t 'cudaUserObject_t' + +cdef extern from 'driver_types.h': + cdef struct CUfunc_st 'CUfunc_st': + pass + ctypedef CUfunc_st* cudaFunction_t 'cudaFunction_t' + +cdef extern from 'driver_types.h': + cdef struct CUkern_st 'CUkern_st': + pass + ctypedef CUkern_st* cudaKernel_t 'cudaKernel_t' + +cdef extern from 'driver_types.h': + cdef struct CUlib_st 'CUlib_st': + pass + ctypedef CUlib_st* cudaLibrary_t 'cudaLibrary_t' + +cdef extern from 'driver_types.h': + cdef struct CUmemPoolHandle_st 'CUmemPoolHandle_st': + pass + ctypedef CUmemPoolHandle_st* cudaMemPool_t 'cudaMemPool_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraphExec_st 'CUgraphExec_st': + pass + ctypedef CUgraphExec_st* cudaGraphExec_t 'cudaGraphExec_t' + +cdef extern from 'driver_types.h': + cdef struct CUgraphDeviceUpdatableNode_st 'CUgraphDeviceUpdatableNode_st': + pass + ctypedef CUgraphDeviceUpdatableNode_st* cudaGraphDeviceNode_t 'cudaGraphDeviceNode_t' + +cdef extern from 'driver_types.h': + cdef struct CUlogsCallbackEntry_st 'CUlogsCallbackEntry_st': + pass + ctypedef CUlogsCallbackEntry_st* cudaLogsCallbackHandle 'cudaLogsCallbackHandle' + +cdef extern from 'driver_types.h': + cdef struct CUdevResourceDesc_st 'CUdevResourceDesc_st': + pass + ctypedef CUdevResourceDesc_st* cudaDevResourceDesc_t 'cudaDevResourceDesc_t' + +cdef extern from 'driver_types.h': + cdef struct cudaExecutionContext_st 'cudaExecutionContext_st': + pass + ctypedef cudaExecutionContext_st* cudaExecutionContext_t 'cudaExecutionContext_t' + +# Types that are outside the naming pattern or SKIPped but required for ABI compatibility +# with the lowpp layer (runtime.pxd) which was generated by legacy_cython_gen. +cdef extern from 'driver_types.h': + cdef struct CUuuid_st 'CUuuid_st': + char bytes[16] + ctypedef CUuuid_st CUuuid 'CUuuid' + +cdef extern from 'driver_types.h': + cdef struct cudalibraryHostUniversalFunctionAndDataTable 'cudalibraryHostUniversalFunctionAndDataTable': + void* functionTable + size_t functionWindowSize + void* dataTable + size_t dataWindowSize + +# Forward declarations for types that are SKIPped but referenced in non-skipped structs/functions +cdef extern from 'driver_types.h': + ctypedef struct cudaUUID_t 'cudaUUID_t': + char bytes[16] + +cdef extern from 'driver_types.h': + # cudaLaunchAttribute_st is SKIPped (sizeof-based array dimension in pad field). + # Declared here with int id and char val[64] instead of cudaLaunchAttributeID/Value + # (enum and union declared later in the generated sections) to allow address-of and + # sizeof operations used by the lowpp layer. int is ABI-compatible with + # cudaLaunchAttributeID (enum), and char[64] matches cudaLaunchAttributeValue's size. + ctypedef struct cudaLaunchAttribute_st 'cudaLaunchAttribute_st': + int id + char val[64] + +cdef extern from 'driver_types.h': + ctypedef cudaLaunchAttribute_st cudaLaunchAttribute 'cudaLaunchAttribute' + +cdef extern from 'driver_types.h': + cdef struct cudaGraphicsResource 'cudaGraphicsResource': + pass + ctypedef cudaGraphicsResource* cudaGraphicsResource_t 'cudaGraphicsResource_t' + +cdef extern from *: + """ + struct CUeglStreamConnection_st; + typedef struct CUeglStreamConnection_st *cudaEglStreamConnection; + """ + cdef struct CUeglStreamConnection_st 'CUeglStreamConnection_st': + pass + ctypedef CUeglStreamConnection_st* cudaEglStreamConnection 'cudaEglStreamConnection' + + +# ENUMS +cdef extern from 'device_types.h': + cdef enum cudaRoundMode: + cudaRoundNearest + cudaRoundZero + cudaRoundPosInf + cudaRoundMinInf + +cdef extern from 'driver_types.h': + cdef enum cudaError: + cudaSuccess + cudaErrorInvalidValue + cudaErrorMemoryAllocation + cudaErrorInitializationError + cudaErrorCudartUnloading + cudaErrorProfilerDisabled + cudaErrorProfilerNotInitialized + cudaErrorProfilerAlreadyStarted + cudaErrorProfilerAlreadyStopped + cudaErrorInvalidConfiguration + cudaErrorVersionTranslation + cudaErrorInvalidPitchValue + cudaErrorInvalidSymbol + cudaErrorInvalidHostPointer + cudaErrorInvalidDevicePointer + cudaErrorInvalidTexture + cudaErrorInvalidTextureBinding + cudaErrorInvalidChannelDescriptor + cudaErrorInvalidMemcpyDirection + cudaErrorAddressOfConstant + cudaErrorTextureFetchFailed + cudaErrorTextureNotBound + cudaErrorSynchronizationError + cudaErrorInvalidFilterSetting + cudaErrorInvalidNormSetting + cudaErrorMixedDeviceExecution + cudaErrorNotYetImplemented + cudaErrorMemoryValueTooLarge + cudaErrorStubLibrary + cudaErrorInsufficientDriver + cudaErrorCallRequiresNewerDriver + cudaErrorInvalidSurface + cudaErrorDuplicateVariableName + cudaErrorDuplicateTextureName + cudaErrorDuplicateSurfaceName + cudaErrorDevicesUnavailable + cudaErrorIncompatibleDriverContext + cudaErrorMissingConfiguration + cudaErrorPriorLaunchFailure + cudaErrorLaunchMaxDepthExceeded + cudaErrorLaunchFileScopedTex + cudaErrorLaunchFileScopedSurf + cudaErrorSyncDepthExceeded + cudaErrorLaunchPendingCountExceeded + cudaErrorInvalidDeviceFunction + cudaErrorNoDevice + cudaErrorInvalidDevice + cudaErrorDeviceNotLicensed + cudaErrorSoftwareValidityNotEstablished + cudaErrorStartupFailure + cudaErrorInvalidKernelImage + cudaErrorDeviceUninitialized + cudaErrorMapBufferObjectFailed + cudaErrorUnmapBufferObjectFailed + cudaErrorArrayIsMapped + cudaErrorAlreadyMapped + cudaErrorNoKernelImageForDevice + cudaErrorAlreadyAcquired + cudaErrorNotMapped + cudaErrorNotMappedAsArray + cudaErrorNotMappedAsPointer + cudaErrorECCUncorrectable + cudaErrorUnsupportedLimit + cudaErrorDeviceAlreadyInUse + cudaErrorPeerAccessUnsupported + cudaErrorInvalidPtx + cudaErrorInvalidGraphicsContext + cudaErrorNvlinkUncorrectable + cudaErrorJitCompilerNotFound + cudaErrorUnsupportedPtxVersion + cudaErrorJitCompilationDisabled + cudaErrorUnsupportedExecAffinity + cudaErrorUnsupportedDevSideSync + cudaErrorContained + cudaErrorInvalidSource + cudaErrorFileNotFound + cudaErrorSharedObjectSymbolNotFound + cudaErrorSharedObjectInitFailed + cudaErrorOperatingSystem + cudaErrorInvalidResourceHandle + cudaErrorIllegalState + cudaErrorLossyQuery + cudaErrorSymbolNotFound + cudaErrorNotReady + cudaErrorIllegalAddress + cudaErrorLaunchOutOfResources + cudaErrorLaunchTimeout + cudaErrorLaunchIncompatibleTexturing + cudaErrorPeerAccessAlreadyEnabled + cudaErrorPeerAccessNotEnabled + cudaErrorSetOnActiveProcess + cudaErrorContextIsDestroyed + cudaErrorAssert + cudaErrorTooManyPeers + cudaErrorHostMemoryAlreadyRegistered + cudaErrorHostMemoryNotRegistered + cudaErrorHardwareStackError + cudaErrorIllegalInstruction + cudaErrorMisalignedAddress + cudaErrorInvalidAddressSpace + cudaErrorInvalidPc + cudaErrorLaunchFailure + cudaErrorCooperativeLaunchTooLarge + cudaErrorTensorMemoryLeak + cudaErrorNotPermitted + cudaErrorNotSupported + cudaErrorSystemNotReady + cudaErrorSystemDriverMismatch + cudaErrorCompatNotSupportedOnDevice + cudaErrorMpsConnectionFailed + cudaErrorMpsRpcFailure + cudaErrorMpsServerNotReady + cudaErrorMpsMaxClientsReached + cudaErrorMpsMaxConnectionsReached + cudaErrorMpsClientTerminated + cudaErrorCdpNotSupported + cudaErrorCdpVersionMismatch + cudaErrorStreamCaptureUnsupported + cudaErrorStreamCaptureInvalidated + cudaErrorStreamCaptureMerge + cudaErrorStreamCaptureUnmatched + cudaErrorStreamCaptureUnjoined + cudaErrorStreamCaptureIsolation + cudaErrorStreamCaptureImplicit + cudaErrorCapturedEvent + cudaErrorStreamCaptureWrongThread + cudaErrorTimeout + cudaErrorGraphExecUpdateFailure + cudaErrorExternalDevice + cudaErrorInvalidClusterSize + cudaErrorFunctionNotLoaded + cudaErrorInvalidResourceType + cudaErrorInvalidResourceConfiguration + cudaErrorStreamDetached + cudaErrorGraphRecaptureFailure + cudaErrorUnknown + cudaErrorApiFailureBase + +cdef extern from 'driver_types.h': + cdef enum cudaChannelFormatKind: + cudaChannelFormatKindSigned + cudaChannelFormatKindUnsigned + cudaChannelFormatKindFloat + cudaChannelFormatKindNone + cudaChannelFormatKindNV12 + cudaChannelFormatKindUnsignedNormalized8X1 + cudaChannelFormatKindUnsignedNormalized8X2 + cudaChannelFormatKindUnsignedNormalized8X4 + cudaChannelFormatKindUnsignedNormalized16X1 + cudaChannelFormatKindUnsignedNormalized16X2 + cudaChannelFormatKindUnsignedNormalized16X4 + cudaChannelFormatKindSignedNormalized8X1 + cudaChannelFormatKindSignedNormalized8X2 + cudaChannelFormatKindSignedNormalized8X4 + cudaChannelFormatKindSignedNormalized16X1 + cudaChannelFormatKindSignedNormalized16X2 + cudaChannelFormatKindSignedNormalized16X4 + cudaChannelFormatKindUnsignedBlockCompressed1 + cudaChannelFormatKindUnsignedBlockCompressed1SRGB + cudaChannelFormatKindUnsignedBlockCompressed2 + cudaChannelFormatKindUnsignedBlockCompressed2SRGB + cudaChannelFormatKindUnsignedBlockCompressed3 + cudaChannelFormatKindUnsignedBlockCompressed3SRGB + cudaChannelFormatKindUnsignedBlockCompressed4 + cudaChannelFormatKindSignedBlockCompressed4 + cudaChannelFormatKindUnsignedBlockCompressed5 + cudaChannelFormatKindSignedBlockCompressed5 + cudaChannelFormatKindUnsignedBlockCompressed6H + cudaChannelFormatKindSignedBlockCompressed6H + cudaChannelFormatKindUnsignedBlockCompressed7 + cudaChannelFormatKindUnsignedBlockCompressed7SRGB + cudaChannelFormatKindUnsignedNormalized1010102 + cudaChannelFormatKindUnsigned8Packed422 + cudaChannelFormatKindUnsigned8Packed444 + cudaChannelFormatKindUnsigned8SemiPlanar420 + cudaChannelFormatKindUnsigned16SemiPlanar420 + cudaChannelFormatKindUnsigned8SemiPlanar422 + cudaChannelFormatKindUnsigned16SemiPlanar422 + cudaChannelFormatKindUnsigned8SemiPlanar444 + cudaChannelFormatKindUnsigned16SemiPlanar444 + cudaChannelFormatKindUnsigned8Planar420 + cudaChannelFormatKindUnsigned16Planar420 + cudaChannelFormatKindUnsigned8Planar422 + cudaChannelFormatKindUnsigned16Planar422 + cudaChannelFormatKindUnsigned8Planar444 + cudaChannelFormatKindUnsigned16Planar444 + +cdef extern from 'driver_types.h': + cdef enum cudaMemoryType: + cudaMemoryTypeUnregistered + cudaMemoryTypeHost + cudaMemoryTypeDevice + cudaMemoryTypeManaged + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpyKind: + cudaMemcpyHostToHost + cudaMemcpyHostToDevice + cudaMemcpyDeviceToHost + cudaMemcpyDeviceToDevice + cudaMemcpyDefault + +cdef extern from 'driver_types.h': + cdef enum cudaAccessProperty: + cudaAccessPropertyNormal + cudaAccessPropertyStreaming + cudaAccessPropertyPersisting + +cdef extern from 'driver_types.h': + cdef enum cudaStreamCaptureStatus: + cudaStreamCaptureStatusNone + cudaStreamCaptureStatusActive + cudaStreamCaptureStatusInvalidated + +cdef extern from 'driver_types.h': + cdef enum cudaGraphRecaptureStatus: + cudaGraphRecaptureEligibleForUpdate + cudaGraphRecaptureIneligibleForUpdate + cudaGraphRecaptureError + +cdef extern from 'driver_types.h': + cdef enum cudaStreamCaptureMode: + cudaStreamCaptureModeGlobal + cudaStreamCaptureModeThreadLocal + cudaStreamCaptureModeRelaxed + +cdef extern from 'driver_types.h': + cdef enum cudaSynchronizationPolicy: + cudaSyncPolicyAuto + cudaSyncPolicySpin + cudaSyncPolicyYield + cudaSyncPolicyBlockingSync + +cdef extern from 'driver_types.h': + cdef enum cudaClusterSchedulingPolicy: + cudaClusterSchedulingPolicyDefault + cudaClusterSchedulingPolicySpread + cudaClusterSchedulingPolicyLoadBalancing + +cdef extern from 'driver_types.h': + cdef enum cudaStreamUpdateCaptureDependenciesFlags: + cudaStreamAddCaptureDependencies + cudaStreamSetCaptureDependencies + +cdef extern from 'driver_types.h': + cdef enum cudaUserObjectFlags: + cudaUserObjectNoDestructorSync + +cdef extern from 'driver_types.h': + cdef enum cudaUserObjectRetainFlags: + cudaGraphUserObjectMove + +cdef extern from 'driver_types.h': + cdef enum cudaHostTaskSyncMode: + cudaHostTaskBlocking + cudaHostTaskSpinWait + +cdef extern from 'driver_types.h': + cdef enum cudaGraphicsRegisterFlags: + cudaGraphicsRegisterFlagsNone + cudaGraphicsRegisterFlagsReadOnly + cudaGraphicsRegisterFlagsWriteDiscard + cudaGraphicsRegisterFlagsSurfaceLoadStore + cudaGraphicsRegisterFlagsTextureGather + +cdef extern from 'driver_types.h': + cdef enum cudaGraphicsMapFlags: + cudaGraphicsMapFlagsNone + cudaGraphicsMapFlagsReadOnly + cudaGraphicsMapFlagsWriteDiscard + +cdef extern from 'driver_types.h': + cdef enum cudaGraphicsCubeFace: + cudaGraphicsCubeFacePositiveX + cudaGraphicsCubeFaceNegativeX + cudaGraphicsCubeFacePositiveY + cudaGraphicsCubeFaceNegativeY + cudaGraphicsCubeFacePositiveZ + cudaGraphicsCubeFaceNegativeZ + +cdef extern from 'driver_types.h': + cdef enum cudaResourceType: + cudaResourceTypeArray + cudaResourceTypeMipmappedArray + cudaResourceTypeLinear + cudaResourceTypePitch2D + +cdef extern from 'driver_types.h': + cdef enum cudaResourceViewFormat: + cudaResViewFormatNone + cudaResViewFormatUnsignedChar1 + cudaResViewFormatUnsignedChar2 + cudaResViewFormatUnsignedChar4 + cudaResViewFormatSignedChar1 + cudaResViewFormatSignedChar2 + cudaResViewFormatSignedChar4 + cudaResViewFormatUnsignedShort1 + cudaResViewFormatUnsignedShort2 + cudaResViewFormatUnsignedShort4 + cudaResViewFormatSignedShort1 + cudaResViewFormatSignedShort2 + cudaResViewFormatSignedShort4 + cudaResViewFormatUnsignedInt1 + cudaResViewFormatUnsignedInt2 + cudaResViewFormatUnsignedInt4 + cudaResViewFormatSignedInt1 + cudaResViewFormatSignedInt2 + cudaResViewFormatSignedInt4 + cudaResViewFormatHalf1 + cudaResViewFormatHalf2 + cudaResViewFormatHalf4 + cudaResViewFormatFloat1 + cudaResViewFormatFloat2 + cudaResViewFormatFloat4 + cudaResViewFormatUnsignedBlockCompressed1 + cudaResViewFormatUnsignedBlockCompressed2 + cudaResViewFormatUnsignedBlockCompressed3 + cudaResViewFormatUnsignedBlockCompressed4 + cudaResViewFormatSignedBlockCompressed4 + cudaResViewFormatUnsignedBlockCompressed5 + cudaResViewFormatSignedBlockCompressed5 + cudaResViewFormatUnsignedBlockCompressed6H + cudaResViewFormatSignedBlockCompressed6H + cudaResViewFormatUnsignedBlockCompressed7 + +cdef extern from 'driver_types.h': + cdef enum cudaSharedMemoryMode: + cudaSharedMemoryModeDefault + cudaSharedMemoryModeRequirePortable + cudaSharedMemoryModeAllowNonPortable + +cdef extern from 'driver_types.h': + cdef enum cudaFuncAttribute: + cudaFuncAttributeMaxDynamicSharedMemorySize + cudaFuncAttributePreferredSharedMemoryCarveout + cudaFuncAttributeClusterDimMustBeSet + cudaFuncAttributeRequiredClusterWidth + cudaFuncAttributeRequiredClusterHeight + cudaFuncAttributeRequiredClusterDepth + cudaFuncAttributeNonPortableClusterSizeAllowed + cudaFuncAttributeClusterSchedulingPolicyPreference + cudaFuncAttributeMax + +cdef extern from 'driver_types.h': + cdef enum cudaFuncCache: + cudaFuncCachePreferNone + cudaFuncCachePreferShared + cudaFuncCachePreferL1 + cudaFuncCachePreferEqual + +cdef extern from 'driver_types.h': + cdef enum cudaSharedMemConfig: + cudaSharedMemBankSizeDefault + cudaSharedMemBankSizeFourByte + cudaSharedMemBankSizeEightByte + +cdef extern from 'driver_types.h': + cdef enum cudaSharedCarveout: + cudaSharedmemCarveoutDefault + cudaSharedmemCarveoutMaxShared + cudaSharedmemCarveoutMaxL1 + +cdef extern from 'driver_types.h': + cdef enum cudaComputeMode: + cudaComputeModeDefault + cudaComputeModeExclusive + cudaComputeModeProhibited + cudaComputeModeExclusiveProcess + +cdef extern from 'driver_types.h': + cdef enum cudaLimit: + cudaLimitStackSize + cudaLimitPrintfFifoSize + cudaLimitMallocHeapSize + cudaLimitDevRuntimeSyncDepth + cudaLimitDevRuntimePendingLaunchCount + cudaLimitMaxL2FetchGranularity + cudaLimitPersistingL2CacheSize + +cdef extern from 'driver_types.h': + cdef enum cudaMemoryAdvise: + cudaMemAdviseSetReadMostly + cudaMemAdviseUnsetReadMostly + cudaMemAdviseSetPreferredLocation + cudaMemAdviseUnsetPreferredLocation + cudaMemAdviseSetAccessedBy + cudaMemAdviseUnsetAccessedBy + +cdef extern from 'driver_types.h': + cdef enum cudaMemRangeAttribute: + cudaMemRangeAttributeReadMostly + cudaMemRangeAttributePreferredLocation + cudaMemRangeAttributeAccessedBy + cudaMemRangeAttributeLastPrefetchLocation + cudaMemRangeAttributePreferredLocationType + cudaMemRangeAttributePreferredLocationId + cudaMemRangeAttributeLastPrefetchLocationType + cudaMemRangeAttributeLastPrefetchLocationId + +cdef extern from 'driver_types.h': + cdef enum cudaFlushGPUDirectRDMAWritesOptions: + cudaFlushGPUDirectRDMAWritesOptionHost + cudaFlushGPUDirectRDMAWritesOptionMemOps + +cdef extern from 'driver_types.h': + cdef enum cudaGPUDirectRDMAWritesOrdering: + cudaGPUDirectRDMAWritesOrderingNone + cudaGPUDirectRDMAWritesOrderingOwner + cudaGPUDirectRDMAWritesOrderingAllDevices + +cdef extern from 'driver_types.h': + cdef enum cudaFlushGPUDirectRDMAWritesScope: + cudaFlushGPUDirectRDMAWritesToOwner + cudaFlushGPUDirectRDMAWritesToAllDevices + +cdef extern from 'driver_types.h': + cdef enum cudaFlushGPUDirectRDMAWritesTarget: + cudaFlushGPUDirectRDMAWritesTargetCurrentDevice + +cdef extern from 'driver_types.h': + cdef enum cudaDeviceAttr: + cudaDevAttrMaxThreadsPerBlock + cudaDevAttrMaxBlockDimX + cudaDevAttrMaxBlockDimY + cudaDevAttrMaxBlockDimZ + cudaDevAttrMaxGridDimX + cudaDevAttrMaxGridDimY + cudaDevAttrMaxGridDimZ + cudaDevAttrMaxSharedMemoryPerBlock + cudaDevAttrTotalConstantMemory + cudaDevAttrWarpSize + cudaDevAttrMaxPitch + cudaDevAttrMaxRegistersPerBlock + cudaDevAttrClockRate + cudaDevAttrTextureAlignment + cudaDevAttrGpuOverlap + cudaDevAttrMultiProcessorCount + cudaDevAttrKernelExecTimeout + cudaDevAttrIntegrated + cudaDevAttrCanMapHostMemory + cudaDevAttrComputeMode + cudaDevAttrMaxTexture1DWidth + cudaDevAttrMaxTexture2DWidth + cudaDevAttrMaxTexture2DHeight + cudaDevAttrMaxTexture3DWidth + cudaDevAttrMaxTexture3DHeight + cudaDevAttrMaxTexture3DDepth + cudaDevAttrMaxTexture2DLayeredWidth + cudaDevAttrMaxTexture2DLayeredHeight + cudaDevAttrMaxTexture2DLayeredLayers + cudaDevAttrSurfaceAlignment + cudaDevAttrConcurrentKernels + cudaDevAttrEccEnabled + cudaDevAttrPciBusId + cudaDevAttrPciDeviceId + cudaDevAttrTccDriver + cudaDevAttrMemoryClockRate + cudaDevAttrGlobalMemoryBusWidth + cudaDevAttrL2CacheSize + cudaDevAttrMaxThreadsPerMultiProcessor + cudaDevAttrAsyncEngineCount + cudaDevAttrUnifiedAddressing + cudaDevAttrMaxTexture1DLayeredWidth + cudaDevAttrMaxTexture1DLayeredLayers + cudaDevAttrMaxTexture2DGatherWidth + cudaDevAttrMaxTexture2DGatherHeight + cudaDevAttrMaxTexture3DWidthAlt + cudaDevAttrMaxTexture3DHeightAlt + cudaDevAttrMaxTexture3DDepthAlt + cudaDevAttrPciDomainId + cudaDevAttrTexturePitchAlignment + cudaDevAttrMaxTextureCubemapWidth + cudaDevAttrMaxTextureCubemapLayeredWidth + cudaDevAttrMaxTextureCubemapLayeredLayers + cudaDevAttrMaxSurface1DWidth + cudaDevAttrMaxSurface2DWidth + cudaDevAttrMaxSurface2DHeight + cudaDevAttrMaxSurface3DWidth + cudaDevAttrMaxSurface3DHeight + cudaDevAttrMaxSurface3DDepth + cudaDevAttrMaxSurface1DLayeredWidth + cudaDevAttrMaxSurface1DLayeredLayers + cudaDevAttrMaxSurface2DLayeredWidth + cudaDevAttrMaxSurface2DLayeredHeight + cudaDevAttrMaxSurface2DLayeredLayers + cudaDevAttrMaxSurfaceCubemapWidth + cudaDevAttrMaxSurfaceCubemapLayeredWidth + cudaDevAttrMaxSurfaceCubemapLayeredLayers + cudaDevAttrMaxTexture1DLinearWidth + cudaDevAttrMaxTexture2DLinearWidth + cudaDevAttrMaxTexture2DLinearHeight + cudaDevAttrMaxTexture2DLinearPitch + cudaDevAttrMaxTexture2DMipmappedWidth + cudaDevAttrMaxTexture2DMipmappedHeight + cudaDevAttrComputeCapabilityMajor + cudaDevAttrComputeCapabilityMinor + cudaDevAttrMaxTexture1DMipmappedWidth + cudaDevAttrStreamPrioritiesSupported + cudaDevAttrGlobalL1CacheSupported + cudaDevAttrLocalL1CacheSupported + cudaDevAttrMaxSharedMemoryPerMultiprocessor + cudaDevAttrMaxRegistersPerMultiprocessor + cudaDevAttrManagedMemory + cudaDevAttrIsMultiGpuBoard + cudaDevAttrMultiGpuBoardGroupID + cudaDevAttrHostNativeAtomicSupported + cudaDevAttrSingleToDoublePrecisionPerfRatio + cudaDevAttrPageableMemoryAccess + cudaDevAttrConcurrentManagedAccess + cudaDevAttrComputePreemptionSupported + cudaDevAttrCanUseHostPointerForRegisteredMem + cudaDevAttrReserved92 + cudaDevAttrReserved93 + cudaDevAttrReserved94 + cudaDevAttrCooperativeLaunch + cudaDevAttrReserved96 + cudaDevAttrMaxSharedMemoryPerBlockOptin + cudaDevAttrCanFlushRemoteWrites + cudaDevAttrHostRegisterSupported + cudaDevAttrPageableMemoryAccessUsesHostPageTables + cudaDevAttrDirectManagedMemAccessFromHost + cudaDevAttrMaxBlocksPerMultiprocessor + cudaDevAttrMaxPersistingL2CacheSize + cudaDevAttrMaxAccessPolicyWindowSize + cudaDevAttrReservedSharedMemoryPerBlock + cudaDevAttrSparseCudaArraySupported + cudaDevAttrHostRegisterReadOnlySupported + cudaDevAttrTimelineSemaphoreInteropSupported + cudaDevAttrMemoryPoolsSupported + cudaDevAttrGPUDirectRDMASupported + cudaDevAttrGPUDirectRDMAFlushWritesOptions + cudaDevAttrGPUDirectRDMAWritesOrdering + cudaDevAttrMemoryPoolSupportedHandleTypes + cudaDevAttrClusterLaunch + cudaDevAttrDeferredMappingCudaArraySupported + cudaDevAttrReserved122 + cudaDevAttrReserved123 + cudaDevAttrReserved124 + cudaDevAttrIpcEventSupport + cudaDevAttrMemSyncDomainCount + cudaDevAttrReserved127 + cudaDevAttrReserved128 + cudaDevAttrReserved129 + cudaDevAttrNumaConfig + cudaDevAttrNumaId + cudaDevAttrReserved132 + cudaDevAttrMpsEnabled + cudaDevAttrHostNumaId + cudaDevAttrD3D12CigSupported + cudaDevAttrVulkanCigSupported + cudaDevAttrGpuPciDeviceId + cudaDevAttrGpuPciSubsystemId + cudaDevAttrReserved141 + cudaDevAttrHostNumaMemoryPoolsSupported + cudaDevAttrHostNumaMultinodeIpcSupported + cudaDevAttrHostMemoryPoolsSupported + cudaDevAttrReserved145 + cudaDevAttrOnlyPartialHostNativeAtomicSupported + cudaDevAttrAtomicReductionSupported + cudaDevAttrCigStreamsSupported + cudaDevAttrMax + +cdef extern from 'driver_types.h': + cdef enum cudaMemPoolAttr: + cudaMemPoolReuseFollowEventDependencies + cudaMemPoolReuseAllowOpportunistic + cudaMemPoolReuseAllowInternalDependencies + cudaMemPoolAttrReleaseThreshold + cudaMemPoolAttrReservedMemCurrent + cudaMemPoolAttrReservedMemHigh + cudaMemPoolAttrUsedMemCurrent + cudaMemPoolAttrUsedMemHigh + cudaMemPoolAttrAllocationType + cudaMemPoolAttrExportHandleTypes + cudaMemPoolAttrLocationId + cudaMemPoolAttrLocationType + cudaMemPoolAttrMaxPoolSize + cudaMemPoolAttrHwDecompressEnabled + +cdef extern from 'driver_types.h': + cdef enum cudaMemLocationType: + cudaMemLocationTypeInvalid + cudaMemLocationTypeNone + cudaMemLocationTypeDevice + cudaMemLocationTypeHost + cudaMemLocationTypeHostNuma + cudaMemLocationTypeHostNumaCurrent + cudaMemLocationTypeInvisible + +cdef extern from 'driver_types.h': + cdef enum cudaMemAccessFlags: + cudaMemAccessFlagsProtNone + cudaMemAccessFlagsProtRead + cudaMemAccessFlagsProtReadWrite + +cdef extern from 'driver_types.h': + cdef enum cudaMemAllocationType: + cudaMemAllocationTypeInvalid + cudaMemAllocationTypePinned + cudaMemAllocationTypeManaged + cudaMemAllocationTypeMax + +cdef extern from 'driver_types.h': + cdef enum cudaMemAllocationHandleType: + cudaMemHandleTypeNone + cudaMemHandleTypePosixFileDescriptor + cudaMemHandleTypeWin32 + cudaMemHandleTypeWin32Kmt + cudaMemHandleTypeFabric + +cdef extern from 'driver_types.h': + cdef enum cudaGraphMemAttributeType: + cudaGraphMemAttrUsedMemCurrent + cudaGraphMemAttrUsedMemHigh + cudaGraphMemAttrReservedMemCurrent + cudaGraphMemAttrReservedMemHigh + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpyFlags: + cudaMemcpyFlagDefault + cudaMemcpyFlagPreferOverlapWithCompute + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpySrcAccessOrder: + cudaMemcpySrcAccessOrderInvalid + cudaMemcpySrcAccessOrderStream + cudaMemcpySrcAccessOrderDuringApiCall + cudaMemcpySrcAccessOrderAny + cudaMemcpySrcAccessOrderMax + +cdef extern from 'driver_types.h': + cdef enum cudaMemcpy3DOperandType: + cudaMemcpyOperandTypePointer + cudaMemcpyOperandTypeArray + cudaMemcpyOperandTypeMax + +cdef extern from 'driver_types.h': + cdef enum cudaDeviceP2PAttr: + cudaDevP2PAttrPerformanceRank + cudaDevP2PAttrAccessSupported + cudaDevP2PAttrNativeAtomicSupported + cudaDevP2PAttrCudaArrayAccessSupported + cudaDevP2PAttrOnlyPartialNativeAtomicSupported + +cdef extern from 'driver_types.h': + cdef enum cudaAtomicOperation: + cudaAtomicOperationIntegerAdd + cudaAtomicOperationIntegerMin + cudaAtomicOperationIntegerMax + cudaAtomicOperationIntegerIncrement + cudaAtomicOperationIntegerDecrement + cudaAtomicOperationAnd + cudaAtomicOperationOr + cudaAtomicOperationXOR + cudaAtomicOperationExchange + cudaAtomicOperationCAS + cudaAtomicOperationFloatAdd + cudaAtomicOperationFloatMin + cudaAtomicOperationFloatMax + +cdef extern from 'driver_types.h': + cdef enum cudaAtomicOperationCapability: + cudaAtomicCapabilitySigned + cudaAtomicCapabilityUnsigned + cudaAtomicCapabilityReduction + cudaAtomicCapabilityScalar32 + cudaAtomicCapabilityScalar64 + cudaAtomicCapabilityScalar128 + cudaAtomicCapabilityVector32x4 + +cdef extern from 'driver_types.h': + cdef enum cudaExternalMemoryHandleType: + cudaExternalMemoryHandleTypeOpaqueFd + cudaExternalMemoryHandleTypeOpaqueWin32 + cudaExternalMemoryHandleTypeOpaqueWin32Kmt + cudaExternalMemoryHandleTypeD3D12Heap + cudaExternalMemoryHandleTypeD3D12Resource + cudaExternalMemoryHandleTypeD3D11Resource + cudaExternalMemoryHandleTypeD3D11ResourceKmt + cudaExternalMemoryHandleTypeNvSciBuf + +cdef extern from 'driver_types.h': + cdef enum cudaExternalSemaphoreHandleType: + cudaExternalSemaphoreHandleTypeOpaqueFd + cudaExternalSemaphoreHandleTypeOpaqueWin32 + cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt + cudaExternalSemaphoreHandleTypeD3D12Fence + cudaExternalSemaphoreHandleTypeD3D11Fence + cudaExternalSemaphoreHandleTypeNvSciSync + cudaExternalSemaphoreHandleTypeKeyedMutex + cudaExternalSemaphoreHandleTypeKeyedMutexKmt + cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd + cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 + +cdef extern from 'driver_types.h': + cdef enum cudaDevSmResourceGroup_flags: + cudaDevSmResourceGroupDefault + cudaDevSmResourceGroupBackfill + +cdef extern from 'driver_types.h': + cdef enum cudaDevSmResourceSplitByCount_flags: + cudaDevSmResourceSplitIgnoreSmCoscheduling + cudaDevSmResourceSplitMaxPotentialClusterSize + +cdef extern from 'driver_types.h': + cdef enum cudaDevResourceType: + cudaDevResourceTypeInvalid + cudaDevResourceTypeSm + cudaDevResourceTypeWorkqueueConfig + cudaDevResourceTypeWorkqueue + +cdef extern from 'driver_types.h': + cdef enum cudaDevWorkqueueConfigScope: + cudaDevWorkqueueConfigScopeDeviceCtx + cudaDevWorkqueueConfigScopeGreenCtxBalanced + +cdef extern from 'driver_types.h': + ctypedef cudaError cudaError_t + +cdef extern from 'driver_types.h': + cdef enum cudaJitOption: + cudaJitMaxRegisters + cudaJitThreadsPerBlock + cudaJitWallTime + cudaJitInfoLogBuffer + cudaJitInfoLogBufferSizeBytes + cudaJitErrorLogBuffer + cudaJitErrorLogBufferSizeBytes + cudaJitOptimizationLevel + cudaJitFallbackStrategy + cudaJitGenerateDebugInfo + cudaJitLogVerbose + cudaJitGenerateLineInfo + cudaJitCacheMode + cudaJitPositionIndependentCode + cudaJitMinCtaPerSm + cudaJitMaxThreadsPerBlock + cudaJitOverrideDirectiveValues + +cdef extern from 'driver_types.h': + cdef enum cudaLibraryOption: + cudaLibraryHostUniversalFunctionAndDataTable + cudaLibraryBinaryIsPreserved + +cdef extern from 'driver_types.h': + cdef enum cudaJit_CacheMode: + cudaJitCacheOptionNone + cudaJitCacheOptionCG + cudaJitCacheOptionCA + +cdef extern from 'driver_types.h': + cdef enum cudaJit_Fallback: + cudaPreferPtx + cudaPreferBinary + +cdef extern from 'driver_types.h': + cdef enum cudaCGScope: + cudaCGScopeInvalid + cudaCGScopeGrid + cudaCGScopeReserved + +cdef extern from 'driver_types.h': + cdef enum cudaKernelFunctionType: + cudaKernelFunctionTypeUnspecified + cudaKernelFunctionTypeDeviceEntry + cudaKernelFunctionTypeKernel + cudaKernelFunctionTypeFunction + +cdef extern from 'driver_types.h': + cdef enum cudaGraphConditionalHandleFlags: + cudaGraphCondAssignDefault + +cdef extern from 'driver_types.h': + cdef enum cudaGraphConditionalNodeType: + cudaGraphCondTypeIf + cudaGraphCondTypeWhile + cudaGraphCondTypeSwitch + +cdef extern from 'driver_types.h': + cdef enum cudaGraphNodeType: + cudaGraphNodeTypeKernel + cudaGraphNodeTypeMemcpy + cudaGraphNodeTypeMemset + cudaGraphNodeTypeHost + cudaGraphNodeTypeGraph + cudaGraphNodeTypeEmpty + cudaGraphNodeTypeWaitEvent + cudaGraphNodeTypeEventRecord + cudaGraphNodeTypeExtSemaphoreSignal + cudaGraphNodeTypeExtSemaphoreWait + cudaGraphNodeTypeMemAlloc + cudaGraphNodeTypeMemFree + cudaGraphNodeTypeConditional + cudaGraphNodeTypeReserved16 + cudaGraphNodeTypeCount + +cdef extern from 'driver_types.h': + cdef enum cudaGraphChildGraphNodeOwnership: + cudaGraphChildGraphOwnershipClone + cudaGraphChildGraphOwnershipMove + cudaGraphChildGraphOwnershipInvalid + +cdef extern from 'driver_types.h': + cdef enum cudaGraphDependencyType_enum: + cudaGraphDependencyTypeDefault + cudaGraphDependencyTypeProgrammatic + ctypedef cudaGraphDependencyType_enum cudaGraphDependencyType + +cdef extern from 'driver_types.h': + cdef enum cudaGraphExecUpdateResult: + cudaGraphExecUpdateSuccess + cudaGraphExecUpdateError + cudaGraphExecUpdateErrorTopologyChanged + cudaGraphExecUpdateErrorNodeTypeChanged + cudaGraphExecUpdateErrorFunctionChanged + cudaGraphExecUpdateErrorParametersChanged + cudaGraphExecUpdateErrorNotSupported + cudaGraphExecUpdateErrorUnsupportedFunctionChange + cudaGraphExecUpdateErrorAttributesChanged + +cdef extern from 'driver_types.h': + cdef enum cudaGraphInstantiateResult: + cudaGraphInstantiateSuccess + cudaGraphInstantiateError + cudaGraphInstantiateInvalidStructure + cudaGraphInstantiateNodeOperationNotSupported + cudaGraphInstantiateMultipleDevicesNotSupported + cudaGraphInstantiateConditionalHandleUnused + +cdef extern from 'driver_types.h': + cdef enum cudaGraphKernelNodeField: + cudaGraphKernelNodeFieldInvalid + cudaGraphKernelNodeFieldGridDim + cudaGraphKernelNodeFieldParam + cudaGraphKernelNodeFieldEnabled + +cdef extern from 'driver_types.h': + cdef enum cudaGetDriverEntryPointFlags: + cudaEnableDefault + cudaEnableLegacyStream + cudaEnablePerThreadDefaultStream + +cdef extern from 'driver_types.h': + cdef enum cudaDriverEntryPointQueryResult: + cudaDriverEntryPointSuccess + cudaDriverEntryPointSymbolNotFound + cudaDriverEntryPointVersionNotSufficent + +cdef extern from 'driver_types.h': + cdef enum cudaGraphDebugDotFlags: + cudaGraphDebugDotFlagsVerbose + cudaGraphDebugDotFlagsKernelNodeParams + cudaGraphDebugDotFlagsMemcpyNodeParams + cudaGraphDebugDotFlagsMemsetNodeParams + cudaGraphDebugDotFlagsHostNodeParams + cudaGraphDebugDotFlagsEventNodeParams + cudaGraphDebugDotFlagsExtSemasSignalNodeParams + cudaGraphDebugDotFlagsExtSemasWaitNodeParams + cudaGraphDebugDotFlagsKernelNodeAttributes + cudaGraphDebugDotFlagsHandles + cudaGraphDebugDotFlagsConditionalNodeParams + +cdef extern from 'driver_types.h': + cdef enum cudaGraphInstantiateFlags: + cudaGraphInstantiateFlagAutoFreeOnLaunch + cudaGraphInstantiateFlagUpload + cudaGraphInstantiateFlagDeviceLaunch + cudaGraphInstantiateFlagUseNodePriority + +cdef extern from 'driver_types.h': + cdef enum cudaLaunchMemSyncDomain: + cudaLaunchMemSyncDomainDefault + cudaLaunchMemSyncDomainRemote + +cdef extern from 'driver_types.h': + cdef enum cudaLaunchAttributePortableClusterMode: + cudaLaunchPortableClusterModeDefault + cudaLaunchPortableClusterModeRequirePortable + cudaLaunchPortableClusterModeAllowNonPortable + +cdef extern from 'driver_types.h': + cdef enum cudaLaunchAttributeID: + cudaLaunchAttributeIgnore + cudaLaunchAttributeAccessPolicyWindow + cudaLaunchAttributeCooperative + cudaLaunchAttributeSynchronizationPolicy + cudaLaunchAttributeClusterDimension + cudaLaunchAttributeClusterSchedulingPolicyPreference + cudaLaunchAttributeProgrammaticStreamSerialization + cudaLaunchAttributeProgrammaticEvent + cudaLaunchAttributePriority + cudaLaunchAttributeMemSyncDomainMap + cudaLaunchAttributeMemSyncDomain + cudaLaunchAttributePreferredClusterDimension + cudaLaunchAttributeLaunchCompletionEvent + cudaLaunchAttributeDeviceUpdatableKernelNode + cudaLaunchAttributePreferredSharedMemoryCarveout + cudaLaunchAttributeNvlinkUtilCentricScheduling + cudaLaunchAttributePortableClusterSizeMode + cudaLaunchAttributeSharedMemoryMode + +cdef extern from 'driver_types.h': + cdef enum cudaDeviceNumaConfig: + cudaDeviceNumaConfigNone + cudaDeviceNumaConfigNumaNode + +cdef extern from 'driver_types.h': + cdef enum cudaAsyncNotificationType_enum: + cudaAsyncNotificationTypeOverBudget + ctypedef cudaAsyncNotificationType_enum cudaAsyncNotificationType + +cdef extern from 'driver_types.h': + cdef enum CUDAlogLevel_enum: + cudaLogLevelError + cudaLogLevelWarning + ctypedef CUDAlogLevel_enum cudaLogLevel + +cdef extern from 'driver_types.h': + cdef enum cudaFabricOpStatusSource: + cudaFabricOpStatusSourceMbarrierV1 + cudaFabricOpStatusSourceMax + +cdef extern from 'driver_types.h': + cdef enum cudaFabricOpStatusInfo: + cudaFabricOpStatusInfoSuccess + cudaFabricOpStatusInfoLast + cudaFabricOpStatusInfoMax + +cdef extern from 'surface_types.h': + cdef enum cudaSurfaceBoundaryMode: + cudaBoundaryModeZero + cudaBoundaryModeClamp + cudaBoundaryModeTrap + +cdef extern from 'surface_types.h': + cdef enum cudaSurfaceFormatMode: + cudaFormatModeForced + cudaFormatModeAuto + +cdef extern from 'texture_types.h': + cdef enum cudaTextureAddressMode: + cudaAddressModeWrap + cudaAddressModeClamp + cudaAddressModeMirror + cudaAddressModeBorder + +cdef extern from 'texture_types.h': + cdef enum cudaTextureFilterMode: + cudaFilterModePoint + cudaFilterModeLinear + +cdef extern from 'texture_types.h': + cdef enum cudaTextureReadMode: + cudaReadModeElementType + cudaReadModeNormalizedFloat + +cdef extern from 'library_types.h': + cdef enum cudaDataType_t: + CUDA_R_16F + CUDA_C_16F + CUDA_R_16BF + CUDA_C_16BF + CUDA_R_32F + CUDA_C_32F + CUDA_R_64F + CUDA_C_64F + CUDA_R_4I + CUDA_C_4I + CUDA_R_4U + CUDA_C_4U + CUDA_R_8I + CUDA_C_8I + CUDA_R_8U + CUDA_C_8U + CUDA_R_16I + CUDA_C_16I + CUDA_R_16U + CUDA_C_16U + CUDA_R_32I + CUDA_C_32I + CUDA_R_32U + CUDA_C_32U + CUDA_R_64I + CUDA_C_64I + CUDA_R_64U + CUDA_C_64U + CUDA_R_8F_E4M3 + CUDA_R_8F_UE4M3 + CUDA_R_8F_E5M2 + CUDA_R_8F_UE8M0 + CUDA_R_6F_E2M3 + CUDA_R_6F_E3M2 + CUDA_R_4F_E2M1 + ctypedef cudaDataType_t cudaDataType + +cdef enum cudaEglFrameType_enum: + cudaEglFrameTypeArray = 0 + cudaEglFrameTypePitch = 1 +ctypedef cudaEglFrameType_enum cudaEglFrameType + +cdef enum cudaEglResourceLocationFlags_enum: + cudaEglResourceLocationSysmem = 0x00 + cudaEglResourceLocationVidmem = 0x01 +ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags + +cdef enum cudaEglColorFormat_enum: + cudaEglColorFormatYUV420Planar = 0 + cudaEglColorFormatYUV420SemiPlanar = 1 + cudaEglColorFormatYUV422Planar = 2 + cudaEglColorFormatYUV422SemiPlanar = 3 + cudaEglColorFormatARGB = 6 + cudaEglColorFormatRGBA = 7 + cudaEglColorFormatL = 8 + cudaEglColorFormatR = 9 + cudaEglColorFormatYUV444Planar = 10 + cudaEglColorFormatYUV444SemiPlanar = 11 + cudaEglColorFormatYUYV422 = 12 + cudaEglColorFormatUYVY422 = 13 + cudaEglColorFormatABGR = 14 + cudaEglColorFormatBGRA = 15 + cudaEglColorFormatA = 16 + cudaEglColorFormatRG = 17 + cudaEglColorFormatAYUV = 18 + cudaEglColorFormatYVU444SemiPlanar = 19 + cudaEglColorFormatYVU422SemiPlanar = 20 + cudaEglColorFormatYVU420SemiPlanar = 21 + cudaEglColorFormatY10V10U10_444SemiPlanar = 22 + cudaEglColorFormatY10V10U10_420SemiPlanar = 23 + cudaEglColorFormatY12V12U12_444SemiPlanar = 24 + cudaEglColorFormatY12V12U12_420SemiPlanar = 25 + cudaEglColorFormatVYUY_ER = 26 + cudaEglColorFormatUYVY_ER = 27 + cudaEglColorFormatYUYV_ER = 28 + cudaEglColorFormatYVYU_ER = 29 + cudaEglColorFormatYUVA_ER = 31 + cudaEglColorFormatAYUV_ER = 32 + cudaEglColorFormatYUV444Planar_ER = 33 + cudaEglColorFormatYUV422Planar_ER = 34 + cudaEglColorFormatYUV420Planar_ER = 35 + cudaEglColorFormatYUV444SemiPlanar_ER = 36 + cudaEglColorFormatYUV422SemiPlanar_ER = 37 + cudaEglColorFormatYUV420SemiPlanar_ER = 38 + cudaEglColorFormatYVU444Planar_ER = 39 + cudaEglColorFormatYVU422Planar_ER = 40 + cudaEglColorFormatYVU420Planar_ER = 41 + cudaEglColorFormatYVU444SemiPlanar_ER = 42 + cudaEglColorFormatYVU422SemiPlanar_ER = 43 + cudaEglColorFormatYVU420SemiPlanar_ER = 44 + cudaEglColorFormatBayerRGGB = 45 + cudaEglColorFormatBayerBGGR = 46 + cudaEglColorFormatBayerGRBG = 47 + cudaEglColorFormatBayerGBRG = 48 + cudaEglColorFormatBayer10RGGB = 49 + cudaEglColorFormatBayer10BGGR = 50 + cudaEglColorFormatBayer10GRBG = 51 + cudaEglColorFormatBayer10GBRG = 52 + cudaEglColorFormatBayer12RGGB = 53 + cudaEglColorFormatBayer12BGGR = 54 + cudaEglColorFormatBayer12GRBG = 55 + cudaEglColorFormatBayer12GBRG = 56 + cudaEglColorFormatBayer14RGGB = 57 + cudaEglColorFormatBayer14BGGR = 58 + cudaEglColorFormatBayer14GRBG = 59 + cudaEglColorFormatBayer14GBRG = 60 + cudaEglColorFormatBayer20RGGB = 61 + cudaEglColorFormatBayer20BGGR = 62 + cudaEglColorFormatBayer20GRBG = 63 + cudaEglColorFormatBayer20GBRG = 64 + cudaEglColorFormatYVU444Planar = 65 + cudaEglColorFormatYVU422Planar = 66 + cudaEglColorFormatYVU420Planar = 67 + cudaEglColorFormatBayerIspRGGB = 68 + cudaEglColorFormatBayerIspBGGR = 69 + cudaEglColorFormatBayerIspGRBG = 70 + cudaEglColorFormatBayerIspGBRG = 71 + cudaEglColorFormatBayerBCCR = 72 + cudaEglColorFormatBayerRCCB = 73 + cudaEglColorFormatBayerCRBC = 74 + cudaEglColorFormatBayerCBRC = 75 + cudaEglColorFormatBayer10CCCC = 76 + cudaEglColorFormatBayer12BCCR = 77 + cudaEglColorFormatBayer12RCCB = 78 + cudaEglColorFormatBayer12CRBC = 79 + cudaEglColorFormatBayer12CBRC = 80 + cudaEglColorFormatBayer12CCCC = 81 + cudaEglColorFormatY = 82 + cudaEglColorFormatYUV420SemiPlanar_2020 = 83 + cudaEglColorFormatYVU420SemiPlanar_2020 = 84 + cudaEglColorFormatYUV420Planar_2020 = 85 + cudaEglColorFormatYVU420Planar_2020 = 86 + cudaEglColorFormatYUV420SemiPlanar_709 = 87 + cudaEglColorFormatYVU420SemiPlanar_709 = 88 + cudaEglColorFormatYUV420Planar_709 = 89 + cudaEglColorFormatYVU420Planar_709 = 90 + cudaEglColorFormatY10V10U10_420SemiPlanar_709 = 91 + cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = 92 + cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = 93 + cudaEglColorFormatY10V10U10_422SemiPlanar = 94 + cudaEglColorFormatY10V10U10_422SemiPlanar_709 = 95 + cudaEglColorFormatY_ER = 96 + cudaEglColorFormatY_709_ER = 97 + cudaEglColorFormatY10_ER = 98 + cudaEglColorFormatY10_709_ER = 99 + cudaEglColorFormatY12_ER = 100 + cudaEglColorFormatY12_709_ER = 101 + cudaEglColorFormatYUVA = 102 + cudaEglColorFormatYVYU = 104 + cudaEglColorFormatVYUY = 105 + cudaEglColorFormatY10V10U10_420SemiPlanar_ER = 106 + cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = 107 + cudaEglColorFormatY10V10U10_444SemiPlanar_ER = 108 + cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = 109 + cudaEglColorFormatY12V12U12_420SemiPlanar_ER = 110 + cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = 111 + cudaEglColorFormatY12V12U12_444SemiPlanar_ER = 112 + cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 113 + cudaEglColorFormatUYVY709 = 114 + cudaEglColorFormatUYVY709_ER = 115 + cudaEglColorFormatUYVY2020 = 116 +ctypedef cudaEglColorFormat_enum cudaEglColorFormat + +cdef enum cudaGLDeviceList: + cudaGLDeviceListAll = 1 + cudaGLDeviceListCurrentFrame = 2 + cudaGLDeviceListNextFrame = 3 + +cdef enum cudaGLMapFlags: + cudaGLMapFlagsNone = 0 + cudaGLMapFlagsReadOnly = 1 + cudaGLMapFlagsWriteDiscard = 2 + +cdef extern from 'library_types.h': + cdef enum cudaEmulationStrategy_t: + CUDA_EMULATION_STRATEGY_DEFAULT + CUDA_EMULATION_STRATEGY_PERFORMANT + CUDA_EMULATION_STRATEGY_EAGER + ctypedef cudaEmulationStrategy_t cudaEmulationStrategy + +cdef extern from 'library_types.h': + cdef enum cudaEmulationMantissaControl_t: + CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC + CUDA_EMULATION_MANTISSA_CONTROL_FIXED + ctypedef cudaEmulationMantissaControl_t cudaEmulationMantissaControl + +cdef extern from 'library_types.h': + cdef enum cudaEmulationSpecialValuesSupport_t: + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN + ctypedef cudaEmulationSpecialValuesSupport_t cudaEmulationSpecialValuesSupport + +cdef enum: _CUDAERROR_T_INTERNAL_LOADING_ERROR = cudaError_t.cudaErrorCallRequiresNewerDriver + + +# TYPES +cdef extern from 'driver_types.h': + ctypedef unsigned long long cudaGraphConditionalHandle 'cudaGraphConditionalHandle' + +cdef extern from 'driver_types.h': + ctypedef unsigned int cudaLogIterator 'cudaLogIterator' + +cdef extern from 'surface_types.h': + ctypedef unsigned long long cudaSurfaceObject_t 'cudaSurfaceObject_t' + +cdef extern from 'texture_types.h': + ctypedef unsigned long long cudaTextureObject_t 'cudaTextureObject_t' + +cdef extern from 'driver_types.h': + ctypedef struct cudaArray: + pass + ctypedef cudaArray* cudaArray_t 'cudaArray_t' + +cdef extern from 'driver_types.h': + ctypedef struct cudaArray: + pass + ctypedef cudaArray* cudaArray_const_t 'cudaArray_const_t' + +cdef extern from 'driver_types.h': + ctypedef struct cudaMipmappedArray: + pass + ctypedef cudaMipmappedArray* cudaMipmappedArray_t 'cudaMipmappedArray_t' + +cdef extern from 'driver_types.h': + ctypedef struct cudaMipmappedArray: + pass + ctypedef cudaMipmappedArray* cudaMipmappedArray_const_t 'cudaMipmappedArray_const_t' + +cdef extern from 'driver_types.h': + ctypedef struct cudaAsyncCallbackEntry: + pass + ctypedef cudaAsyncCallbackEntry* cudaAsyncCallbackHandle_t 'cudaAsyncCallbackHandle_t' + +cdef extern from '': + cdef struct cudaChannelFormatDesc: + int x + int y + int z + int w + cudaChannelFormatKind f + +cdef struct cuda_bindings_runtime__anon_pod0: + unsigned int width + unsigned int height + unsigned int depth + +cdef extern from '': + cdef struct cudaArrayMemoryRequirements: + size_t size + size_t alignment + unsigned int reserved[4] + +cdef extern from '': + cdef struct cudaPitchedPtr: + void* ptr + size_t pitch + size_t xsize + size_t ysize + +cdef extern from '': + cdef struct cudaExtent: + size_t width + size_t height + size_t depth + +cdef extern from '': + cdef struct cudaPos: + size_t x + size_t y + size_t z + +cdef extern from '': + cdef struct cudaMemsetParams: + void* dst + size_t pitch + unsigned int value + unsigned int elementSize + size_t width + size_t height + +cdef extern from '': + cdef struct cudaAccessPolicyWindow: + void* base_ptr + size_t num_bytes + float hitRatio + cudaAccessProperty hitProp + cudaAccessProperty missProp + +cdef extern from 'driver_types.h': + ctypedef void (*cudaHostFn_t 'cudaHostFn_t')( + void* userData + ) + +cdef struct cuda_bindings_runtime__anon_pod6: + int reserved[32] + +cdef extern from '': + cdef struct cudaResourceViewDesc: + cudaResourceViewFormat format + size_t width + size_t height + size_t depth + unsigned int firstMipmapLevel + unsigned int lastMipmapLevel + unsigned int firstLayer + unsigned int lastLayer + unsigned int reserved[16] + +cdef extern from '': + cdef struct cudaPointerAttributes: + cudaMemoryType type + int device + void* devicePointer + void* hostPointer + long reserved[8] + +cdef extern from '': + cdef struct cudaFuncAttributes: + size_t sharedSizeBytes + size_t constSizeBytes + size_t localSizeBytes + int maxThreadsPerBlock + int numRegs + int ptxVersion + int binaryVersion + int cacheModeCA + int maxDynamicSharedSizeBytes + int preferredShmemCarveout + int clusterDimMustBeSet + int requiredClusterWidth + int requiredClusterHeight + int requiredClusterDepth + int clusterSchedulingPolicyPreference + int nonPortableClusterSizeAllowed + int deviceNodeUpdateStatus + int reserved1 + int reserved[14] + +cdef extern from '': + cdef struct cudaMemPoolPtrExportData: + unsigned char reserved[64] + +cdef extern from '': + cdef struct cudaMemFreeNodeParams: + void* dptr + +cdef extern from '': + cdef struct cudaOffset3D: + size_t x + size_t y + size_t z + +cdef extern from '': + cdef struct cudaDeviceProp: + char name[256] + cudaUUID_t uuid + char luid[8] + unsigned int luidDeviceNodeMask + size_t totalGlobalMem + size_t sharedMemPerBlock + int regsPerBlock + int warpSize + size_t memPitch + int maxThreadsPerBlock + int maxThreadsDim[3] + int maxGridSize[3] + size_t totalConstMem + int major + int minor + size_t textureAlignment + size_t texturePitchAlignment + int multiProcessorCount + int integrated + int canMapHostMemory + int maxTexture1D + int maxTexture1DMipmap + int maxTexture2D[2] + int maxTexture2DMipmap[2] + int maxTexture2DLinear[3] + int maxTexture2DGather[2] + int maxTexture3D[3] + int maxTexture3DAlt[3] + int maxTextureCubemap + int maxTexture1DLayered[2] + int maxTexture2DLayered[3] + int maxTextureCubemapLayered[2] + int maxSurface1D + int maxSurface2D[2] + int maxSurface3D[3] + int maxSurface1DLayered[2] + int maxSurface2DLayered[3] + int maxSurfaceCubemap + int maxSurfaceCubemapLayered[2] + size_t surfaceAlignment + int concurrentKernels + int ECCEnabled + int pciBusID + int pciDeviceID + int pciDomainID + int tccDriver + int asyncEngineCount + int unifiedAddressing + int memoryBusWidth + int l2CacheSize + int persistingL2CacheMaxSize + int maxThreadsPerMultiProcessor + int streamPrioritiesSupported + int globalL1CacheSupported + int localL1CacheSupported + size_t sharedMemPerMultiprocessor + int regsPerMultiprocessor + int managedMemory + int isMultiGpuBoard + int multiGpuBoardGroupID + int hostNativeAtomicSupported + int pageableMemoryAccess + int concurrentManagedAccess + int computePreemptionSupported + int canUseHostPointerForRegisteredMem + int cooperativeLaunch + size_t sharedMemPerBlockOptin + int pageableMemoryAccessUsesHostPageTables + int directManagedMemAccessFromHost + int maxBlocksPerMultiProcessor + int accessPolicyMaxWindowSize + size_t reservedSharedMemPerBlock + int hostRegisterSupported + int sparseCudaArraySupported + int hostRegisterReadOnlySupported + int timelineSemaphoreInteropSupported + int memoryPoolsSupported + int gpuDirectRDMASupported + unsigned int gpuDirectRDMAFlushWritesOptions + int gpuDirectRDMAWritesOrdering + unsigned int memoryPoolSupportedHandleTypes + int deferredMappingCudaArraySupported + int ipcEventSupported + int clusterLaunch + int unifiedFunctionPointers + int deviceNumaConfig + int deviceNumaId + int mpsEnabled + int hostNumaId + unsigned int gpuPciDeviceID + unsigned int gpuPciSubsystemID + int hostNumaMultinodeIpcSupported + int reserved[56] + +cdef extern from '': + cdef struct cudaIpcEventHandle_st: + char reserved[64] + ctypedef cudaIpcEventHandle_st cudaIpcEventHandle_t + +cdef extern from '': + cdef struct cudaIpcMemHandle_st: + char reserved[64] + ctypedef cudaIpcMemHandle_st cudaIpcMemHandle_t + +cdef extern from '': + cdef struct cudaMemFabricHandle_st: + char reserved[64] + ctypedef cudaMemFabricHandle_st cudaMemFabricHandle_t + +cdef struct cuda_bindings_runtime__anon_pod12: + void* handle + void* name + +cdef extern from '': + cdef struct cudaExternalMemoryBufferDesc: + unsigned long long offset + unsigned long long size + unsigned int flags + unsigned int reserved[16] + +cdef struct cuda_bindings_runtime__anon_pod14: + void* handle + void* name + +cdef struct cuda_bindings_runtime__anon_pod16: + unsigned long long value + +cdef union cuda_bindings_runtime__anon_pod17: + void* fence + unsigned long long reserved + +cdef struct cuda_bindings_runtime__anon_pod18: + unsigned long long key + +cdef struct cuda_bindings_runtime__anon_pod20: + unsigned long long value + +cdef union cuda_bindings_runtime__anon_pod21: + void* fence + unsigned long long reserved + +cdef struct cuda_bindings_runtime__anon_pod22: + unsigned long long key + unsigned int timeoutMs + +cdef extern from '': + cdef struct cudaDevSmResource: + unsigned int smCount + unsigned int minSmPartitionSize + unsigned int smCoscheduledAlignment + unsigned int flags + +cdef extern from '': + cdef struct cudaDevWorkqueueConfigResource: + int device + unsigned int wqConcurrencyLimit + cudaDevWorkqueueConfigScope sharingScope + +cdef extern from '': + cdef struct cudaDevWorkqueueResource: + unsigned char reserved[40] + +cdef extern from '': + cdef struct cudaDevSmResourceGroupParams_st: + unsigned int smCount + unsigned int coscheduledSmCount + unsigned int preferredCoscheduledSmCount + unsigned int flags + unsigned int reserved[12] + ctypedef cudaDevSmResourceGroupParams_st cudaDevSmResourceGroupParams + +cdef extern from '': + cdef struct cudaKernelNodeParams: + void* func + dim3 gridDim + dim3 blockDim + unsigned int sharedMemBytes + void** kernelParams + void** extra + +cdef extern from '': + cdef struct cudaGraphEdgeData_st: + unsigned char from_port + unsigned char to_port + unsigned char type + unsigned char reserved[5] + ctypedef cudaGraphEdgeData_st cudaGraphEdgeData + +cdef struct cuda_bindings_runtime__anon_pod27: + void* pValue + size_t offset + size_t size + +cdef extern from '': + cdef struct cudaLaunchMemSyncDomainMap_st: + unsigned char default_ + unsigned char remote + ctypedef cudaLaunchMemSyncDomainMap_st cudaLaunchMemSyncDomainMap + +cdef struct cuda_bindings_runtime__anon_pod28: + unsigned int x + unsigned int y + unsigned int z + +cdef struct cuda_bindings_runtime__anon_pod30: + unsigned int x + unsigned int y + unsigned int z + +cdef struct cuda_bindings_runtime__anon_pod34: + unsigned long long bytesOverBudget + +cdef extern from '': + cdef struct cudaTextureDesc: + cudaTextureAddressMode addressMode[3] + cudaTextureFilterMode filterMode + cudaTextureReadMode readMode + int sRGB + float borderColor[4] + int normalizedCoords + unsigned int maxAnisotropy + cudaTextureFilterMode mipmapFilterMode + float mipmapLevelBias + float minMipmapLevelClamp + float maxMipmapLevelClamp + int disableTrilinearOptimization + int seamlessCubemap + +cdef extern from 'cuda_runtime_api.h': + ctypedef void (*cudaLogsCallback_t 'cudaLogsCallback_t')( + void* data, + cudaLogLevel logLevel, + char* message, + size_t length + ) + +cdef extern from '': + cdef struct cudaMemsetParamsV2: + void* dst + size_t pitch + unsigned int value + unsigned int elementSize + size_t width + size_t height + cudaExecutionContext_t ctx + +cdef struct cuda_bindings_runtime__anon_pod2: + cudaArray_t array + +cdef struct cuda_bindings_runtime__anon_pod3: + cudaMipmappedArray_t mipmap + +cdef extern from '': + cdef struct cudaLaunchConfig_st: + dim3 gridDim + dim3 blockDim + size_t dynamicSmemBytes + cudaStream_t stream + cudaLaunchAttribute* attrs + unsigned int numAttrs + ctypedef cudaLaunchConfig_st cudaLaunchConfig_t + +cdef extern from 'cuda_runtime_api.h': + ctypedef void (*cudaStreamCallback_t 'cudaStreamCallback_t')( + cudaStream_t stream, + cudaError_t status, + void* userData + ) + +cdef extern from '': + cdef struct cudaEventRecordNodeParams: + cudaEvent_t event + +cdef extern from '': + cdef struct cudaEventWaitNodeParams: + cudaEvent_t event + +cdef struct cuda_bindings_runtime__anon_pod29: + cudaEvent_t event + int flags + int triggerAtBlockStart + +cdef struct cuda_bindings_runtime__anon_pod31: + cudaEvent_t event + int flags + +cdef extern from '': + cdef struct cudaConditionalNodeParams: + cudaGraphConditionalHandle handle + cudaGraphConditionalNodeType type + unsigned int size + cudaGraph_t* phGraph_out + cudaExecutionContext_t ctx + +cdef extern from '': + cdef struct cudaChildGraphNodeParams: + cudaGraph_t graph + cudaGraphChildGraphNodeOwnership ownership + +cdef extern from '': + cdef struct cudaGraphInstantiateParams_st: + unsigned long long flags + cudaStream_t uploadStream + cudaGraphNode_t errNode_out + cudaGraphInstantiateResult result_out + ctypedef cudaGraphInstantiateParams_st cudaGraphInstantiateParams + +cdef extern from '': + cdef struct cudaGraphExecUpdateResultInfo_st: + cudaGraphExecUpdateResult result + cudaGraphNode_t errorNode + cudaGraphNode_t errorFromNode + ctypedef cudaGraphExecUpdateResultInfo_st cudaGraphExecUpdateResultInfo + +cdef struct cuda_bindings_runtime__anon_pod32: + int deviceUpdatable + cudaGraphDeviceNode_t devNode + +cdef struct cuda_bindings_runtime__anon_pod4: + void* devPtr + cudaChannelFormatDesc desc + size_t sizeInBytes + +cdef struct cuda_bindings_runtime__anon_pod5: + void* devPtr + cudaChannelFormatDesc desc + size_t width + size_t height + size_t pitchInBytes + +cdef struct cudaEglPlaneDesc_st: + unsigned int width + unsigned int height + unsigned int depth + unsigned int pitch + unsigned int numChannels + cudaChannelFormatDesc channelDesc + unsigned int reserved[4] +ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc + +cdef extern from '': + cdef struct cudaArraySparseProperties: + cuda_bindings_runtime__anon_pod0 tileExtent + unsigned int miptailFirstLevel + unsigned long long miptailSize + unsigned int flags + unsigned int reserved[4] + +cdef union cuda_bindings_runtime__anon_pod35: + cudaArray_t pArray[3] + cudaPitchedPtr pPitch[3] + +cdef extern from '': + cdef struct cudaExternalMemoryMipmappedArrayDesc: + unsigned long long offset + cudaChannelFormatDesc formatDesc + cudaExtent extent + unsigned int flags + unsigned int numLevels + unsigned int reserved[16] + +cdef extern from '': + cdef struct cudaMemcpy3DParms: + cudaArray_t srcArray + cudaPos srcPos + cudaPitchedPtr srcPtr + cudaArray_t dstArray + cudaPos dstPos + cudaPitchedPtr dstPtr + cudaExtent extent + cudaMemcpyKind kind + +cdef extern from '': + cdef struct cudaMemcpy3DPeerParms: + cudaArray_t srcArray + cudaPos srcPos + cudaPitchedPtr srcPtr + int srcDevice + cudaArray_t dstArray + cudaPos dstPos + cudaPitchedPtr dstPtr + int dstDevice + cudaExtent extent + +cdef extern from '': + cdef struct cudaHostNodeParams: + cudaHostFn_t fn + void* userData + +cdef extern from '': + cdef struct cudaHostNodeParamsV2: + cudaHostFn_t fn + void* userData + unsigned int syncMode + +cdef extern from '': + cdef struct cudaMemLocation: + cudaMemLocationType type + int id + +cdef struct cuda_bindings_runtime__anon_pod10: + cudaArray_t array + cudaOffset3D offset + +cdef union cuda_bindings_runtime__anon_pod11: + int fd + cuda_bindings_runtime__anon_pod12 win32 + void* nvSciBufObject + +cdef union cuda_bindings_runtime__anon_pod13: + int fd + cuda_bindings_runtime__anon_pod14 win32 + void* nvSciSyncObj + +cdef struct cuda_bindings_runtime__anon_pod15: + cuda_bindings_runtime__anon_pod16 fence + cuda_bindings_runtime__anon_pod17 nvSciSync + cuda_bindings_runtime__anon_pod18 keyedMutex + unsigned int reserved[12] + +cdef struct cuda_bindings_runtime__anon_pod19: + cuda_bindings_runtime__anon_pod20 fence + cuda_bindings_runtime__anon_pod21 nvSciSync + cuda_bindings_runtime__anon_pod22 keyedMutex + unsigned int reserved[10] + +cdef union cuda_bindings_runtime__anon_pod26: + dim3 gridDim + cuda_bindings_runtime__anon_pod27 param + unsigned int isEnabled + +cdef union cuda_bindings_runtime__anon_pod33: + cuda_bindings_runtime__anon_pod34 overBudget + +cdef extern from '': + cdef struct cudaKernelNodeParamsV2: + void* func + cudaKernel_t kern + cudaFunction_t cuFunc + dim3 gridDim + dim3 blockDim + unsigned int sharedMemBytes + void** kernelParams + void** extra + cudaExecutionContext_t ctx + cudaKernelFunctionType functionType + +cdef extern from '': + cdef union cudaLaunchAttributeValue: + char pad[64] + cudaAccessPolicyWindow accessPolicyWindow + int cooperative + cudaSynchronizationPolicy syncPolicy + cuda_bindings_runtime__anon_pod28 clusterDim + cudaClusterSchedulingPolicy clusterSchedulingPolicyPreference + int programmaticStreamSerializationAllowed + cuda_bindings_runtime__anon_pod29 programmaticEvent + int priority + cudaLaunchMemSyncDomainMap memSyncDomainMap + cudaLaunchMemSyncDomain memSyncDomain + cuda_bindings_runtime__anon_pod30 preferredClusterDim + cuda_bindings_runtime__anon_pod31 launchCompletionEvent + cuda_bindings_runtime__anon_pod32 deviceUpdatableKernelNode + unsigned int sharedMemCarveout + unsigned int nvlinkUtilCentricScheduling + cudaLaunchAttributePortableClusterMode portableClusterSizeMode + cudaSharedMemoryMode sharedMemoryMode + +cdef union cuda_bindings_runtime__anon_pod1: + cuda_bindings_runtime__anon_pod2 array + cuda_bindings_runtime__anon_pod3 mipmap + cuda_bindings_runtime__anon_pod4 linear + cuda_bindings_runtime__anon_pod5 pitch2D + cuda_bindings_runtime__anon_pod6 reserved + +cdef struct cudaEglFrame_st: + cuda_bindings_runtime__anon_pod35 frame + cudaEglPlaneDesc planeDesc[3] + unsigned int planeCount + cudaEglFrameType frameType + cudaEglColorFormat eglColorFormat +ctypedef cudaEglFrame_st cudaEglFrame + +cdef extern from '': + cdef struct cudaMemcpyNodeParams: + int flags + int reserved + cudaExecutionContext_t ctx + cudaMemcpy3DParms copyParams + +cdef extern from '': + cdef struct cudaMemAccessDesc: + cudaMemLocation location + cudaMemAccessFlags flags + +cdef extern from '': + cdef struct cudaMemPoolProps: + cudaMemAllocationType allocType + cudaMemAllocationHandleType handleTypes + cudaMemLocation location + void* win32SecurityAttributes + size_t maxSize + unsigned short usage + unsigned char reserved[54] + +cdef extern from '': + cdef struct cudaMemcpyAttributes: + cudaMemcpySrcAccessOrder srcAccessOrder + cudaMemLocation srcLocHint + cudaMemLocation dstLocHint + unsigned int flags + +cdef struct cuda_bindings_runtime__anon_pod9: + void* ptr + size_t rowLength + size_t layerHeight + cudaMemLocation locHint + +cdef extern from '': + cdef struct cudaExternalMemoryHandleDesc: + cudaExternalMemoryHandleType type + cuda_bindings_runtime__anon_pod11 handle + unsigned long long size + unsigned int flags + unsigned int reserved[16] + +cdef extern from '': + cdef struct cudaExternalSemaphoreHandleDesc: + cudaExternalSemaphoreHandleType type + cuda_bindings_runtime__anon_pod13 handle + unsigned int flags + unsigned int reserved[16] + +cdef extern from '': + cdef struct cudaExternalSemaphoreSignalParams: + cuda_bindings_runtime__anon_pod15 params + unsigned int flags + unsigned int reserved[16] + +cdef extern from '': + cdef struct cudaExternalSemaphoreWaitParams: + cuda_bindings_runtime__anon_pod19 params + unsigned int flags + unsigned int reserved[16] + +cdef extern from '': + cdef struct cudaDevResource_st: + cudaDevResourceType type + unsigned char _internal_padding[92] + cudaDevSmResource sm + cudaDevWorkqueueConfigResource wqConfig + cudaDevWorkqueueResource wq + unsigned char _oversize[40] + cudaDevResource_st* nextResource + ctypedef cudaDevResource_st cudaDevResource + +cdef extern from '': + cdef struct cudaGraphKernelNodeUpdate: + cudaGraphDeviceNode_t node + cudaGraphKernelNodeField field + cuda_bindings_runtime__anon_pod26 updateData + +cdef extern from '': + cdef struct cudaAsyncNotificationInfo: + cudaAsyncNotificationType type + cuda_bindings_runtime__anon_pod33 info + ctypedef cudaAsyncNotificationInfo cudaAsyncNotificationInfo_t + +cdef extern from '': + cdef struct cudaResourceDesc: + cudaResourceType resType + cuda_bindings_runtime__anon_pod1 res + unsigned int flags + +cdef extern from '': + cdef struct cudaMemAllocNodeParams: + cudaMemPoolProps poolProps + cudaMemAccessDesc* accessDescs + size_t accessDescCount + size_t bytesize + void* dptr + +cdef extern from '': + cdef struct cudaMemAllocNodeParamsV2: + cudaMemPoolProps poolProps + cudaMemAccessDesc* accessDescs + size_t accessDescCount + size_t bytesize + void* dptr + +cdef union cuda_bindings_runtime__anon_pod8: + cuda_bindings_runtime__anon_pod9 ptr + cuda_bindings_runtime__anon_pod10 array + +cdef extern from '': + cdef struct cudaExternalSemaphoreSignalNodeParams: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreSignalParams* paramsArray + unsigned int numExtSems + +cdef extern from '': + cdef struct cudaExternalSemaphoreSignalNodeParamsV2: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreSignalParams* paramsArray + unsigned int numExtSems + +cdef extern from '': + cdef struct cudaExternalSemaphoreWaitNodeParams: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreWaitParams* paramsArray + unsigned int numExtSems + +cdef extern from '': + cdef struct cudaExternalSemaphoreWaitNodeParamsV2: + cudaExternalSemaphore_t* extSemArray + cudaExternalSemaphoreWaitParams* paramsArray + unsigned int numExtSems + +cdef extern from '': + cdef struct cudaMemcpy3DOperand: + cudaMemcpy3DOperandType type + cuda_bindings_runtime__anon_pod8 op + +cdef extern from '': + cdef struct cudaMemcpy3DBatchOp: + cudaMemcpy3DOperand src + cudaMemcpy3DOperand dst + cudaExtent extent + cudaMemcpySrcAccessOrder srcAccessOrder + unsigned int flags + +cdef extern from '': + cdef struct cudaGraphNodeParams: + cudaGraphNodeType type + int reserved0[3] + long long reserved1[29] + cudaKernelNodeParamsV2 kernel + cudaMemcpyNodeParams memcpy + cudaMemsetParamsV2 memset + cudaHostNodeParamsV2 host + cudaChildGraphNodeParams graph + cudaEventWaitNodeParams eventWait + cudaEventRecordNodeParams eventRecord + cudaExternalSemaphoreSignalNodeParamsV2 extSemSignal + cudaExternalSemaphoreWaitNodeParamsV2 extSemWait + cudaMemAllocNodeParamsV2 alloc + cudaMemFreeNodeParams free + cudaConditionalNodeParams conditional + long long reserved2 + +cdef extern from 'cuda_runtime_api.h': + ctypedef cudaError_t (*cudaGraphRecaptureCallback_t 'cudaGraphRecaptureCallback_t')( + void* data, + cudaGraphNode_t node, + const cudaGraphNodeParams* originalParams, + const cudaGraphNodeParams* recaptureParams, + cudaGraphRecaptureStatus status + ) + +cdef extern from '': + cdef struct cudaGraphRecaptureCallbackData: + cudaGraphRecaptureCallback_t callbackFunc + void* userData + +cdef extern from 'cuda_runtime_api.h': + ctypedef void (*cudaAsyncCallback)(cudaAsyncNotificationInfo_t* info, void* userData, cudaAsyncCallbackHandle_t handle) nogil + + +# FUNCTIONS +cdef cudaError_t cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil +cdef const char* cudaGetErrorName(cudaError_t error) except?NULL nogil +cdef const char* cudaGetErrorString(cudaError_t error) except?NULL nogil +cdef cudaError_t cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil +cdef cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsEGLRegisterImage(cudaGraphicsResource** pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil +cdef cudaError_t cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil + +# C #define integer constants from driver_types.h required for ABI compat with lowpp layer +cdef extern from 'driver_types.h': + cdef enum: + cudaHostAllocDefault + cudaHostAllocPortable + cudaHostAllocMapped + cudaHostAllocWriteCombined + cudaHostRegisterDefault + cudaHostRegisterPortable + cudaHostRegisterMapped + cudaHostRegisterIoMemory + cudaHostRegisterReadOnly + cudaPeerAccessDefault + cudaStreamDefault + cudaStreamNonBlocking + cudaEventDefault + cudaEventBlockingSync + cudaEventDisableTiming + cudaEventInterprocess + cudaEventRecordDefault + cudaEventRecordExternal + cudaEventWaitDefault + cudaEventWaitExternal + cudaDeviceScheduleAuto + cudaDeviceScheduleSpin + cudaDeviceScheduleYield + cudaDeviceScheduleBlockingSync + cudaDeviceBlockingSync + cudaDeviceScheduleMask + cudaDeviceMapHost + cudaDeviceLmemResizeToMax + cudaDeviceSyncMemops + cudaDeviceMask + cudaArrayDefault + cudaArrayLayered + cudaArraySurfaceLoadStore + cudaArrayCubemap + cudaArrayTextureGather + cudaArrayColorAttachment + cudaArraySparse + cudaArrayDeferredMapping + cudaIpcMemLazyEnablePeerAccess + cudaMemAttachGlobal + cudaMemAttachHost + cudaMemAttachSingle + cudaOccupancyDefault + cudaOccupancyDisableCachingOverride + cudaCpuDeviceId + cudaInvalidDeviceId + cudaInitDeviceFlagsAreValid + cudaArraySparsePropertiesSingleMipTail + cudaMemPoolCreateUsageHwDecompress + CUDA_IPC_HANDLE_SIZE + cudaExternalMemoryDedicated + cudaExternalSemaphoreSignalSkipNvSciBufMemSync + cudaExternalSemaphoreWaitSkipNvSciBufMemSync + cudaNvSciSyncAttrSignal + cudaNvSciSyncAttrWait + cudaGraphKernelNodePortDefault + cudaGraphKernelNodePortProgrammatic + cudaGraphKernelNodePortLaunchCompletion + cudaStreamAttributeAccessPolicyWindow + cudaStreamAttributeSynchronizationPolicy + cudaStreamAttributeMemSyncDomainMap + cudaStreamAttributeMemSyncDomain + cudaStreamAttributePriority + cudaKernelNodeAttributeAccessPolicyWindow + cudaKernelNodeAttributeCooperative + cudaKernelNodeAttributePriority + cudaKernelNodeAttributeClusterDimension + cudaKernelNodeAttributeClusterSchedulingPolicyPreference + cudaKernelNodeAttributeMemSyncDomainMap + cudaKernelNodeAttributeMemSyncDomain + cudaKernelNodeAttributePreferredSharedMemoryCarveout + cudaKernelNodeAttributeDeviceUpdatableKernelNode + cudaKernelNodeAttributeNvlinkUtilCentricScheduling + +# cudaStreamLegacy/PerThread are pointer-cast macros: ((cudaStream_t)0x1/0x2); use integer values +cdef enum: + cudaStreamLegacy = 1 + cudaStreamPerThread = 2 + +# Surface and texture type constants +cdef extern from 'surface_types.h': + cdef enum: + cudaSurfaceType1D + cudaSurfaceType2D + cudaSurfaceType3D + cudaSurfaceTypeCubemap + cudaSurfaceType1DLayered + cudaSurfaceType2DLayered + cudaSurfaceTypeCubemapLayered + +cdef extern from 'texture_types.h': + cdef enum: + cudaTextureType1D + cudaTextureType2D + cudaTextureType3D + cudaTextureTypeCubemap + cudaTextureType1DLayered + cudaTextureType2DLayered + cudaTextureTypeCubemapLayered + +# Version constants +cdef extern from 'cuda_runtime.h': + cdef enum: + CUDART_VERSION + +cdef extern from 'cuda_runtime_api.h': + cdef enum: + __CUDART_API_VERSION + +# CUDA_EGL_MAX_PLANES is defined as 3 in cuda_egl_interop.h; hardcoded to avoid EGL deps +cdef enum: + CUDA_EGL_MAX_PLANES = 3 + +# libraryPropertyType_t (starts lowercase, outside type pattern) +cdef extern from 'library_types.h': + ctypedef enum libraryPropertyType_t 'libraryPropertyType_t': + MAJOR_VERSION + MINOR_VERSION + PATCH_LEVEL + + +# Static inline helpers from driver_functions.h — wrapped as cdef so the lowpp layer can cimport them. +cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil +cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil +cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil + +cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil diff --git a/cuda_bindings/cuda/bindings/cyruntime.pxd.in b/cuda_bindings/cuda/bindings/cyruntime.pxd.in deleted file mode 100644 index 4587a77371f..00000000000 --- a/cuda_bindings/cuda/bindings/cyruntime.pxd.in +++ /dev/null @@ -1,2094 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. - -from libc.stdint cimport uint32_t, uint64_t - -include "cyruntime_types.pxi" - -ctypedef unsigned int GLenum - -ctypedef unsigned int GLuint - -cdef extern from "": - cdef struct void: - pass -ctypedef void* EGLImageKHR - -cdef extern from "": - cdef struct void: - pass -ctypedef void* EGLStreamKHR - -ctypedef unsigned int EGLint - -cdef extern from "": - cdef struct void: - pass -ctypedef void* EGLSyncKHR - -ctypedef uint32_t VdpDevice - -ctypedef unsigned long long VdpGetProcAddress - -ctypedef uint32_t VdpVideoSurface - -ctypedef uint32_t VdpOutputSurface - -cdef enum cudaEglFrameType_enum: - cudaEglFrameTypeArray = 0 - cudaEglFrameTypePitch = 1 - -ctypedef cudaEglFrameType_enum cudaEglFrameType - -cdef enum cudaEglResourceLocationFlags_enum: - cudaEglResourceLocationSysmem = 0 - cudaEglResourceLocationVidmem = 1 - -ctypedef cudaEglResourceLocationFlags_enum cudaEglResourceLocationFlags - -cdef enum cudaEglColorFormat_enum: - cudaEglColorFormatYUV420Planar = 0 - cudaEglColorFormatYUV420SemiPlanar = 1 - cudaEglColorFormatYUV422Planar = 2 - cudaEglColorFormatYUV422SemiPlanar = 3 - cudaEglColorFormatARGB = 6 - cudaEglColorFormatRGBA = 7 - cudaEglColorFormatL = 8 - cudaEglColorFormatR = 9 - cudaEglColorFormatYUV444Planar = 10 - cudaEglColorFormatYUV444SemiPlanar = 11 - cudaEglColorFormatYUYV422 = 12 - cudaEglColorFormatUYVY422 = 13 - cudaEglColorFormatABGR = 14 - cudaEglColorFormatBGRA = 15 - cudaEglColorFormatA = 16 - cudaEglColorFormatRG = 17 - cudaEglColorFormatAYUV = 18 - cudaEglColorFormatYVU444SemiPlanar = 19 - cudaEglColorFormatYVU422SemiPlanar = 20 - cudaEglColorFormatYVU420SemiPlanar = 21 - cudaEglColorFormatY10V10U10_444SemiPlanar = 22 - cudaEglColorFormatY10V10U10_420SemiPlanar = 23 - cudaEglColorFormatY12V12U12_444SemiPlanar = 24 - cudaEglColorFormatY12V12U12_420SemiPlanar = 25 - cudaEglColorFormatVYUY_ER = 26 - cudaEglColorFormatUYVY_ER = 27 - cudaEglColorFormatYUYV_ER = 28 - cudaEglColorFormatYVYU_ER = 29 - cudaEglColorFormatYUVA_ER = 31 - cudaEglColorFormatAYUV_ER = 32 - cudaEglColorFormatYUV444Planar_ER = 33 - cudaEglColorFormatYUV422Planar_ER = 34 - cudaEglColorFormatYUV420Planar_ER = 35 - cudaEglColorFormatYUV444SemiPlanar_ER = 36 - cudaEglColorFormatYUV422SemiPlanar_ER = 37 - cudaEglColorFormatYUV420SemiPlanar_ER = 38 - cudaEglColorFormatYVU444Planar_ER = 39 - cudaEglColorFormatYVU422Planar_ER = 40 - cudaEglColorFormatYVU420Planar_ER = 41 - cudaEglColorFormatYVU444SemiPlanar_ER = 42 - cudaEglColorFormatYVU422SemiPlanar_ER = 43 - cudaEglColorFormatYVU420SemiPlanar_ER = 44 - cudaEglColorFormatBayerRGGB = 45 - cudaEglColorFormatBayerBGGR = 46 - cudaEglColorFormatBayerGRBG = 47 - cudaEglColorFormatBayerGBRG = 48 - cudaEglColorFormatBayer10RGGB = 49 - cudaEglColorFormatBayer10BGGR = 50 - cudaEglColorFormatBayer10GRBG = 51 - cudaEglColorFormatBayer10GBRG = 52 - cudaEglColorFormatBayer12RGGB = 53 - cudaEglColorFormatBayer12BGGR = 54 - cudaEglColorFormatBayer12GRBG = 55 - cudaEglColorFormatBayer12GBRG = 56 - cudaEglColorFormatBayer14RGGB = 57 - cudaEglColorFormatBayer14BGGR = 58 - cudaEglColorFormatBayer14GRBG = 59 - cudaEglColorFormatBayer14GBRG = 60 - cudaEglColorFormatBayer20RGGB = 61 - cudaEglColorFormatBayer20BGGR = 62 - cudaEglColorFormatBayer20GRBG = 63 - cudaEglColorFormatBayer20GBRG = 64 - cudaEglColorFormatYVU444Planar = 65 - cudaEglColorFormatYVU422Planar = 66 - cudaEglColorFormatYVU420Planar = 67 - cudaEglColorFormatBayerIspRGGB = 68 - cudaEglColorFormatBayerIspBGGR = 69 - cudaEglColorFormatBayerIspGRBG = 70 - cudaEglColorFormatBayerIspGBRG = 71 - cudaEglColorFormatBayerBCCR = 72 - cudaEglColorFormatBayerRCCB = 73 - cudaEglColorFormatBayerCRBC = 74 - cudaEglColorFormatBayerCBRC = 75 - cudaEglColorFormatBayer10CCCC = 76 - cudaEglColorFormatBayer12BCCR = 77 - cudaEglColorFormatBayer12RCCB = 78 - cudaEglColorFormatBayer12CRBC = 79 - cudaEglColorFormatBayer12CBRC = 80 - cudaEglColorFormatBayer12CCCC = 81 - cudaEglColorFormatY = 82 - cudaEglColorFormatYUV420SemiPlanar_2020 = 83 - cudaEglColorFormatYVU420SemiPlanar_2020 = 84 - cudaEglColorFormatYUV420Planar_2020 = 85 - cudaEglColorFormatYVU420Planar_2020 = 86 - cudaEglColorFormatYUV420SemiPlanar_709 = 87 - cudaEglColorFormatYVU420SemiPlanar_709 = 88 - cudaEglColorFormatYUV420Planar_709 = 89 - cudaEglColorFormatYVU420Planar_709 = 90 - cudaEglColorFormatY10V10U10_420SemiPlanar_709 = 91 - cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = 92 - cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = 93 - cudaEglColorFormatY10V10U10_422SemiPlanar = 94 - cudaEglColorFormatY10V10U10_422SemiPlanar_709 = 95 - cudaEglColorFormatY_ER = 96 - cudaEglColorFormatY_709_ER = 97 - cudaEglColorFormatY10_ER = 98 - cudaEglColorFormatY10_709_ER = 99 - cudaEglColorFormatY12_ER = 100 - cudaEglColorFormatY12_709_ER = 101 - cudaEglColorFormatYUVA = 102 - cudaEglColorFormatYVYU = 104 - cudaEglColorFormatVYUY = 105 - cudaEglColorFormatY10V10U10_420SemiPlanar_ER = 106 - cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = 107 - cudaEglColorFormatY10V10U10_444SemiPlanar_ER = 108 - cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = 109 - cudaEglColorFormatY12V12U12_420SemiPlanar_ER = 110 - cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = 111 - cudaEglColorFormatY12V12U12_444SemiPlanar_ER = 112 - cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = 113 - cudaEglColorFormatUYVY709 = 114 - cudaEglColorFormatUYVY709_ER = 115 - cudaEglColorFormatUYVY2020 = 116 - -ctypedef cudaEglColorFormat_enum cudaEglColorFormat - -cdef struct cudaEglPlaneDesc_st: - unsigned int width - unsigned int height - unsigned int depth - unsigned int pitch - unsigned int numChannels - cudaChannelFormatDesc channelDesc - unsigned int reserved[4] - -ctypedef cudaEglPlaneDesc_st cudaEglPlaneDesc - -cdef union anon_union12: - cudaArray_t pArray[3] - cudaPitchedPtr pPitch[3] - -cdef struct cudaEglFrame_st: - anon_union12 frame - cudaEglPlaneDesc planeDesc[3] - unsigned int planeCount - cudaEglFrameType frameType - cudaEglColorFormat eglColorFormat - -ctypedef cudaEglFrame_st cudaEglFrame - -cdef extern from "": - cdef struct CUeglStreamConnection_st: - pass -ctypedef CUeglStreamConnection_st* cudaEglStreamConnection - -cdef enum cudaGLDeviceList: - cudaGLDeviceListAll = 1 - cudaGLDeviceListCurrentFrame = 2 - cudaGLDeviceListNextFrame = 3 - -cdef enum cudaGLMapFlags: - cudaGLMapFlagsNone = 0 - cudaGLMapFlagsReadOnly = 1 - cudaGLMapFlagsWriteDiscard = 2 - -{{if 'cudaDeviceReset' in found_functions}} - -cdef cudaError_t cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSynchronize' in found_functions}} - -cdef cudaError_t cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} - -cdef cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} - -cdef cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - -cdef cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} - -cdef cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - -cdef cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} - -cdef cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} - -cdef cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} - -cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} - -cdef cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} - -cdef cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} - -cdef cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} - -cdef cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} - -cdef cudaError_t cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - -cdef cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - -cdef cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - -cdef cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - -cdef cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - -cdef cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} - -cdef cudaError_t cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} - -cdef cudaError_t cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} - -cdef const char* cudaGetErrorName(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} - -cdef const char* cudaGetErrorString(cudaError_t error) except ?NULL nogil -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} - -cdef cudaError_t cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceProperties' in found_functions}} - -cdef cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef cudaError_t cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - -cdef cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} - -cdef cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} - -cdef cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - -cdef cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} - -cdef cudaError_t cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} - -cdef cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} - -cdef cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} - -cdef cudaError_t cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} - -cdef cudaError_t cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} - -cdef cudaError_t cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} - -cdef cudaError_t cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} - -cdef cudaError_t cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} - -cdef cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} - -cdef cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} - -cdef cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} - -cdef cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} - -cdef cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} - -cdef cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - -cdef cudaError_t cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} - -cdef cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} - -cdef cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} - -cdef cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} - -cdef cudaError_t cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} - -cdef cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} - -cdef cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} - -cdef cudaError_t cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} - -cdef cudaError_t cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} - -cdef cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} - -cdef cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} - -cdef cudaError_t cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - -cdef cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - -cdef cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} - -cdef cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} - -cdef cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetCaptureInfo' in found_functions}} - -cdef cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - -cdef cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} - -cdef cudaError_t cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} - -cdef cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} - -cdef cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} - -cdef cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} - -cdef cudaError_t cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} - -cdef cudaError_t cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} - -cdef cudaError_t cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} - -cdef cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} - -cdef cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - -cdef cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} - -cdef cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} - -cdef cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} - -cdef cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} - -cdef cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} - -cdef cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} - -cdef cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncGetParamCount' in found_functions}} - -cdef cudaError_t cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} - -cdef cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLaunchHostFunc_v2' in found_functions}} - -cdef cudaError_t cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} - -cdef cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - -cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - -cdef cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - -cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} - -cdef cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc' in found_functions}} - -cdef cudaError_t cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} - -cdef cudaError_t cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} - -cdef cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} - -cdef cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFree' in found_functions}} - -cdef cudaError_t cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} - -cdef cudaError_t cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} - -cdef cudaError_t cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} - -cdef cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} - -cdef cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} - -cdef cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} - -cdef cudaError_t cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} - -cdef cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} - -cdef cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} - -cdef cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} - -cdef cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} - -cdef cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} - -cdef cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} - -cdef cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} - -cdef cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} - -cdef cudaError_t cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} - -cdef cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} - -cdef cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - -cdef cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - -cdef cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} - -cdef cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} - -cdef cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} - -cdef cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} - -cdef cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} - -cdef cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} - -cdef cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyBatchAsync(const void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyWithAttributesAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset' in found_functions}} - -cdef cudaError_t cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} - -cdef cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} - -cdef cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} - -cdef cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} - -cdef cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} - -cdef cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} - -cdef cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemDiscardBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} - -cdef cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} - -cdef cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemRangeGetAttributes' in found_functions}} - -cdef cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} - -cdef cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} - -cdef cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} - -cdef cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} - -cdef cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} - -cdef cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} - -cdef cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} - -cdef cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} - -cdef cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} - -cdef cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} - -cdef cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} - -cdef cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} - -cdef cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetDefaultMemPool' in found_functions}} - -cdef cudaError_t cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemGetMemPool' in found_functions}} - -cdef cudaError_t cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemSetMemPool' in found_functions}} - -cdef cudaError_t cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType typename, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} - -cdef cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - -cdef cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - -cdef cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} - -cdef cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} - -cdef cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} - -cdef cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} - -cdef cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} - -cdef cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} - -cdef cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} - -cdef cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - -cdef cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} - -cdef cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} - -cdef cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - -cdef cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - -cdef cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - -cdef cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} - -cdef cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} - -cdef cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} - -cdef cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} - -cdef cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - -cdef cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - -cdef cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - -cdef cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} - -cdef cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} - -cdef cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - -cdef cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} - -cdef cudaError_t cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} - -cdef cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsRegisterCallback' in found_functions}} - -cdef cudaError_t cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsUnregisterCallback' in found_functions}} - -cdef cudaError_t cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsCurrent' in found_functions}} - -cdef cudaError_t cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsDumpToFile' in found_functions}} - -cdef cudaError_t cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLogsDumpToMemory' in found_functions}} - -cdef cudaError_t cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} - -cdef cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddKernelNode' in found_functions}} - -cdef cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - -cdef cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - -cdef cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemsetNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddHostNode' in found_functions}} - -cdef cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} - -cdef cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - -cdef cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} - -cdef cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} - -cdef cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} - -cdef cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - -cdef cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - -cdef cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemAllocNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} - -cdef cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} - -cdef cudaError_t cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - -cdef cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} - -cdef cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} - -cdef cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetContainingGraph' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetLocalId' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetToolsId' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetId' in found_functions}} - -cdef cudaError_t cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetId' in found_functions}} - -cdef cudaError_t cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} - -cdef cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} - -cdef cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} - -cdef cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddDependencies' in found_functions}} - -cdef cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRemoveDependencies' in found_functions}} - -cdef cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} - -cdef cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} - -cdef cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} - -cdef cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} - -cdef cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} - -cdef cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - -cdef cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - -cdef cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} - -cdef cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} - -cdef cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} - -cdef cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} - -cdef cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} - -cdef cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} - -cdef cudaError_t cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} - -cdef cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} - -cdef cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} - -cdef cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} - -cdef cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} - -cdef cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} - -cdef cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphAddNode' in found_functions}} - -cdef cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} - -cdef cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} - -cdef cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} - -cdef cudaError_t cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} - -cdef cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - -cdef cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadData' in found_functions}} - -cdef cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryLoadFromFile' in found_functions}} - -cdef cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} - -cdef cudaError_t cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} - -cdef cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} - -cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} - -cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - -cdef cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} - -cdef cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} - -cdef cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} - -cdef cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetDevResource' in found_functions}} - -cdef cudaError_t cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevSmResourceSplitByCount' in found_functions}} - -cdef cudaError_t cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevSmResourceSplit' in found_functions}} - -cdef cudaError_t cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDevResourceGenerateDesc' in found_functions}} - -cdef cudaError_t cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGreenCtxCreate' in found_functions}} - -cdef cudaError_t cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxDestroy' in found_functions}} - -cdef cudaError_t cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetDevResource' in found_functions}} - -cdef cudaError_t cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetDevice' in found_functions}} - -cdef cudaError_t cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxGetId' in found_functions}} - -cdef cudaError_t cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxStreamCreate' in found_functions}} - -cdef cudaError_t cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxSynchronize' in found_functions}} - -cdef cudaError_t cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaStreamGetDevResource' in found_functions}} - -cdef cudaError_t cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxRecordEvent' in found_functions}} - -cdef cudaError_t cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaExecutionCtxWaitEvent' in found_functions}} - -cdef cudaError_t cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaDeviceGetExecutionCtx' in found_functions}} - -cdef cudaError_t cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} - -cdef cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} - -cdef cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} - -cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil -{{endif}} - -{{if 'make_cudaPos' in found_functions}} - -cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} - -cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsEGLRegisterImage(cudaGraphicsResource** pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} - -cdef cudaError_t cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} - -cdef cudaError_t cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -{{if True}} - -cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil -{{endif}} - -cdef enum: cudaHostAllocDefault = 0 - -cdef enum: cudaHostAllocPortable = 1 - -cdef enum: cudaHostAllocMapped = 2 - -cdef enum: cudaHostAllocWriteCombined = 4 - -cdef enum: cudaHostRegisterDefault = 0 - -cdef enum: cudaHostRegisterPortable = 1 - -cdef enum: cudaHostRegisterMapped = 2 - -cdef enum: cudaHostRegisterIoMemory = 4 - -cdef enum: cudaHostRegisterReadOnly = 8 - -cdef enum: cudaPeerAccessDefault = 0 - -cdef enum: cudaStreamDefault = 0 - -cdef enum: cudaStreamNonBlocking = 1 - -cdef enum: cudaStreamLegacy = 1 - -cdef enum: cudaStreamPerThread = 2 - -cdef enum: cudaEventDefault = 0 - -cdef enum: cudaEventBlockingSync = 1 - -cdef enum: cudaEventDisableTiming = 2 - -cdef enum: cudaEventInterprocess = 4 - -cdef enum: cudaEventRecordDefault = 0 - -cdef enum: cudaEventRecordExternal = 1 - -cdef enum: cudaEventWaitDefault = 0 - -cdef enum: cudaEventWaitExternal = 1 - -cdef enum: cudaDeviceScheduleAuto = 0 - -cdef enum: cudaDeviceScheduleSpin = 1 - -cdef enum: cudaDeviceScheduleYield = 2 - -cdef enum: cudaDeviceScheduleBlockingSync = 4 - -cdef enum: cudaDeviceBlockingSync = 4 - -cdef enum: cudaDeviceScheduleMask = 7 - -cdef enum: cudaDeviceMapHost = 8 - -cdef enum: cudaDeviceLmemResizeToMax = 16 - -cdef enum: cudaDeviceSyncMemops = 128 - -cdef enum: cudaDeviceMask = 255 - -cdef enum: cudaArrayDefault = 0 - -cdef enum: cudaArrayLayered = 1 - -cdef enum: cudaArraySurfaceLoadStore = 2 - -cdef enum: cudaArrayCubemap = 4 - -cdef enum: cudaArrayTextureGather = 8 - -cdef enum: cudaArrayColorAttachment = 32 - -cdef enum: cudaArraySparse = 64 - -cdef enum: cudaArrayDeferredMapping = 128 - -cdef enum: cudaIpcMemLazyEnablePeerAccess = 1 - -cdef enum: cudaMemAttachGlobal = 1 - -cdef enum: cudaMemAttachHost = 2 - -cdef enum: cudaMemAttachSingle = 4 - -cdef enum: cudaOccupancyDefault = 0 - -cdef enum: cudaOccupancyDisableCachingOverride = 1 - -cdef enum: cudaCpuDeviceId = -1 - -cdef enum: cudaInvalidDeviceId = -2 - -cdef enum: cudaInitDeviceFlagsAreValid = 1 - -cdef enum: cudaArraySparsePropertiesSingleMipTail = 1 - -cdef enum: cudaMemPoolCreateUsageHwDecompress = 2 - -cdef enum: CUDA_IPC_HANDLE_SIZE = 64 - -cdef enum: cudaExternalMemoryDedicated = 1 - -cdef enum: cudaExternalSemaphoreSignalSkipNvSciBufMemSync = 1 - -cdef enum: cudaExternalSemaphoreWaitSkipNvSciBufMemSync = 2 - -cdef enum: cudaNvSciSyncAttrSignal = 1 - -cdef enum: cudaNvSciSyncAttrWait = 2 - -cdef enum: cudaGraphKernelNodePortDefault = 0 - -cdef enum: cudaGraphKernelNodePortProgrammatic = 1 - -cdef enum: cudaGraphKernelNodePortLaunchCompletion = 2 - -cdef enum: cudaStreamAttributeAccessPolicyWindow = 1 - -cdef enum: cudaStreamAttributeSynchronizationPolicy = 3 - -cdef enum: cudaStreamAttributeMemSyncDomainMap = 9 - -cdef enum: cudaStreamAttributeMemSyncDomain = 10 - -cdef enum: cudaStreamAttributePriority = 8 - -cdef enum: cudaKernelNodeAttributeAccessPolicyWindow = 1 - -cdef enum: cudaKernelNodeAttributeCooperative = 2 - -cdef enum: cudaKernelNodeAttributePriority = 8 - -cdef enum: cudaKernelNodeAttributeClusterDimension = 4 - -cdef enum: cudaKernelNodeAttributeClusterSchedulingPolicyPreference = 5 - -cdef enum: cudaKernelNodeAttributeMemSyncDomainMap = 9 - -cdef enum: cudaKernelNodeAttributeMemSyncDomain = 10 - -cdef enum: cudaKernelNodeAttributePreferredSharedMemoryCarveout = 14 - -cdef enum: cudaKernelNodeAttributeDeviceUpdatableKernelNode = 13 - -cdef enum: cudaKernelNodeAttributeNvlinkUtilCentricScheduling = 16 - -cdef enum: cudaSurfaceType1D = 1 - -cdef enum: cudaSurfaceType2D = 2 - -cdef enum: cudaSurfaceType3D = 3 - -cdef enum: cudaSurfaceTypeCubemap = 12 - -cdef enum: cudaSurfaceType1DLayered = 241 - -cdef enum: cudaSurfaceType2DLayered = 242 - -cdef enum: cudaSurfaceTypeCubemapLayered = 252 - -cdef enum: cudaTextureType1D = 1 - -cdef enum: cudaTextureType2D = 2 - -cdef enum: cudaTextureType3D = 3 - -cdef enum: cudaTextureTypeCubemap = 12 - -cdef enum: cudaTextureType1DLayered = 241 - -cdef enum: cudaTextureType2DLayered = 242 - -cdef enum: cudaTextureTypeCubemapLayered = 252 - -cdef enum: CUDART_VERSION = 13030 - -cdef enum: __CUDART_API_VERSION = 13030 - -cdef enum: CUDA_EGL_MAX_PLANES = 3 \ No newline at end of file diff --git a/cuda_bindings/cuda/bindings/cyruntime.pyx.in b/cuda_bindings/cuda/bindings/cyruntime.pyx similarity index 51% rename from cuda_bindings/cuda/bindings/cyruntime.pyx.in rename to cuda_bindings/cuda/bindings/cyruntime.pyx index 3adb478064b..1c3be5930c3 100644 --- a/cuda_bindings/cuda/bindings/cyruntime.pyx.in +++ b/cuda_bindings/cuda/bindings/cyruntime.pyx @@ -1,2097 +1,1392 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE +# +# This code was automatically generated across versions from 12.9.0 to 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260623. Do not modify it directly. -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. -cimport cuda.bindings._bindings.cyruntime as cyruntime -cimport cython - -{{if 'cudaDeviceReset' in found_functions}} +from ._internal cimport runtime as _runtime cdef cudaError_t cudaDeviceReset() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceReset() -{{endif}} + return _runtime._cudaDeviceReset() -{{if 'cudaDeviceSynchronize' in found_functions}} cdef cudaError_t cudaDeviceSynchronize() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSynchronize() -{{endif}} + return _runtime._cudaDeviceSynchronize() -{{if 'cudaDeviceSetLimit' in found_functions}} cdef cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetLimit(limit, value) -{{endif}} + return _runtime._cudaDeviceSetLimit(limit, value) -{{if 'cudaDeviceGetLimit' in found_functions}} cdef cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetLimit(pValue, limit) -{{endif}} + return _runtime._cudaDeviceGetLimit(pValue, limit) -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} cdef cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{endif}} + return _runtime._cudaDeviceGetTexture1DLinearMaxWidth(maxWidthInElements, fmtDesc, device) -{{if 'cudaDeviceGetCacheConfig' in found_functions}} cdef cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetCacheConfig(pCacheConfig) -{{endif}} + return _runtime._cudaDeviceGetCacheConfig(pCacheConfig) -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} cdef cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{endif}} + return _runtime._cudaDeviceGetStreamPriorityRange(leastPriority, greatestPriority) -{{if 'cudaDeviceSetCacheConfig' in found_functions}} cdef cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetCacheConfig(cacheConfig) -{{endif}} + return _runtime._cudaDeviceSetCacheConfig(cacheConfig) -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} cdef cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetByPCIBusId(device, pciBusId) -{{endif}} + return _runtime._cudaDeviceGetByPCIBusId(device, pciBusId) -{{if 'cudaDeviceGetPCIBusId' in found_functions}} -cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetPCIBusId(pciBusId, length, device) -{{endif}} +cdef cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int len, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDeviceGetPCIBusId(pciBusId, len, device) -{{if 'cudaIpcGetEventHandle' in found_functions}} cdef cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcGetEventHandle(handle, event) -{{endif}} + return _runtime._cudaIpcGetEventHandle(handle, event) -{{if 'cudaIpcOpenEventHandle' in found_functions}} cdef cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcOpenEventHandle(event, handle) -{{endif}} + return _runtime._cudaIpcOpenEventHandle(event, handle) -{{if 'cudaIpcGetMemHandle' in found_functions}} cdef cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcGetMemHandle(handle, devPtr) -{{endif}} + return _runtime._cudaIpcGetMemHandle(handle, devPtr) -{{if 'cudaIpcOpenMemHandle' in found_functions}} cdef cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcOpenMemHandle(devPtr, handle, flags) -{{endif}} + return _runtime._cudaIpcOpenMemHandle(devPtr, handle, flags) -{{if 'cudaIpcCloseMemHandle' in found_functions}} cdef cudaError_t cudaIpcCloseMemHandle(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaIpcCloseMemHandle(devPtr) -{{endif}} + return _runtime._cudaIpcCloseMemHandle(devPtr) -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} cdef cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{endif}} + return _runtime._cudaDeviceFlushGPUDirectRDMAWrites(target, scope) -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} cdef cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{endif}} + return _runtime._cudaDeviceRegisterAsyncNotification(device, callbackFunc, userData, callback) -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} cdef cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceUnregisterAsyncNotification(device, callback) -{{endif}} + return _runtime._cudaDeviceUnregisterAsyncNotification(device, callback) -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} cdef cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetSharedMemConfig(pConfig) -{{endif}} + return _runtime._cudaDeviceGetSharedMemConfig(pConfig) -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} cdef cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetSharedMemConfig(config) -{{endif}} + return _runtime._cudaDeviceSetSharedMemConfig(config) -{{if 'cudaGetLastError' in found_functions}} cdef cudaError_t cudaGetLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetLastError() -{{endif}} + return _runtime._cudaGetLastError() -{{if 'cudaPeekAtLastError' in found_functions}} cdef cudaError_t cudaPeekAtLastError() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaPeekAtLastError() -{{endif}} + return _runtime._cudaPeekAtLastError() -{{if 'cudaGetErrorName' in found_functions}} -cdef const char* cudaGetErrorName(cudaError_t error) except ?NULL nogil: - return cyruntime._cudaGetErrorName(error) -{{endif}} +cdef const char* cudaGetErrorName(cudaError_t error) except?NULL nogil: + return _runtime._cudaGetErrorName(error) -{{if 'cudaGetErrorString' in found_functions}} -cdef const char* cudaGetErrorString(cudaError_t error) except ?NULL nogil: - return cyruntime._cudaGetErrorString(error) -{{endif}} +cdef const char* cudaGetErrorString(cudaError_t error) except?NULL nogil: + return _runtime._cudaGetErrorString(error) -{{if 'cudaGetDeviceCount' in found_functions}} cdef cudaError_t cudaGetDeviceCount(int* count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDeviceCount(count) -{{endif}} - -{{if 'cudaGetDeviceProperties' in found_functions}} - -cdef cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDeviceProperties(prop, device) -{{endif}} + return _runtime._cudaGetDeviceCount(count) -{{if 'cudaDeviceGetAttribute' in found_functions}} cdef cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetAttribute(value, attr, device) -{{endif}} + return _runtime._cudaDeviceGetAttribute(value, attr, device) -{{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} - -cdef cudaError_t cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} cdef cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetDefaultMemPool(memPool, device) -{{endif}} + return _runtime._cudaDeviceGetDefaultMemPool(memPool, device) -{{if 'cudaDeviceSetMemPool' in found_functions}} cdef cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetMemPool(device, memPool) -{{endif}} + return _runtime._cudaDeviceSetMemPool(device, memPool) -{{if 'cudaDeviceGetMemPool' in found_functions}} cdef cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetMemPool(memPool, device) -{{endif}} + return _runtime._cudaDeviceGetMemPool(memPool, device) -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} cdef cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{endif}} + return _runtime._cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, device, flags) -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} cdef cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -{{endif}} - -{{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} + return _runtime._cudaDeviceGetP2PAttribute(value, attr, srcDevice, dstDevice) -cdef cudaError_t cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} cdef cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaChooseDevice(device, prop) -{{endif}} + return _runtime._cudaChooseDevice(device, prop) -{{if 'cudaInitDevice' in found_functions}} cdef cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaInitDevice(device, deviceFlags, flags) -{{endif}} + return _runtime._cudaInitDevice(device, deviceFlags, flags) -{{if 'cudaSetDevice' in found_functions}} cdef cudaError_t cudaSetDevice(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaSetDevice(device) -{{endif}} + return _runtime._cudaSetDevice(device) -{{if 'cudaGetDevice' in found_functions}} cdef cudaError_t cudaGetDevice(int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDevice(device) -{{endif}} + return _runtime._cudaGetDevice(device) -{{if 'cudaSetDeviceFlags' in found_functions}} cdef cudaError_t cudaSetDeviceFlags(unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaSetDeviceFlags(flags) -{{endif}} + return _runtime._cudaSetDeviceFlags(flags) -{{if 'cudaGetDeviceFlags' in found_functions}} cdef cudaError_t cudaGetDeviceFlags(unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDeviceFlags(flags) -{{endif}} + return _runtime._cudaGetDeviceFlags(flags) -{{if 'cudaStreamCreate' in found_functions}} cdef cudaError_t cudaStreamCreate(cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCreate(pStream) -{{endif}} + return _runtime._cudaStreamCreate(pStream) -{{if 'cudaStreamCreateWithFlags' in found_functions}} cdef cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCreateWithFlags(pStream, flags) -{{endif}} + return _runtime._cudaStreamCreateWithFlags(pStream, flags) -{{if 'cudaStreamCreateWithPriority' in found_functions}} cdef cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCreateWithPriority(pStream, flags, priority) -{{endif}} + return _runtime._cudaStreamCreateWithPriority(pStream, flags, priority) -{{if 'cudaStreamGetPriority' in found_functions}} cdef cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetPriority(hStream, priority) -{{endif}} + return _runtime._cudaStreamGetPriority(hStream, priority) -{{if 'cudaStreamGetFlags' in found_functions}} cdef cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetFlags(hStream, flags) -{{endif}} + return _runtime._cudaStreamGetFlags(hStream, flags) -{{if 'cudaStreamGetId' in found_functions}} cdef cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetId(hStream, streamId) -{{endif}} + return _runtime._cudaStreamGetId(hStream, streamId) -{{if 'cudaStreamGetDevice' in found_functions}} cdef cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetDevice(hStream, device) -{{endif}} + return _runtime._cudaStreamGetDevice(hStream, device) -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} cdef cudaError_t cudaCtxResetPersistingL2Cache() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaCtxResetPersistingL2Cache() -{{endif}} + return _runtime._cudaCtxResetPersistingL2Cache() -{{if 'cudaStreamCopyAttributes' in found_functions}} cdef cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamCopyAttributes(dst, src) -{{endif}} + return _runtime._cudaStreamCopyAttributes(dst, src) -{{if 'cudaStreamGetAttribute' in found_functions}} -cdef cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetAttribute(hStream, attr, value_out) -{{endif}} +cdef cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaStreamGetAttribute(hStream, attr, value_out) -{{if 'cudaStreamSetAttribute' in found_functions}} -cdef cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamSetAttribute(hStream, attr, value) -{{endif}} +cdef cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaStreamSetAttribute(hStream, attr, value) -{{if 'cudaStreamDestroy' in found_functions}} cdef cudaError_t cudaStreamDestroy(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamDestroy(stream) -{{endif}} + return _runtime._cudaStreamDestroy(stream) -{{if 'cudaStreamWaitEvent' in found_functions}} cdef cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamWaitEvent(stream, event, flags) -{{endif}} + return _runtime._cudaStreamWaitEvent(stream, event, flags) -{{if 'cudaStreamAddCallback' in found_functions}} cdef cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamAddCallback(stream, callback, userData, flags) -{{endif}} + return _runtime._cudaStreamAddCallback(stream, callback, userData, flags) -{{if 'cudaStreamSynchronize' in found_functions}} cdef cudaError_t cudaStreamSynchronize(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamSynchronize(stream) -{{endif}} + return _runtime._cudaStreamSynchronize(stream) -{{if 'cudaStreamQuery' in found_functions}} cdef cudaError_t cudaStreamQuery(cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamQuery(stream) -{{endif}} + return _runtime._cudaStreamQuery(stream) -{{if 'cudaStreamAttachMemAsync' in found_functions}} cdef cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{endif}} + return _runtime._cudaStreamAttachMemAsync(stream, devPtr, length, flags) -{{if 'cudaStreamBeginCapture' in found_functions}} cdef cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamBeginCapture(stream, mode) -{{endif}} - -{{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} - -cdef cudaError_t cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) -{{endif}} + return _runtime._cudaStreamBeginCapture(stream, mode) -{{if 'cudaStreamBeginCaptureToGraph' in found_functions}} cdef cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{endif}} + return _runtime._cudaStreamBeginCaptureToGraph(stream, graph, dependencies, dependencyData, numDependencies, mode) -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} cdef cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaThreadExchangeStreamCaptureMode(mode) -{{endif}} + return _runtime._cudaThreadExchangeStreamCaptureMode(mode) -{{if 'cudaStreamEndCapture' in found_functions}} cdef cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamEndCapture(stream, pGraph) -{{endif}} + return _runtime._cudaStreamEndCapture(stream, pGraph) -{{if 'cudaStreamIsCapturing' in found_functions}} cdef cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamIsCapturing(stream, pCaptureStatus) -{{endif}} - -{{if 'cudaStreamGetCaptureInfo' in found_functions}} - -cdef cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -{{endif}} + return _runtime._cudaStreamIsCapturing(stream, pCaptureStatus) -{{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} cdef cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) -{{endif}} + return _runtime._cudaStreamUpdateCaptureDependencies(stream, dependencies, dependencyData, numDependencies, flags) -{{if 'cudaEventCreate' in found_functions}} cdef cudaError_t cudaEventCreate(cudaEvent_t* event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventCreate(event) -{{endif}} + return _runtime._cudaEventCreate(event) -{{if 'cudaEventCreateWithFlags' in found_functions}} cdef cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventCreateWithFlags(event, flags) -{{endif}} + return _runtime._cudaEventCreateWithFlags(event, flags) -{{if 'cudaEventRecord' in found_functions}} cdef cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventRecord(event, stream) -{{endif}} + return _runtime._cudaEventRecord(event, stream) -{{if 'cudaEventRecordWithFlags' in found_functions}} cdef cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventRecordWithFlags(event, stream, flags) -{{endif}} + return _runtime._cudaEventRecordWithFlags(event, stream, flags) -{{if 'cudaEventQuery' in found_functions}} cdef cudaError_t cudaEventQuery(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventQuery(event) -{{endif}} + return _runtime._cudaEventQuery(event) -{{if 'cudaEventSynchronize' in found_functions}} cdef cudaError_t cudaEventSynchronize(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventSynchronize(event) -{{endif}} + return _runtime._cudaEventSynchronize(event) -{{if 'cudaEventDestroy' in found_functions}} cdef cudaError_t cudaEventDestroy(cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventDestroy(event) -{{endif}} + return _runtime._cudaEventDestroy(event) -{{if 'cudaEventElapsedTime' in found_functions}} cdef cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventElapsedTime(ms, start, end) -{{endif}} + return _runtime._cudaEventElapsedTime(ms, start, end) -{{if 'cudaImportExternalMemory' in found_functions}} cdef cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaImportExternalMemory(extMem_out, memHandleDesc) -{{endif}} + return _runtime._cudaImportExternalMemory(extMem_out, memHandleDesc) -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} cdef cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{endif}} + return _runtime._cudaExternalMemoryGetMappedBuffer(devPtr, extMem, bufferDesc) -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} cdef cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{endif}} + return _runtime._cudaExternalMemoryGetMappedMipmappedArray(mipmap, extMem, mipmapDesc) -{{if 'cudaDestroyExternalMemory' in found_functions}} cdef cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroyExternalMemory(extMem) -{{endif}} + return _runtime._cudaDestroyExternalMemory(extMem) -{{if 'cudaImportExternalSemaphore' in found_functions}} cdef cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{endif}} + return _runtime._cudaImportExternalSemaphore(extSem_out, semHandleDesc) -{{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} - -cdef cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} cdef cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroyExternalSemaphore(extSem) -{{endif}} + return _runtime._cudaDestroyExternalSemaphore(extSem) -{{if 'cudaFuncSetCacheConfig' in found_functions}} cdef cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncSetCacheConfig(func, cacheConfig) -{{endif}} + return _runtime._cudaFuncSetCacheConfig(func, cacheConfig) -{{if 'cudaFuncGetAttributes' in found_functions}} cdef cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncGetAttributes(attr, func) -{{endif}} + return _runtime._cudaFuncGetAttributes(attr, func) -{{if 'cudaFuncSetAttribute' in found_functions}} cdef cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncSetAttribute(func, attr, value) -{{endif}} + return _runtime._cudaFuncSetAttribute(func, attr, value) -{{if 'cudaFuncGetParamCount' in found_functions}} -cdef cudaError_t cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncGetParamCount(func, paramCount) -{{endif}} +cdef cudaError_t cudaFuncGetName(const char** name, const void* func) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaFuncGetName(name, func) -{{if 'cudaLaunchHostFunc' in found_functions}} -cdef cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLaunchHostFunc(stream, fn, userData) -{{endif}} +cdef cudaError_t cudaFuncGetParamInfo(const void* func, size_t paramIndex, size_t* paramOffset, size_t* paramSize) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaFuncGetParamInfo(func, paramIndex, paramOffset, paramSize) -{{if 'cudaLaunchHostFunc_v2' in found_functions}} -cdef cudaError_t cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) -{{endif}} +cdef cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLaunchHostFunc(stream, fn, userData) -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} cdef cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFuncSetSharedMemConfig(func, config) -{{endif}} + return _runtime._cudaFuncSetSharedMemConfig(func, config) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{endif}} + return _runtime._cudaOccupancyMaxActiveBlocksPerMultiprocessor(numBlocks, func, blockSize, dynamicSMemSize) -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} cdef cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{endif}} + return _runtime._cudaOccupancyAvailableDynamicSMemPerBlock(dynamicSmemSize, func, numBlocks, blockSize) -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} cdef cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{endif}} + return _runtime._cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(numBlocks, func, blockSize, dynamicSMemSize, flags) -{{if 'cudaMallocManaged' in found_functions}} cdef cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocManaged(devPtr, size, flags) -{{endif}} + return _runtime._cudaMallocManaged(devPtr, size, flags) -{{if 'cudaMalloc' in found_functions}} cdef cudaError_t cudaMalloc(void** devPtr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMalloc(devPtr, size) -{{endif}} + return _runtime._cudaMalloc(devPtr, size) -{{if 'cudaMallocHost' in found_functions}} cdef cudaError_t cudaMallocHost(void** ptr, size_t size) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocHost(ptr, size) -{{endif}} + return _runtime._cudaMallocHost(ptr, size) -{{if 'cudaMallocPitch' in found_functions}} cdef cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocPitch(devPtr, pitch, width, height) -{{endif}} + return _runtime._cudaMallocPitch(devPtr, pitch, width, height) -{{if 'cudaMallocArray' in found_functions}} cdef cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocArray(array, desc, width, height, flags) -{{endif}} + return _runtime._cudaMallocArray(array, desc, width, height, flags) -{{if 'cudaFree' in found_functions}} cdef cudaError_t cudaFree(void* devPtr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFree(devPtr) -{{endif}} + return _runtime._cudaFree(devPtr) -{{if 'cudaFreeHost' in found_functions}} cdef cudaError_t cudaFreeHost(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeHost(ptr) -{{endif}} + return _runtime._cudaFreeHost(ptr) -{{if 'cudaFreeArray' in found_functions}} cdef cudaError_t cudaFreeArray(cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeArray(array) -{{endif}} + return _runtime._cudaFreeArray(array) -{{if 'cudaFreeMipmappedArray' in found_functions}} cdef cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeMipmappedArray(mipmappedArray) -{{endif}} + return _runtime._cudaFreeMipmappedArray(mipmappedArray) -{{if 'cudaHostAlloc' in found_functions}} cdef cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostAlloc(pHost, size, flags) -{{endif}} + return _runtime._cudaHostAlloc(pHost, size, flags) -{{if 'cudaHostRegister' in found_functions}} cdef cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostRegister(ptr, size, flags) -{{endif}} + return _runtime._cudaHostRegister(ptr, size, flags) -{{if 'cudaHostUnregister' in found_functions}} cdef cudaError_t cudaHostUnregister(void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostUnregister(ptr) -{{endif}} + return _runtime._cudaHostUnregister(ptr) -{{if 'cudaHostGetDevicePointer' in found_functions}} cdef cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostGetDevicePointer(pDevice, pHost, flags) -{{endif}} + return _runtime._cudaHostGetDevicePointer(pDevice, pHost, flags) -{{if 'cudaHostGetFlags' in found_functions}} cdef cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaHostGetFlags(pFlags, pHost) -{{endif}} + return _runtime._cudaHostGetFlags(pFlags, pHost) -{{if 'cudaMalloc3D' in found_functions}} cdef cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMalloc3D(pitchedDevPtr, extent) -{{endif}} + return _runtime._cudaMalloc3D(pitchedDevPtr, extent) -{{if 'cudaMalloc3DArray' in found_functions}} cdef cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMalloc3DArray(array, desc, extent, flags) -{{endif}} + return _runtime._cudaMalloc3DArray(array, desc, extent, flags) -{{if 'cudaMallocMipmappedArray' in found_functions}} cdef cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{endif}} + return _runtime._cudaMallocMipmappedArray(mipmappedArray, desc, extent, numLevels, flags) -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} cdef cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{endif}} + return _runtime._cudaGetMipmappedArrayLevel(levelArray, mipmappedArray, level) -{{if 'cudaMemcpy3D' in found_functions}} cdef cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3D(p) -{{endif}} + return _runtime._cudaMemcpy3D(p) -{{if 'cudaMemcpy3DPeer' in found_functions}} cdef cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DPeer(p) -{{endif}} + return _runtime._cudaMemcpy3DPeer(p) -{{if 'cudaMemcpy3DAsync' in found_functions}} cdef cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DAsync(p, stream) -{{endif}} + return _runtime._cudaMemcpy3DAsync(p, stream) -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} cdef cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DPeerAsync(p, stream) -{{endif}} + return _runtime._cudaMemcpy3DPeerAsync(p, stream) -{{if 'cudaMemGetInfo' in found_functions}} cdef cudaError_t cudaMemGetInfo(size_t* free, size_t* total) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemGetInfo(free, total) -{{endif}} + return _runtime._cudaMemGetInfo(free, total) -{{if 'cudaArrayGetInfo' in found_functions}} cdef cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetInfo(desc, extent, flags, array) -{{endif}} + return _runtime._cudaArrayGetInfo(desc, extent, flags, array) -{{if 'cudaArrayGetPlane' in found_functions}} cdef cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{endif}} + return _runtime._cudaArrayGetPlane(pPlaneArray, hArray, planeIdx) -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{endif}} + return _runtime._cudaArrayGetMemoryRequirements(memoryRequirements, array, device) -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} cdef cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{endif}} + return _runtime._cudaMipmappedArrayGetMemoryRequirements(memoryRequirements, mipmap, device) -{{if 'cudaArrayGetSparseProperties' in found_functions}} cdef cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaArrayGetSparseProperties(sparseProperties, array) -{{endif}} + return _runtime._cudaArrayGetSparseProperties(sparseProperties, array) -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} cdef cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{endif}} + return _runtime._cudaMipmappedArrayGetSparseProperties(sparseProperties, mipmap) -{{if 'cudaMemcpy' in found_functions}} cdef cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy(dst, src, count, kind) -{{endif}} + return _runtime._cudaMemcpy(dst, src, count, kind) -{{if 'cudaMemcpyPeer' in found_functions}} cdef cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{endif}} + return _runtime._cudaMemcpyPeer(dst, dstDevice, src, srcDevice, count) -{{if 'cudaMemcpy2D' in found_functions}} cdef cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2D(dst, dpitch, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DToArray' in found_functions}} cdef cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2DToArray(dst, wOffset, hOffset, src, spitch, width, height, kind) -{{if 'cudaMemcpy2DFromArray' in found_functions}} cdef cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2DFromArray(dst, dpitch, src, wOffset, hOffset, width, height, kind) -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} cdef cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{endif}} + return _runtime._cudaMemcpy2DArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, width, height, kind) -{{if 'cudaMemcpyAsync' in found_functions}} cdef cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyAsync(dst, src, count, kind, stream) -{{endif}} + return _runtime._cudaMemcpyAsync(dst, src, count, kind, stream) -{{if 'cudaMemcpyPeerAsync' in found_functions}} cdef cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{endif}} + return _runtime._cudaMemcpyPeerAsync(dst, dstDevice, src, srcDevice, count, stream) -{{if 'cudaMemcpyBatchAsync' in found_functions}} -cdef cudaError_t cudaMemcpyBatchAsync(const void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) -{{endif}} +cdef cudaError_t cudaMemcpyBatchAsync(void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemcpyBatchAsync(dsts, srcs, sizes, count, attrs, attrsIdxs, numAttrs, stream) -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} cdef cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) -{{endif}} - -{{if 'cudaMemcpyWithAttributesAsync' in found_functions}} - -cdef cudaError_t cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) -{{endif}} - -{{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} - -cdef cudaError_t cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy3DWithAttributesAsync(op, flags, stream) -{{endif}} + return _runtime._cudaMemcpy3DBatchAsync(numOps, opList, flags, stream) -{{if 'cudaMemcpy2DAsync' in found_functions}} cdef cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{endif}} + return _runtime._cudaMemcpy2DAsync(dst, dpitch, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{endif}} + return _runtime._cudaMemcpy2DToArrayAsync(dst, wOffset, hOffset, src, spitch, width, height, kind, stream) -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{endif}} + return _runtime._cudaMemcpy2DFromArrayAsync(dst, dpitch, src, wOffset, hOffset, width, height, kind, stream) -{{if 'cudaMemset' in found_functions}} cdef cudaError_t cudaMemset(void* devPtr, int value, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset(devPtr, value, count) -{{endif}} + return _runtime._cudaMemset(devPtr, value, count) -{{if 'cudaMemset2D' in found_functions}} cdef cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset2D(devPtr, pitch, value, width, height) -{{endif}} + return _runtime._cudaMemset2D(devPtr, pitch, value, width, height) -{{if 'cudaMemset3D' in found_functions}} cdef cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset3D(pitchedDevPtr, value, extent) -{{endif}} + return _runtime._cudaMemset3D(pitchedDevPtr, value, extent) -{{if 'cudaMemsetAsync' in found_functions}} cdef cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemsetAsync(devPtr, value, count, stream) -{{endif}} + return _runtime._cudaMemsetAsync(devPtr, value, count, stream) -{{if 'cudaMemset2DAsync' in found_functions}} cdef cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{endif}} + return _runtime._cudaMemset2DAsync(devPtr, pitch, value, width, height, stream) -{{if 'cudaMemset3DAsync' in found_functions}} cdef cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{endif}} + return _runtime._cudaMemset3DAsync(pitchedDevPtr, value, extent, stream) -{{if 'cudaMemPrefetchAsync' in found_functions}} cdef cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPrefetchAsync(devPtr, count, location, flags, stream) -{{endif}} + return _runtime._cudaMemPrefetchAsync(devPtr, count, location, flags, stream) -{{if 'cudaMemPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -{{endif}} - -{{if 'cudaMemDiscardBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) -{{endif}} - -{{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} - -cdef cudaError_t cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} cdef cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemAdvise(devPtr, count, advice, location) -{{endif}} + return _runtime._cudaMemAdvise(devPtr, count, advice, location) -{{if 'cudaMemRangeGetAttribute' in found_functions}} cdef cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{endif}} + return _runtime._cudaMemRangeGetAttribute(data, dataSize, attribute, devPtr, count) -{{if 'cudaMemRangeGetAttributes' in found_functions}} cdef cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{endif}} + return _runtime._cudaMemRangeGetAttributes(data, dataSizes, attributes, numAttributes, devPtr, count) -{{if 'cudaMemcpyToArray' in found_functions}} cdef cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{endif}} + return _runtime._cudaMemcpyToArray(dst, wOffset, hOffset, src, count, kind) -{{if 'cudaMemcpyFromArray' in found_functions}} cdef cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{endif}} + return _runtime._cudaMemcpyFromArray(dst, src, wOffset, hOffset, count, kind) -{{if 'cudaMemcpyArrayToArray' in found_functions}} cdef cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{endif}} + return _runtime._cudaMemcpyArrayToArray(dst, wOffsetDst, hOffsetDst, src, wOffsetSrc, hOffsetSrc, count, kind) -{{if 'cudaMemcpyToArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{endif}} + return _runtime._cudaMemcpyToArrayAsync(dst, wOffset, hOffset, src, count, kind, stream) -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} cdef cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{endif}} + return _runtime._cudaMemcpyFromArrayAsync(dst, src, wOffset, hOffset, count, kind, stream) -{{if 'cudaMallocAsync' in found_functions}} cdef cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocAsync(devPtr, size, hStream) -{{endif}} + return _runtime._cudaMallocAsync(devPtr, size, hStream) -{{if 'cudaFreeAsync' in found_functions}} cdef cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaFreeAsync(devPtr, hStream) -{{endif}} + return _runtime._cudaFreeAsync(devPtr, hStream) -{{if 'cudaMemPoolTrimTo' in found_functions}} cdef cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{endif}} + return _runtime._cudaMemPoolTrimTo(memPool, minBytesToKeep) -{{if 'cudaMemPoolSetAttribute' in found_functions}} cdef cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolSetAttribute(memPool, attr, value) -{{endif}} + return _runtime._cudaMemPoolSetAttribute(memPool, attr, value) -{{if 'cudaMemPoolGetAttribute' in found_functions}} cdef cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolGetAttribute(memPool, attr, value) -{{endif}} + return _runtime._cudaMemPoolGetAttribute(memPool, attr, value) -{{if 'cudaMemPoolSetAccess' in found_functions}} cdef cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolSetAccess(memPool, descList, count) -{{endif}} + return _runtime._cudaMemPoolSetAccess(memPool, descList, count) -{{if 'cudaMemPoolGetAccess' in found_functions}} cdef cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolGetAccess(flags, memPool, location) -{{endif}} + return _runtime._cudaMemPoolGetAccess(flags, memPool, location) -{{if 'cudaMemPoolCreate' in found_functions}} cdef cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolCreate(memPool, poolProps) -{{endif}} + return _runtime._cudaMemPoolCreate(memPool, poolProps) -{{if 'cudaMemPoolDestroy' in found_functions}} cdef cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolDestroy(memPool) -{{endif}} - -{{if 'cudaMemGetDefaultMemPool' in found_functions}} - -cdef cudaError_t cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemGetDefaultMemPool(memPool, location, typename) -{{endif}} - -{{if 'cudaMemGetMemPool' in found_functions}} + return _runtime._cudaMemPoolDestroy(memPool) -cdef cudaError_t cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemGetMemPool(memPool, location, typename) -{{endif}} - -{{if 'cudaMemSetMemPool' in found_functions}} - -cdef cudaError_t cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType typename, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemSetMemPool(location, typename, memPool) -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} cdef cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{endif}} + return _runtime._cudaMallocFromPoolAsync(ptr, size, memPool, stream) -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} cdef cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{endif}} + return _runtime._cudaMemPoolExportToShareableHandle(shareableHandle, memPool, handleType, flags) -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} cdef cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{endif}} + return _runtime._cudaMemPoolImportFromShareableHandle(memPool, shareableHandle, handleType, flags) -{{if 'cudaMemPoolExportPointer' in found_functions}} cdef cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolExportPointer(exportData, ptr) -{{endif}} + return _runtime._cudaMemPoolExportPointer(exportData, ptr) -{{if 'cudaMemPoolImportPointer' in found_functions}} cdef cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaMemPoolImportPointer(ptr, memPool, exportData) -{{endif}} + return _runtime._cudaMemPoolImportPointer(ptr, memPool, exportData) -{{if 'cudaPointerGetAttributes' in found_functions}} cdef cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaPointerGetAttributes(attributes, ptr) -{{endif}} + return _runtime._cudaPointerGetAttributes(attributes, ptr) -{{if 'cudaDeviceCanAccessPeer' in found_functions}} cdef cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{endif}} + return _runtime._cudaDeviceCanAccessPeer(canAccessPeer, device, peerDevice) -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} cdef cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceEnablePeerAccess(peerDevice, flags) -{{endif}} + return _runtime._cudaDeviceEnablePeerAccess(peerDevice, flags) -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} cdef cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceDisablePeerAccess(peerDevice) -{{endif}} + return _runtime._cudaDeviceDisablePeerAccess(peerDevice) -{{if 'cudaGraphicsUnregisterResource' in found_functions}} cdef cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsUnregisterResource(resource) -{{endif}} + return _runtime._cudaGraphicsUnregisterResource(resource) -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} cdef cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceSetMapFlags(resource, flags) -{{endif}} + return _runtime._cudaGraphicsResourceSetMapFlags(resource, flags) -{{if 'cudaGraphicsMapResources' in found_functions}} cdef cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsMapResources(count, resources, stream) -{{endif}} + return _runtime._cudaGraphicsMapResources(count, resources, stream) -{{if 'cudaGraphicsUnmapResources' in found_functions}} cdef cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsUnmapResources(count, resources, stream) -{{endif}} + return _runtime._cudaGraphicsUnmapResources(count, resources, stream) -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} cdef cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{endif}} + return _runtime._cudaGraphicsResourceGetMappedPointer(devPtr, size, resource) -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} cdef cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{endif}} + return _runtime._cudaGraphicsSubResourceGetMappedArray(array, resource, arrayIndex, mipLevel) -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} cdef cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{endif}} + return _runtime._cudaGraphicsResourceGetMappedMipmappedArray(mipmappedArray, resource) -{{if 'cudaGetChannelDesc' in found_functions}} cdef cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetChannelDesc(desc, array) -{{endif}} + return _runtime._cudaGetChannelDesc(desc, array) + -{{if 'cudaCreateChannelDesc' in found_functions}} -@cython.show_performance_hints(False) cdef cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) except* nogil: - return cyruntime._cudaCreateChannelDesc(x, y, z, w, f) -{{endif}} + return _runtime._cudaCreateChannelDesc(x, y, z, w, f) -{{if 'cudaCreateTextureObject' in found_functions}} cdef cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{endif}} + return _runtime._cudaCreateTextureObject(pTexObject, pResDesc, pTexDesc, pResViewDesc) -{{if 'cudaDestroyTextureObject' in found_functions}} cdef cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroyTextureObject(texObject) -{{endif}} + return _runtime._cudaDestroyTextureObject(texObject) -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} cdef cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{endif}} + return _runtime._cudaGetTextureObjectResourceDesc(pResDesc, texObject) -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} cdef cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{endif}} + return _runtime._cudaGetTextureObjectTextureDesc(pTexDesc, texObject) -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} cdef cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{endif}} + return _runtime._cudaGetTextureObjectResourceViewDesc(pResViewDesc, texObject) -{{if 'cudaCreateSurfaceObject' in found_functions}} cdef cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{endif}} + return _runtime._cudaCreateSurfaceObject(pSurfObject, pResDesc) -{{if 'cudaDestroySurfaceObject' in found_functions}} cdef cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDestroySurfaceObject(surfObject) -{{endif}} + return _runtime._cudaDestroySurfaceObject(surfObject) -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} cdef cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{endif}} + return _runtime._cudaGetSurfaceObjectResourceDesc(pResDesc, surfObject) -{{if 'cudaDriverGetVersion' in found_functions}} cdef cudaError_t cudaDriverGetVersion(int* driverVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDriverGetVersion(driverVersion) -{{endif}} + return _runtime._cudaDriverGetVersion(driverVersion) -{{if 'cudaRuntimeGetVersion' in found_functions}} cdef cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaRuntimeGetVersion(runtimeVersion) -{{endif}} - -{{if 'cudaLogsRegisterCallback' in found_functions}} - -cdef cudaError_t cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLogsRegisterCallback(callbackFunc, userData, callback_out) -{{endif}} - -{{if 'cudaLogsUnregisterCallback' in found_functions}} - -cdef cudaError_t cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLogsUnregisterCallback(callback) -{{endif}} - -{{if 'cudaLogsCurrent' in found_functions}} - -cdef cudaError_t cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLogsCurrent(iterator_out, flags) -{{endif}} - -{{if 'cudaLogsDumpToFile' in found_functions}} - -cdef cudaError_t cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLogsDumpToFile(iterator, pathToFile, flags) -{{endif}} - -{{if 'cudaLogsDumpToMemory' in found_functions}} - -cdef cudaError_t cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLogsDumpToMemory(iterator, buffer, size, flags) -{{endif}} + return _runtime._cudaRuntimeGetVersion(runtimeVersion) -{{if 'cudaGraphCreate' in found_functions}} cdef cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphCreate(pGraph, flags) -{{endif}} + return _runtime._cudaGraphCreate(pGraph, flags) -{{if 'cudaGraphAddKernelNode' in found_functions}} cdef cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _runtime._cudaGraphAddKernelNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphKernelNodeGetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphKernelNodeSetParams(node, pNodeParams) -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} cdef cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeCopyAttributes(hDst, hSrc) -{{endif}} + return _runtime._cudaGraphKernelNodeCopyAttributes(hDst, hSrc) -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} -cdef cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{endif}} +cdef cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, cudaLaunchAttributeValue* value_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphKernelNodeGetAttribute(hNode, attr, value_out) -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} -cdef cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{endif}} +cdef cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaLaunchAttributeID attr, const cudaLaunchAttributeValue* value) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphKernelNodeSetAttribute(hNode, attr, value) -{{if 'cudaGraphAddMemcpyNode' in found_functions}} cdef cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{endif}} + return _runtime._cudaGraphAddMemcpyNode(pGraphNode, graph, pDependencies, numDependencies, pCopyParams) -{{if 'cudaGraphAddMemcpyNode1D' in found_functions}} cdef cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{endif}} + return _runtime._cudaGraphAddMemcpyNode1D(pGraphNode, graph, pDependencies, numDependencies, dst, src, count, kind) -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemcpyNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemcpyNodeSetParams(node, pNodeParams) -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{endif}} + return _runtime._cudaGraphMemcpyNodeSetParams1D(node, dst, src, count, kind) -{{if 'cudaGraphAddMemsetNode' in found_functions}} cdef cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{endif}} + return _runtime._cudaGraphAddMemsetNode(pGraphNode, graph, pDependencies, numDependencies, pMemsetParams) -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemsetNodeGetParams(node, pNodeParams) -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphMemsetNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddHostNode' in found_functions}} cdef cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{endif}} + return _runtime._cudaGraphAddHostNode(pGraphNode, graph, pDependencies, numDependencies, pNodeParams) -{{if 'cudaGraphHostNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphHostNodeGetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphHostNodeGetParams(node, pNodeParams) -{{if 'cudaGraphHostNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphHostNodeSetParams(node, pNodeParams) -{{endif}} + return _runtime._cudaGraphHostNodeSetParams(node, pNodeParams) -{{if 'cudaGraphAddChildGraphNode' in found_functions}} cdef cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{endif}} + return _runtime._cudaGraphAddChildGraphNode(pGraphNode, graph, pDependencies, numDependencies, childGraph) -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} cdef cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{endif}} + return _runtime._cudaGraphChildGraphNodeGetGraph(node, pGraph) -{{if 'cudaGraphAddEmptyNode' in found_functions}} cdef cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{endif}} + return _runtime._cudaGraphAddEmptyNode(pGraphNode, graph, pDependencies, numDependencies) -{{if 'cudaGraphAddEventRecordNode' in found_functions}} cdef cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _runtime._cudaGraphAddEventRecordNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} cdef cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventRecordNodeGetEvent(node, event_out) -{{endif}} + return _runtime._cudaGraphEventRecordNodeGetEvent(node, event_out) -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventRecordNodeSetEvent(node, event) -{{endif}} + return _runtime._cudaGraphEventRecordNodeSetEvent(node, event) -{{if 'cudaGraphAddEventWaitNode' in found_functions}} cdef cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{endif}} + return _runtime._cudaGraphAddEventWaitNode(pGraphNode, graph, pDependencies, numDependencies, event) -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} cdef cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventWaitNodeGetEvent(node, event_out) -{{endif}} + return _runtime._cudaGraphEventWaitNodeGetEvent(node, event_out) -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphEventWaitNodeSetEvent(node, event) -{{endif}} + return _runtime._cudaGraphEventWaitNodeSetEvent(node, event) -{{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} cdef cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddExternalSemaphoresSignalNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresSignalNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} cdef cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddExternalSemaphoresWaitNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresWaitNodeGetParams(hNode, params_out) -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams) -{{if 'cudaGraphAddMemAllocNode' in found_functions}} cdef cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddMemAllocNode(pGraphNode, graph, pDependencies, numDependencies, nodeParams) -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemAllocNodeGetParams(node, params_out) -{{endif}} + return _runtime._cudaGraphMemAllocNodeGetParams(node, params_out) -{{if 'cudaGraphAddMemFreeNode' in found_functions}} cdef cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{endif}} + return _runtime._cudaGraphAddMemFreeNode(pGraphNode, graph, pDependencies, numDependencies, dptr) -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} cdef cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{endif}} + return _runtime._cudaGraphMemFreeNodeGetParams(node, dptr_out) -{{if 'cudaDeviceGraphMemTrim' in found_functions}} cdef cudaError_t cudaDeviceGraphMemTrim(int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGraphMemTrim(device) -{{endif}} + return _runtime._cudaDeviceGraphMemTrim(device) -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} cdef cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetGraphMemAttribute(device, attr, value) -{{endif}} + return _runtime._cudaDeviceGetGraphMemAttribute(device, attr, value) -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} cdef cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceSetGraphMemAttribute(device, attr, value) -{{endif}} + return _runtime._cudaDeviceSetGraphMemAttribute(device, attr, value) -{{if 'cudaGraphClone' in found_functions}} cdef cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphClone(pGraphClone, originalGraph) -{{endif}} + return _runtime._cudaGraphClone(pGraphClone, originalGraph) -{{if 'cudaGraphNodeFindInClone' in found_functions}} cdef cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{endif}} + return _runtime._cudaGraphNodeFindInClone(pNode, originalNode, clonedGraph) -{{if 'cudaGraphNodeGetType' in found_functions}} cdef cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetType(node, pType) -{{endif}} + return _runtime._cudaGraphNodeGetType(node, pType) -{{if 'cudaGraphNodeGetContainingGraph' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetContainingGraph(hNode, phGraph) -{{endif}} - -{{if 'cudaGraphNodeGetLocalId' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetLocalId(hNode, nodeId) -{{endif}} - -{{if 'cudaGraphNodeGetToolsId' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetToolsId(hNode, toolsNodeId) -{{endif}} - -{{if 'cudaGraphGetId' in found_functions}} - -cdef cudaError_t cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetId(hGraph, graphID) -{{endif}} - -{{if 'cudaGraphExecGetId' in found_functions}} - -cdef cudaError_t cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecGetId(hGraphExec, graphID) -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} cdef cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetNodes(graph, nodes, numNodes) -{{endif}} + return _runtime._cudaGraphGetNodes(graph, nodes, numNodes) -{{if 'cudaGraphGetRootNodes' in found_functions}} cdef cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{endif}} + return _runtime._cudaGraphGetRootNodes(graph, pRootNodes, pNumRootNodes) -{{if 'cudaGraphGetEdges' in found_functions}} cdef cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) -{{endif}} + return _runtime._cudaGraphGetEdges(graph, from_, to, edgeData, numEdges) -{{if 'cudaGraphNodeGetDependencies' in found_functions}} cdef cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) -{{endif}} + return _runtime._cudaGraphNodeGetDependencies(node, pDependencies, edgeData, pNumDependencies) -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} cdef cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) -{{endif}} + return _runtime._cudaGraphNodeGetDependentNodes(node, pDependentNodes, edgeData, pNumDependentNodes) -{{if 'cudaGraphAddDependencies' in found_functions}} cdef cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _runtime._cudaGraphAddDependencies(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphRemoveDependencies' in found_functions}} cdef cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) -{{endif}} + return _runtime._cudaGraphRemoveDependencies(graph, from_, to, edgeData, numDependencies) -{{if 'cudaGraphDestroyNode' in found_functions}} cdef cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphDestroyNode(node) -{{endif}} + return _runtime._cudaGraphDestroyNode(node) -{{if 'cudaGraphInstantiate' in found_functions}} cdef cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphInstantiate(pGraphExec, graph, flags) -{{endif}} + return _runtime._cudaGraphInstantiate(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} cdef cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{endif}} + return _runtime._cudaGraphInstantiateWithFlags(pGraphExec, graph, flags) -{{if 'cudaGraphInstantiateWithParams' in found_functions}} cdef cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{endif}} + return _runtime._cudaGraphInstantiateWithParams(pGraphExec, graph, instantiateParams) -{{if 'cudaGraphExecGetFlags' in found_functions}} cdef cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecGetFlags(graphExec, flags) -{{endif}} + return _runtime._cudaGraphExecGetFlags(graphExec, flags) -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} cdef cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{endif}} + return _runtime._cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, count, kind) -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{endif}} + return _runtime._cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams) -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{endif}} + return _runtime._cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph) -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _runtime._cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} cdef cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{endif}} + return _runtime._cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event) -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{endif}} + return _runtime._cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams) -{{if 'cudaGraphNodeSetEnabled' in found_functions}} cdef cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _runtime._cudaGraphNodeSetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphNodeGetEnabled' in found_functions}} cdef cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{endif}} + return _runtime._cudaGraphNodeGetEnabled(hGraphExec, hNode, isEnabled) -{{if 'cudaGraphExecUpdate' in found_functions}} cdef cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{endif}} + return _runtime._cudaGraphExecUpdate(hGraphExec, hGraph, resultInfo) -{{if 'cudaGraphUpload' in found_functions}} cdef cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphUpload(graphExec, stream) -{{endif}} + return _runtime._cudaGraphUpload(graphExec, stream) -{{if 'cudaGraphLaunch' in found_functions}} cdef cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphLaunch(graphExec, stream) -{{endif}} + return _runtime._cudaGraphLaunch(graphExec, stream) -{{if 'cudaGraphExecDestroy' in found_functions}} cdef cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecDestroy(graphExec) -{{endif}} + return _runtime._cudaGraphExecDestroy(graphExec) -{{if 'cudaGraphDestroy' in found_functions}} cdef cudaError_t cudaGraphDestroy(cudaGraph_t graph) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphDestroy(graph) -{{endif}} + return _runtime._cudaGraphDestroy(graph) -{{if 'cudaGraphDebugDotPrint' in found_functions}} cdef cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphDebugDotPrint(graph, path, flags) -{{endif}} + return _runtime._cudaGraphDebugDotPrint(graph, path, flags) -{{if 'cudaUserObjectCreate' in found_functions}} cdef cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{endif}} + return _runtime._cudaUserObjectCreate(object_out, ptr, destroy, initialRefcount, flags) -{{if 'cudaUserObjectRetain' in found_functions}} cdef cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaUserObjectRetain(object, count) -{{endif}} + return _runtime._cudaUserObjectRetain(object, count) -{{if 'cudaUserObjectRelease' in found_functions}} cdef cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaUserObjectRelease(object, count) -{{endif}} + return _runtime._cudaUserObjectRelease(object, count) -{{if 'cudaGraphRetainUserObject' in found_functions}} cdef cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphRetainUserObject(graph, object, count, flags) -{{endif}} + return _runtime._cudaGraphRetainUserObject(graph, object, count, flags) -{{if 'cudaGraphReleaseUserObject' in found_functions}} cdef cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphReleaseUserObject(graph, object, count) -{{endif}} + return _runtime._cudaGraphReleaseUserObject(graph, object, count) -{{if 'cudaGraphAddNode' in found_functions}} cdef cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{endif}} + return _runtime._cudaGraphAddNode(pGraphNode, graph, pDependencies, dependencyData, numDependencies, nodeParams) -{{if 'cudaGraphNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeSetParams(node, nodeParams) -{{endif}} + return _runtime._cudaGraphNodeSetParams(node, nodeParams) -{{if 'cudaGraphNodeGetParams' in found_functions}} - -cdef cudaError_t cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphNodeGetParams(node, nodeParams) -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} cdef cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{endif}} + return _runtime._cudaGraphExecNodeSetParams(graphExec, node, nodeParams) -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} cdef cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} - -cdef cudaError_t cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) -{{endif}} + return _runtime._cudaGraphConditionalHandleCreate(pHandle_out, graph, defaultLaunchValue, flags) -{{if 'cudaGetDriverEntryPoint' in found_functions}} cdef cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{endif}} + return _runtime._cudaGetDriverEntryPoint(symbol, funcPtr, flags, driverStatus) -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} cdef cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{endif}} + return _runtime._cudaGetDriverEntryPointByVersion(symbol, funcPtr, cudaVersion, flags, driverStatus) -{{if 'cudaLibraryLoadData' in found_functions}} cdef cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _runtime._cudaLibraryLoadData(library, code, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryLoadFromFile' in found_functions}} cdef cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{endif}} + return _runtime._cudaLibraryLoadFromFile(library, fileName, jitOptions, jitOptionsValues, numJitOptions, libraryOptions, libraryOptionValues, numLibraryOptions) -{{if 'cudaLibraryUnload' in found_functions}} cdef cudaError_t cudaLibraryUnload(cudaLibrary_t library) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryUnload(library) -{{endif}} + return _runtime._cudaLibraryUnload(library) -{{if 'cudaLibraryGetKernel' in found_functions}} cdef cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetKernel(pKernel, library, name) -{{endif}} + return _runtime._cudaLibraryGetKernel(pKernel, library, name) -{{if 'cudaLibraryGetGlobal' in found_functions}} -cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetGlobal(dptr, numbytes, library, name) -{{endif}} +cdef cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLibraryGetGlobal(dptr, bytes, library, name) -{{if 'cudaLibraryGetManaged' in found_functions}} -cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetManaged(dptr, numbytes, library, name) -{{endif}} +cdef cudaError_t cudaLibraryGetManaged(void** dptr, size_t* bytes, cudaLibrary_t library, const char* name) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLibraryGetManaged(dptr, bytes, library, name) -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} cdef cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{endif}} + return _runtime._cudaLibraryGetUnifiedFunction(fptr, library, symbol) -{{if 'cudaLibraryGetKernelCount' in found_functions}} cdef cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryGetKernelCount(count, lib) -{{endif}} + return _runtime._cudaLibraryGetKernelCount(count, lib) -{{if 'cudaLibraryEnumerateKernels' in found_functions}} cdef cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{endif}} + return _runtime._cudaLibraryEnumerateKernels(kernels, numKernels, lib) -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} cdef cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{endif}} + return _runtime._cudaKernelSetAttributeForDevice(kernel, attr, value, device) -{{if 'cudaDeviceGetDevResource' in found_functions}} -cdef cudaError_t cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetDevResource(device, resource, typename) -{{endif}} +cdef cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGetExportTable(ppExportTable, pExportTableId) -{{if 'cudaDevSmResourceSplitByCount' in found_functions}} -cdef cudaError_t cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) -{{endif}} +cdef cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGetKernel(kernelPtr, entryFuncAddr) -{{if 'cudaDevSmResourceSplit' in found_functions}} -cdef cudaError_t cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) -{{endif}} +cdef cudaError_t cudaGraphicsEGLRegisterImage(cudaGraphicsResource** pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphicsEGLRegisterImage(pCudaResource, image, flags) -{{if 'cudaDevResourceGenerateDesc' in found_functions}} -cdef cudaError_t cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDevResourceGenerateDesc(phDesc, resources, nbResources) -{{endif}} +cdef cudaError_t cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamConsumerConnect(conn, eglStream) -{{if 'cudaGreenCtxCreate' in found_functions}} -cdef cudaError_t cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGreenCtxCreate(phCtx, desc, device, flags) -{{endif}} +cdef cudaError_t cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamConsumerConnectWithFlags(conn, eglStream, flags) -{{if 'cudaExecutionCtxDestroy' in found_functions}} -cdef cudaError_t cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxDestroy(ctx) -{{endif}} +cdef cudaError_t cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamConsumerDisconnect(conn) -{{if 'cudaExecutionCtxGetDevResource' in found_functions}} -cdef cudaError_t cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxGetDevResource(ctx, resource, typename) -{{endif}} +cdef cudaError_t cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) -{{if 'cudaExecutionCtxGetDevice' in found_functions}} -cdef cudaError_t cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxGetDevice(device, ctx) -{{endif}} +cdef cudaError_t cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) -{{if 'cudaExecutionCtxGetId' in found_functions}} -cdef cudaError_t cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxGetId(ctx, ctxId) -{{endif}} +cdef cudaError_t cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamProducerConnect(conn, eglStream, width, height) -{{if 'cudaExecutionCtxStreamCreate' in found_functions}} -cdef cudaError_t cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) -{{endif}} +cdef cudaError_t cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamProducerDisconnect(conn) -{{if 'cudaExecutionCtxSynchronize' in found_functions}} -cdef cudaError_t cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxSynchronize(ctx) -{{endif}} +cdef cudaError_t cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamProducerPresentFrame(conn, eglframe, pStream) -{{if 'cudaStreamGetDevResource' in found_functions}} -cdef cudaError_t cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType typename) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaStreamGetDevResource(hStream, resource, typename) -{{endif}} +cdef cudaError_t cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEGLStreamProducerReturnFrame(conn, eglframe, pStream) -{{if 'cudaExecutionCtxRecordEvent' in found_functions}} -cdef cudaError_t cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxRecordEvent(ctx, event) -{{endif}} +cdef cudaError_t cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphicsResourceGetMappedEglFrame(eglFrame, resource, index, mipLevel) -{{if 'cudaExecutionCtxWaitEvent' in found_functions}} -cdef cudaError_t cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaExecutionCtxWaitEvent(ctx, event) -{{endif}} +cdef cudaError_t cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaEventCreateFromEGLSync(phEvent, eglSync, flags) -{{if 'cudaDeviceGetExecutionCtx' in found_functions}} -cdef cudaError_t cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaDeviceGetExecutionCtx(ctx, device) -{{endif}} +cdef cudaError_t cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaProfilerStart() -{{if 'cudaGetExportTable' in found_functions}} -cdef cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetExportTable(ppExportTable, pExportTableId) -{{endif}} +cdef cudaError_t cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaProfilerStop() -{{if 'cudaGetKernel' in found_functions}} -cdef cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGetKernel(kernelPtr, entryFuncAddr) -{{endif}} +cdef cudaError_t cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGLGetDevices(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) -{{if 'make_cudaPitchedPtr' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: - return cyruntime._make_cudaPitchedPtr(d, p, xsz, ysz) -{{endif}} -{{if 'make_cudaPos' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil: - return cyruntime._make_cudaPos(x, y, z) -{{endif}} +cdef cudaError_t cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphicsGLRegisterImage(resource, image, target, flags) -{{if 'make_cudaExtent' in found_functions}} -@cython.show_performance_hints(False) -cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: - return cyruntime._make_cudaExtent(w, h, d) -{{endif}} -{{if True}} +cdef cudaError_t cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphicsGLRegisterBuffer(resource, buffer, flags) -cdef cudaError_t cudaGraphicsEGLRegisterImage(cudaGraphicsResource** pCudaResource, EGLImageKHR image, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsEGLRegisterImage(pCudaResource, image, flags) -{{endif}} -{{if True}} +cdef cudaError_t cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaVDPAUGetDevice(device, vdpDevice, vdpGetProcAddress) -cdef cudaError_t cudaEGLStreamConsumerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerConnect(conn, eglStream) -{{endif}} -{{if True}} +cdef cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaVDPAUSetVDPAUDevice(device, vdpDevice, vdpGetProcAddress) -cdef cudaError_t cudaEGLStreamConsumerConnectWithFlags(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerConnectWithFlags(conn, eglStream, flags) -{{endif}} -{{if True}} +cdef cudaError_t cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphicsVDPAURegisterVideoSurface(resource, vdpSurface, flags) -cdef cudaError_t cudaEGLStreamConsumerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerDisconnect(conn) -{{endif}} -{{if True}} +cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphicsVDPAURegisterOutputSurface(resource, vdpSurface, flags) -cdef cudaError_t cudaEGLStreamConsumerAcquireFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t* pCudaResource, cudaStream_t* pStream, unsigned int timeout) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, timeout) -{{endif}} -{{if True}} +cdef cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGetDeviceProperties(prop, device) -cdef cudaError_t cudaEGLStreamConsumerReleaseFrame(cudaEglStreamConnection* conn, cudaGraphicsResource_t pCudaResource, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream) -{{endif}} -{{if True}} +cdef cudaError_t cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDeviceGetHostAtomicCapabilities(capabilities, operations, count, device) -cdef cudaError_t cudaEGLStreamProducerConnect(cudaEglStreamConnection* conn, EGLStreamKHR eglStream, EGLint width, EGLint height) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerConnect(conn, eglStream, width, height) -{{endif}} -{{if True}} +cdef cudaError_t cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDeviceGetP2PAtomicCapabilities(capabilities, operations, count, srcDevice, dstDevice) -cdef cudaError_t cudaEGLStreamProducerDisconnect(cudaEglStreamConnection* conn) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerDisconnect(conn) -{{endif}} -{{if True}} +cdef cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaStreamGetCaptureInfo(stream, captureStatus_out, id_out, graph_out, dependencies_out, edgeData_out, numDependencies_out) -cdef cudaError_t cudaEGLStreamProducerPresentFrame(cudaEglStreamConnection* conn, cudaEglFrame eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerPresentFrame(conn, eglframe, pStream) -{{endif}} -{{if True}} +cdef cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaSignalExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -cdef cudaError_t cudaEGLStreamProducerReturnFrame(cudaEglStreamConnection* conn, cudaEglFrame* eglframe, cudaStream_t* pStream) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEGLStreamProducerReturnFrame(conn, eglframe, pStream) -{{endif}} -{{if True}} +cdef cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaWaitExternalSemaphoresAsync(extSemArray, paramsArray, numExtSems, stream) -cdef cudaError_t cudaGraphicsResourceGetMappedEglFrame(cudaEglFrame* eglFrame, cudaGraphicsResource_t resource, unsigned int index, unsigned int mipLevel) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsResourceGetMappedEglFrame(eglFrame, resource, index, mipLevel) -{{endif}} -{{if True}} +cdef cudaError_t cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -cdef cudaError_t cudaEventCreateFromEGLSync(cudaEvent_t* phEvent, EGLSyncKHR eglSync, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaEventCreateFromEGLSync(phEvent, eglSync, flags) -{{endif}} -{{if 'cudaProfilerStart' in found_functions}} +cdef cudaError_t cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemDiscardBatchAsync(dptrs, sizes, count, flags, stream) -cdef cudaError_t cudaProfilerStart() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaProfilerStart() -{{endif}} -{{if 'cudaProfilerStop' in found_functions}} +cdef cudaError_t cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemDiscardAndPrefetchBatchAsync(dptrs, sizes, count, prefetchLocs, prefetchLocIdxs, numPrefetchLocs, flags, stream) -cdef cudaError_t cudaProfilerStop() except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaProfilerStop() -{{endif}} -{{if True}} +cdef cudaError_t cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemGetDefaultMemPool(memPool, location, type) -cdef cudaError_t cudaGLGetDevices(unsigned int* pCudaDeviceCount, int* pCudaDevices, unsigned int cudaDeviceCount, cudaGLDeviceList deviceList) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGLGetDevices(pCudaDeviceCount, pCudaDevices, cudaDeviceCount, deviceList) -{{endif}} -{{if True}} +cdef cudaError_t cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemGetMemPool(memPool, location, type) -cdef cudaError_t cudaGraphicsGLRegisterImage(cudaGraphicsResource** resource, GLuint image, GLenum target, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsGLRegisterImage(resource, image, target, flags) -{{endif}} -{{if True}} +cdef cudaError_t cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType type, cudaMemPool_t memPool) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemSetMemPool(location, type, memPool) -cdef cudaError_t cudaGraphicsGLRegisterBuffer(cudaGraphicsResource** resource, GLuint buffer, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsGLRegisterBuffer(resource, buffer, flags) -{{endif}} -{{if True}} +cdef cudaError_t cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLogsRegisterCallback(callbackFunc, userData, callback_out) -cdef cudaError_t cudaVDPAUGetDevice(int* device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaVDPAUGetDevice(device, vdpDevice, vdpGetProcAddress) -{{endif}} -{{if True}} +cdef cudaError_t cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLogsUnregisterCallback(callback) -cdef cudaError_t cudaVDPAUSetVDPAUDevice(int device, VdpDevice vdpDevice, VdpGetProcAddress* vdpGetProcAddress) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaVDPAUSetVDPAUDevice(device, vdpDevice, vdpGetProcAddress) -{{endif}} -{{if True}} +cdef cudaError_t cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLogsCurrent(iterator_out, flags) -cdef cudaError_t cudaGraphicsVDPAURegisterVideoSurface(cudaGraphicsResource** resource, VdpVideoSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsVDPAURegisterVideoSurface(resource, vdpSurface, flags) -{{endif}} -{{if True}} +cdef cudaError_t cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLogsDumpToFile(iterator, pathToFile, flags) -cdef cudaError_t cudaGraphicsVDPAURegisterOutputSurface(cudaGraphicsResource** resource, VdpOutputSurface vdpSurface, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: - return cyruntime._cudaGraphicsVDPAURegisterOutputSurface(resource, vdpSurface, flags) -{{endif}} -{{if True}} +cdef cudaError_t cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLogsDumpToMemory(iterator, buffer, size, flags) + + +cdef cudaError_t cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphNodeGetContainingGraph(hNode, phGraph) + + +cdef cudaError_t cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphNodeGetLocalId(hNode, nodeId) + + +cdef cudaError_t cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphNodeGetToolsId(hNode, toolsNodeId) + + +cdef cudaError_t cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphGetId(hGraph, graphID) + + +cdef cudaError_t cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphExecGetId(hGraphExec, graphID) + + +cdef cudaError_t cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphConditionalHandleCreate_v2(pHandle_out, graph, ctx, defaultLaunchValue, flags) + + +cdef cudaError_t cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDeviceGetDevResource(device, resource, type) + + +cdef cudaError_t cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDevSmResourceSplitByCount(result, nbGroups, input, remaining, flags, minCount) + + +cdef cudaError_t cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDevSmResourceSplit(result, nbGroups, input, remainder, flags, groupParams) + + +cdef cudaError_t cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDevResourceGenerateDesc(phDesc, resources, nbResources) + + +cdef cudaError_t cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGreenCtxCreate(phCtx, desc, device, flags) + + +cdef cudaError_t cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxDestroy(ctx) + + +cdef cudaError_t cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxGetDevResource(ctx, resource, type) + + +cdef cudaError_t cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxGetDevice(device, ctx) + + +cdef cudaError_t cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxGetId(ctx, ctxId) + + +cdef cudaError_t cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxStreamCreate(phStream, ctx, flags, priority) + + +cdef cudaError_t cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxSynchronize(ctx) + + +cdef cudaError_t cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType type) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaStreamGetDevResource(hStream, resource, type) + + +cdef cudaError_t cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxRecordEvent(ctx, event) + + +cdef cudaError_t cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaExecutionCtxWaitEvent(ctx, event) + + +cdef cudaError_t cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaDeviceGetExecutionCtx(ctx, device) + + +cdef cudaError_t cudaFuncGetParamCount(const void* func, size_t* paramCount) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaFuncGetParamCount(func, paramCount) + + +cdef cudaError_t cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaLaunchHostFunc_v2(stream, fn, userData, syncMode) + + +cdef cudaError_t cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemcpyWithAttributesAsync(dst, src, size, attr, stream) + + +cdef cudaError_t cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaMemcpy3DWithAttributesAsync(op, flags, stream) + + +cdef cudaError_t cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaGraphNodeGetParams(node, nodeParams) + + +cdef cudaError_t cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) except ?cudaErrorCallRequiresNewerDriver nogil: + return _runtime._cudaStreamBeginRecaptureToGraph(stream, mode, graph, callbackData) + + +############################################################################### +# Static inline helpers from driver_functions.h +############################################################################### + +cdef extern from 'driver_functions.h': + cudaPitchedPtr _c_make_cudaPitchedPtr "make_cudaPitchedPtr"(void* d, size_t p, size_t xsz, size_t ysz) nogil + cudaPos _c_make_cudaPos "make_cudaPos"(size_t x, size_t y, size_t z) nogil + cudaExtent _c_make_cudaExtent "make_cudaExtent"(size_t w, size_t h, size_t d) nogil + + +cdef cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) except* nogil: + return _c_make_cudaPitchedPtr(d, p, xsz, ysz) + + +cdef cudaPos make_cudaPos(size_t x, size_t y, size_t z) except* nogil: + return _c_make_cudaPos(x, y, z) + + +cdef cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) except* nogil: + return _c_make_cudaExtent(w, h, d) + -from libc.stdint cimport uintptr_t -from cuda.pathfinder import load_nvidia_dynamic_lib -{{if 'Windows' == platform.system()}} -cimport cuda.bindings._lib.windll as windll -{{else}} -cimport cuda.bindings._lib.dlfcn as dlfcn -{{endif}} +############################################################################### +# getLocalRuntimeVersion +############################################################################### cdef cudaError_t getLocalRuntimeVersion(int* runtimeVersion) except ?cudaErrorCallRequiresNewerDriver nogil: - # Load - with gil: - loaded_dl = load_nvidia_dynamic_lib("cudart") - {{if 'Windows' == platform.system()}} - handle = loaded_dl._handle_uint - {{else}} - handle = loaded_dl._handle_uint - {{endif}} - - {{if 'Windows' == platform.system()}} - __cudaRuntimeGetVersion = windll.GetProcAddress(handle, b'cudaRuntimeGetVersion') - {{else}} - __cudaRuntimeGetVersion = dlfcn.dlsym(handle, 'cudaRuntimeGetVersion') - {{endif}} - - if __cudaRuntimeGetVersion == NULL: - with gil: - raise RuntimeError(f'Function "cudaRuntimeGetVersion" not found in {loaded_dl.abs_path}') - - # Call - cdef cudaError_t err = cudaSuccess - err = ( __cudaRuntimeGetVersion)(runtimeVersion) - - # We explicitly do *NOT* cleanup the library handle here, acknowledging - # that, yes, the handle leaks. The reason is that there's a - # `functools.cache` on the top-level caller of this function. - # - # This means this library would be opened once and then immediately closed, - # all the while remaining in the cache lurking there for people to call. - # - # Since we open the library one time (technically once per unique library name), - # there's not a ton of leakage, which we deem acceptable for the 1000x speedup - # achieved by caching (ultimately) `ctypes.CDLL` calls. - # - # Long(er)-term we can explore cleaning up the library using higher-level - # Python mechanisms, like `__del__` or `weakref.finalizer`s. - - return err -{{endif}} + return _runtime._getLocalRuntimeVersion(runtimeVersion) diff --git a/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in b/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in deleted file mode 100644 index fe4bbf86a1e..00000000000 --- a/cuda_bindings/cuda/bindings/cyruntime_functions.pxi.in +++ /dev/null @@ -1,1618 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. -cdef extern from "cuda_runtime_api.h": - - {{if 'cudaDeviceReset' in found_functions}} - - cudaError_t cudaDeviceReset() nogil - - {{endif}} - {{if 'cudaDeviceSynchronize' in found_functions}} - - cudaError_t cudaDeviceSynchronize() nogil - - {{endif}} - {{if 'cudaDeviceSetLimit' in found_functions}} - - cudaError_t cudaDeviceSetLimit(cudaLimit limit, size_t value) nogil - - {{endif}} - {{if 'cudaDeviceGetLimit' in found_functions}} - - cudaError_t cudaDeviceGetLimit(size_t* pValue, cudaLimit limit) nogil - - {{endif}} - {{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} - - cudaError_t cudaDeviceGetTexture1DLinearMaxWidth(size_t* maxWidthInElements, const cudaChannelFormatDesc* fmtDesc, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetCacheConfig' in found_functions}} - - cudaError_t cudaDeviceGetCacheConfig(cudaFuncCache* pCacheConfig) nogil - - {{endif}} - {{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} - - cudaError_t cudaDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority) nogil - - {{endif}} - {{if 'cudaDeviceSetCacheConfig' in found_functions}} - - cudaError_t cudaDeviceSetCacheConfig(cudaFuncCache cacheConfig) nogil - - {{endif}} - {{if 'cudaDeviceGetByPCIBusId' in found_functions}} - - cudaError_t cudaDeviceGetByPCIBusId(int* device, const char* pciBusId) nogil - - {{endif}} - {{if 'cudaDeviceGetPCIBusId' in found_functions}} - - cudaError_t cudaDeviceGetPCIBusId(char* pciBusId, int length, int device) nogil - - {{endif}} - {{if 'cudaIpcGetEventHandle' in found_functions}} - - cudaError_t cudaIpcGetEventHandle(cudaIpcEventHandle_t* handle, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaIpcOpenEventHandle' in found_functions}} - - cudaError_t cudaIpcOpenEventHandle(cudaEvent_t* event, cudaIpcEventHandle_t handle) nogil - - {{endif}} - {{if 'cudaIpcGetMemHandle' in found_functions}} - - cudaError_t cudaIpcGetMemHandle(cudaIpcMemHandle_t* handle, void* devPtr) nogil - - {{endif}} - {{if 'cudaIpcOpenMemHandle' in found_functions}} - - cudaError_t cudaIpcOpenMemHandle(void** devPtr, cudaIpcMemHandle_t handle, unsigned int flags) nogil - - {{endif}} - {{if 'cudaIpcCloseMemHandle' in found_functions}} - - cudaError_t cudaIpcCloseMemHandle(void* devPtr) nogil - - {{endif}} - {{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} - - cudaError_t cudaDeviceFlushGPUDirectRDMAWrites(cudaFlushGPUDirectRDMAWritesTarget target, cudaFlushGPUDirectRDMAWritesScope scope) nogil - - {{endif}} - {{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} - - cudaError_t cudaDeviceRegisterAsyncNotification(int device, cudaAsyncCallback callbackFunc, void* userData, cudaAsyncCallbackHandle_t* callback) nogil - - {{endif}} - {{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} - - cudaError_t cudaDeviceUnregisterAsyncNotification(int device, cudaAsyncCallbackHandle_t callback) nogil - - {{endif}} - {{if 'cudaDeviceGetSharedMemConfig' in found_functions}} - - cudaError_t cudaDeviceGetSharedMemConfig(cudaSharedMemConfig* pConfig) nogil - - {{endif}} - {{if 'cudaDeviceSetSharedMemConfig' in found_functions}} - - cudaError_t cudaDeviceSetSharedMemConfig(cudaSharedMemConfig config) nogil - - {{endif}} - {{if 'cudaGetLastError' in found_functions}} - - cudaError_t cudaGetLastError() nogil - - {{endif}} - {{if 'cudaPeekAtLastError' in found_functions}} - - cudaError_t cudaPeekAtLastError() nogil - - {{endif}} - {{if 'cudaGetErrorName' in found_functions}} - - const char* cudaGetErrorName(cudaError_t error) nogil - - {{endif}} - {{if 'cudaGetErrorString' in found_functions}} - - const char* cudaGetErrorString(cudaError_t error) nogil - - {{endif}} - {{if 'cudaGetDeviceCount' in found_functions}} - - cudaError_t cudaGetDeviceCount(int* count) nogil - - {{endif}} - {{if 'cudaGetDeviceProperties' in found_functions}} - - cudaError_t cudaGetDeviceProperties(cudaDeviceProp* prop, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetAttribute' in found_functions}} - - cudaError_t cudaDeviceGetAttribute(int* value, cudaDeviceAttr attr, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} - - cudaError_t cudaDeviceGetHostAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetDefaultMemPool' in found_functions}} - - cudaError_t cudaDeviceGetDefaultMemPool(cudaMemPool_t* memPool, int device) nogil - - {{endif}} - {{if 'cudaDeviceSetMemPool' in found_functions}} - - cudaError_t cudaDeviceSetMemPool(int device, cudaMemPool_t memPool) nogil - - {{endif}} - {{if 'cudaDeviceGetMemPool' in found_functions}} - - cudaError_t cudaDeviceGetMemPool(cudaMemPool_t* memPool, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} - - cudaError_t cudaDeviceGetNvSciSyncAttributes(void* nvSciSyncAttrList, int device, int flags) nogil - - {{endif}} - {{if 'cudaDeviceGetP2PAttribute' in found_functions}} - - cudaError_t cudaDeviceGetP2PAttribute(int* value, cudaDeviceP2PAttr attr, int srcDevice, int dstDevice) nogil - - {{endif}} - {{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} - - cudaError_t cudaDeviceGetP2PAtomicCapabilities(unsigned int* capabilities, const cudaAtomicOperation* operations, unsigned int count, int srcDevice, int dstDevice) nogil - - {{endif}} - {{if 'cudaChooseDevice' in found_functions}} - - cudaError_t cudaChooseDevice(int* device, const cudaDeviceProp* prop) nogil - - {{endif}} - {{if 'cudaInitDevice' in found_functions}} - - cudaError_t cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags) nogil - - {{endif}} - {{if 'cudaSetDevice' in found_functions}} - - cudaError_t cudaSetDevice(int device) nogil - - {{endif}} - {{if 'cudaGetDevice' in found_functions}} - - cudaError_t cudaGetDevice(int* device) nogil - - {{endif}} - {{if 'cudaSetDeviceFlags' in found_functions}} - - cudaError_t cudaSetDeviceFlags(unsigned int flags) nogil - - {{endif}} - {{if 'cudaGetDeviceFlags' in found_functions}} - - cudaError_t cudaGetDeviceFlags(unsigned int* flags) nogil - - {{endif}} - {{if 'cudaStreamCreate' in found_functions}} - - cudaError_t cudaStreamCreate(cudaStream_t* pStream) nogil - - {{endif}} - {{if 'cudaStreamCreateWithFlags' in found_functions}} - - cudaError_t cudaStreamCreateWithFlags(cudaStream_t* pStream, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamCreateWithPriority' in found_functions}} - - cudaError_t cudaStreamCreateWithPriority(cudaStream_t* pStream, unsigned int flags, int priority) nogil - - {{endif}} - {{if 'cudaStreamGetPriority' in found_functions}} - - cudaError_t cudaStreamGetPriority(cudaStream_t hStream, int* priority) nogil - - {{endif}} - {{if 'cudaStreamGetFlags' in found_functions}} - - cudaError_t cudaStreamGetFlags(cudaStream_t hStream, unsigned int* flags) nogil - - {{endif}} - {{if 'cudaStreamGetId' in found_functions}} - - cudaError_t cudaStreamGetId(cudaStream_t hStream, unsigned long long* streamId) nogil - - {{endif}} - {{if 'cudaStreamGetDevice' in found_functions}} - - cudaError_t cudaStreamGetDevice(cudaStream_t hStream, int* device) nogil - - {{endif}} - {{if 'cudaCtxResetPersistingL2Cache' in found_functions}} - - cudaError_t cudaCtxResetPersistingL2Cache() nogil - - {{endif}} - {{if 'cudaStreamCopyAttributes' in found_functions}} - - cudaError_t cudaStreamCopyAttributes(cudaStream_t dst, cudaStream_t src) nogil - - {{endif}} - {{if 'cudaStreamGetAttribute' in found_functions}} - - cudaError_t cudaStreamGetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, cudaStreamAttrValue* value_out) nogil - - {{endif}} - {{if 'cudaStreamSetAttribute' in found_functions}} - - cudaError_t cudaStreamSetAttribute(cudaStream_t hStream, cudaStreamAttrID attr, const cudaStreamAttrValue* value) nogil - - {{endif}} - {{if 'cudaStreamDestroy' in found_functions}} - - cudaError_t cudaStreamDestroy(cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaStreamWaitEvent' in found_functions}} - - cudaError_t cudaStreamWaitEvent(cudaStream_t stream, cudaEvent_t event, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamAddCallback' in found_functions}} - - cudaError_t cudaStreamAddCallback(cudaStream_t stream, cudaStreamCallback_t callback, void* userData, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamSynchronize' in found_functions}} - - cudaError_t cudaStreamSynchronize(cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaStreamQuery' in found_functions}} - - cudaError_t cudaStreamQuery(cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaStreamAttachMemAsync' in found_functions}} - - cudaError_t cudaStreamAttachMemAsync(cudaStream_t stream, void* devPtr, size_t length, unsigned int flags) nogil - - {{endif}} - {{if 'cudaStreamBeginCapture' in found_functions}} - - cudaError_t cudaStreamBeginCapture(cudaStream_t stream, cudaStreamCaptureMode mode) nogil - - {{endif}} - {{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} - - cudaError_t cudaStreamBeginRecaptureToGraph(cudaStream_t stream, cudaStreamCaptureMode mode, cudaGraph_t graph, cudaGraphRecaptureCallbackData* callbackData) nogil - - {{endif}} - {{if 'cudaStreamBeginCaptureToGraph' in found_functions}} - - cudaError_t cudaStreamBeginCaptureToGraph(cudaStream_t stream, cudaGraph_t graph, const cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaStreamCaptureMode mode) nogil - - {{endif}} - {{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} - - cudaError_t cudaThreadExchangeStreamCaptureMode(cudaStreamCaptureMode* mode) nogil - - {{endif}} - {{if 'cudaStreamEndCapture' in found_functions}} - - cudaError_t cudaStreamEndCapture(cudaStream_t stream, cudaGraph_t* pGraph) nogil - - {{endif}} - {{if 'cudaStreamIsCapturing' in found_functions}} - - cudaError_t cudaStreamIsCapturing(cudaStream_t stream, cudaStreamCaptureStatus* pCaptureStatus) nogil - - {{endif}} - {{if 'cudaStreamGetCaptureInfo' in found_functions}} - - cudaError_t cudaStreamGetCaptureInfo(cudaStream_t stream, cudaStreamCaptureStatus* captureStatus_out, unsigned long long* id_out, cudaGraph_t* graph_out, const cudaGraphNode_t** dependencies_out, const cudaGraphEdgeData** edgeData_out, size_t* numDependencies_out) nogil - - {{endif}} - {{if 'cudaStreamUpdateCaptureDependencies' in found_functions}} - - cudaError_t cudaStreamUpdateCaptureDependencies(cudaStream_t stream, cudaGraphNode_t* dependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, unsigned int flags) nogil - - {{endif}} - {{if 'cudaEventCreate' in found_functions}} - - cudaError_t cudaEventCreate(cudaEvent_t* event) nogil - - {{endif}} - {{if 'cudaEventCreateWithFlags' in found_functions}} - - cudaError_t cudaEventCreateWithFlags(cudaEvent_t* event, unsigned int flags) nogil - - {{endif}} - {{if 'cudaEventRecord' in found_functions}} - - cudaError_t cudaEventRecord(cudaEvent_t event, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaEventRecordWithFlags' in found_functions}} - - cudaError_t cudaEventRecordWithFlags(cudaEvent_t event, cudaStream_t stream, unsigned int flags) nogil - - {{endif}} - {{if 'cudaEventQuery' in found_functions}} - - cudaError_t cudaEventQuery(cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaEventSynchronize' in found_functions}} - - cudaError_t cudaEventSynchronize(cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaEventDestroy' in found_functions}} - - cudaError_t cudaEventDestroy(cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaEventElapsedTime' in found_functions}} - - cudaError_t cudaEventElapsedTime(float* ms, cudaEvent_t start, cudaEvent_t end) nogil - - {{endif}} - {{if 'cudaImportExternalMemory' in found_functions}} - - cudaError_t cudaImportExternalMemory(cudaExternalMemory_t* extMem_out, const cudaExternalMemoryHandleDesc* memHandleDesc) nogil - - {{endif}} - {{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} - - cudaError_t cudaExternalMemoryGetMappedBuffer(void** devPtr, cudaExternalMemory_t extMem, const cudaExternalMemoryBufferDesc* bufferDesc) nogil - - {{endif}} - {{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} - - cudaError_t cudaExternalMemoryGetMappedMipmappedArray(cudaMipmappedArray_t* mipmap, cudaExternalMemory_t extMem, const cudaExternalMemoryMipmappedArrayDesc* mipmapDesc) nogil - - {{endif}} - {{if 'cudaDestroyExternalMemory' in found_functions}} - - cudaError_t cudaDestroyExternalMemory(cudaExternalMemory_t extMem) nogil - - {{endif}} - {{if 'cudaImportExternalSemaphore' in found_functions}} - - cudaError_t cudaImportExternalSemaphore(cudaExternalSemaphore_t* extSem_out, const cudaExternalSemaphoreHandleDesc* semHandleDesc) nogil - - {{endif}} - {{if 'cudaSignalExternalSemaphoresAsync' in found_functions}} - - cudaError_t cudaSignalExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreSignalParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaWaitExternalSemaphoresAsync' in found_functions}} - - cudaError_t cudaWaitExternalSemaphoresAsync(const cudaExternalSemaphore_t* extSemArray, const cudaExternalSemaphoreWaitParams* paramsArray, unsigned int numExtSems, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaDestroyExternalSemaphore' in found_functions}} - - cudaError_t cudaDestroyExternalSemaphore(cudaExternalSemaphore_t extSem) nogil - - {{endif}} - {{if 'cudaFuncSetCacheConfig' in found_functions}} - - cudaError_t cudaFuncSetCacheConfig(const void* func, cudaFuncCache cacheConfig) nogil - - {{endif}} - {{if 'cudaFuncGetAttributes' in found_functions}} - - cudaError_t cudaFuncGetAttributes(cudaFuncAttributes* attr, const void* func) nogil - - {{endif}} - {{if 'cudaFuncSetAttribute' in found_functions}} - - cudaError_t cudaFuncSetAttribute(const void* func, cudaFuncAttribute attr, int value) nogil - - {{endif}} - {{if 'cudaFuncGetParamCount' in found_functions}} - - cudaError_t cudaFuncGetParamCount(const void* func, size_t* paramCount) nogil - - {{endif}} - {{if 'cudaLaunchHostFunc' in found_functions}} - - cudaError_t cudaLaunchHostFunc(cudaStream_t stream, cudaHostFn_t fn, void* userData) nogil - - {{endif}} - {{if 'cudaLaunchHostFunc_v2' in found_functions}} - - cudaError_t cudaLaunchHostFunc_v2(cudaStream_t stream, cudaHostFn_t fn, void* userData, unsigned int syncMode) nogil - - {{endif}} - {{if 'cudaFuncSetSharedMemConfig' in found_functions}} - - cudaError_t cudaFuncSetSharedMemConfig(const void* func, cudaSharedMemConfig config) nogil - - {{endif}} - {{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} - - cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessor(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize) nogil - - {{endif}} - {{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} - - cudaError_t cudaOccupancyAvailableDynamicSMemPerBlock(size_t* dynamicSmemSize, const void* func, int numBlocks, int blockSize) nogil - - {{endif}} - {{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} - - cudaError_t cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int* numBlocks, const void* func, int blockSize, size_t dynamicSMemSize, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMallocManaged' in found_functions}} - - cudaError_t cudaMallocManaged(void** devPtr, size_t size, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMalloc' in found_functions}} - - cudaError_t cudaMalloc(void** devPtr, size_t size) nogil - - {{endif}} - {{if 'cudaMallocHost' in found_functions}} - - cudaError_t cudaMallocHost(void** ptr, size_t size) nogil - - {{endif}} - {{if 'cudaMallocPitch' in found_functions}} - - cudaError_t cudaMallocPitch(void** devPtr, size_t* pitch, size_t width, size_t height) nogil - - {{endif}} - {{if 'cudaMallocArray' in found_functions}} - - cudaError_t cudaMallocArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, size_t width, size_t height, unsigned int flags) nogil - - {{endif}} - {{if 'cudaFree' in found_functions}} - - cudaError_t cudaFree(void* devPtr) nogil - - {{endif}} - {{if 'cudaFreeHost' in found_functions}} - - cudaError_t cudaFreeHost(void* ptr) nogil - - {{endif}} - {{if 'cudaFreeArray' in found_functions}} - - cudaError_t cudaFreeArray(cudaArray_t array) nogil - - {{endif}} - {{if 'cudaFreeMipmappedArray' in found_functions}} - - cudaError_t cudaFreeMipmappedArray(cudaMipmappedArray_t mipmappedArray) nogil - - {{endif}} - {{if 'cudaHostAlloc' in found_functions}} - - cudaError_t cudaHostAlloc(void** pHost, size_t size, unsigned int flags) nogil - - {{endif}} - {{if 'cudaHostRegister' in found_functions}} - - cudaError_t cudaHostRegister(void* ptr, size_t size, unsigned int flags) nogil - - {{endif}} - {{if 'cudaHostUnregister' in found_functions}} - - cudaError_t cudaHostUnregister(void* ptr) nogil - - {{endif}} - {{if 'cudaHostGetDevicePointer' in found_functions}} - - cudaError_t cudaHostGetDevicePointer(void** pDevice, void* pHost, unsigned int flags) nogil - - {{endif}} - {{if 'cudaHostGetFlags' in found_functions}} - - cudaError_t cudaHostGetFlags(unsigned int* pFlags, void* pHost) nogil - - {{endif}} - {{if 'cudaMalloc3D' in found_functions}} - - cudaError_t cudaMalloc3D(cudaPitchedPtr* pitchedDevPtr, cudaExtent extent) nogil - - {{endif}} - {{if 'cudaMalloc3DArray' in found_functions}} - - cudaError_t cudaMalloc3DArray(cudaArray_t* array, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMallocMipmappedArray' in found_functions}} - - cudaError_t cudaMallocMipmappedArray(cudaMipmappedArray_t* mipmappedArray, const cudaChannelFormatDesc* desc, cudaExtent extent, unsigned int numLevels, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGetMipmappedArrayLevel' in found_functions}} - - cudaError_t cudaGetMipmappedArrayLevel(cudaArray_t* levelArray, cudaMipmappedArray_const_t mipmappedArray, unsigned int level) nogil - - {{endif}} - {{if 'cudaMemcpy3D' in found_functions}} - - cudaError_t cudaMemcpy3D(const cudaMemcpy3DParms* p) nogil - - {{endif}} - {{if 'cudaMemcpy3DPeer' in found_functions}} - - cudaError_t cudaMemcpy3DPeer(const cudaMemcpy3DPeerParms* p) nogil - - {{endif}} - {{if 'cudaMemcpy3DAsync' in found_functions}} - - cudaError_t cudaMemcpy3DAsync(const cudaMemcpy3DParms* p, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy3DPeerAsync' in found_functions}} - - cudaError_t cudaMemcpy3DPeerAsync(const cudaMemcpy3DPeerParms* p, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemGetInfo' in found_functions}} - - cudaError_t cudaMemGetInfo(size_t* free, size_t* total) nogil - - {{endif}} - {{if 'cudaArrayGetInfo' in found_functions}} - - cudaError_t cudaArrayGetInfo(cudaChannelFormatDesc* desc, cudaExtent* extent, unsigned int* flags, cudaArray_t array) nogil - - {{endif}} - {{if 'cudaArrayGetPlane' in found_functions}} - - cudaError_t cudaArrayGetPlane(cudaArray_t* pPlaneArray, cudaArray_t hArray, unsigned int planeIdx) nogil - - {{endif}} - {{if 'cudaArrayGetMemoryRequirements' in found_functions}} - - cudaError_t cudaArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaArray_t array, int device) nogil - - {{endif}} - {{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} - - cudaError_t cudaMipmappedArrayGetMemoryRequirements(cudaArrayMemoryRequirements* memoryRequirements, cudaMipmappedArray_t mipmap, int device) nogil - - {{endif}} - {{if 'cudaArrayGetSparseProperties' in found_functions}} - - cudaError_t cudaArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaArray_t array) nogil - - {{endif}} - {{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} - - cudaError_t cudaMipmappedArrayGetSparseProperties(cudaArraySparseProperties* sparseProperties, cudaMipmappedArray_t mipmap) nogil - - {{endif}} - {{if 'cudaMemcpy' in found_functions}} - - cudaError_t cudaMemcpy(void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyPeer' in found_functions}} - - cudaError_t cudaMemcpyPeer(void* dst, int dstDevice, const void* src, int srcDevice, size_t count) nogil - - {{endif}} - {{if 'cudaMemcpy2D' in found_functions}} - - cudaError_t cudaMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpy2DToArray' in found_functions}} - - cudaError_t cudaMemcpy2DToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpy2DFromArray' in found_functions}} - - cudaError_t cudaMemcpy2DFromArray(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpy2DArrayToArray' in found_functions}} - - cudaError_t cudaMemcpy2DArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyAsync' in found_functions}} - - cudaError_t cudaMemcpyAsync(void* dst, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpyPeerAsync' in found_functions}} - - cudaError_t cudaMemcpyPeerAsync(void* dst, int dstDevice, const void* src, int srcDevice, size_t count, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpyBatchAsync' in found_functions}} - - cudaError_t cudaMemcpyBatchAsync(const void** dsts, const void** srcs, const size_t* sizes, size_t count, cudaMemcpyAttributes* attrs, size_t* attrsIdxs, size_t numAttrs, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy3DBatchAsync' in found_functions}} - - cudaError_t cudaMemcpy3DBatchAsync(size_t numOps, cudaMemcpy3DBatchOp* opList, unsigned long long flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpyWithAttributesAsync' in found_functions}} - - cudaError_t cudaMemcpyWithAttributesAsync(void* dst, const void* src, size_t size, cudaMemcpyAttributes* attr, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} - - cudaError_t cudaMemcpy3DWithAttributesAsync(cudaMemcpy3DBatchOp* op, unsigned long long flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy2DAsync' in found_functions}} - - cudaError_t cudaMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy2DToArrayAsync' in found_functions}} - - cudaError_t cudaMemcpy2DToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t spitch, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} - - cudaError_t cudaMemcpy2DFromArrayAsync(void* dst, size_t dpitch, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemset' in found_functions}} - - cudaError_t cudaMemset(void* devPtr, int value, size_t count) nogil - - {{endif}} - {{if 'cudaMemset2D' in found_functions}} - - cudaError_t cudaMemset2D(void* devPtr, size_t pitch, int value, size_t width, size_t height) nogil - - {{endif}} - {{if 'cudaMemset3D' in found_functions}} - - cudaError_t cudaMemset3D(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent) nogil - - {{endif}} - {{if 'cudaMemsetAsync' in found_functions}} - - cudaError_t cudaMemsetAsync(void* devPtr, int value, size_t count, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemset2DAsync' in found_functions}} - - cudaError_t cudaMemset2DAsync(void* devPtr, size_t pitch, int value, size_t width, size_t height, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemset3DAsync' in found_functions}} - - cudaError_t cudaMemset3DAsync(cudaPitchedPtr pitchedDevPtr, int value, cudaExtent extent, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemPrefetchAsync' in found_functions}} - - cudaError_t cudaMemPrefetchAsync(const void* devPtr, size_t count, cudaMemLocation location, unsigned int flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemPrefetchBatchAsync' in found_functions}} - - cudaError_t cudaMemPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemDiscardBatchAsync' in found_functions}} - - cudaError_t cudaMemDiscardBatchAsync(void** dptrs, size_t* sizes, size_t count, unsigned long long flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemDiscardAndPrefetchBatchAsync' in found_functions}} - - cudaError_t cudaMemDiscardAndPrefetchBatchAsync(void** dptrs, size_t* sizes, size_t count, cudaMemLocation* prefetchLocs, size_t* prefetchLocIdxs, size_t numPrefetchLocs, unsigned long long flags, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemAdvise' in found_functions}} - - cudaError_t cudaMemAdvise(const void* devPtr, size_t count, cudaMemoryAdvise advice, cudaMemLocation location) nogil - - {{endif}} - {{if 'cudaMemRangeGetAttribute' in found_functions}} - - cudaError_t cudaMemRangeGetAttribute(void* data, size_t dataSize, cudaMemRangeAttribute attribute, const void* devPtr, size_t count) nogil - - {{endif}} - {{if 'cudaMemRangeGetAttributes' in found_functions}} - - cudaError_t cudaMemRangeGetAttributes(void** data, size_t* dataSizes, cudaMemRangeAttribute* attributes, size_t numAttributes, const void* devPtr, size_t count) nogil - - {{endif}} - {{if 'cudaMemcpyToArray' in found_functions}} - - cudaError_t cudaMemcpyToArray(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyFromArray' in found_functions}} - - cudaError_t cudaMemcpyFromArray(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyArrayToArray' in found_functions}} - - cudaError_t cudaMemcpyArrayToArray(cudaArray_t dst, size_t wOffsetDst, size_t hOffsetDst, cudaArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaMemcpyToArrayAsync' in found_functions}} - - cudaError_t cudaMemcpyToArrayAsync(cudaArray_t dst, size_t wOffset, size_t hOffset, const void* src, size_t count, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemcpyFromArrayAsync' in found_functions}} - - cudaError_t cudaMemcpyFromArrayAsync(void* dst, cudaArray_const_t src, size_t wOffset, size_t hOffset, size_t count, cudaMemcpyKind kind, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMallocAsync' in found_functions}} - - cudaError_t cudaMallocAsync(void** devPtr, size_t size, cudaStream_t hStream) nogil - - {{endif}} - {{if 'cudaFreeAsync' in found_functions}} - - cudaError_t cudaFreeAsync(void* devPtr, cudaStream_t hStream) nogil - - {{endif}} - {{if 'cudaMemPoolTrimTo' in found_functions}} - - cudaError_t cudaMemPoolTrimTo(cudaMemPool_t memPool, size_t minBytesToKeep) nogil - - {{endif}} - {{if 'cudaMemPoolSetAttribute' in found_functions}} - - cudaError_t cudaMemPoolSetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) nogil - - {{endif}} - {{if 'cudaMemPoolGetAttribute' in found_functions}} - - cudaError_t cudaMemPoolGetAttribute(cudaMemPool_t memPool, cudaMemPoolAttr attr, void* value) nogil - - {{endif}} - {{if 'cudaMemPoolSetAccess' in found_functions}} - - cudaError_t cudaMemPoolSetAccess(cudaMemPool_t memPool, const cudaMemAccessDesc* descList, size_t count) nogil - - {{endif}} - {{if 'cudaMemPoolGetAccess' in found_functions}} - - cudaError_t cudaMemPoolGetAccess(cudaMemAccessFlags* flags, cudaMemPool_t memPool, cudaMemLocation* location) nogil - - {{endif}} - {{if 'cudaMemPoolCreate' in found_functions}} - - cudaError_t cudaMemPoolCreate(cudaMemPool_t* memPool, const cudaMemPoolProps* poolProps) nogil - - {{endif}} - {{if 'cudaMemPoolDestroy' in found_functions}} - - cudaError_t cudaMemPoolDestroy(cudaMemPool_t memPool) nogil - - {{endif}} - {{if 'cudaMemGetDefaultMemPool' in found_functions}} - - cudaError_t cudaMemGetDefaultMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) nogil - - {{endif}} - {{if 'cudaMemGetMemPool' in found_functions}} - - cudaError_t cudaMemGetMemPool(cudaMemPool_t* memPool, cudaMemLocation* location, cudaMemAllocationType typename) nogil - - {{endif}} - {{if 'cudaMemSetMemPool' in found_functions}} - - cudaError_t cudaMemSetMemPool(cudaMemLocation* location, cudaMemAllocationType typename, cudaMemPool_t memPool) nogil - - {{endif}} - {{if 'cudaMallocFromPoolAsync' in found_functions}} - - cudaError_t cudaMallocFromPoolAsync(void** ptr, size_t size, cudaMemPool_t memPool, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaMemPoolExportToShareableHandle' in found_functions}} - - cudaError_t cudaMemPoolExportToShareableHandle(void* shareableHandle, cudaMemPool_t memPool, cudaMemAllocationHandleType handleType, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} - - cudaError_t cudaMemPoolImportFromShareableHandle(cudaMemPool_t* memPool, void* shareableHandle, cudaMemAllocationHandleType handleType, unsigned int flags) nogil - - {{endif}} - {{if 'cudaMemPoolExportPointer' in found_functions}} - - cudaError_t cudaMemPoolExportPointer(cudaMemPoolPtrExportData* exportData, void* ptr) nogil - - {{endif}} - {{if 'cudaMemPoolImportPointer' in found_functions}} - - cudaError_t cudaMemPoolImportPointer(void** ptr, cudaMemPool_t memPool, cudaMemPoolPtrExportData* exportData) nogil - - {{endif}} - {{if 'cudaPointerGetAttributes' in found_functions}} - - cudaError_t cudaPointerGetAttributes(cudaPointerAttributes* attributes, const void* ptr) nogil - - {{endif}} - {{if 'cudaDeviceCanAccessPeer' in found_functions}} - - cudaError_t cudaDeviceCanAccessPeer(int* canAccessPeer, int device, int peerDevice) nogil - - {{endif}} - {{if 'cudaDeviceEnablePeerAccess' in found_functions}} - - cudaError_t cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags) nogil - - {{endif}} - {{if 'cudaDeviceDisablePeerAccess' in found_functions}} - - cudaError_t cudaDeviceDisablePeerAccess(int peerDevice) nogil - - {{endif}} - {{if 'cudaGraphicsUnregisterResource' in found_functions}} - - cudaError_t cudaGraphicsUnregisterResource(cudaGraphicsResource_t resource) nogil - - {{endif}} - {{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} - - cudaError_t cudaGraphicsResourceSetMapFlags(cudaGraphicsResource_t resource, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphicsMapResources' in found_functions}} - - cudaError_t cudaGraphicsMapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphicsUnmapResources' in found_functions}} - - cudaError_t cudaGraphicsUnmapResources(int count, cudaGraphicsResource_t* resources, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} - - cudaError_t cudaGraphicsResourceGetMappedPointer(void** devPtr, size_t* size, cudaGraphicsResource_t resource) nogil - - {{endif}} - {{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} - - cudaError_t cudaGraphicsSubResourceGetMappedArray(cudaArray_t* array, cudaGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel) nogil - - {{endif}} - {{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} - - cudaError_t cudaGraphicsResourceGetMappedMipmappedArray(cudaMipmappedArray_t* mipmappedArray, cudaGraphicsResource_t resource) nogil - - {{endif}} - {{if 'cudaGetChannelDesc' in found_functions}} - - cudaError_t cudaGetChannelDesc(cudaChannelFormatDesc* desc, cudaArray_const_t array) nogil - - {{endif}} - {{if 'cudaCreateChannelDesc' in found_functions}} - - cudaChannelFormatDesc cudaCreateChannelDesc(int x, int y, int z, int w, cudaChannelFormatKind f) nogil - - {{endif}} - {{if 'cudaCreateTextureObject' in found_functions}} - - cudaError_t cudaCreateTextureObject(cudaTextureObject_t* pTexObject, const cudaResourceDesc* pResDesc, const cudaTextureDesc* pTexDesc, const cudaResourceViewDesc* pResViewDesc) nogil - - {{endif}} - {{if 'cudaDestroyTextureObject' in found_functions}} - - cudaError_t cudaDestroyTextureObject(cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaGetTextureObjectResourceDesc' in found_functions}} - - cudaError_t cudaGetTextureObjectResourceDesc(cudaResourceDesc* pResDesc, cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaGetTextureObjectTextureDesc' in found_functions}} - - cudaError_t cudaGetTextureObjectTextureDesc(cudaTextureDesc* pTexDesc, cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} - - cudaError_t cudaGetTextureObjectResourceViewDesc(cudaResourceViewDesc* pResViewDesc, cudaTextureObject_t texObject) nogil - - {{endif}} - {{if 'cudaCreateSurfaceObject' in found_functions}} - - cudaError_t cudaCreateSurfaceObject(cudaSurfaceObject_t* pSurfObject, const cudaResourceDesc* pResDesc) nogil - - {{endif}} - {{if 'cudaDestroySurfaceObject' in found_functions}} - - cudaError_t cudaDestroySurfaceObject(cudaSurfaceObject_t surfObject) nogil - - {{endif}} - {{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} - - cudaError_t cudaGetSurfaceObjectResourceDesc(cudaResourceDesc* pResDesc, cudaSurfaceObject_t surfObject) nogil - - {{endif}} - {{if 'cudaDriverGetVersion' in found_functions}} - - cudaError_t cudaDriverGetVersion(int* driverVersion) nogil - - {{endif}} - {{if 'cudaRuntimeGetVersion' in found_functions}} - - cudaError_t cudaRuntimeGetVersion(int* runtimeVersion) nogil - - {{endif}} - {{if 'cudaLogsRegisterCallback' in found_functions}} - - cudaError_t cudaLogsRegisterCallback(cudaLogsCallback_t callbackFunc, void* userData, cudaLogsCallbackHandle* callback_out) nogil - - {{endif}} - {{if 'cudaLogsUnregisterCallback' in found_functions}} - - cudaError_t cudaLogsUnregisterCallback(cudaLogsCallbackHandle callback) nogil - - {{endif}} - {{if 'cudaLogsCurrent' in found_functions}} - - cudaError_t cudaLogsCurrent(cudaLogIterator* iterator_out, unsigned int flags) nogil - - {{endif}} - {{if 'cudaLogsDumpToFile' in found_functions}} - - cudaError_t cudaLogsDumpToFile(cudaLogIterator* iterator, const char* pathToFile, unsigned int flags) nogil - - {{endif}} - {{if 'cudaLogsDumpToMemory' in found_functions}} - - cudaError_t cudaLogsDumpToMemory(cudaLogIterator* iterator, char* buffer, size_t* size, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphCreate' in found_functions}} - - cudaError_t cudaGraphCreate(cudaGraph_t* pGraph, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphAddKernelNode' in found_functions}} - - cudaError_t cudaGraphAddKernelNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeGetParams' in found_functions}} - - cudaError_t cudaGraphKernelNodeGetParams(cudaGraphNode_t node, cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeSetParams' in found_functions}} - - cudaError_t cudaGraphKernelNodeSetParams(cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} - - cudaError_t cudaGraphKernelNodeCopyAttributes(cudaGraphNode_t hDst, cudaGraphNode_t hSrc) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} - - cudaError_t cudaGraphKernelNodeGetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, cudaKernelNodeAttrValue* value_out) nogil - - {{endif}} - {{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} - - cudaError_t cudaGraphKernelNodeSetAttribute(cudaGraphNode_t hNode, cudaKernelNodeAttrID attr, const cudaKernelNodeAttrValue* value) nogil - - {{endif}} - {{if 'cudaGraphAddMemcpyNode' in found_functions}} - - cudaError_t cudaGraphAddMemcpyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemcpy3DParms* pCopyParams) nogil - - {{endif}} - {{if 'cudaGraphAddMemcpyNode1D' in found_functions}} - - cudaError_t cudaGraphAddMemcpyNode1D(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemcpyNodeGetParams(cudaGraphNode_t node, cudaMemcpy3DParms* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} - - cudaError_t cudaGraphMemcpyNodeSetParams(cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} - - cudaError_t cudaGraphMemcpyNodeSetParams1D(cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaGraphAddMemsetNode' in found_functions}} - - cudaError_t cudaGraphAddMemsetNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaMemsetParams* pMemsetParams) nogil - - {{endif}} - {{if 'cudaGraphMemsetNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemsetNodeGetParams(cudaGraphNode_t node, cudaMemsetParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemsetNodeSetParams' in found_functions}} - - cudaError_t cudaGraphMemsetNodeSetParams(cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddHostNode' in found_functions}} - - cudaError_t cudaGraphAddHostNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphHostNodeGetParams' in found_functions}} - - cudaError_t cudaGraphHostNodeGetParams(cudaGraphNode_t node, cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphHostNodeSetParams' in found_functions}} - - cudaError_t cudaGraphHostNodeSetParams(cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddChildGraphNode' in found_functions}} - - cudaError_t cudaGraphAddChildGraphNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaGraph_t childGraph) nogil - - {{endif}} - {{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} - - cudaError_t cudaGraphChildGraphNodeGetGraph(cudaGraphNode_t node, cudaGraph_t* pGraph) nogil - - {{endif}} - {{if 'cudaGraphAddEmptyNode' in found_functions}} - - cudaError_t cudaGraphAddEmptyNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphAddEventRecordNode' in found_functions}} - - cudaError_t cudaGraphAddEventRecordNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} - - cudaError_t cudaGraphEventRecordNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) nogil - - {{endif}} - {{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphEventRecordNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphAddEventWaitNode' in found_functions}} - - cudaError_t cudaGraphAddEventWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} - - cudaError_t cudaGraphEventWaitNodeGetEvent(cudaGraphNode_t node, cudaEvent_t* event_out) nogil - - {{endif}} - {{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphEventWaitNodeSetEvent(cudaGraphNode_t node, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphAddExternalSemaphoresSignalNode' in found_functions}} - - cudaError_t cudaGraphAddExternalSemaphoresSignalNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreSignalNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresSignalNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreSignalNodeParams* params_out) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresSignalNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddExternalSemaphoresWaitNode' in found_functions}} - - cudaError_t cudaGraphAddExternalSemaphoresWaitNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, const cudaExternalSemaphoreWaitNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresWaitNodeGetParams(cudaGraphNode_t hNode, cudaExternalSemaphoreWaitNodeParams* params_out) nogil - - {{endif}} - {{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExternalSemaphoresWaitNodeSetParams(cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphAddMemAllocNode' in found_functions}} - - cudaError_t cudaGraphAddMemAllocNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, cudaMemAllocNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemAllocNodeGetParams(cudaGraphNode_t node, cudaMemAllocNodeParams* params_out) nogil - - {{endif}} - {{if 'cudaGraphAddMemFreeNode' in found_functions}} - - cudaError_t cudaGraphAddMemFreeNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, size_t numDependencies, void* dptr) nogil - - {{endif}} - {{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} - - cudaError_t cudaGraphMemFreeNodeGetParams(cudaGraphNode_t node, void* dptr_out) nogil - - {{endif}} - {{if 'cudaDeviceGraphMemTrim' in found_functions}} - - cudaError_t cudaDeviceGraphMemTrim(int device) nogil - - {{endif}} - {{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} - - cudaError_t cudaDeviceGetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) nogil - - {{endif}} - {{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} - - cudaError_t cudaDeviceSetGraphMemAttribute(int device, cudaGraphMemAttributeType attr, void* value) nogil - - {{endif}} - {{if 'cudaGraphClone' in found_functions}} - - cudaError_t cudaGraphClone(cudaGraph_t* pGraphClone, cudaGraph_t originalGraph) nogil - - {{endif}} - {{if 'cudaGraphNodeFindInClone' in found_functions}} - - cudaError_t cudaGraphNodeFindInClone(cudaGraphNode_t* pNode, cudaGraphNode_t originalNode, cudaGraph_t clonedGraph) nogil - - {{endif}} - {{if 'cudaGraphNodeGetType' in found_functions}} - - cudaError_t cudaGraphNodeGetType(cudaGraphNode_t node, cudaGraphNodeType* pType) nogil - - {{endif}} - {{if 'cudaGraphNodeGetContainingGraph' in found_functions}} - - cudaError_t cudaGraphNodeGetContainingGraph(cudaGraphNode_t hNode, cudaGraph_t* phGraph) nogil - - {{endif}} - {{if 'cudaGraphNodeGetLocalId' in found_functions}} - - cudaError_t cudaGraphNodeGetLocalId(cudaGraphNode_t hNode, unsigned int* nodeId) nogil - - {{endif}} - {{if 'cudaGraphNodeGetToolsId' in found_functions}} - - cudaError_t cudaGraphNodeGetToolsId(cudaGraphNode_t hNode, unsigned long long* toolsNodeId) nogil - - {{endif}} - {{if 'cudaGraphGetId' in found_functions}} - - cudaError_t cudaGraphGetId(cudaGraph_t hGraph, unsigned int* graphID) nogil - - {{endif}} - {{if 'cudaGraphExecGetId' in found_functions}} - - cudaError_t cudaGraphExecGetId(cudaGraphExec_t hGraphExec, unsigned int* graphID) nogil - - {{endif}} - {{if 'cudaGraphGetNodes' in found_functions}} - - cudaError_t cudaGraphGetNodes(cudaGraph_t graph, cudaGraphNode_t* nodes, size_t* numNodes) nogil - - {{endif}} - {{if 'cudaGraphGetRootNodes' in found_functions}} - - cudaError_t cudaGraphGetRootNodes(cudaGraph_t graph, cudaGraphNode_t* pRootNodes, size_t* pNumRootNodes) nogil - - {{endif}} - {{if 'cudaGraphGetEdges' in found_functions}} - - cudaError_t cudaGraphGetEdges(cudaGraph_t graph, cudaGraphNode_t* from_, cudaGraphNode_t* to, cudaGraphEdgeData* edgeData, size_t* numEdges) nogil - - {{endif}} - {{if 'cudaGraphNodeGetDependencies' in found_functions}} - - cudaError_t cudaGraphNodeGetDependencies(cudaGraphNode_t node, cudaGraphNode_t* pDependencies, cudaGraphEdgeData* edgeData, size_t* pNumDependencies) nogil - - {{endif}} - {{if 'cudaGraphNodeGetDependentNodes' in found_functions}} - - cudaError_t cudaGraphNodeGetDependentNodes(cudaGraphNode_t node, cudaGraphNode_t* pDependentNodes, cudaGraphEdgeData* edgeData, size_t* pNumDependentNodes) nogil - - {{endif}} - {{if 'cudaGraphAddDependencies' in found_functions}} - - cudaError_t cudaGraphAddDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphRemoveDependencies' in found_functions}} - - cudaError_t cudaGraphRemoveDependencies(cudaGraph_t graph, const cudaGraphNode_t* from_, const cudaGraphNode_t* to, const cudaGraphEdgeData* edgeData, size_t numDependencies) nogil - - {{endif}} - {{if 'cudaGraphDestroyNode' in found_functions}} - - cudaError_t cudaGraphDestroyNode(cudaGraphNode_t node) nogil - - {{endif}} - {{if 'cudaGraphInstantiate' in found_functions}} - - cudaError_t cudaGraphInstantiate(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) nogil - - {{endif}} - {{if 'cudaGraphInstantiateWithFlags' in found_functions}} - - cudaError_t cudaGraphInstantiateWithFlags(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, unsigned long long flags) nogil - - {{endif}} - {{if 'cudaGraphInstantiateWithParams' in found_functions}} - - cudaError_t cudaGraphInstantiateWithParams(cudaGraphExec_t* pGraphExec, cudaGraph_t graph, cudaGraphInstantiateParams* instantiateParams) nogil - - {{endif}} - {{if 'cudaGraphExecGetFlags' in found_functions}} - - cudaError_t cudaGraphExecGetFlags(cudaGraphExec_t graphExec, unsigned long long* flags) nogil - - {{endif}} - {{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecKernelNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaKernelNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecMemcpyNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemcpy3DParms* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} - - cudaError_t cudaGraphExecMemcpyNodeSetParams1D(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, void* dst, const void* src, size_t count, cudaMemcpyKind kind) nogil - - {{endif}} - {{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecMemsetNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaMemsetParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecHostNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecHostNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, const cudaHostNodeParams* pNodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecChildGraphNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t node, cudaGraph_t childGraph) nogil - - {{endif}} - {{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphExecEventRecordNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} - - cudaError_t cudaGraphExecEventWaitNodeSetEvent(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecExternalSemaphoresSignalNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreSignalNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecExternalSemaphoresWaitNodeSetParams(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, const cudaExternalSemaphoreWaitNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphNodeSetEnabled' in found_functions}} - - cudaError_t cudaGraphNodeSetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int isEnabled) nogil - - {{endif}} - {{if 'cudaGraphNodeGetEnabled' in found_functions}} - - cudaError_t cudaGraphNodeGetEnabled(cudaGraphExec_t hGraphExec, cudaGraphNode_t hNode, unsigned int* isEnabled) nogil - - {{endif}} - {{if 'cudaGraphExecUpdate' in found_functions}} - - cudaError_t cudaGraphExecUpdate(cudaGraphExec_t hGraphExec, cudaGraph_t hGraph, cudaGraphExecUpdateResultInfo* resultInfo) nogil - - {{endif}} - {{if 'cudaGraphUpload' in found_functions}} - - cudaError_t cudaGraphUpload(cudaGraphExec_t graphExec, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphLaunch' in found_functions}} - - cudaError_t cudaGraphLaunch(cudaGraphExec_t graphExec, cudaStream_t stream) nogil - - {{endif}} - {{if 'cudaGraphExecDestroy' in found_functions}} - - cudaError_t cudaGraphExecDestroy(cudaGraphExec_t graphExec) nogil - - {{endif}} - {{if 'cudaGraphDestroy' in found_functions}} - - cudaError_t cudaGraphDestroy(cudaGraph_t graph) nogil - - {{endif}} - {{if 'cudaGraphDebugDotPrint' in found_functions}} - - cudaError_t cudaGraphDebugDotPrint(cudaGraph_t graph, const char* path, unsigned int flags) nogil - - {{endif}} - {{if 'cudaUserObjectCreate' in found_functions}} - - cudaError_t cudaUserObjectCreate(cudaUserObject_t* object_out, void* ptr, cudaHostFn_t destroy, unsigned int initialRefcount, unsigned int flags) nogil - - {{endif}} - {{if 'cudaUserObjectRetain' in found_functions}} - - cudaError_t cudaUserObjectRetain(cudaUserObject_t object, unsigned int count) nogil - - {{endif}} - {{if 'cudaUserObjectRelease' in found_functions}} - - cudaError_t cudaUserObjectRelease(cudaUserObject_t object, unsigned int count) nogil - - {{endif}} - {{if 'cudaGraphRetainUserObject' in found_functions}} - - cudaError_t cudaGraphRetainUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphReleaseUserObject' in found_functions}} - - cudaError_t cudaGraphReleaseUserObject(cudaGraph_t graph, cudaUserObject_t object, unsigned int count) nogil - - {{endif}} - {{if 'cudaGraphAddNode' in found_functions}} - - cudaError_t cudaGraphAddNode(cudaGraphNode_t* pGraphNode, cudaGraph_t graph, const cudaGraphNode_t* pDependencies, const cudaGraphEdgeData* dependencyData, size_t numDependencies, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphNodeSetParams' in found_functions}} - - cudaError_t cudaGraphNodeSetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphNodeGetParams' in found_functions}} - - cudaError_t cudaGraphNodeGetParams(cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphExecNodeSetParams' in found_functions}} - - cudaError_t cudaGraphExecNodeSetParams(cudaGraphExec_t graphExec, cudaGraphNode_t node, cudaGraphNodeParams* nodeParams) nogil - - {{endif}} - {{if 'cudaGraphConditionalHandleCreate' in found_functions}} - - cudaError_t cudaGraphConditionalHandleCreate(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, unsigned int defaultLaunchValue, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} - - cudaError_t cudaGraphConditionalHandleCreate_v2(cudaGraphConditionalHandle* pHandle_out, cudaGraph_t graph, cudaExecutionContext_t ctx, unsigned int defaultLaunchValue, unsigned int flags) nogil - - {{endif}} - {{if 'cudaGetDriverEntryPoint' in found_functions}} - - cudaError_t cudaGetDriverEntryPoint(const char* symbol, void** funcPtr, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) nogil - - {{endif}} - {{if 'cudaGetDriverEntryPointByVersion' in found_functions}} - - cudaError_t cudaGetDriverEntryPointByVersion(const char* symbol, void** funcPtr, unsigned int cudaVersion, unsigned long long flags, cudaDriverEntryPointQueryResult* driverStatus) nogil - - {{endif}} - {{if 'cudaLibraryLoadData' in found_functions}} - - cudaError_t cudaLibraryLoadData(cudaLibrary_t* library, const void* code, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) nogil - - {{endif}} - {{if 'cudaLibraryLoadFromFile' in found_functions}} - - cudaError_t cudaLibraryLoadFromFile(cudaLibrary_t* library, const char* fileName, cudaJitOption* jitOptions, void** jitOptionsValues, unsigned int numJitOptions, cudaLibraryOption* libraryOptions, void** libraryOptionValues, unsigned int numLibraryOptions) nogil - - {{endif}} - {{if 'cudaLibraryUnload' in found_functions}} - - cudaError_t cudaLibraryUnload(cudaLibrary_t library) nogil - - {{endif}} - {{if 'cudaLibraryGetKernel' in found_functions}} - - cudaError_t cudaLibraryGetKernel(cudaKernel_t* pKernel, cudaLibrary_t library, const char* name) nogil - - {{endif}} - {{if 'cudaLibraryGetGlobal' in found_functions}} - - cudaError_t cudaLibraryGetGlobal(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) nogil - - {{endif}} - {{if 'cudaLibraryGetManaged' in found_functions}} - - cudaError_t cudaLibraryGetManaged(void** dptr, size_t* numbytes, cudaLibrary_t library, const char* name) nogil - - {{endif}} - {{if 'cudaLibraryGetUnifiedFunction' in found_functions}} - - cudaError_t cudaLibraryGetUnifiedFunction(void** fptr, cudaLibrary_t library, const char* symbol) nogil - - {{endif}} - {{if 'cudaLibraryGetKernelCount' in found_functions}} - - cudaError_t cudaLibraryGetKernelCount(unsigned int* count, cudaLibrary_t lib) nogil - - {{endif}} - {{if 'cudaLibraryEnumerateKernels' in found_functions}} - - cudaError_t cudaLibraryEnumerateKernels(cudaKernel_t* kernels, unsigned int numKernels, cudaLibrary_t lib) nogil - - {{endif}} - {{if 'cudaKernelSetAttributeForDevice' in found_functions}} - - cudaError_t cudaKernelSetAttributeForDevice(cudaKernel_t kernel, cudaFuncAttribute attr, int value, int device) nogil - - {{endif}} - {{if 'cudaDeviceGetDevResource' in found_functions}} - - cudaError_t cudaDeviceGetDevResource(int device, cudaDevResource* resource, cudaDevResourceType typename) nogil - - {{endif}} - {{if 'cudaDevSmResourceSplitByCount' in found_functions}} - - cudaError_t cudaDevSmResourceSplitByCount(cudaDevResource* result, unsigned int* nbGroups, const cudaDevResource* input, cudaDevResource* remaining, unsigned int flags, unsigned int minCount) nogil - - {{endif}} - {{if 'cudaDevSmResourceSplit' in found_functions}} - - cudaError_t cudaDevSmResourceSplit(cudaDevResource* result, unsigned int nbGroups, const cudaDevResource* input, cudaDevResource* remainder, unsigned int flags, cudaDevSmResourceGroupParams* groupParams) nogil - - {{endif}} - {{if 'cudaDevResourceGenerateDesc' in found_functions}} - - cudaError_t cudaDevResourceGenerateDesc(cudaDevResourceDesc_t* phDesc, cudaDevResource* resources, unsigned int nbResources) nogil - - {{endif}} - {{if 'cudaGreenCtxCreate' in found_functions}} - - cudaError_t cudaGreenCtxCreate(cudaExecutionContext_t* phCtx, cudaDevResourceDesc_t desc, int device, unsigned int flags) nogil - - {{endif}} - {{if 'cudaExecutionCtxDestroy' in found_functions}} - - cudaError_t cudaExecutionCtxDestroy(cudaExecutionContext_t ctx) nogil - - {{endif}} - {{if 'cudaExecutionCtxGetDevResource' in found_functions}} - - cudaError_t cudaExecutionCtxGetDevResource(cudaExecutionContext_t ctx, cudaDevResource* resource, cudaDevResourceType typename) nogil - - {{endif}} - {{if 'cudaExecutionCtxGetDevice' in found_functions}} - - cudaError_t cudaExecutionCtxGetDevice(int* device, cudaExecutionContext_t ctx) nogil - - {{endif}} - {{if 'cudaExecutionCtxGetId' in found_functions}} - - cudaError_t cudaExecutionCtxGetId(cudaExecutionContext_t ctx, unsigned long long* ctxId) nogil - - {{endif}} - {{if 'cudaExecutionCtxStreamCreate' in found_functions}} - - cudaError_t cudaExecutionCtxStreamCreate(cudaStream_t* phStream, cudaExecutionContext_t ctx, unsigned int flags, int priority) nogil - - {{endif}} - {{if 'cudaExecutionCtxSynchronize' in found_functions}} - - cudaError_t cudaExecutionCtxSynchronize(cudaExecutionContext_t ctx) nogil - - {{endif}} - {{if 'cudaStreamGetDevResource' in found_functions}} - - cudaError_t cudaStreamGetDevResource(cudaStream_t hStream, cudaDevResource* resource, cudaDevResourceType typename) nogil - - {{endif}} - {{if 'cudaExecutionCtxRecordEvent' in found_functions}} - - cudaError_t cudaExecutionCtxRecordEvent(cudaExecutionContext_t ctx, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaExecutionCtxWaitEvent' in found_functions}} - - cudaError_t cudaExecutionCtxWaitEvent(cudaExecutionContext_t ctx, cudaEvent_t event) nogil - - {{endif}} - {{if 'cudaDeviceGetExecutionCtx' in found_functions}} - - cudaError_t cudaDeviceGetExecutionCtx(cudaExecutionContext_t* ctx, int device) nogil - - {{endif}} - {{if 'cudaGetExportTable' in found_functions}} - - cudaError_t cudaGetExportTable(const void** ppExportTable, const cudaUUID_t* pExportTableId) nogil - - {{endif}} - {{if 'cudaGetKernel' in found_functions}} - - cudaError_t cudaGetKernel(cudaKernel_t* kernelPtr, const void* entryFuncAddr) nogil - - {{endif}} - -cdef extern from "cuda_runtime.h": - - {{if 'make_cudaPitchedPtr' in found_functions}} - - cudaPitchedPtr make_cudaPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) nogil - - {{endif}} - {{if 'make_cudaPos' in found_functions}} - - cudaPos make_cudaPos(size_t x, size_t y, size_t z) nogil - - {{endif}} - {{if 'make_cudaExtent' in found_functions}} - - cudaExtent make_cudaExtent(size_t w, size_t h, size_t d) nogil - - {{endif}} - -cdef extern from "cuda_profiler_api.h": - - {{if 'cudaProfilerStart' in found_functions}} - - cudaError_t cudaProfilerStart() nogil - - {{endif}} - {{if 'cudaProfilerStop' in found_functions}} - - cudaError_t cudaProfilerStop() nogil - - {{endif}} - diff --git a/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in b/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in deleted file mode 100644 index 34ea2c20e99..00000000000 --- a/cuda_bindings/cuda/bindings/cyruntime_types.pxi.in +++ /dev/null @@ -1,1777 +0,0 @@ -# SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. -# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE - -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. - -cdef extern from "vector_types.h": - - cdef struct dim3: - unsigned int x - unsigned int y - unsigned int z - -cdef extern from "driver_types.h": - - cdef enum cudaError: - cudaSuccess = 0 - cudaErrorInvalidValue = 1 - cudaErrorMemoryAllocation = 2 - cudaErrorInitializationError = 3 - cudaErrorCudartUnloading = 4 - cudaErrorProfilerDisabled = 5 - cudaErrorProfilerNotInitialized = 6 - cudaErrorProfilerAlreadyStarted = 7 - cudaErrorProfilerAlreadyStopped = 8 - cudaErrorInvalidConfiguration = 9 - cudaErrorVersionTranslation = 10 - cudaErrorInvalidPitchValue = 12 - cudaErrorInvalidSymbol = 13 - cudaErrorInvalidHostPointer = 16 - cudaErrorInvalidDevicePointer = 17 - cudaErrorInvalidTexture = 18 - cudaErrorInvalidTextureBinding = 19 - cudaErrorInvalidChannelDescriptor = 20 - cudaErrorInvalidMemcpyDirection = 21 - cudaErrorAddressOfConstant = 22 - cudaErrorTextureFetchFailed = 23 - cudaErrorTextureNotBound = 24 - cudaErrorSynchronizationError = 25 - cudaErrorInvalidFilterSetting = 26 - cudaErrorInvalidNormSetting = 27 - cudaErrorMixedDeviceExecution = 28 - cudaErrorNotYetImplemented = 31 - cudaErrorMemoryValueTooLarge = 32 - cudaErrorStubLibrary = 34 - cudaErrorInsufficientDriver = 35 - cudaErrorCallRequiresNewerDriver = 36 - cudaErrorInvalidSurface = 37 - cudaErrorDuplicateVariableName = 43 - cudaErrorDuplicateTextureName = 44 - cudaErrorDuplicateSurfaceName = 45 - cudaErrorDevicesUnavailable = 46 - cudaErrorIncompatibleDriverContext = 49 - cudaErrorMissingConfiguration = 52 - cudaErrorPriorLaunchFailure = 53 - cudaErrorLaunchMaxDepthExceeded = 65 - cudaErrorLaunchFileScopedTex = 66 - cudaErrorLaunchFileScopedSurf = 67 - cudaErrorSyncDepthExceeded = 68 - cudaErrorLaunchPendingCountExceeded = 69 - cudaErrorInvalidDeviceFunction = 98 - cudaErrorNoDevice = 100 - cudaErrorInvalidDevice = 101 - cudaErrorDeviceNotLicensed = 102 - cudaErrorSoftwareValidityNotEstablished = 103 - cudaErrorStartupFailure = 127 - cudaErrorInvalidKernelImage = 200 - cudaErrorDeviceUninitialized = 201 - cudaErrorMapBufferObjectFailed = 205 - cudaErrorUnmapBufferObjectFailed = 206 - cudaErrorArrayIsMapped = 207 - cudaErrorAlreadyMapped = 208 - cudaErrorNoKernelImageForDevice = 209 - cudaErrorAlreadyAcquired = 210 - cudaErrorNotMapped = 211 - cudaErrorNotMappedAsArray = 212 - cudaErrorNotMappedAsPointer = 213 - cudaErrorECCUncorrectable = 214 - cudaErrorUnsupportedLimit = 215 - cudaErrorDeviceAlreadyInUse = 216 - cudaErrorPeerAccessUnsupported = 217 - cudaErrorInvalidPtx = 218 - cudaErrorInvalidGraphicsContext = 219 - cudaErrorNvlinkUncorrectable = 220 - cudaErrorJitCompilerNotFound = 221 - cudaErrorUnsupportedPtxVersion = 222 - cudaErrorJitCompilationDisabled = 223 - cudaErrorUnsupportedExecAffinity = 224 - cudaErrorUnsupportedDevSideSync = 225 - cudaErrorContained = 226 - cudaErrorInvalidSource = 300 - cudaErrorFileNotFound = 301 - cudaErrorSharedObjectSymbolNotFound = 302 - cudaErrorSharedObjectInitFailed = 303 - cudaErrorOperatingSystem = 304 - cudaErrorInvalidResourceHandle = 400 - cudaErrorIllegalState = 401 - cudaErrorLossyQuery = 402 - cudaErrorSymbolNotFound = 500 - cudaErrorNotReady = 600 - cudaErrorIllegalAddress = 700 - cudaErrorLaunchOutOfResources = 701 - cudaErrorLaunchTimeout = 702 - cudaErrorLaunchIncompatibleTexturing = 703 - cudaErrorPeerAccessAlreadyEnabled = 704 - cudaErrorPeerAccessNotEnabled = 705 - cudaErrorSetOnActiveProcess = 708 - cudaErrorContextIsDestroyed = 709 - cudaErrorAssert = 710 - cudaErrorTooManyPeers = 711 - cudaErrorHostMemoryAlreadyRegistered = 712 - cudaErrorHostMemoryNotRegistered = 713 - cudaErrorHardwareStackError = 714 - cudaErrorIllegalInstruction = 715 - cudaErrorMisalignedAddress = 716 - cudaErrorInvalidAddressSpace = 717 - cudaErrorInvalidPc = 718 - cudaErrorLaunchFailure = 719 - cudaErrorCooperativeLaunchTooLarge = 720 - cudaErrorTensorMemoryLeak = 721 - cudaErrorNotPermitted = 800 - cudaErrorNotSupported = 801 - cudaErrorSystemNotReady = 802 - cudaErrorSystemDriverMismatch = 803 - cudaErrorCompatNotSupportedOnDevice = 804 - cudaErrorMpsConnectionFailed = 805 - cudaErrorMpsRpcFailure = 806 - cudaErrorMpsServerNotReady = 807 - cudaErrorMpsMaxClientsReached = 808 - cudaErrorMpsMaxConnectionsReached = 809 - cudaErrorMpsClientTerminated = 810 - cudaErrorCdpNotSupported = 811 - cudaErrorCdpVersionMismatch = 812 - cudaErrorStreamCaptureUnsupported = 900 - cudaErrorStreamCaptureInvalidated = 901 - cudaErrorStreamCaptureMerge = 902 - cudaErrorStreamCaptureUnmatched = 903 - cudaErrorStreamCaptureUnjoined = 904 - cudaErrorStreamCaptureIsolation = 905 - cudaErrorStreamCaptureImplicit = 906 - cudaErrorCapturedEvent = 907 - cudaErrorStreamCaptureWrongThread = 908 - cudaErrorTimeout = 909 - cudaErrorGraphExecUpdateFailure = 910 - cudaErrorExternalDevice = 911 - cudaErrorInvalidClusterSize = 912 - cudaErrorFunctionNotLoaded = 913 - cudaErrorInvalidResourceType = 914 - cudaErrorInvalidResourceConfiguration = 915 - cudaErrorStreamDetached = 917 - cudaErrorGraphRecaptureFailure = 918 - cudaErrorUnknown = 999 - cudaErrorApiFailureBase = 10000 - - ctypedef cudaError cudaError_t - - cdef struct CUdevResourceDesc_st: - pass - ctypedef CUdevResourceDesc_st* cudaDevResourceDesc_t - - cdef struct cudaExecutionContext_st: - pass - ctypedef cudaExecutionContext_st* cudaExecutionContext_t - - cdef struct cudaChannelFormatDesc: - int x - int y - int z - int w - cudaChannelFormatKind f - - cdef struct cudaArray: - pass - ctypedef cudaArray* cudaArray_t - - cdef struct cudaArray: - pass - ctypedef cudaArray* cudaArray_const_t - - cdef struct cudaMipmappedArray: - pass - ctypedef cudaMipmappedArray* cudaMipmappedArray_t - - cdef struct cudaMipmappedArray: - pass - ctypedef cudaMipmappedArray* cudaMipmappedArray_const_t - - cdef struct anon_struct0: - unsigned int width - unsigned int height - unsigned int depth - - cdef struct cudaArraySparseProperties: - anon_struct0 tileExtent - unsigned int miptailFirstLevel - unsigned long long miptailSize - unsigned int flags - unsigned int reserved[4] - - cdef struct cudaArrayMemoryRequirements: - size_t size - size_t alignment - unsigned int reserved[4] - - cdef struct cudaPitchedPtr: - void* ptr - size_t pitch - size_t xsize - size_t ysize - - cdef struct cudaExtent: - size_t width - size_t height - size_t depth - - cdef struct cudaPos: - size_t x - size_t y - size_t z - - cdef struct cudaMemcpy3DParms: - cudaArray_t srcArray - cudaPos srcPos - cudaPitchedPtr srcPtr - cudaArray_t dstArray - cudaPos dstPos - cudaPitchedPtr dstPtr - cudaExtent extent - cudaMemcpyKind kind - - cdef struct cudaMemcpyNodeParams: - int flags - int reserved - cudaExecutionContext_t ctx - cudaMemcpy3DParms copyParams - - cdef struct cudaMemcpy3DPeerParms: - cudaArray_t srcArray - cudaPos srcPos - cudaPitchedPtr srcPtr - int srcDevice - cudaArray_t dstArray - cudaPos dstPos - cudaPitchedPtr dstPtr - int dstDevice - cudaExtent extent - - cdef struct cudaMemsetParams: - void* dst - size_t pitch - unsigned int value - unsigned int elementSize - size_t width - size_t height - - cdef struct cudaMemsetParamsV2: - void* dst - size_t pitch - unsigned int value - unsigned int elementSize - size_t width - size_t height - cudaExecutionContext_t ctx - - cdef struct cudaAccessPolicyWindow: - void* base_ptr - size_t num_bytes - float hitRatio - cudaAccessProperty hitProp - cudaAccessProperty missProp - - ctypedef void (*cudaHostFn_t)(void* userData) - - cdef struct cudaHostNodeParams: - cudaHostFn_t fn - void* userData - - cdef struct cudaHostNodeParamsV2: - cudaHostFn_t fn - void* userData - unsigned int syncMode - - cdef struct anon_struct1: - cudaArray_t array - - cdef struct anon_struct2: - cudaMipmappedArray_t mipmap - - cdef struct anon_struct3: - void* devPtr - cudaChannelFormatDesc desc - size_t sizeInBytes - - cdef struct anon_struct4: - void* devPtr - cudaChannelFormatDesc desc - size_t width - size_t height - size_t pitchInBytes - - cdef struct anon_struct5: - int reserved[32] - - cdef union anon_union0: - anon_struct1 array - anon_struct2 mipmap - anon_struct3 linear - anon_struct4 pitch2D - anon_struct5 reserved - - cdef struct cudaResourceDesc: - cudaResourceType resType - anon_union0 res - unsigned int flags - - cdef struct cudaResourceViewDesc: - cudaResourceViewFormat format - size_t width - size_t height - size_t depth - unsigned int firstMipmapLevel - unsigned int lastMipmapLevel - unsigned int firstLayer - unsigned int lastLayer - unsigned int reserved[16] - - cdef enum cudaSharedMemoryMode: - cudaSharedMemoryModeDefault = 0 - cudaSharedMemoryModeRequirePortable = 1 - cudaSharedMemoryModeAllowNonPortable = 2 - - cdef struct cudaPointerAttributes: - cudaMemoryType type - int device - void* devicePointer - void* hostPointer - long reserved[8] - - cdef struct cudaFuncAttributes: - size_t sharedSizeBytes - size_t constSizeBytes - size_t localSizeBytes - int maxThreadsPerBlock - int numRegs - int ptxVersion - int binaryVersion - int cacheModeCA - int maxDynamicSharedSizeBytes - int preferredShmemCarveout - int clusterDimMustBeSet - int requiredClusterWidth - int requiredClusterHeight - int requiredClusterDepth - int clusterSchedulingPolicyPreference - int nonPortableClusterSizeAllowed - int deviceNodeUpdateStatus - int reserved1 - int reserved[14] - - cdef struct cudaMemLocation: - cudaMemLocationType type - int id - - cdef struct cudaMemAccessDesc: - cudaMemLocation location - cudaMemAccessFlags flags - - cdef struct cudaMemPoolProps: - cudaMemAllocationType allocType - cudaMemAllocationHandleType handleTypes - cudaMemLocation location - void* win32SecurityAttributes - size_t maxSize - unsigned short usage - unsigned char reserved[54] - - cdef struct cudaMemPoolPtrExportData: - unsigned char reserved[64] - - cdef struct cudaMemAllocNodeParams: - cudaMemPoolProps poolProps - const cudaMemAccessDesc* accessDescs - size_t accessDescCount - size_t bytesize - void* dptr - - cdef struct cudaMemAllocNodeParamsV2: - cudaMemPoolProps poolProps - const cudaMemAccessDesc* accessDescs - size_t accessDescCount - size_t bytesize - void* dptr - - cdef struct cudaMemFreeNodeParams: - void* dptr - - cdef struct cudaMemcpyAttributes: - cudaMemcpySrcAccessOrder srcAccessOrder - cudaMemLocation srcLocHint - cudaMemLocation dstLocHint - unsigned int flags - - cdef struct cudaOffset3D: - size_t x - size_t y - size_t z - - cdef struct anon_struct6: - void* ptr - size_t rowLength - size_t layerHeight - cudaMemLocation locHint - - cdef struct anon_struct7: - cudaArray_t array - cudaOffset3D offset - - cdef union anon_union2: - anon_struct6 ptr - anon_struct7 array - - cdef struct cudaMemcpy3DOperand: - cudaMemcpy3DOperandType type - anon_union2 op - - cdef struct cudaMemcpy3DBatchOp: - cudaMemcpy3DOperand src - cudaMemcpy3DOperand dst - cudaExtent extent - cudaMemcpySrcAccessOrder srcAccessOrder - unsigned int flags - - cdef struct CUuuid_st: - char bytes[16] - - ctypedef CUuuid_st CUuuid - - ctypedef CUuuid_st cudaUUID_t - - cdef struct cudaDeviceProp: - char name[256] - cudaUUID_t uuid - char luid[8] - unsigned int luidDeviceNodeMask - size_t totalGlobalMem - size_t sharedMemPerBlock - int regsPerBlock - int warpSize - size_t memPitch - int maxThreadsPerBlock - int maxThreadsDim[3] - int maxGridSize[3] - size_t totalConstMem - int major - int minor - size_t textureAlignment - size_t texturePitchAlignment - int multiProcessorCount - int integrated - int canMapHostMemory - int maxTexture1D - int maxTexture1DMipmap - int maxTexture2D[2] - int maxTexture2DMipmap[2] - int maxTexture2DLinear[3] - int maxTexture2DGather[2] - int maxTexture3D[3] - int maxTexture3DAlt[3] - int maxTextureCubemap - int maxTexture1DLayered[2] - int maxTexture2DLayered[3] - int maxTextureCubemapLayered[2] - int maxSurface1D - int maxSurface2D[2] - int maxSurface3D[3] - int maxSurface1DLayered[2] - int maxSurface2DLayered[3] - int maxSurfaceCubemap - int maxSurfaceCubemapLayered[2] - size_t surfaceAlignment - int concurrentKernels - int ECCEnabled - int pciBusID - int pciDeviceID - int pciDomainID - int tccDriver - int asyncEngineCount - int unifiedAddressing - int memoryBusWidth - int l2CacheSize - int persistingL2CacheMaxSize - int maxThreadsPerMultiProcessor - int streamPrioritiesSupported - int globalL1CacheSupported - int localL1CacheSupported - size_t sharedMemPerMultiprocessor - int regsPerMultiprocessor - int managedMemory - int isMultiGpuBoard - int multiGpuBoardGroupID - int hostNativeAtomicSupported - int pageableMemoryAccess - int concurrentManagedAccess - int computePreemptionSupported - int canUseHostPointerForRegisteredMem - int cooperativeLaunch - size_t sharedMemPerBlockOptin - int pageableMemoryAccessUsesHostPageTables - int directManagedMemAccessFromHost - int maxBlocksPerMultiProcessor - int accessPolicyMaxWindowSize - size_t reservedSharedMemPerBlock - int hostRegisterSupported - int sparseCudaArraySupported - int hostRegisterReadOnlySupported - int timelineSemaphoreInteropSupported - int memoryPoolsSupported - int gpuDirectRDMASupported - unsigned int gpuDirectRDMAFlushWritesOptions - int gpuDirectRDMAWritesOrdering - unsigned int memoryPoolSupportedHandleTypes - int deferredMappingCudaArraySupported - int ipcEventSupported - int clusterLaunch - int unifiedFunctionPointers - int deviceNumaConfig - int deviceNumaId - int mpsEnabled - int hostNumaId - unsigned int gpuPciDeviceID - unsigned int gpuPciSubsystemID - int hostNumaMultinodeIpcSupported - int reserved[56] - - cdef struct cudaIpcEventHandle_st: - char reserved[64] - - ctypedef cudaIpcEventHandle_st cudaIpcEventHandle_t - - cdef struct cudaIpcMemHandle_st: - char reserved[64] - - ctypedef cudaIpcMemHandle_st cudaIpcMemHandle_t - - cdef struct cudaMemFabricHandle_st: - char reserved[64] - - ctypedef cudaMemFabricHandle_st cudaMemFabricHandle_t - - cdef struct anon_struct8: - void* handle - const void* name - - cdef union anon_union3: - int fd - anon_struct8 win32 - const void* nvSciBufObject - - cdef struct cudaExternalMemoryHandleDesc: - cudaExternalMemoryHandleType type - anon_union3 handle - unsigned long long size - unsigned int flags - unsigned int reserved[16] - - cdef struct cudaExternalMemoryBufferDesc: - unsigned long long offset - unsigned long long size - unsigned int flags - unsigned int reserved[16] - - cdef struct cudaExternalMemoryMipmappedArrayDesc: - unsigned long long offset - cudaChannelFormatDesc formatDesc - cudaExtent extent - unsigned int flags - unsigned int numLevels - unsigned int reserved[16] - - cdef struct anon_struct9: - void* handle - const void* name - - cdef union anon_union4: - int fd - anon_struct9 win32 - const void* nvSciSyncObj - - cdef struct cudaExternalSemaphoreHandleDesc: - cudaExternalSemaphoreHandleType type - anon_union4 handle - unsigned int flags - unsigned int reserved[16] - - cdef struct anon_struct10: - unsigned long long value - - cdef union anon_union5: - void* fence - unsigned long long reserved - - cdef struct anon_struct11: - unsigned long long key - - cdef struct anon_struct12: - anon_struct10 fence - anon_union5 nvSciSync - anon_struct11 keyedMutex - unsigned int reserved[12] - - cdef struct cudaExternalSemaphoreSignalParams: - anon_struct12 params - unsigned int flags - unsigned int reserved[16] - - cdef struct anon_struct13: - unsigned long long value - - cdef union anon_union6: - void* fence - unsigned long long reserved - - cdef struct anon_struct14: - unsigned long long key - unsigned int timeoutMs - - cdef struct anon_struct15: - anon_struct13 fence - anon_union6 nvSciSync - anon_struct14 keyedMutex - unsigned int reserved[10] - - cdef struct cudaExternalSemaphoreWaitParams: - anon_struct15 params - unsigned int flags - unsigned int reserved[16] - - cdef struct cudaDevSmResource: - unsigned int smCount - unsigned int minSmPartitionSize - unsigned int smCoscheduledAlignment - unsigned int flags - - cdef struct cudaDevWorkqueueConfigResource: - int device - unsigned int wqConcurrencyLimit - cudaDevWorkqueueConfigScope sharingScope - - cdef struct cudaDevWorkqueueResource: - unsigned char reserved[40] - - cdef struct cudaDevSmResourceGroupParams_st: - unsigned int smCount - unsigned int coscheduledSmCount - unsigned int preferredCoscheduledSmCount - unsigned int flags - unsigned int reserved[12] - - ctypedef cudaDevSmResourceGroupParams_st cudaDevSmResourceGroupParams - - cdef struct cudaDevResource_st: - cudaDevResourceType type - unsigned char _internal_padding[92] - cudaDevSmResource sm - cudaDevWorkqueueConfigResource wqConfig - cudaDevWorkqueueResource wq - unsigned char _oversize[40] - cudaDevResource_st* nextResource - - ctypedef cudaDevResource_st cudaDevResource - - cdef struct CUstream_st: - pass - ctypedef CUstream_st* cudaStream_t - - cdef struct CUevent_st: - pass - ctypedef CUevent_st* cudaEvent_t - - cdef struct cudaGraphicsResource: - pass - ctypedef cudaGraphicsResource* cudaGraphicsResource_t - - cdef struct CUexternalMemory_st: - pass - ctypedef CUexternalMemory_st* cudaExternalMemory_t - - cdef struct CUexternalSemaphore_st: - pass - ctypedef CUexternalSemaphore_st* cudaExternalSemaphore_t - - cdef struct CUgraph_st: - pass - ctypedef CUgraph_st* cudaGraph_t - - cdef struct CUgraphNode_st: - pass - ctypedef CUgraphNode_st* cudaGraphNode_t - - cdef struct CUuserObject_st: - pass - ctypedef CUuserObject_st* cudaUserObject_t - - ctypedef unsigned long long cudaGraphConditionalHandle - - cdef struct CUfunc_st: - pass - ctypedef CUfunc_st* cudaFunction_t - - cdef struct CUkern_st: - pass - ctypedef CUkern_st* cudaKernel_t - - cdef struct cudalibraryHostUniversalFunctionAndDataTable: - void* functionTable - size_t functionWindowSize - void* dataTable - size_t dataWindowSize - - cdef struct CUlib_st: - pass - ctypedef CUlib_st* cudaLibrary_t - - cdef struct CUmemPoolHandle_st: - pass - ctypedef CUmemPoolHandle_st* cudaMemPool_t - - cdef struct cudaKernelNodeParams: - void* func - dim3 gridDim - dim3 blockDim - unsigned int sharedMemBytes - void** kernelParams - void** extra - - cdef struct cudaKernelNodeParamsV2: - void* func - cudaKernel_t kern - cudaFunction_t cuFunc - dim3 gridDim - dim3 blockDim - unsigned int sharedMemBytes - void** kernelParams - void** extra - cudaExecutionContext_t ctx - cudaKernelFunctionType functionType - - cdef struct cudaExternalSemaphoreSignalNodeParams: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreSignalParams* paramsArray - unsigned int numExtSems - - cdef struct cudaExternalSemaphoreSignalNodeParamsV2: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreSignalParams* paramsArray - unsigned int numExtSems - - cdef struct cudaExternalSemaphoreWaitNodeParams: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreWaitParams* paramsArray - unsigned int numExtSems - - cdef struct cudaExternalSemaphoreWaitNodeParamsV2: - cudaExternalSemaphore_t* extSemArray - const cudaExternalSemaphoreWaitParams* paramsArray - unsigned int numExtSems - - cdef struct cudaConditionalNodeParams: - cudaGraphConditionalHandle handle - cudaGraphConditionalNodeType type - unsigned int size - cudaGraph_t* phGraph_out - cudaExecutionContext_t ctx - - cdef struct cudaChildGraphNodeParams: - cudaGraph_t graph - cudaGraphChildGraphNodeOwnership ownership - - cdef struct cudaEventRecordNodeParams: - cudaEvent_t event - - cdef struct cudaEventWaitNodeParams: - cudaEvent_t event - - cdef struct cudaGraphNodeParams: - cudaGraphNodeType type - int reserved0[3] - long long reserved1[29] - cudaKernelNodeParamsV2 kernel - cudaMemcpyNodeParams memcpy - cudaMemsetParamsV2 memset - cudaHostNodeParamsV2 host - cudaChildGraphNodeParams graph - cudaEventWaitNodeParams eventWait - cudaEventRecordNodeParams eventRecord - cudaExternalSemaphoreSignalNodeParamsV2 extSemSignal - cudaExternalSemaphoreWaitNodeParamsV2 extSemWait - cudaMemAllocNodeParamsV2 alloc - cudaMemFreeNodeParams free - cudaConditionalNodeParams conditional - long long reserved2 - - cdef enum cudaGraphDependencyType_enum: - cudaGraphDependencyTypeDefault = 0 - cudaGraphDependencyTypeProgrammatic = 1 - - ctypedef cudaGraphDependencyType_enum cudaGraphDependencyType - - cdef struct cudaGraphEdgeData_st: - unsigned char from_port - unsigned char to_port - unsigned char type - unsigned char reserved[5] - - ctypedef cudaGraphEdgeData_st cudaGraphEdgeData - - cdef struct CUgraphExec_st: - pass - ctypedef CUgraphExec_st* cudaGraphExec_t - - cdef enum cudaGraphInstantiateResult: - cudaGraphInstantiateSuccess = 0 - cudaGraphInstantiateError = 1 - cudaGraphInstantiateInvalidStructure = 2 - cudaGraphInstantiateNodeOperationNotSupported = 3 - cudaGraphInstantiateMultipleDevicesNotSupported = 4 - cudaGraphInstantiateConditionalHandleUnused = 5 - - cdef struct cudaGraphInstantiateParams_st: - unsigned long long flags - cudaStream_t uploadStream - cudaGraphNode_t errNode_out - cudaGraphInstantiateResult result_out - - ctypedef cudaGraphInstantiateParams_st cudaGraphInstantiateParams - - cdef struct cudaGraphExecUpdateResultInfo_st: - cudaGraphExecUpdateResult result - cudaGraphNode_t errorNode - cudaGraphNode_t errorFromNode - - ctypedef cudaGraphExecUpdateResultInfo_st cudaGraphExecUpdateResultInfo - - cdef struct CUgraphDeviceUpdatableNode_st: - pass - ctypedef CUgraphDeviceUpdatableNode_st* cudaGraphDeviceNode_t - - cdef struct anon_struct16: - const void* pValue - size_t offset - size_t size - - cdef union anon_union10: - dim3 gridDim - anon_struct16 param - unsigned int isEnabled - - cdef struct cudaGraphKernelNodeUpdate: - cudaGraphDeviceNode_t node - cudaGraphKernelNodeField field - anon_union10 updateData - - cdef enum cudaLaunchMemSyncDomain: - cudaLaunchMemSyncDomainDefault = 0 - cudaLaunchMemSyncDomainRemote = 1 - - cdef struct cudaLaunchMemSyncDomainMap_st: - unsigned char default_ - unsigned char remote - - ctypedef cudaLaunchMemSyncDomainMap_st cudaLaunchMemSyncDomainMap - - cdef enum cudaLaunchAttributePortableClusterMode: - cudaLaunchPortableClusterModeDefault = 0 - cudaLaunchPortableClusterModeRequirePortable = 1 - cudaLaunchPortableClusterModeAllowNonPortable = 2 - - cdef enum cudaLaunchAttributeID: - cudaLaunchAttributeIgnore = 0 - cudaLaunchAttributeAccessPolicyWindow = 1 - cudaLaunchAttributeCooperative = 2 - cudaLaunchAttributeSynchronizationPolicy = 3 - cudaLaunchAttributeClusterDimension = 4 - cudaLaunchAttributeClusterSchedulingPolicyPreference = 5 - cudaLaunchAttributeProgrammaticStreamSerialization = 6 - cudaLaunchAttributeProgrammaticEvent = 7 - cudaLaunchAttributePriority = 8 - cudaLaunchAttributeMemSyncDomainMap = 9 - cudaLaunchAttributeMemSyncDomain = 10 - cudaLaunchAttributePreferredClusterDimension = 11 - cudaLaunchAttributeLaunchCompletionEvent = 12 - cudaLaunchAttributeDeviceUpdatableKernelNode = 13 - cudaLaunchAttributePreferredSharedMemoryCarveout = 14 - cudaLaunchAttributeNvlinkUtilCentricScheduling = 16 - cudaLaunchAttributePortableClusterSizeMode = 17 - cudaLaunchAttributeSharedMemoryMode = 18 - - cdef struct anon_struct17: - unsigned int x - unsigned int y - unsigned int z - - cdef struct anon_struct18: - cudaEvent_t event - int flags - int triggerAtBlockStart - - cdef struct anon_struct19: - unsigned int x - unsigned int y - unsigned int z - - cdef struct anon_struct20: - cudaEvent_t event - int flags - - cdef struct anon_struct21: - int deviceUpdatable - cudaGraphDeviceNode_t devNode - - cdef union cudaLaunchAttributeValue: - char pad[64] - cudaAccessPolicyWindow accessPolicyWindow - int cooperative - cudaSynchronizationPolicy syncPolicy - anon_struct17 clusterDim - cudaClusterSchedulingPolicy clusterSchedulingPolicyPreference - int programmaticStreamSerializationAllowed - anon_struct18 programmaticEvent - int priority - cudaLaunchMemSyncDomainMap memSyncDomainMap - cudaLaunchMemSyncDomain memSyncDomain - anon_struct19 preferredClusterDim - anon_struct20 launchCompletionEvent - anon_struct21 deviceUpdatableKernelNode - unsigned int sharedMemCarveout - unsigned int nvlinkUtilCentricScheduling - cudaLaunchAttributePortableClusterMode portableClusterSizeMode - cudaSharedMemoryMode sharedMemoryMode - - cdef struct cudaLaunchAttribute_st: - cudaLaunchAttributeID id - cudaLaunchAttributeValue val - - ctypedef cudaLaunchAttribute_st cudaLaunchAttribute - - cdef struct cudaAsyncCallbackEntry: - pass - ctypedef cudaAsyncCallbackEntry* cudaAsyncCallbackHandle_t - - cdef enum cudaAsyncNotificationType_enum: - cudaAsyncNotificationTypeOverBudget = 1 - - ctypedef cudaAsyncNotificationType_enum cudaAsyncNotificationType - - cdef struct anon_struct22: - unsigned long long bytesOverBudget - - cdef union anon_union11: - anon_struct22 overBudget - - cdef struct cudaAsyncNotificationInfo: - cudaAsyncNotificationType type - anon_union11 info - - ctypedef cudaAsyncNotificationInfo cudaAsyncNotificationInfo_t - - ctypedef void (*cudaAsyncCallback)(cudaAsyncNotificationInfo_t* , void* , cudaAsyncCallbackHandle_t ) - - cdef enum CUDAlogLevel_enum: - cudaLogLevelError = 0 - cudaLogLevelWarning = 1 - - ctypedef CUDAlogLevel_enum cudaLogLevel - - cdef struct CUlogsCallbackEntry_st: - pass - ctypedef CUlogsCallbackEntry_st* cudaLogsCallbackHandle - - ctypedef unsigned int cudaLogIterator - - cdef enum cudaChannelFormatKind: - cudaChannelFormatKindSigned = 0 - cudaChannelFormatKindUnsigned = 1 - cudaChannelFormatKindFloat = 2 - cudaChannelFormatKindNone = 3 - cudaChannelFormatKindNV12 = 4 - cudaChannelFormatKindUnsignedNormalized8X1 = 5 - cudaChannelFormatKindUnsignedNormalized8X2 = 6 - cudaChannelFormatKindUnsignedNormalized8X4 = 7 - cudaChannelFormatKindUnsignedNormalized16X1 = 8 - cudaChannelFormatKindUnsignedNormalized16X2 = 9 - cudaChannelFormatKindUnsignedNormalized16X4 = 10 - cudaChannelFormatKindSignedNormalized8X1 = 11 - cudaChannelFormatKindSignedNormalized8X2 = 12 - cudaChannelFormatKindSignedNormalized8X4 = 13 - cudaChannelFormatKindSignedNormalized16X1 = 14 - cudaChannelFormatKindSignedNormalized16X2 = 15 - cudaChannelFormatKindSignedNormalized16X4 = 16 - cudaChannelFormatKindUnsignedBlockCompressed1 = 17 - cudaChannelFormatKindUnsignedBlockCompressed1SRGB = 18 - cudaChannelFormatKindUnsignedBlockCompressed2 = 19 - cudaChannelFormatKindUnsignedBlockCompressed2SRGB = 20 - cudaChannelFormatKindUnsignedBlockCompressed3 = 21 - cudaChannelFormatKindUnsignedBlockCompressed3SRGB = 22 - cudaChannelFormatKindUnsignedBlockCompressed4 = 23 - cudaChannelFormatKindSignedBlockCompressed4 = 24 - cudaChannelFormatKindUnsignedBlockCompressed5 = 25 - cudaChannelFormatKindSignedBlockCompressed5 = 26 - cudaChannelFormatKindUnsignedBlockCompressed6H = 27 - cudaChannelFormatKindSignedBlockCompressed6H = 28 - cudaChannelFormatKindUnsignedBlockCompressed7 = 29 - cudaChannelFormatKindUnsignedBlockCompressed7SRGB = 30 - cudaChannelFormatKindUnsignedNormalized1010102 = 31 - cudaChannelFormatKindUnsigned8Packed422 = 32 - cudaChannelFormatKindUnsigned8Packed444 = 33 - cudaChannelFormatKindUnsigned8SemiPlanar420 = 34 - cudaChannelFormatKindUnsigned16SemiPlanar420 = 35 - cudaChannelFormatKindUnsigned8SemiPlanar422 = 36 - cudaChannelFormatKindUnsigned16SemiPlanar422 = 37 - cudaChannelFormatKindUnsigned8SemiPlanar444 = 38 - cudaChannelFormatKindUnsigned16SemiPlanar444 = 39 - cudaChannelFormatKindUnsigned8Planar420 = 40 - cudaChannelFormatKindUnsigned16Planar420 = 41 - cudaChannelFormatKindUnsigned8Planar422 = 42 - cudaChannelFormatKindUnsigned16Planar422 = 43 - cudaChannelFormatKindUnsigned8Planar444 = 44 - cudaChannelFormatKindUnsigned16Planar444 = 45 - - cdef enum cudaMemoryType: - cudaMemoryTypeUnregistered = 0 - cudaMemoryTypeHost = 1 - cudaMemoryTypeDevice = 2 - cudaMemoryTypeManaged = 3 - - cdef enum cudaMemcpyKind: - cudaMemcpyHostToHost = 0 - cudaMemcpyHostToDevice = 1 - cudaMemcpyDeviceToHost = 2 - cudaMemcpyDeviceToDevice = 3 - cudaMemcpyDefault = 4 - - cdef enum cudaAccessProperty: - cudaAccessPropertyNormal = 0 - cudaAccessPropertyStreaming = 1 - cudaAccessPropertyPersisting = 2 - - cdef enum cudaStreamCaptureStatus: - cudaStreamCaptureStatusNone = 0 - cudaStreamCaptureStatusActive = 1 - cudaStreamCaptureStatusInvalidated = 2 - - cdef enum cudaGraphRecaptureStatus: - cudaGraphRecaptureEligibleForUpdate = 0 - cudaGraphRecaptureIneligibleForUpdate = 1 - cudaGraphRecaptureError = 2 - - cdef enum cudaStreamCaptureMode: - cudaStreamCaptureModeGlobal = 0 - cudaStreamCaptureModeThreadLocal = 1 - cudaStreamCaptureModeRelaxed = 2 - - cdef enum cudaSynchronizationPolicy: - cudaSyncPolicyAuto = 1 - cudaSyncPolicySpin = 2 - cudaSyncPolicyYield = 3 - cudaSyncPolicyBlockingSync = 4 - - cdef enum cudaClusterSchedulingPolicy: - cudaClusterSchedulingPolicyDefault = 0 - cudaClusterSchedulingPolicySpread = 1 - cudaClusterSchedulingPolicyLoadBalancing = 2 - - cdef enum cudaStreamUpdateCaptureDependenciesFlags: - cudaStreamAddCaptureDependencies = 0 - cudaStreamSetCaptureDependencies = 1 - - cdef enum cudaUserObjectFlags: - cudaUserObjectNoDestructorSync = 1 - - cdef enum cudaUserObjectRetainFlags: - cudaGraphUserObjectMove = 1 - - cdef enum cudaHostTaskSyncMode: - cudaHostTaskBlocking = 0 - cudaHostTaskSpinWait = 1 - - cdef enum cudaGraphicsRegisterFlags: - cudaGraphicsRegisterFlagsNone = 0 - cudaGraphicsRegisterFlagsReadOnly = 1 - cudaGraphicsRegisterFlagsWriteDiscard = 2 - cudaGraphicsRegisterFlagsSurfaceLoadStore = 4 - cudaGraphicsRegisterFlagsTextureGather = 8 - - cdef enum cudaGraphicsMapFlags: - cudaGraphicsMapFlagsNone = 0 - cudaGraphicsMapFlagsReadOnly = 1 - cudaGraphicsMapFlagsWriteDiscard = 2 - - cdef enum cudaGraphicsCubeFace: - cudaGraphicsCubeFacePositiveX = 0 - cudaGraphicsCubeFaceNegativeX = 1 - cudaGraphicsCubeFacePositiveY = 2 - cudaGraphicsCubeFaceNegativeY = 3 - cudaGraphicsCubeFacePositiveZ = 4 - cudaGraphicsCubeFaceNegativeZ = 5 - - cdef enum cudaResourceType: - cudaResourceTypeArray = 0 - cudaResourceTypeMipmappedArray = 1 - cudaResourceTypeLinear = 2 - cudaResourceTypePitch2D = 3 - - cdef enum cudaResourceViewFormat: - cudaResViewFormatNone = 0 - cudaResViewFormatUnsignedChar1 = 1 - cudaResViewFormatUnsignedChar2 = 2 - cudaResViewFormatUnsignedChar4 = 3 - cudaResViewFormatSignedChar1 = 4 - cudaResViewFormatSignedChar2 = 5 - cudaResViewFormatSignedChar4 = 6 - cudaResViewFormatUnsignedShort1 = 7 - cudaResViewFormatUnsignedShort2 = 8 - cudaResViewFormatUnsignedShort4 = 9 - cudaResViewFormatSignedShort1 = 10 - cudaResViewFormatSignedShort2 = 11 - cudaResViewFormatSignedShort4 = 12 - cudaResViewFormatUnsignedInt1 = 13 - cudaResViewFormatUnsignedInt2 = 14 - cudaResViewFormatUnsignedInt4 = 15 - cudaResViewFormatSignedInt1 = 16 - cudaResViewFormatSignedInt2 = 17 - cudaResViewFormatSignedInt4 = 18 - cudaResViewFormatHalf1 = 19 - cudaResViewFormatHalf2 = 20 - cudaResViewFormatHalf4 = 21 - cudaResViewFormatFloat1 = 22 - cudaResViewFormatFloat2 = 23 - cudaResViewFormatFloat4 = 24 - cudaResViewFormatUnsignedBlockCompressed1 = 25 - cudaResViewFormatUnsignedBlockCompressed2 = 26 - cudaResViewFormatUnsignedBlockCompressed3 = 27 - cudaResViewFormatUnsignedBlockCompressed4 = 28 - cudaResViewFormatSignedBlockCompressed4 = 29 - cudaResViewFormatUnsignedBlockCompressed5 = 30 - cudaResViewFormatSignedBlockCompressed5 = 31 - cudaResViewFormatUnsignedBlockCompressed6H = 32 - cudaResViewFormatSignedBlockCompressed6H = 33 - cudaResViewFormatUnsignedBlockCompressed7 = 34 - - cdef enum cudaFuncAttribute: - cudaFuncAttributeMaxDynamicSharedMemorySize = 8 - cudaFuncAttributePreferredSharedMemoryCarveout = 9 - cudaFuncAttributeClusterDimMustBeSet = 10 - cudaFuncAttributeRequiredClusterWidth = 11 - cudaFuncAttributeRequiredClusterHeight = 12 - cudaFuncAttributeRequiredClusterDepth = 13 - cudaFuncAttributeNonPortableClusterSizeAllowed = 14 - cudaFuncAttributeClusterSchedulingPolicyPreference = 15 - cudaFuncAttributeMax = 16 - - cdef enum cudaFuncCache: - cudaFuncCachePreferNone = 0 - cudaFuncCachePreferShared = 1 - cudaFuncCachePreferL1 = 2 - cudaFuncCachePreferEqual = 3 - - cdef enum cudaSharedMemConfig: - cudaSharedMemBankSizeDefault = 0 - cudaSharedMemBankSizeFourByte = 1 - cudaSharedMemBankSizeEightByte = 2 - - cdef enum cudaSharedCarveout: - cudaSharedmemCarveoutDefault = -1 - cudaSharedmemCarveoutMaxL1 = 0 - cudaSharedmemCarveoutMaxShared = 100 - - cdef enum cudaComputeMode: - cudaComputeModeDefault = 0 - cudaComputeModeExclusive = 1 - cudaComputeModeProhibited = 2 - cudaComputeModeExclusiveProcess = 3 - - cdef enum cudaLimit: - cudaLimitStackSize = 0 - cudaLimitPrintfFifoSize = 1 - cudaLimitMallocHeapSize = 2 - cudaLimitDevRuntimeSyncDepth = 3 - cudaLimitDevRuntimePendingLaunchCount = 4 - cudaLimitMaxL2FetchGranularity = 5 - cudaLimitPersistingL2CacheSize = 6 - - cdef enum cudaMemoryAdvise: - cudaMemAdviseSetReadMostly = 1 - cudaMemAdviseUnsetReadMostly = 2 - cudaMemAdviseSetPreferredLocation = 3 - cudaMemAdviseUnsetPreferredLocation = 4 - cudaMemAdviseSetAccessedBy = 5 - cudaMemAdviseUnsetAccessedBy = 6 - - cdef enum cudaMemRangeAttribute: - cudaMemRangeAttributeReadMostly = 1 - cudaMemRangeAttributePreferredLocation = 2 - cudaMemRangeAttributeAccessedBy = 3 - cudaMemRangeAttributeLastPrefetchLocation = 4 - cudaMemRangeAttributePreferredLocationType = 5 - cudaMemRangeAttributePreferredLocationId = 6 - cudaMemRangeAttributeLastPrefetchLocationType = 7 - cudaMemRangeAttributeLastPrefetchLocationId = 8 - - cdef enum cudaFlushGPUDirectRDMAWritesOptions: - cudaFlushGPUDirectRDMAWritesOptionHost = 1 - cudaFlushGPUDirectRDMAWritesOptionMemOps = 2 - - cdef enum cudaGPUDirectRDMAWritesOrdering: - cudaGPUDirectRDMAWritesOrderingNone = 0 - cudaGPUDirectRDMAWritesOrderingOwner = 100 - cudaGPUDirectRDMAWritesOrderingAllDevices = 200 - - cdef enum cudaFlushGPUDirectRDMAWritesScope: - cudaFlushGPUDirectRDMAWritesToOwner = 100 - cudaFlushGPUDirectRDMAWritesToAllDevices = 200 - - cdef enum cudaFlushGPUDirectRDMAWritesTarget: - cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = 0 - - cdef enum cudaDeviceAttr: - cudaDevAttrMaxThreadsPerBlock = 1 - cudaDevAttrMaxBlockDimX = 2 - cudaDevAttrMaxBlockDimY = 3 - cudaDevAttrMaxBlockDimZ = 4 - cudaDevAttrMaxGridDimX = 5 - cudaDevAttrMaxGridDimY = 6 - cudaDevAttrMaxGridDimZ = 7 - cudaDevAttrMaxSharedMemoryPerBlock = 8 - cudaDevAttrTotalConstantMemory = 9 - cudaDevAttrWarpSize = 10 - cudaDevAttrMaxPitch = 11 - cudaDevAttrMaxRegistersPerBlock = 12 - cudaDevAttrClockRate = 13 - cudaDevAttrTextureAlignment = 14 - cudaDevAttrGpuOverlap = 15 - cudaDevAttrMultiProcessorCount = 16 - cudaDevAttrKernelExecTimeout = 17 - cudaDevAttrIntegrated = 18 - cudaDevAttrCanMapHostMemory = 19 - cudaDevAttrComputeMode = 20 - cudaDevAttrMaxTexture1DWidth = 21 - cudaDevAttrMaxTexture2DWidth = 22 - cudaDevAttrMaxTexture2DHeight = 23 - cudaDevAttrMaxTexture3DWidth = 24 - cudaDevAttrMaxTexture3DHeight = 25 - cudaDevAttrMaxTexture3DDepth = 26 - cudaDevAttrMaxTexture2DLayeredWidth = 27 - cudaDevAttrMaxTexture2DLayeredHeight = 28 - cudaDevAttrMaxTexture2DLayeredLayers = 29 - cudaDevAttrSurfaceAlignment = 30 - cudaDevAttrConcurrentKernels = 31 - cudaDevAttrEccEnabled = 32 - cudaDevAttrPciBusId = 33 - cudaDevAttrPciDeviceId = 34 - cudaDevAttrTccDriver = 35 - cudaDevAttrMemoryClockRate = 36 - cudaDevAttrGlobalMemoryBusWidth = 37 - cudaDevAttrL2CacheSize = 38 - cudaDevAttrMaxThreadsPerMultiProcessor = 39 - cudaDevAttrAsyncEngineCount = 40 - cudaDevAttrUnifiedAddressing = 41 - cudaDevAttrMaxTexture1DLayeredWidth = 42 - cudaDevAttrMaxTexture1DLayeredLayers = 43 - cudaDevAttrMaxTexture2DGatherWidth = 45 - cudaDevAttrMaxTexture2DGatherHeight = 46 - cudaDevAttrMaxTexture3DWidthAlt = 47 - cudaDevAttrMaxTexture3DHeightAlt = 48 - cudaDevAttrMaxTexture3DDepthAlt = 49 - cudaDevAttrPciDomainId = 50 - cudaDevAttrTexturePitchAlignment = 51 - cudaDevAttrMaxTextureCubemapWidth = 52 - cudaDevAttrMaxTextureCubemapLayeredWidth = 53 - cudaDevAttrMaxTextureCubemapLayeredLayers = 54 - cudaDevAttrMaxSurface1DWidth = 55 - cudaDevAttrMaxSurface2DWidth = 56 - cudaDevAttrMaxSurface2DHeight = 57 - cudaDevAttrMaxSurface3DWidth = 58 - cudaDevAttrMaxSurface3DHeight = 59 - cudaDevAttrMaxSurface3DDepth = 60 - cudaDevAttrMaxSurface1DLayeredWidth = 61 - cudaDevAttrMaxSurface1DLayeredLayers = 62 - cudaDevAttrMaxSurface2DLayeredWidth = 63 - cudaDevAttrMaxSurface2DLayeredHeight = 64 - cudaDevAttrMaxSurface2DLayeredLayers = 65 - cudaDevAttrMaxSurfaceCubemapWidth = 66 - cudaDevAttrMaxSurfaceCubemapLayeredWidth = 67 - cudaDevAttrMaxSurfaceCubemapLayeredLayers = 68 - cudaDevAttrMaxTexture1DLinearWidth = 69 - cudaDevAttrMaxTexture2DLinearWidth = 70 - cudaDevAttrMaxTexture2DLinearHeight = 71 - cudaDevAttrMaxTexture2DLinearPitch = 72 - cudaDevAttrMaxTexture2DMipmappedWidth = 73 - cudaDevAttrMaxTexture2DMipmappedHeight = 74 - cudaDevAttrComputeCapabilityMajor = 75 - cudaDevAttrComputeCapabilityMinor = 76 - cudaDevAttrMaxTexture1DMipmappedWidth = 77 - cudaDevAttrStreamPrioritiesSupported = 78 - cudaDevAttrGlobalL1CacheSupported = 79 - cudaDevAttrLocalL1CacheSupported = 80 - cudaDevAttrMaxSharedMemoryPerMultiprocessor = 81 - cudaDevAttrMaxRegistersPerMultiprocessor = 82 - cudaDevAttrManagedMemory = 83 - cudaDevAttrIsMultiGpuBoard = 84 - cudaDevAttrMultiGpuBoardGroupID = 85 - cudaDevAttrHostNativeAtomicSupported = 86 - cudaDevAttrSingleToDoublePrecisionPerfRatio = 87 - cudaDevAttrPageableMemoryAccess = 88 - cudaDevAttrConcurrentManagedAccess = 89 - cudaDevAttrComputePreemptionSupported = 90 - cudaDevAttrCanUseHostPointerForRegisteredMem = 91 - cudaDevAttrReserved92 = 92 - cudaDevAttrReserved93 = 93 - cudaDevAttrReserved94 = 94 - cudaDevAttrCooperativeLaunch = 95 - cudaDevAttrReserved96 = 96 - cudaDevAttrMaxSharedMemoryPerBlockOptin = 97 - cudaDevAttrCanFlushRemoteWrites = 98 - cudaDevAttrHostRegisterSupported = 99 - cudaDevAttrPageableMemoryAccessUsesHostPageTables = 100 - cudaDevAttrDirectManagedMemAccessFromHost = 101 - cudaDevAttrMaxBlocksPerMultiprocessor = 106 - cudaDevAttrMaxPersistingL2CacheSize = 108 - cudaDevAttrMaxAccessPolicyWindowSize = 109 - cudaDevAttrReservedSharedMemoryPerBlock = 111 - cudaDevAttrSparseCudaArraySupported = 112 - cudaDevAttrHostRegisterReadOnlySupported = 113 - cudaDevAttrTimelineSemaphoreInteropSupported = 114 - cudaDevAttrMemoryPoolsSupported = 115 - cudaDevAttrGPUDirectRDMASupported = 116 - cudaDevAttrGPUDirectRDMAFlushWritesOptions = 117 - cudaDevAttrGPUDirectRDMAWritesOrdering = 118 - cudaDevAttrMemoryPoolSupportedHandleTypes = 119 - cudaDevAttrClusterLaunch = 120 - cudaDevAttrDeferredMappingCudaArraySupported = 121 - cudaDevAttrReserved122 = 122 - cudaDevAttrReserved123 = 123 - cudaDevAttrReserved124 = 124 - cudaDevAttrIpcEventSupport = 125 - cudaDevAttrMemSyncDomainCount = 126 - cudaDevAttrReserved127 = 127 - cudaDevAttrReserved128 = 128 - cudaDevAttrReserved129 = 129 - cudaDevAttrNumaConfig = 130 - cudaDevAttrNumaId = 131 - cudaDevAttrReserved132 = 132 - cudaDevAttrMpsEnabled = 133 - cudaDevAttrHostNumaId = 134 - cudaDevAttrD3D12CigSupported = 135 - cudaDevAttrVulkanCigSupported = 138 - cudaDevAttrGpuPciDeviceId = 139 - cudaDevAttrGpuPciSubsystemId = 140 - cudaDevAttrReserved141 = 141 - cudaDevAttrHostNumaMemoryPoolsSupported = 142 - cudaDevAttrHostNumaMultinodeIpcSupported = 143 - cudaDevAttrHostMemoryPoolsSupported = 144 - cudaDevAttrReserved145 = 145 - cudaDevAttrOnlyPartialHostNativeAtomicSupported = 147 - cudaDevAttrAtomicReductionSupported = 148 - cudaDevAttrCigStreamsSupported = 151 - cudaDevAttrMax = 152 - - cdef enum cudaMemPoolAttr: - cudaMemPoolReuseFollowEventDependencies = 1 - cudaMemPoolReuseAllowOpportunistic = 2 - cudaMemPoolReuseAllowInternalDependencies = 3 - cudaMemPoolAttrReleaseThreshold = 4 - cudaMemPoolAttrReservedMemCurrent = 5 - cudaMemPoolAttrReservedMemHigh = 6 - cudaMemPoolAttrUsedMemCurrent = 7 - cudaMemPoolAttrUsedMemHigh = 8 - cudaMemPoolAttrAllocationType = 9 - cudaMemPoolAttrExportHandleTypes = 10 - cudaMemPoolAttrLocationId = 11 - cudaMemPoolAttrLocationType = 12 - cudaMemPoolAttrMaxPoolSize = 13 - cudaMemPoolAttrHwDecompressEnabled = 14 - - cdef enum cudaMemLocationType: - cudaMemLocationTypeInvalid = 0 - cudaMemLocationTypeNone = 0 - cudaMemLocationTypeDevice = 1 - cudaMemLocationTypeHost = 2 - cudaMemLocationTypeHostNuma = 3 - cudaMemLocationTypeHostNumaCurrent = 4 - cudaMemLocationTypeInvisible = 5 - - cdef enum cudaMemAccessFlags: - cudaMemAccessFlagsProtNone = 0 - cudaMemAccessFlagsProtRead = 1 - cudaMemAccessFlagsProtReadWrite = 3 - - cdef enum cudaMemAllocationType: - cudaMemAllocationTypeInvalid = 0 - cudaMemAllocationTypePinned = 1 - cudaMemAllocationTypeManaged = 2 - cudaMemAllocationTypeMax = 2147483647 - - cdef enum cudaMemAllocationHandleType: - cudaMemHandleTypeNone = 0 - cudaMemHandleTypePosixFileDescriptor = 1 - cudaMemHandleTypeWin32 = 2 - cudaMemHandleTypeWin32Kmt = 4 - cudaMemHandleTypeFabric = 8 - - cdef enum cudaGraphMemAttributeType: - cudaGraphMemAttrUsedMemCurrent = 0 - cudaGraphMemAttrUsedMemHigh = 1 - cudaGraphMemAttrReservedMemCurrent = 2 - cudaGraphMemAttrReservedMemHigh = 3 - - cdef enum cudaMemcpyFlags: - cudaMemcpyFlagDefault = 0 - cudaMemcpyFlagPreferOverlapWithCompute = 1 - - cdef enum cudaMemcpySrcAccessOrder: - cudaMemcpySrcAccessOrderInvalid = 0 - cudaMemcpySrcAccessOrderStream = 1 - cudaMemcpySrcAccessOrderDuringApiCall = 2 - cudaMemcpySrcAccessOrderAny = 3 - cudaMemcpySrcAccessOrderMax = 2147483647 - - cdef enum cudaMemcpy3DOperandType: - cudaMemcpyOperandTypePointer = 1 - cudaMemcpyOperandTypeArray = 2 - cudaMemcpyOperandTypeMax = 2147483647 - - cdef enum cudaDeviceP2PAttr: - cudaDevP2PAttrPerformanceRank = 1 - cudaDevP2PAttrAccessSupported = 2 - cudaDevP2PAttrNativeAtomicSupported = 3 - cudaDevP2PAttrCudaArrayAccessSupported = 4 - cudaDevP2PAttrOnlyPartialNativeAtomicSupported = 5 - - cdef enum cudaAtomicOperation: - cudaAtomicOperationIntegerAdd = 0 - cudaAtomicOperationIntegerMin = 1 - cudaAtomicOperationIntegerMax = 2 - cudaAtomicOperationIntegerIncrement = 3 - cudaAtomicOperationIntegerDecrement = 4 - cudaAtomicOperationAnd = 5 - cudaAtomicOperationOr = 6 - cudaAtomicOperationXOR = 7 - cudaAtomicOperationExchange = 8 - cudaAtomicOperationCAS = 9 - cudaAtomicOperationFloatAdd = 10 - cudaAtomicOperationFloatMin = 11 - cudaAtomicOperationFloatMax = 12 - - cdef enum cudaAtomicOperationCapability: - cudaAtomicCapabilitySigned = 1 - cudaAtomicCapabilityUnsigned = 2 - cudaAtomicCapabilityReduction = 4 - cudaAtomicCapabilityScalar32 = 8 - cudaAtomicCapabilityScalar64 = 16 - cudaAtomicCapabilityScalar128 = 32 - cudaAtomicCapabilityVector32x4 = 64 - - cdef enum cudaExternalMemoryHandleType: - cudaExternalMemoryHandleTypeOpaqueFd = 1 - cudaExternalMemoryHandleTypeOpaqueWin32 = 2 - cudaExternalMemoryHandleTypeOpaqueWin32Kmt = 3 - cudaExternalMemoryHandleTypeD3D12Heap = 4 - cudaExternalMemoryHandleTypeD3D12Resource = 5 - cudaExternalMemoryHandleTypeD3D11Resource = 6 - cudaExternalMemoryHandleTypeD3D11ResourceKmt = 7 - cudaExternalMemoryHandleTypeNvSciBuf = 8 - - cdef enum cudaExternalSemaphoreHandleType: - cudaExternalSemaphoreHandleTypeOpaqueFd = 1 - cudaExternalSemaphoreHandleTypeOpaqueWin32 = 2 - cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3 - cudaExternalSemaphoreHandleTypeD3D12Fence = 4 - cudaExternalSemaphoreHandleTypeD3D11Fence = 5 - cudaExternalSemaphoreHandleTypeNvSciSync = 6 - cudaExternalSemaphoreHandleTypeKeyedMutex = 7 - cudaExternalSemaphoreHandleTypeKeyedMutexKmt = 8 - cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = 9 - cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = 10 - - cdef enum cudaDevSmResourceGroup_flags: - cudaDevSmResourceGroupDefault = 0 - cudaDevSmResourceGroupBackfill = 1 - - cdef enum cudaDevSmResourceSplitByCount_flags: - cudaDevSmResourceSplitIgnoreSmCoscheduling = 1 - cudaDevSmResourceSplitMaxPotentialClusterSize = 2 - - cdef enum cudaDevResourceType: - cudaDevResourceTypeInvalid = 0 - cudaDevResourceTypeSm = 1 - cudaDevResourceTypeWorkqueueConfig = 1000 - cudaDevResourceTypeWorkqueue = 10000 - - cdef enum cudaDevWorkqueueConfigScope: - cudaDevWorkqueueConfigScopeDeviceCtx = 0 - cudaDevWorkqueueConfigScopeGreenCtxBalanced = 1 - - cdef enum cudaJitOption: - cudaJitMaxRegisters = 0 - cudaJitThreadsPerBlock = 1 - cudaJitWallTime = 2 - cudaJitInfoLogBuffer = 3 - cudaJitInfoLogBufferSizeBytes = 4 - cudaJitErrorLogBuffer = 5 - cudaJitErrorLogBufferSizeBytes = 6 - cudaJitOptimizationLevel = 7 - cudaJitFallbackStrategy = 10 - cudaJitGenerateDebugInfo = 11 - cudaJitLogVerbose = 12 - cudaJitGenerateLineInfo = 13 - cudaJitCacheMode = 14 - cudaJitPositionIndependentCode = 30 - cudaJitMinCtaPerSm = 31 - cudaJitMaxThreadsPerBlock = 32 - cudaJitOverrideDirectiveValues = 33 - - cdef enum cudaLibraryOption: - cudaLibraryHostUniversalFunctionAndDataTable = 0 - cudaLibraryBinaryIsPreserved = 1 - - cdef enum cudaJit_CacheMode: - cudaJitCacheOptionNone = 0 - cudaJitCacheOptionCG = 1 - cudaJitCacheOptionCA = 2 - - cdef enum cudaJit_Fallback: - cudaPreferPtx = 0 - cudaPreferBinary = 1 - - cdef enum cudaCGScope: - cudaCGScopeInvalid = 0 - cudaCGScopeGrid = 1 - cudaCGScopeReserved = 2 - - cdef enum cudaKernelFunctionType: - cudaKernelFunctionTypeUnspecified = 0 - cudaKernelFunctionTypeDeviceEntry = 1 - cudaKernelFunctionTypeKernel = 2 - cudaKernelFunctionTypeFunction = 3 - - cdef enum cudaGraphConditionalHandleFlags: - cudaGraphCondAssignDefault = 1 - - cdef enum cudaGraphConditionalNodeType: - cudaGraphCondTypeIf = 0 - cudaGraphCondTypeWhile = 1 - cudaGraphCondTypeSwitch = 2 - - cdef enum cudaGraphNodeType: - cudaGraphNodeTypeKernel = 0 - cudaGraphNodeTypeMemcpy = 1 - cudaGraphNodeTypeMemset = 2 - cudaGraphNodeTypeHost = 3 - cudaGraphNodeTypeGraph = 4 - cudaGraphNodeTypeEmpty = 5 - cudaGraphNodeTypeWaitEvent = 6 - cudaGraphNodeTypeEventRecord = 7 - cudaGraphNodeTypeExtSemaphoreSignal = 8 - cudaGraphNodeTypeExtSemaphoreWait = 9 - cudaGraphNodeTypeMemAlloc = 10 - cudaGraphNodeTypeMemFree = 11 - cudaGraphNodeTypeConditional = 13 - cudaGraphNodeTypeReserved16 = 16 - cudaGraphNodeTypeCount = 17 - - cdef enum cudaGraphChildGraphNodeOwnership: - cudaGraphChildGraphOwnershipInvalid = -1 - cudaGraphChildGraphOwnershipClone = 0 - cudaGraphChildGraphOwnershipMove = 1 - - cdef enum cudaGraphExecUpdateResult: - cudaGraphExecUpdateSuccess = 0 - cudaGraphExecUpdateError = 1 - cudaGraphExecUpdateErrorTopologyChanged = 2 - cudaGraphExecUpdateErrorNodeTypeChanged = 3 - cudaGraphExecUpdateErrorFunctionChanged = 4 - cudaGraphExecUpdateErrorParametersChanged = 5 - cudaGraphExecUpdateErrorNotSupported = 6 - cudaGraphExecUpdateErrorUnsupportedFunctionChange = 7 - cudaGraphExecUpdateErrorAttributesChanged = 8 - - cdef enum cudaGraphKernelNodeField: - cudaGraphKernelNodeFieldInvalid = 0 - cudaGraphKernelNodeFieldGridDim = 1 - cudaGraphKernelNodeFieldParam = 2 - cudaGraphKernelNodeFieldEnabled = 3 - - cdef enum cudaGetDriverEntryPointFlags: - cudaEnableDefault = 0 - cudaEnableLegacyStream = 1 - cudaEnablePerThreadDefaultStream = 2 - - cdef enum cudaDriverEntryPointQueryResult: - cudaDriverEntryPointSuccess = 0 - cudaDriverEntryPointSymbolNotFound = 1 - cudaDriverEntryPointVersionNotSufficent = 2 - - cdef enum cudaGraphDebugDotFlags: - cudaGraphDebugDotFlagsVerbose = 1 - cudaGraphDebugDotFlagsKernelNodeParams = 4 - cudaGraphDebugDotFlagsMemcpyNodeParams = 8 - cudaGraphDebugDotFlagsMemsetNodeParams = 16 - cudaGraphDebugDotFlagsHostNodeParams = 32 - cudaGraphDebugDotFlagsEventNodeParams = 64 - cudaGraphDebugDotFlagsExtSemasSignalNodeParams = 128 - cudaGraphDebugDotFlagsExtSemasWaitNodeParams = 256 - cudaGraphDebugDotFlagsKernelNodeAttributes = 512 - cudaGraphDebugDotFlagsHandles = 1024 - cudaGraphDebugDotFlagsConditionalNodeParams = 32768 - - cdef enum cudaGraphInstantiateFlags: - cudaGraphInstantiateFlagAutoFreeOnLaunch = 1 - cudaGraphInstantiateFlagUpload = 2 - cudaGraphInstantiateFlagDeviceLaunch = 4 - cudaGraphInstantiateFlagUseNodePriority = 8 - - cdef enum cudaDeviceNumaConfig: - cudaDeviceNumaConfigNone = 0 - cudaDeviceNumaConfigNumaNode = 1 - - cdef enum cudaFabricOpStatusSource: - cudaFabricOpStatusSourceMbarrierV1 = 0 - cudaFabricOpStatusSourceMax = 2147483647 - - cdef enum cudaFabricOpStatusInfo: - cudaFabricOpStatusInfoSuccess = 0 - cudaFabricOpStatusInfoLast = 0 - cudaFabricOpStatusInfoMax = 2147483647 - -cdef extern from "surface_types.h": - - ctypedef unsigned long long cudaSurfaceObject_t - - cdef enum cudaSurfaceBoundaryMode: - cudaBoundaryModeZero = 0 - cudaBoundaryModeClamp = 1 - cudaBoundaryModeTrap = 2 - - cdef enum cudaSurfaceFormatMode: - cudaFormatModeForced = 0 - cudaFormatModeAuto = 1 - -cdef extern from "texture_types.h": - - cdef struct cudaTextureDesc: - cudaTextureAddressMode addressMode[3] - cudaTextureFilterMode filterMode - cudaTextureReadMode readMode - int sRGB - float borderColor[4] - int normalizedCoords - unsigned int maxAnisotropy - cudaTextureFilterMode mipmapFilterMode - float mipmapLevelBias - float minMipmapLevelClamp - float maxMipmapLevelClamp - int disableTrilinearOptimization - int seamlessCubemap - - ctypedef unsigned long long cudaTextureObject_t - - cdef enum cudaTextureAddressMode: - cudaAddressModeWrap = 0 - cudaAddressModeClamp = 1 - cudaAddressModeMirror = 2 - cudaAddressModeBorder = 3 - - cdef enum cudaTextureFilterMode: - cudaFilterModePoint = 0 - cudaFilterModeLinear = 1 - - cdef enum cudaTextureReadMode: - cudaReadModeElementType = 0 - cudaReadModeNormalizedFloat = 1 - -cdef extern from "library_types.h": - - cdef enum cudaDataType_t: - CUDA_R_32F = 0 - CUDA_R_64F = 1 - CUDA_R_16F = 2 - CUDA_R_8I = 3 - CUDA_C_32F = 4 - CUDA_C_64F = 5 - CUDA_C_16F = 6 - CUDA_C_8I = 7 - CUDA_R_8U = 8 - CUDA_C_8U = 9 - CUDA_R_32I = 10 - CUDA_C_32I = 11 - CUDA_R_32U = 12 - CUDA_C_32U = 13 - CUDA_R_16BF = 14 - CUDA_C_16BF = 15 - CUDA_R_4I = 16 - CUDA_C_4I = 17 - CUDA_R_4U = 18 - CUDA_C_4U = 19 - CUDA_R_16I = 20 - CUDA_C_16I = 21 - CUDA_R_16U = 22 - CUDA_C_16U = 23 - CUDA_R_64I = 24 - CUDA_C_64I = 25 - CUDA_R_64U = 26 - CUDA_C_64U = 27 - CUDA_R_8F_E4M3 = 28 - CUDA_R_8F_UE4M3 = 28 - CUDA_R_8F_E5M2 = 29 - CUDA_R_8F_UE8M0 = 30 - CUDA_R_6F_E2M3 = 31 - CUDA_R_6F_E3M2 = 32 - CUDA_R_4F_E2M1 = 33 - - ctypedef cudaDataType_t cudaDataType - - cdef enum cudaEmulationStrategy_t: - CUDA_EMULATION_STRATEGY_DEFAULT = 0 - CUDA_EMULATION_STRATEGY_PERFORMANT = 1 - CUDA_EMULATION_STRATEGY_EAGER = 2 - - ctypedef cudaEmulationStrategy_t cudaEmulationStrategy - - cdef enum cudaEmulationMantissaControl_t: - CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = 0 - CUDA_EMULATION_MANTISSA_CONTROL_FIXED = 1 - - ctypedef cudaEmulationMantissaControl_t cudaEmulationMantissaControl - - cdef enum cudaEmulationSpecialValuesSupport_t: - CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = 0 - CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = 1 - CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = 2 - CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = 65535 - - ctypedef cudaEmulationSpecialValuesSupport_t cudaEmulationSpecialValuesSupport - - cdef enum libraryPropertyType_t: - MAJOR_VERSION = 0 - MINOR_VERSION = 1 - PATCH_LEVEL = 2 - - ctypedef libraryPropertyType_t libraryPropertyType - -cdef extern from "cuda_runtime_api.h": - - ctypedef void (*cudaStreamCallback_t)(cudaStream_t stream, cudaError_t status, void* userData) - - ctypedef cudaError_t (*cudaGraphRecaptureCallback_t)(void* data, cudaGraphNode_t node, const cudaGraphNodeParams* originalParams, const cudaGraphNodeParams* recaptureParams, cudaGraphRecaptureStatus status) - - cdef struct cudaGraphRecaptureCallbackData: - cudaGraphRecaptureCallback_t callbackFunc - void* userData - - ctypedef void (*cudaLogsCallback_t)(void* data, cudaLogLevel logLevel, char* message, size_t length) - -cdef extern from "device_types.h": - - cdef enum cudaRoundMode: - cudaRoundNearest = 0 - cudaRoundZero = 1 - cudaRoundPosInf = 2 - cudaRoundMinInf = 3 - -ctypedef cudaLaunchAttributeID cudaStreamAttrID - -ctypedef cudaLaunchAttributeID cudaKernelNodeAttrID - -ctypedef cudaLaunchAttributeValue cudaStreamAttrValue - -ctypedef cudaLaunchAttributeValue cudaKernelNodeAttrValue diff --git a/cuda_bindings/cuda/bindings/driver.pxd b/cuda_bindings/cuda/bindings/driver.pxd index 56fdc2bad7b..c9e37259f82 100644 --- a/cuda_bindings/cuda/bindings/driver.pxd +++ b/cuda_bindings/cuda/bindings/driver.pxd @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1622+g48467ab08.d20260421. Do not modify it directly. +# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260625. Do not modify it directly. cimport cuda.bindings.cydriver as cydriver include "_lib/utils.pxd" diff --git a/cuda_bindings/cuda/bindings/driver.pyx b/cuda_bindings/cuda/bindings/driver.pyx index 40dd67bcd96..26addbd96bb 100644 --- a/cuda_bindings/cuda/bindings/driver.pyx +++ b/cuda_bindings/cuda/bindings/driver.pyx @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1752+g89e531539. Do not modify it directly. +# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260625. Do not modify it directly. from typing import Any, Optional import cython import ctypes @@ -9940,7 +9940,7 @@ cdef class CUstreamMemOpWaitValueParams_st: return CUstreamBatchMemOpType(self._pvt_ptr[0].waitValue.operation) @operation.setter def operation(self, operation not None : CUstreamBatchMemOpType): - self._pvt_ptr[0].waitValue.operation = int(operation) + self._pvt_ptr[0].waitValue.operation = int(operation) @property @@ -10126,7 +10126,7 @@ cdef class CUstreamMemOpWriteValueParams_st: return CUstreamBatchMemOpType(self._pvt_ptr[0].writeValue.operation) @operation.setter def operation(self, operation not None : CUstreamBatchMemOpType): - self._pvt_ptr[0].writeValue.operation = int(operation) + self._pvt_ptr[0].writeValue.operation = int(operation) @property @@ -10260,7 +10260,7 @@ cdef class CUstreamMemOpFlushRemoteWritesParams_st: return CUstreamBatchMemOpType(self._pvt_ptr[0].flushRemoteWrites.operation) @operation.setter def operation(self, operation not None : CUstreamBatchMemOpType): - self._pvt_ptr[0].flushRemoteWrites.operation = int(operation) + self._pvt_ptr[0].flushRemoteWrites.operation = int(operation) @property @@ -10322,7 +10322,7 @@ cdef class CUstreamMemOpMemoryBarrierParams_st: return CUstreamBatchMemOpType(self._pvt_ptr[0].memoryBarrier.operation) @operation.setter def operation(self, operation not None : CUstreamBatchMemOpType): - self._pvt_ptr[0].memoryBarrier.operation = int(operation) + self._pvt_ptr[0].memoryBarrier.operation = int(operation) @property @@ -10443,7 +10443,7 @@ cdef class CUstreamMemOpAtomicReductionParams_st: return CUstreamBatchMemOpType(self._pvt_ptr[0].atomicReduction.operation) @operation.setter def operation(self, operation not None : CUstreamBatchMemOpType): - self._pvt_ptr[0].atomicReduction.operation = int(operation) + self._pvt_ptr[0].atomicReduction.operation = int(operation) @property @@ -10459,7 +10459,7 @@ cdef class CUstreamMemOpAtomicReductionParams_st: return CUstreamAtomicReductionOpType(self._pvt_ptr[0].atomicReduction.reductionOp) @reductionOp.setter def reductionOp(self, reductionOp not None : CUstreamAtomicReductionOpType): - self._pvt_ptr[0].atomicReduction.reductionOp = int(reductionOp) + self._pvt_ptr[0].atomicReduction.reductionOp = int(reductionOp) @property @@ -10467,7 +10467,7 @@ cdef class CUstreamMemOpAtomicReductionParams_st: return CUstreamAtomicReductionDataType(self._pvt_ptr[0].atomicReduction.dataType) @dataType.setter def dataType(self, dataType not None : CUstreamAtomicReductionDataType): - self._pvt_ptr[0].atomicReduction.dataType = int(dataType) + self._pvt_ptr[0].atomicReduction.dataType = int(dataType) @property @@ -10647,7 +10647,7 @@ cdef class CUstreamBatchMemOpParams_union: return CUstreamBatchMemOpType(self._pvt_ptr[0].operation) @operation.setter def operation(self, operation not None : CUstreamBatchMemOpType): - self._pvt_ptr[0].operation = int(operation) + self._pvt_ptr[0].operation = int(operation) @property @@ -11122,7 +11122,7 @@ cdef class CUasyncNotificationInfo_st: return CUasyncNotificationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUasyncNotificationType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -11465,7 +11465,7 @@ cdef class CUaccessPolicyWindow_st: return CUaccessProperty(self._pvt_ptr[0].hitProp) @hitProp.setter def hitProp(self, hitProp not None : CUaccessProperty): - self._pvt_ptr[0].hitProp = int(hitProp) + self._pvt_ptr[0].hitProp = int(hitProp) @property @@ -11473,7 +11473,7 @@ cdef class CUaccessPolicyWindow_st: return CUaccessProperty(self._pvt_ptr[0].missProp) @missProp.setter def missProp(self, missProp not None : CUaccessProperty): - self._pvt_ptr[0].missProp = int(missProp) + self._pvt_ptr[0].missProp = int(missProp) cdef class CUDA_KERNEL_NODE_PARAMS_st: @@ -12905,7 +12905,7 @@ cdef class CUDA_CONDITIONAL_NODE_PARAMS: return CUgraphConditionalNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUgraphConditionalNodeType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -13199,7 +13199,7 @@ cdef class CUDA_GRAPH_INSTANTIATE_PARAMS_st: return CUgraphInstantiateResult(self._pvt_ptr[0].result_out) @result_out.setter def result_out(self, result_out not None : CUgraphInstantiateResult): - self._pvt_ptr[0].result_out = int(result_out) + self._pvt_ptr[0].result_out = int(result_out) cdef class CUlaunchMemSyncDomainMap_st: @@ -13988,7 +13988,7 @@ cdef class CUlaunchAttributeValue_union: return CUsynchronizationPolicy(self._pvt_ptr[0].syncPolicy) @syncPolicy.setter def syncPolicy(self, syncPolicy not None : CUsynchronizationPolicy): - self._pvt_ptr[0].syncPolicy = int(syncPolicy) + self._pvt_ptr[0].syncPolicy = int(syncPolicy) @property @@ -14004,7 +14004,7 @@ cdef class CUlaunchAttributeValue_union: return CUclusterSchedulingPolicy(self._pvt_ptr[0].clusterSchedulingPolicyPreference) @clusterSchedulingPolicyPreference.setter def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : CUclusterSchedulingPolicy): - self._pvt_ptr[0].clusterSchedulingPolicyPreference = int(clusterSchedulingPolicyPreference) + self._pvt_ptr[0].clusterSchedulingPolicyPreference = int(clusterSchedulingPolicyPreference) @property @@ -14052,7 +14052,7 @@ cdef class CUlaunchAttributeValue_union: return CUlaunchMemSyncDomain(self._pvt_ptr[0].memSyncDomain) @memSyncDomain.setter def memSyncDomain(self, memSyncDomain not None : CUlaunchMemSyncDomain): - self._pvt_ptr[0].memSyncDomain = int(memSyncDomain) + self._pvt_ptr[0].memSyncDomain = int(memSyncDomain) @property @@ -14092,7 +14092,7 @@ cdef class CUlaunchAttributeValue_union: return CUlaunchAttributePortableClusterMode(self._pvt_ptr[0].portableClusterSizeMode) @portableClusterSizeMode.setter def portableClusterSizeMode(self, portableClusterSizeMode not None : CUlaunchAttributePortableClusterMode): - self._pvt_ptr[0].portableClusterSizeMode = int(portableClusterSizeMode) + self._pvt_ptr[0].portableClusterSizeMode = int(portableClusterSizeMode) @property @@ -14100,7 +14100,7 @@ cdef class CUlaunchAttributeValue_union: return CUsharedMemoryMode(self._pvt_ptr[0].sharedMemoryMode) @sharedMemoryMode.setter def sharedMemoryMode(self, sharedMemoryMode not None : CUsharedMemoryMode): - self._pvt_ptr[0].sharedMemoryMode = int(sharedMemoryMode) + self._pvt_ptr[0].sharedMemoryMode = int(sharedMemoryMode) cdef class CUlaunchAttribute_st: @@ -14161,7 +14161,7 @@ cdef class CUlaunchAttribute_st: return CUlaunchAttributeID(self._pvt_ptr[0].id) @id.setter def id(self, id not None : CUlaunchAttributeID): - self._pvt_ptr[0].id = int(id) + self._pvt_ptr[0].id = int(id) @property @@ -14570,7 +14570,7 @@ cdef class CUexecAffinityParam_st: return CUexecAffinityType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUexecAffinityType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -14637,7 +14637,7 @@ cdef class CUctxCigParam_st: return CUcigDataType(self._pvt_ptr[0].sharedDataType) @sharedDataType.setter def sharedDataType(self, sharedDataType not None : CUcigDataType): - self._pvt_ptr[0].sharedDataType = int(sharedDataType) + self._pvt_ptr[0].sharedDataType = int(sharedDataType) @property @@ -14838,7 +14838,7 @@ cdef class CUstreamCigParam_st: return CUstreamCigDataType(self._pvt_ptr[0].streamSharedDataType) @streamSharedDataType.setter def streamSharedDataType(self, streamSharedDataType not None : CUstreamCigDataType): - self._pvt_ptr[0].streamSharedDataType = int(streamSharedDataType) + self._pvt_ptr[0].streamSharedDataType = int(streamSharedDataType) @property @@ -15246,7 +15246,7 @@ cdef class CUDA_MEMCPY2D_st: return CUmemorytype(self._pvt_ptr[0].srcMemoryType) @srcMemoryType.setter def srcMemoryType(self, srcMemoryType not None : CUmemorytype): - self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) + self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) @property @@ -15322,7 +15322,7 @@ cdef class CUDA_MEMCPY2D_st: return CUmemorytype(self._pvt_ptr[0].dstMemoryType) @dstMemoryType.setter def dstMemoryType(self, dstMemoryType not None : CUmemorytype): - self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) + self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) @property @@ -15723,7 +15723,7 @@ cdef class CUDA_MEMCPY3D_st: return CUmemorytype(self._pvt_ptr[0].srcMemoryType) @srcMemoryType.setter def srcMemoryType(self, srcMemoryType not None : CUmemorytype): - self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) + self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) @property @@ -15832,7 +15832,7 @@ cdef class CUDA_MEMCPY3D_st: return CUmemorytype(self._pvt_ptr[0].dstMemoryType) @dstMemoryType.setter def dstMemoryType(self, dstMemoryType not None : CUmemorytype): - self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) + self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) @property @@ -16265,7 +16265,7 @@ cdef class CUDA_MEMCPY3D_PEER_st: return CUmemorytype(self._pvt_ptr[0].srcMemoryType) @srcMemoryType.setter def srcMemoryType(self, srcMemoryType not None : CUmemorytype): - self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) + self._pvt_ptr[0].srcMemoryType = int(srcMemoryType) @property @@ -16382,7 +16382,7 @@ cdef class CUDA_MEMCPY3D_PEER_st: return CUmemorytype(self._pvt_ptr[0].dstMemoryType) @dstMemoryType.setter def dstMemoryType(self, dstMemoryType not None : CUmemorytype): - self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) + self._pvt_ptr[0].dstMemoryType = int(dstMemoryType) @property @@ -16694,7 +16694,7 @@ cdef class CUDA_ARRAY_DESCRIPTOR_st: return CUarray_format(self._pvt_ptr[0].Format) @Format.setter def Format(self, Format not None : CUarray_format): - self._pvt_ptr[0].Format = int(Format) + self._pvt_ptr[0].Format = int(Format) @property @@ -16824,7 +16824,7 @@ cdef class CUDA_ARRAY3D_DESCRIPTOR_st: return CUarray_format(self._pvt_ptr[0].Format) @Format.setter def Format(self, Format not None : CUarray_format): - self._pvt_ptr[0].Format = int(Format) + self._pvt_ptr[0].Format = int(Format) @property @@ -17335,7 +17335,7 @@ cdef class anon_struct9: return CUarray_format(self._pvt_ptr[0].res.linear.format) @format.setter def format(self, format not None : CUarray_format): - self._pvt_ptr[0].res.linear.format = int(format) + self._pvt_ptr[0].res.linear.format = int(format) @property @@ -17466,7 +17466,7 @@ cdef class anon_struct10: return CUarray_format(self._pvt_ptr[0].res.pitch2D.format) @format.setter def format(self, format not None : CUarray_format): - self._pvt_ptr[0].res.pitch2D.format = int(format) + self._pvt_ptr[0].res.pitch2D.format = int(format) @property @@ -17746,7 +17746,7 @@ cdef class CUDA_RESOURCE_DESC_st: return CUresourcetype(self._pvt_ptr[0].resType) @resType.setter def resType(self, resType not None : CUresourcetype): - self._pvt_ptr[0].resType = int(resType) + self._pvt_ptr[0].resType = int(resType) @property @@ -17908,7 +17908,7 @@ cdef class CUDA_TEXTURE_DESC_st: return CUfilter_mode(self._pvt_ptr[0].filterMode) @filterMode.setter def filterMode(self, filterMode not None : CUfilter_mode): - self._pvt_ptr[0].filterMode = int(filterMode) + self._pvt_ptr[0].filterMode = int(filterMode) @property @@ -17932,7 +17932,7 @@ cdef class CUDA_TEXTURE_DESC_st: return CUfilter_mode(self._pvt_ptr[0].mipmapFilterMode) @mipmapFilterMode.setter def mipmapFilterMode(self, mipmapFilterMode not None : CUfilter_mode): - self._pvt_ptr[0].mipmapFilterMode = int(mipmapFilterMode) + self._pvt_ptr[0].mipmapFilterMode = int(mipmapFilterMode) @property @@ -18100,7 +18100,7 @@ cdef class CUDA_RESOURCE_VIEW_DESC_st: return CUresourceViewFormat(self._pvt_ptr[0].format) @format.setter def format(self, format not None : CUresourceViewFormat): - self._pvt_ptr[0].format = int(format) + self._pvt_ptr[0].format = int(format) @property @@ -18756,7 +18756,7 @@ cdef class CUDA_EXTERNAL_MEMORY_HANDLE_DESC_st: return CUexternalMemoryHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUexternalMemoryHandleType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -19227,7 +19227,7 @@ cdef class CUDA_EXTERNAL_SEMAPHORE_HANDLE_DESC_st: return CUexternalSemaphoreHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUexternalSemaphoreHandleType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -21102,7 +21102,7 @@ cdef class CUarrayMapInfo_st: return CUresourcetype(self._pvt_ptr[0].resourceType) @resourceType.setter def resourceType(self, resourceType not None : CUresourcetype): - self._pvt_ptr[0].resourceType = int(resourceType) + self._pvt_ptr[0].resourceType = int(resourceType) @property @@ -21118,7 +21118,7 @@ cdef class CUarrayMapInfo_st: return CUarraySparseSubresourceType(self._pvt_ptr[0].subresourceType) @subresourceType.setter def subresourceType(self, subresourceType not None : CUarraySparseSubresourceType): - self._pvt_ptr[0].subresourceType = int(subresourceType) + self._pvt_ptr[0].subresourceType = int(subresourceType) @property @@ -21134,7 +21134,7 @@ cdef class CUarrayMapInfo_st: return CUmemOperationType(self._pvt_ptr[0].memOperationType) @memOperationType.setter def memOperationType(self, memOperationType not None : CUmemOperationType): - self._pvt_ptr[0].memOperationType = int(memOperationType) + self._pvt_ptr[0].memOperationType = int(memOperationType) @property @@ -21142,7 +21142,7 @@ cdef class CUarrayMapInfo_st: return CUmemHandleType(self._pvt_ptr[0].memHandleType) @memHandleType.setter def memHandleType(self, memHandleType not None : CUmemHandleType): - self._pvt_ptr[0].memHandleType = int(memHandleType) + self._pvt_ptr[0].memHandleType = int(memHandleType) @property @@ -21244,7 +21244,7 @@ cdef class CUmemLocation_st: return CUmemLocationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUmemLocationType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -21451,7 +21451,7 @@ cdef class CUmemAllocationProp_st: return CUmemAllocationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUmemAllocationType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -21459,7 +21459,7 @@ cdef class CUmemAllocationProp_st: return CUmemAllocationHandleType(self._pvt_ptr[0].requestedHandleTypes) @requestedHandleTypes.setter def requestedHandleTypes(self, requestedHandleTypes not None : CUmemAllocationHandleType): - self._pvt_ptr[0].requestedHandleTypes = int(requestedHandleTypes) + self._pvt_ptr[0].requestedHandleTypes = int(requestedHandleTypes) @property @@ -21658,7 +21658,7 @@ cdef class CUmemAccessDesc_st: return CUmemAccess_flags(self._pvt_ptr[0].flags) @flags.setter def flags(self, flags not None : CUmemAccess_flags): - self._pvt_ptr[0].flags = int(flags) + self._pvt_ptr[0].flags = int(flags) cdef class CUgraphExecUpdateResultInfo_st: @@ -21735,7 +21735,7 @@ cdef class CUgraphExecUpdateResultInfo_st: return CUgraphExecUpdateResult(self._pvt_ptr[0].result) @result.setter def result(self, result not None : CUgraphExecUpdateResult): - self._pvt_ptr[0].result = int(result) + self._pvt_ptr[0].result = int(result) @property @@ -21886,7 +21886,7 @@ cdef class CUmemPoolProps_st: return CUmemAllocationType(self._pvt_ptr[0].allocType) @allocType.setter def allocType(self, allocType not None : CUmemAllocationType): - self._pvt_ptr[0].allocType = int(allocType) + self._pvt_ptr[0].allocType = int(allocType) @property @@ -21894,7 +21894,7 @@ cdef class CUmemPoolProps_st: return CUmemAllocationHandleType(self._pvt_ptr[0].handleTypes) @handleTypes.setter def handleTypes(self, handleTypes not None : CUmemAllocationHandleType): - self._pvt_ptr[0].handleTypes = int(handleTypes) + self._pvt_ptr[0].handleTypes = int(handleTypes) @property @@ -22077,7 +22077,7 @@ cdef class CUmemcpyAttributes_st: return CUmemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : CUmemcpySrcAccessOrder): - self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) + self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) @property @@ -22591,7 +22591,7 @@ cdef class CUmemcpy3DOperand_st: return CUmemcpy3DOperandType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUmemcpy3DOperandType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -22719,7 +22719,7 @@ cdef class CUDA_MEMCPY3D_BATCH_OP_st: return CUmemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : CUmemcpySrcAccessOrder): - self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) + self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) @property @@ -23192,7 +23192,7 @@ cdef class CUDA_CHILD_GRAPH_NODE_PARAMS_st: return CUgraphChildGraphNodeOwnership(self._pvt_ptr[0].ownership) @ownership.setter def ownership(self, ownership not None : CUgraphChildGraphNodeOwnership): - self._pvt_ptr[0].ownership = int(ownership) + self._pvt_ptr[0].ownership = int(ownership) cdef class CUDA_EVENT_RECORD_NODE_PARAMS_st: @@ -23571,7 +23571,7 @@ cdef class CUgraphNodeParams_st: return CUgraphNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUgraphNodeType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -24261,7 +24261,7 @@ cdef class CUmemDecompressParams_st: return CUmemDecompressAlgorithm(self._pvt_ptr[0].algo) @algo.setter def algo(self, algo not None : CUmemDecompressAlgorithm): - self._pvt_ptr[0].algo = int(algo) + self._pvt_ptr[0].algo = int(algo) @property @@ -24531,7 +24531,7 @@ cdef class CUlogicalEndpointProp_struct: return CUlogicalEndpointType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUlogicalEndpointType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -24771,7 +24771,7 @@ cdef class CUdevWorkqueueConfigResource_st: return CUdevWorkqueueConfigScope(self._pvt_ptr[0].sharingScope) @sharingScope.setter def sharingScope(self, sharingScope not None : CUdevWorkqueueConfigScope): - self._pvt_ptr[0].sharingScope = int(sharingScope) + self._pvt_ptr[0].sharingScope = int(sharingScope) cdef class CUdevWorkqueueResource_st: @@ -25065,7 +25065,7 @@ cdef class CUdevResource_st: return CUdevResourceType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : CUdevResourceType): - self._pvt_ptr[0].type = int(type) + self._pvt_ptr[0].type = int(type) @property @@ -25407,7 +25407,7 @@ cdef class CUeglFrame_st: return CUeglFrameType(self._pvt_ptr[0].frameType) @frameType.setter def frameType(self, frameType not None : CUeglFrameType): - self._pvt_ptr[0].frameType = int(frameType) + self._pvt_ptr[0].frameType = int(frameType) @property @@ -25415,7 +25415,7 @@ cdef class CUeglFrame_st: return CUeglColorFormat(self._pvt_ptr[0].eglColorFormat) @eglColorFormat.setter def eglColorFormat(self, eglColorFormat not None : CUeglColorFormat): - self._pvt_ptr[0].eglColorFormat = int(eglColorFormat) + self._pvt_ptr[0].eglColorFormat = int(eglColorFormat) @property @@ -25423,7 +25423,7 @@ cdef class CUeglFrame_st: return CUarray_format(self._pvt_ptr[0].cuFormat) @cuFormat.setter def cuFormat(self, cuFormat not None : CUarray_format): - self._pvt_ptr[0].cuFormat = int(cuFormat) + self._pvt_ptr[0].cuFormat = int(cuFormat) cdef class cuuint32_t: diff --git a/cuda_bindings/cuda/bindings/runtime.pxd.in b/cuda_bindings/cuda/bindings/runtime.pxd similarity index 63% rename from cuda_bindings/cuda/bindings/runtime.pxd.in rename to cuda_bindings/cuda/bindings/runtime.pxd index 2b74c88ceaf..ae986e881e0 100644 --- a/cuda_bindings/cuda/bindings/runtime.pxd.in +++ b/cuda_bindings/cuda/bindings/runtime.pxd @@ -1,14 +1,12 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1630+gadce055ea.d20260422. Do not modify it directly. +# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260625. Do not modify it directly. cimport cuda.bindings.cyruntime as cyruntime include "_lib/utils.pxd" cimport cuda.bindings.driver as driver -{{if 'cudaDevResourceDesc_t' in found_types}} - cdef class cudaDevResourceDesc_t: """ @@ -22,9 +20,6 @@ cdef class cudaDevResourceDesc_t: """ cdef cyruntime.cudaDevResourceDesc_t _pvt_val cdef cyruntime.cudaDevResourceDesc_t* _pvt_ptr -{{endif}} - -{{if 'cudaExecutionContext_t' in found_types}} cdef class cudaExecutionContext_t: """ @@ -39,9 +34,6 @@ cdef class cudaExecutionContext_t: """ cdef cyruntime.cudaExecutionContext_t _pvt_val cdef cyruntime.cudaExecutionContext_t* _pvt_ptr -{{endif}} - -{{if 'cudaArray_t' in found_types}} cdef class cudaArray_t: """ @@ -56,9 +48,6 @@ cdef class cudaArray_t: """ cdef cyruntime.cudaArray_t _pvt_val cdef cyruntime.cudaArray_t* _pvt_ptr -{{endif}} - -{{if 'cudaArray_const_t' in found_types}} cdef class cudaArray_const_t: """ @@ -73,9 +62,6 @@ cdef class cudaArray_const_t: """ cdef cyruntime.cudaArray_const_t _pvt_val cdef cyruntime.cudaArray_const_t* _pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_t' in found_types}} cdef class cudaMipmappedArray_t: """ @@ -90,9 +76,6 @@ cdef class cudaMipmappedArray_t: """ cdef cyruntime.cudaMipmappedArray_t _pvt_val cdef cyruntime.cudaMipmappedArray_t* _pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_const_t' in found_types}} cdef class cudaMipmappedArray_const_t: """ @@ -107,9 +90,6 @@ cdef class cudaMipmappedArray_const_t: """ cdef cyruntime.cudaMipmappedArray_const_t _pvt_val cdef cyruntime.cudaMipmappedArray_const_t* _pvt_ptr -{{endif}} - -{{if 'cudaGraphicsResource_t' in found_types}} cdef class cudaGraphicsResource_t: """ @@ -124,9 +104,6 @@ cdef class cudaGraphicsResource_t: """ cdef cyruntime.cudaGraphicsResource_t _pvt_val cdef cyruntime.cudaGraphicsResource_t* _pvt_ptr -{{endif}} - -{{if 'cudaExternalMemory_t' in found_types}} cdef class cudaExternalMemory_t: """ @@ -141,9 +118,6 @@ cdef class cudaExternalMemory_t: """ cdef cyruntime.cudaExternalMemory_t _pvt_val cdef cyruntime.cudaExternalMemory_t* _pvt_ptr -{{endif}} - -{{if 'cudaExternalSemaphore_t' in found_types}} cdef class cudaExternalSemaphore_t: """ @@ -158,9 +132,6 @@ cdef class cudaExternalSemaphore_t: """ cdef cyruntime.cudaExternalSemaphore_t _pvt_val cdef cyruntime.cudaExternalSemaphore_t* _pvt_ptr -{{endif}} - -{{if 'cudaKernel_t' in found_types}} cdef class cudaKernel_t: """ @@ -175,9 +146,6 @@ cdef class cudaKernel_t: """ cdef cyruntime.cudaKernel_t _pvt_val cdef cyruntime.cudaKernel_t* _pvt_ptr -{{endif}} - -{{if 'cudaLibrary_t' in found_types}} cdef class cudaLibrary_t: """ @@ -192,9 +160,6 @@ cdef class cudaLibrary_t: """ cdef cyruntime.cudaLibrary_t _pvt_val cdef cyruntime.cudaLibrary_t* _pvt_ptr -{{endif}} - -{{if 'cudaGraphDeviceNode_t' in found_types}} cdef class cudaGraphDeviceNode_t: """ @@ -209,9 +174,6 @@ cdef class cudaGraphDeviceNode_t: """ cdef cyruntime.cudaGraphDeviceNode_t _pvt_val cdef cyruntime.cudaGraphDeviceNode_t* _pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallbackHandle_t' in found_types}} cdef class cudaAsyncCallbackHandle_t: """ @@ -226,9 +188,6 @@ cdef class cudaAsyncCallbackHandle_t: """ cdef cyruntime.cudaAsyncCallbackHandle_t _pvt_val cdef cyruntime.cudaAsyncCallbackHandle_t* _pvt_ptr -{{endif}} - -{{if 'cudaLogsCallbackHandle' in found_types}} cdef class cudaLogsCallbackHandle: """ @@ -241,9 +200,6 @@ cdef class cudaLogsCallbackHandle: """ cdef cyruntime.cudaLogsCallbackHandle _pvt_val cdef cyruntime.cudaLogsCallbackHandle* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLImageKHR: """ @@ -256,9 +212,6 @@ cdef class EGLImageKHR: """ cdef cyruntime.EGLImageKHR _pvt_val cdef cyruntime.EGLImageKHR* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLStreamKHR: """ @@ -271,9 +224,6 @@ cdef class EGLStreamKHR: """ cdef cyruntime.EGLStreamKHR _pvt_val cdef cyruntime.EGLStreamKHR* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLSyncKHR: """ @@ -286,9 +236,6 @@ cdef class EGLSyncKHR: """ cdef cyruntime.EGLSyncKHR _pvt_val cdef cyruntime.EGLSyncKHR* _pvt_ptr -{{endif}} - -{{if 'cudaHostFn_t' in found_types}} cdef class cudaHostFn_t: """ @@ -301,9 +248,6 @@ cdef class cudaHostFn_t: """ cdef cyruntime.cudaHostFn_t _pvt_val cdef cyruntime.cudaHostFn_t* _pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallback' in found_types}} cdef class cudaAsyncCallback: """ @@ -316,9 +260,6 @@ cdef class cudaAsyncCallback: """ cdef cyruntime.cudaAsyncCallback _pvt_val cdef cyruntime.cudaAsyncCallback* _pvt_ptr -{{endif}} - -{{if 'cudaStreamCallback_t' in found_types}} cdef class cudaStreamCallback_t: """ @@ -331,9 +272,6 @@ cdef class cudaStreamCallback_t: """ cdef cyruntime.cudaStreamCallback_t _pvt_val cdef cyruntime.cudaStreamCallback_t* _pvt_ptr -{{endif}} - -{{if 'cudaGraphRecaptureCallback_t' in found_types}} cdef class cudaGraphRecaptureCallback_t: """ @@ -346,9 +284,6 @@ cdef class cudaGraphRecaptureCallback_t: """ cdef cyruntime.cudaGraphRecaptureCallback_t _pvt_val cdef cyruntime.cudaGraphRecaptureCallback_t* _pvt_ptr -{{endif}} - -{{if 'cudaLogsCallback_t' in found_types}} cdef class cudaLogsCallback_t: """ @@ -361,26 +296,23 @@ cdef class cudaLogsCallback_t: """ cdef cyruntime.cudaLogsCallback_t _pvt_val cdef cyruntime.cudaLogsCallback_t* _pvt_ptr -{{endif}} - -{{if 'dim3' in found_struct}} cdef class dim3: """ Attributes ---------- - {{if 'dim3.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'dim3.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'dim3.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -389,8 +321,6 @@ cdef class dim3: """ cdef cyruntime.dim3 _pvt_val cdef cyruntime.dim3* _pvt_ptr -{{endif}} -{{if 'cudaChannelFormatDesc' in found_struct}} cdef class cudaChannelFormatDesc: """ @@ -398,26 +328,26 @@ cdef class cudaChannelFormatDesc: Attributes ---------- - {{if 'cudaChannelFormatDesc.x' in found_struct}} + x : int x - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + y : int y - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + z : int z - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + w : int w - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + f : cudaChannelFormatKind Channel format kind - {{endif}} + Methods ------- @@ -426,25 +356,23 @@ cdef class cudaChannelFormatDesc: """ cdef cyruntime.cudaChannelFormatDesc _pvt_val cdef cyruntime.cudaChannelFormatDesc* _pvt_ptr -{{endif}} -{{if 'cudaArraySparseProperties.tileExtent' in found_struct}} cdef class anon_struct0: """ Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + width : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + height : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + depth : unsigned int - {{endif}} + Methods ------- @@ -452,8 +380,6 @@ cdef class anon_struct0: Get memory address of class instance """ cdef cyruntime.cudaArraySparseProperties* _pvt_ptr -{{endif}} -{{if 'cudaArraySparseProperties' in found_struct}} cdef class cudaArraySparseProperties: """ @@ -461,26 +387,26 @@ cdef class cudaArraySparseProperties: Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + tileExtent : anon_struct0 - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or cudaArraySparsePropertiesSingleMipTail - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -489,11 +415,9 @@ cdef class cudaArraySparseProperties: """ cdef cyruntime.cudaArraySparseProperties _pvt_val cdef cyruntime.cudaArraySparseProperties* _pvt_ptr - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + cdef anon_struct0 _tileExtent - {{endif}} -{{endif}} -{{if 'cudaArrayMemoryRequirements' in found_struct}} + cdef class cudaArrayMemoryRequirements: """ @@ -501,18 +425,18 @@ cdef class cudaArrayMemoryRequirements: Attributes ---------- - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + size : size_t Total size of the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + alignment : size_t Alignment necessary for mapping the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -521,8 +445,6 @@ cdef class cudaArrayMemoryRequirements: """ cdef cyruntime.cudaArrayMemoryRequirements _pvt_val cdef cyruntime.cudaArrayMemoryRequirements* _pvt_ptr -{{endif}} -{{if 'cudaPitchedPtr' in found_struct}} cdef class cudaPitchedPtr: """ @@ -530,22 +452,22 @@ cdef class cudaPitchedPtr: Attributes ---------- - {{if 'cudaPitchedPtr.ptr' in found_struct}} + ptr : Any Pointer to allocated memory - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + pitch : size_t Pitch of allocated memory in bytes - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + xsize : size_t Logical width of allocation in elements - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + ysize : size_t Logical height of allocation in elements - {{endif}} + Methods ------- @@ -554,11 +476,9 @@ cdef class cudaPitchedPtr: """ cdef cyruntime.cudaPitchedPtr _pvt_val cdef cyruntime.cudaPitchedPtr* _pvt_ptr - {{if 'cudaPitchedPtr.ptr' in found_struct}} + cdef _HelperInputVoidPtr _cyptr - {{endif}} -{{endif}} -{{if 'cudaExtent' in found_struct}} + cdef class cudaExtent: """ @@ -566,19 +486,19 @@ cdef class cudaExtent: Attributes ---------- - {{if 'cudaExtent.width' in found_struct}} + width : size_t Width in elements when referring to array memory, in bytes when referring to linear memory - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + height : size_t Height in elements - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + depth : size_t Depth in elements - {{endif}} + Methods ------- @@ -587,8 +507,6 @@ cdef class cudaExtent: """ cdef cyruntime.cudaExtent _pvt_val cdef cyruntime.cudaExtent* _pvt_ptr -{{endif}} -{{if 'cudaPos' in found_struct}} cdef class cudaPos: """ @@ -596,18 +514,18 @@ cdef class cudaPos: Attributes ---------- - {{if 'cudaPos.x' in found_struct}} + x : size_t x - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + y : size_t y - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + z : size_t z - {{endif}} + Methods ------- @@ -616,8 +534,6 @@ cdef class cudaPos: """ cdef cyruntime.cudaPos _pvt_val cdef cyruntime.cudaPos* _pvt_ptr -{{endif}} -{{if 'cudaMemcpy3DParms' in found_struct}} cdef class cudaMemcpy3DParms: """ @@ -625,38 +541,38 @@ cdef class cudaMemcpy3DParms: Attributes ---------- - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + kind : cudaMemcpyKind Type of transfer - {{endif}} + Methods ------- @@ -665,29 +581,27 @@ cdef class cudaMemcpy3DParms: """ cdef cyruntime.cudaMemcpy3DParms _pvt_val cdef cyruntime.cudaMemcpy3DParms* _pvt_ptr - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + cdef cudaArray_t _srcArray - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + cdef cudaPos _srcPos - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + cdef cudaPitchedPtr _srcPtr - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + cdef cudaArray_t _dstArray - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + cdef cudaPos _dstPos - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + cdef cudaPitchedPtr _dstPtr - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'cudaMemcpyNodeParams' in found_struct}} + cdef class cudaMemcpyNodeParams: """ @@ -695,23 +609,23 @@ cdef class cudaMemcpyNodeParams: Attributes ---------- - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + flags : int Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} + + reserved : int Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.ctx' in found_struct}} + + ctx : cudaExecutionContext_t Context in which to run the memcpy. If NULL will try to use the current context. - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + copyParams : cudaMemcpy3DParms Parameters for the memory copy - {{endif}} + Methods ------- @@ -720,14 +634,12 @@ cdef class cudaMemcpyNodeParams: """ cdef cyruntime.cudaMemcpyNodeParams _pvt_val cdef cyruntime.cudaMemcpyNodeParams* _pvt_ptr - {{if 'cudaMemcpyNodeParams.ctx' in found_struct}} + cdef cudaExecutionContext_t _ctx - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + cdef cudaMemcpy3DParms _copyParams - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DPeerParms' in found_struct}} + cdef class cudaMemcpy3DPeerParms: """ @@ -735,42 +647,42 @@ cdef class cudaMemcpy3DPeerParms: Attributes ---------- - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + srcDevice : int Source device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + dstDevice : int Destination device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} + Methods ------- @@ -779,29 +691,27 @@ cdef class cudaMemcpy3DPeerParms: """ cdef cyruntime.cudaMemcpy3DPeerParms _pvt_val cdef cyruntime.cudaMemcpy3DPeerParms* _pvt_ptr - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + cdef cudaArray_t _srcArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + cdef cudaPos _srcPos - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + cdef cudaPitchedPtr _srcPtr - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + cdef cudaArray_t _dstArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + cdef cudaPos _dstPos - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + cdef cudaPitchedPtr _dstPtr - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'cudaMemsetParams' in found_struct}} + cdef class cudaMemsetParams: """ @@ -809,30 +719,30 @@ cdef class cudaMemsetParams: Attributes ---------- - {{if 'cudaMemsetParams.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -841,11 +751,9 @@ cdef class cudaMemsetParams: """ cdef cyruntime.cudaMemsetParams _pvt_val cdef cyruntime.cudaMemsetParams* _pvt_ptr - {{if 'cudaMemsetParams.dst' in found_struct}} + cdef _HelperInputVoidPtr _cydst - {{endif}} -{{endif}} -{{if 'cudaMemsetParamsV2' in found_struct}} + cdef class cudaMemsetParamsV2: """ @@ -853,35 +761,35 @@ cdef class cudaMemsetParamsV2: Attributes ---------- - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + height : size_t Number of rows - {{endif}} - {{if 'cudaMemsetParamsV2.ctx' in found_struct}} + + ctx : cudaExecutionContext_t Context in which to run the memset. If NULL will try to use the current context. - {{endif}} + Methods ------- @@ -890,14 +798,12 @@ cdef class cudaMemsetParamsV2: """ cdef cyruntime.cudaMemsetParamsV2 _pvt_val cdef cyruntime.cudaMemsetParamsV2* _pvt_ptr - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + cdef _HelperInputVoidPtr _cydst - {{endif}} - {{if 'cudaMemsetParamsV2.ctx' in found_struct}} + + cdef cudaExecutionContext_t _ctx - {{endif}} -{{endif}} -{{if 'cudaAccessPolicyWindow' in found_struct}} + cdef class cudaAccessPolicyWindow: """ @@ -912,30 +818,30 @@ cdef class cudaAccessPolicyWindow: Attributes ---------- - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + num_bytes : size_t Size in bytes of the window policy. CUDA driver may restrict the maximum size and alignment. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + hitProp : cudaAccessProperty ::CUaccessProperty set for hit. - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + + missProp : cudaAccessProperty ::CUaccessProperty set for miss. Must be either NORMAL or STREAMING. - {{endif}} + Methods ------- @@ -944,11 +850,9 @@ cdef class cudaAccessPolicyWindow: """ cdef cyruntime.cudaAccessPolicyWindow _pvt_val cdef cyruntime.cudaAccessPolicyWindow* _pvt_ptr - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + cdef _HelperInputVoidPtr _cybase_ptr - {{endif}} -{{endif}} -{{if 'cudaHostNodeParams' in found_struct}} + cdef class cudaHostNodeParams: """ @@ -956,14 +860,14 @@ cdef class cudaHostNodeParams: Attributes ---------- - {{if 'cudaHostNodeParams.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -972,14 +876,12 @@ cdef class cudaHostNodeParams: """ cdef cyruntime.cudaHostNodeParams _pvt_val cdef cyruntime.cudaHostNodeParams* _pvt_ptr - {{if 'cudaHostNodeParams.fn' in found_struct}} + cdef cudaHostFn_t _fn - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + cdef _HelperInputVoidPtr _cyuserData - {{endif}} -{{endif}} -{{if 'cudaHostNodeParamsV2' in found_struct}} + cdef class cudaHostNodeParamsV2: """ @@ -987,18 +889,18 @@ cdef class cudaHostNodeParamsV2: Attributes ---------- - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} - {{if 'cudaHostNodeParamsV2.syncMode' in found_struct}} + + syncMode : unsigned int The synchronization mode to use for the host task - {{endif}} + Methods ------- @@ -1007,23 +909,21 @@ cdef class cudaHostNodeParamsV2: """ cdef cyruntime.cudaHostNodeParamsV2 _pvt_val cdef cyruntime.cudaHostNodeParamsV2* _pvt_ptr - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + cdef cudaHostFn_t _fn - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + cdef _HelperInputVoidPtr _cyuserData - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.array' in found_struct}} + cdef class anon_struct1: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + array : cudaArray_t - {{endif}} + Methods ------- @@ -1031,20 +931,18 @@ cdef class anon_struct1: Get memory address of class instance """ cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + cdef cudaArray_t _array - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.mipmap' in found_struct}} + cdef class anon_struct2: """ Attributes ---------- - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + mipmap : cudaMipmappedArray_t - {{endif}} + Methods ------- @@ -1052,28 +950,26 @@ cdef class anon_struct2: Get memory address of class instance """ cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + cdef cudaMipmappedArray_t _mipmap - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.linear' in found_struct}} + cdef class anon_struct3: """ Attributes ---------- - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + sizeInBytes : size_t - {{endif}} + Methods ------- @@ -1081,39 +977,37 @@ cdef class anon_struct3: Get memory address of class instance """ cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + cdef _HelperInputVoidPtr _cydevPtr - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + cdef cudaChannelFormatDesc _desc - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + cdef class anon_struct4: """ Attributes ---------- - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + width : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + pitchInBytes : size_t - {{endif}} + Methods ------- @@ -1121,23 +1015,21 @@ cdef class anon_struct4: Get memory address of class instance """ cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + cdef _HelperInputVoidPtr _cydevPtr - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + cdef cudaChannelFormatDesc _desc - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.reserved' in found_struct}} + cdef class anon_struct5: """ Attributes ---------- - {{if 'cudaResourceDesc.res.reserved.reserved' in found_struct}} + reserved : list[int] - {{endif}} + Methods ------- @@ -1145,33 +1037,31 @@ cdef class anon_struct5: Get memory address of class instance """ cdef cyruntime.cudaResourceDesc* _pvt_ptr -{{endif}} -{{if 'cudaResourceDesc.res' in found_struct}} cdef class anon_union0: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array' in found_struct}} + array : anon_struct1 - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + mipmap : anon_struct2 - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + linear : anon_struct3 - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + pitch2D : anon_struct4 - {{endif}} - {{if 'cudaResourceDesc.res.reserved' in found_struct}} + + reserved : anon_struct5 - {{endif}} + Methods ------- @@ -1179,23 +1069,21 @@ cdef class anon_union0: Get memory address of class instance """ cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res.array' in found_struct}} + cdef anon_struct1 _array - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + cdef anon_struct2 _mipmap - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + cdef anon_struct3 _linear - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + cdef anon_struct4 _pitch2D - {{endif}} - {{if 'cudaResourceDesc.res.reserved' in found_struct}} + + cdef anon_struct5 _reserved - {{endif}} -{{endif}} -{{if 'cudaResourceDesc' in found_struct}} + cdef class cudaResourceDesc: """ @@ -1203,18 +1091,18 @@ cdef class cudaResourceDesc: Attributes ---------- - {{if 'cudaResourceDesc.resType' in found_struct}} + resType : cudaResourceType Resource type - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + + res : anon_union0 - {{endif}} - {{if 'cudaResourceDesc.flags' in found_struct}} + + flags : unsigned int Flags (must be zero) - {{endif}} + Methods ------- @@ -1223,11 +1111,9 @@ cdef class cudaResourceDesc: """ cdef cyruntime.cudaResourceDesc* _val_ptr cdef cyruntime.cudaResourceDesc* _pvt_ptr - {{if 'cudaResourceDesc.res' in found_struct}} + cdef anon_union0 _res - {{endif}} -{{endif}} -{{if 'cudaResourceViewDesc' in found_struct}} + cdef class cudaResourceViewDesc: """ @@ -1235,42 +1121,42 @@ cdef class cudaResourceViewDesc: Attributes ---------- - {{if 'cudaResourceViewDesc.format' in found_struct}} + format : cudaResourceViewFormat Resource view format - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} - {{if 'cudaResourceViewDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -1279,8 +1165,6 @@ cdef class cudaResourceViewDesc: """ cdef cyruntime.cudaResourceViewDesc _pvt_val cdef cyruntime.cudaResourceViewDesc* _pvt_ptr -{{endif}} -{{if 'cudaPointerAttributes' in found_struct}} cdef class cudaPointerAttributes: """ @@ -1288,12 +1172,12 @@ cdef class cudaPointerAttributes: Attributes ---------- - {{if 'cudaPointerAttributes.type' in found_struct}} + type : cudaMemoryType The type of memory - cudaMemoryTypeUnregistered, cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged. - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + + device : int The device against which the memory was allocated or registered. If the memory type is cudaMemoryTypeDevice then this identifies the @@ -1302,23 +1186,23 @@ cdef class cudaPointerAttributes: this identifies the device which was current when the memory was allocated or registered (and if that device is deinitialized then this allocation will vanish with that device's state). - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + devicePointer : Any The address which may be dereferenced on the current device to access the memory or NULL if no such address exists. - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + hostPointer : Any The address which may be dereferenced on the host to access the memory or NULL if no such address exists. CUDA doesn't check if unregistered memory is allocated so this field may contain invalid pointer if an invalid pointer has been passed to CUDA. - {{endif}} - {{if 'cudaPointerAttributes.reserved' in found_struct}} + + reserved : list[long] Must be zero - {{endif}} + Methods ------- @@ -1327,14 +1211,12 @@ cdef class cudaPointerAttributes: """ cdef cyruntime.cudaPointerAttributes _pvt_val cdef cyruntime.cudaPointerAttributes* _pvt_ptr - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + cdef _HelperInputVoidPtr _cydevicePointer - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + cdef _HelperInputVoidPtr _cyhostPointer - {{endif}} -{{endif}} -{{if 'cudaFuncAttributes' in found_struct}} + cdef class cudaFuncAttributes: """ @@ -1342,57 +1224,57 @@ cdef class cudaFuncAttributes: Attributes ---------- - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + sharedSizeBytes : size_t The size in bytes of statically-allocated shared memory per block required by this function. This does not include dynamically- allocated shared memory requested by the user at runtime. - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + constSizeBytes : size_t The size in bytes of user-allocated constant memory required by this function. - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + localSizeBytes : size_t The size in bytes of local memory used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int The maximum number of threads per block, beyond which a launch of the function would fail. This number depends on both the function and the device on which the function is currently loaded. - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + numRegs : int The number of registers used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + ptxVersion : int The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so a PTX version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + binaryVersion : int The binary architecture version for which the function was compiled. This value is the major binary version * 10 + the minor binary version, so a binary version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + cacheModeCA : int The attribute to indicate whether the function has been compiled with user specified option "-Xptxas --dlcm=ca" set. - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + maxDynamicSharedSizeBytes : int The maximum size in bytes of dynamic shared memory per block for this function. Any launch must have a dynamic shared memory size smaller than this value. - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + preferredShmemCarveout : int On devices where the L1 cache and shared memory use the same hardware resources, this sets the shared memory carveout @@ -1400,13 +1282,13 @@ cdef class cudaFuncAttributes: cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint, and the driver can choose a different ratio if required to execute the function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + clusterDimMustBeSet : int If this attribute is set, the kernel must launch with a valid cluster dimension specified. - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + requiredClusterWidth : int The required cluster width/height/depth in blocks. The values must either all be 0 or all be positive. The validity of the cluster @@ -1414,20 +1296,20 @@ cdef class cudaFuncAttributes: set during compile time, it cannot be set at runtime. Setting it at runtime should return cudaErrorNotPermitted. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + requiredClusterHeight : int - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + requiredClusterDepth : int - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : int The block scheduling policy of a function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + nonPortableClusterSizeAllowed : int Whether the function can be launched with non-portable cluster size. 1 is allowed, 0 is disallowed. A non-portable cluster size @@ -1442,21 +1324,21 @@ cdef class cudaFuncAttributes: compute capabilities. The specific hardware unit may support higher cluster sizes that’s not guaranteed to be portable. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.deviceNodeUpdateStatus' in found_struct}} + + deviceNodeUpdateStatus : int Whether the function can be updated on device. 1 means device node update is supported, 0 is unsupported or driver is too old to check the value. - {{endif}} - {{if 'cudaFuncAttributes.reserved1' in found_struct}} + + reserved1 : int - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} + + reserved : list[int] Reserved for future use. - {{endif}} + Methods ------- @@ -1465,8 +1347,6 @@ cdef class cudaFuncAttributes: """ cdef cyruntime.cudaFuncAttributes _pvt_val cdef cyruntime.cudaFuncAttributes* _pvt_ptr -{{endif}} -{{if 'cudaMemLocation' in found_struct}} cdef class cudaMemLocation: """ @@ -1477,16 +1357,16 @@ cdef class cudaMemLocation: Attributes ---------- - {{if 'cudaMemLocation.type' in found_struct}} + type : cudaMemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + + id : int Identifier for cudaMemLocationType::cudaMemLocationTypeDevice, cudaMemLocationType::cudaMemLocationTypeHost, or cudaMemLocationType::cudaMemLocationTypeHostNuma. - {{endif}} + Methods ------- @@ -1495,8 +1375,6 @@ cdef class cudaMemLocation: """ cdef cyruntime.cudaMemLocation* _val_ptr cdef cyruntime.cudaMemLocation* _pvt_ptr -{{endif}} -{{if 'cudaMemAccessDesc' in found_struct}} cdef class cudaMemAccessDesc: """ @@ -1504,14 +1382,14 @@ cdef class cudaMemAccessDesc: Attributes ---------- - {{if 'cudaMemAccessDesc.location' in found_struct}} + location : cudaMemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + flags : cudaMemAccessFlags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- @@ -1520,11 +1398,9 @@ cdef class cudaMemAccessDesc: """ cdef cyruntime.cudaMemAccessDesc _pvt_val cdef cyruntime.cudaMemAccessDesc* _pvt_ptr - {{if 'cudaMemAccessDesc.location' in found_struct}} + cdef cudaMemLocation _location - {{endif}} -{{endif}} -{{if 'cudaMemPoolProps' in found_struct}} + cdef class cudaMemPoolProps: """ @@ -1532,40 +1408,40 @@ cdef class cudaMemPoolProps: Attributes ---------- - {{if 'cudaMemPoolProps.allocType' in found_struct}} + allocType : cudaMemAllocationType Allocation type. Currently must be specified as cudaMemAllocationTypePinned - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + + handleTypes : cudaMemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + + location : cudaMemLocation Location allocations should reside. - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when cudaMemHandleTypeWin32 is specified. This security attribute defines the scope of which exported allocations may be tranferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} + + reserved : bytes reserved for future use, must be 0 - {{endif}} + Methods ------- @@ -1574,14 +1450,12 @@ cdef class cudaMemPoolProps: """ cdef cyruntime.cudaMemPoolProps _pvt_val cdef cyruntime.cudaMemPoolProps* _pvt_ptr - {{if 'cudaMemPoolProps.location' in found_struct}} + cdef cudaMemLocation _location - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + cdef _HelperInputVoidPtr _cywin32SecurityAttributes - {{endif}} -{{endif}} -{{if 'cudaMemPoolPtrExportData' in found_struct}} + cdef class cudaMemPoolPtrExportData: """ @@ -1589,10 +1463,10 @@ cdef class cudaMemPoolPtrExportData: Attributes ---------- - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -1601,8 +1475,6 @@ cdef class cudaMemPoolPtrExportData: """ cdef cyruntime.cudaMemPoolPtrExportData _pvt_val cdef cyruntime.cudaMemPoolPtrExportData* _pvt_ptr -{{endif}} -{{if 'cudaMemAllocNodeParams' in found_struct}} cdef class cudaMemAllocNodeParams: """ @@ -1610,30 +1482,30 @@ cdef class cudaMemAllocNodeParams: Attributes ---------- - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -1642,18 +1514,16 @@ cdef class cudaMemAllocNodeParams: """ cdef cyruntime.cudaMemAllocNodeParams _pvt_val cdef cyruntime.cudaMemAllocNodeParams* _pvt_ptr - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + cdef cudaMemPoolProps _poolProps - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + cdef size_t _accessDescs_length cdef cyruntime.cudaMemAccessDesc* _accessDescs - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + cdef _HelperInputVoidPtr _cydptr - {{endif}} -{{endif}} -{{if 'cudaMemAllocNodeParamsV2' in found_struct}} + cdef class cudaMemAllocNodeParamsV2: """ @@ -1661,30 +1531,30 @@ cdef class cudaMemAllocNodeParamsV2: Attributes ---------- - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -1693,18 +1563,16 @@ cdef class cudaMemAllocNodeParamsV2: """ cdef cyruntime.cudaMemAllocNodeParamsV2 _pvt_val cdef cyruntime.cudaMemAllocNodeParamsV2* _pvt_ptr - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + cdef cudaMemPoolProps _poolProps - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + cdef size_t _accessDescs_length cdef cyruntime.cudaMemAccessDesc* _accessDescs - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + cdef _HelperInputVoidPtr _cydptr - {{endif}} -{{endif}} -{{if 'cudaMemFreeNodeParams' in found_struct}} + cdef class cudaMemFreeNodeParams: """ @@ -1712,10 +1580,10 @@ cdef class cudaMemFreeNodeParams: Attributes ---------- - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + dptr : Any in: the pointer to free - {{endif}} + Methods ------- @@ -1724,11 +1592,9 @@ cdef class cudaMemFreeNodeParams: """ cdef cyruntime.cudaMemFreeNodeParams _pvt_val cdef cyruntime.cudaMemFreeNodeParams* _pvt_ptr - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + cdef _HelperInputVoidPtr _cydptr - {{endif}} -{{endif}} -{{if 'cudaMemcpyAttributes' in found_struct}} + cdef class cudaMemcpyAttributes: """ @@ -1737,26 +1603,26 @@ cdef class cudaMemcpyAttributes: Attributes ---------- - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + + srcLocHint : cudaMemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + dstLocHint : cudaMemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See cudaMemcpyFlags. - {{endif}} + Methods ------- @@ -1765,14 +1631,12 @@ cdef class cudaMemcpyAttributes: """ cdef cyruntime.cudaMemcpyAttributes _pvt_val cdef cyruntime.cudaMemcpyAttributes* _pvt_ptr - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + cdef cudaMemLocation _srcLocHint - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + cdef cudaMemLocation _dstLocHint - {{endif}} -{{endif}} -{{if 'cudaOffset3D' in found_struct}} + cdef class cudaOffset3D: """ @@ -1780,18 +1644,18 @@ cdef class cudaOffset3D: Attributes ---------- - {{if 'cudaOffset3D.x' in found_struct}} + x : size_t - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- @@ -1800,29 +1664,27 @@ cdef class cudaOffset3D: """ cdef cyruntime.cudaOffset3D _pvt_val cdef cyruntime.cudaOffset3D* _pvt_ptr -{{endif}} -{{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} cdef class anon_struct6: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + ptr : Any - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + rowLength : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + layerHeight : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + locHint : cudaMemLocation - {{endif}} + Methods ------- @@ -1830,27 +1692,25 @@ cdef class anon_struct6: Get memory address of class instance """ cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + cdef _HelperInputVoidPtr _cyptr - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + cdef cudaMemLocation _locHint - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + cdef class anon_struct7: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + array : cudaArray_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + offset : cudaOffset3D - {{endif}} + Methods ------- @@ -1858,27 +1718,25 @@ cdef class anon_struct7: Get memory address of class instance """ cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + cdef cudaArray_t _array - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + cdef cudaOffset3D _offset - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op' in found_struct}} + cdef class anon_union2: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + ptr : anon_struct6 - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + array : anon_struct7 - {{endif}} + Methods ------- @@ -1886,14 +1744,12 @@ cdef class anon_union2: Get memory address of class instance """ cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + cdef anon_struct6 _ptr - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + cdef anon_struct7 _array - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand' in found_struct}} + cdef class cudaMemcpy3DOperand: """ @@ -1901,14 +1757,14 @@ cdef class cudaMemcpy3DOperand: Attributes ---------- - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + type : cudaMemcpy3DOperandType - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + + op : anon_union2 - {{endif}} + Methods ------- @@ -1917,37 +1773,35 @@ cdef class cudaMemcpy3DOperand: """ cdef cyruntime.cudaMemcpy3DOperand* _val_ptr cdef cyruntime.cudaMemcpy3DOperand* _pvt_ptr - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + cdef anon_union2 _op - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DBatchOp' in found_struct}} + cdef class cudaMemcpy3DBatchOp: """ Attributes ---------- - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + src : cudaMemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + dst : cudaMemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + extent : cudaExtent Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + + flags : unsigned int Additional flags for copy from src to dst. See cudaMemcpyFlags. - {{endif}} + Methods ------- @@ -1956,26 +1810,24 @@ cdef class cudaMemcpy3DBatchOp: """ cdef cyruntime.cudaMemcpy3DBatchOp _pvt_val cdef cyruntime.cudaMemcpy3DBatchOp* _pvt_ptr - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + cdef cudaMemcpy3DOperand _src - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + cdef cudaMemcpy3DOperand _dst - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'CUuuid_st' in found_struct}} + cdef class CUuuid_st: """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- @@ -1984,8 +1836,6 @@ cdef class CUuuid_st: """ cdef cyruntime.CUuuid_st _pvt_val cdef cyruntime.CUuuid_st* _pvt_ptr -{{endif}} -{{if 'cudaDeviceProp' in found_struct}} cdef class cudaDeviceProp: """ @@ -1993,401 +1843,401 @@ cdef class cudaDeviceProp: Attributes ---------- - {{if 'cudaDeviceProp.name' in found_struct}} + name : bytes ASCII string identifying device - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + uuid : cudaUUID_t 16-byte unique identifier - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + luid : bytes 8-byte locally unique identifier. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + luidDeviceNodeMask : unsigned int LUID device node mask. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + totalGlobalMem : size_t Global memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : size_t Shared memory available per block in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + warpSize : int Warp size in threads - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + memPitch : size_t Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + totalConstMem : size_t Constant memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + major : int Major compute capability - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + minor : int Minor compute capability - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + textureAlignment : size_t Alignment requirement for textures - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + texturePitchAlignment : size_t Pitch alignment requirement for texture references bound to pitched memory - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + multiProcessorCount : int Number of multiprocessors on device - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + integrated : int Device is integrated as opposed to discrete - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + canMapHostMemory : int Device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + maxTexture1D : int Maximum 1D texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + maxTexture1DMipmap : int Maximum 1D mipmapped texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + maxTexture2D : list[int] Maximum 2D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + maxTexture2DMipmap : list[int] Maximum 2D mipmapped texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + 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] Maximum 2D texture dimensions if texture gather operations have to be performed - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + maxTexture3D : list[int] Maximum 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + maxTexture3DAlt : list[int] Maximum alternate 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + maxTextureCubemap : int Maximum Cubemap texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + maxTexture1DLayered : list[int] Maximum 1D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + maxTexture2DLayered : list[int] Maximum 2D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + maxTextureCubemapLayered : list[int] Maximum Cubemap layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + maxSurface1D : int Maximum 1D surface size - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + maxSurface2D : list[int] Maximum 2D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + maxSurface3D : list[int] Maximum 3D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + maxSurface1DLayered : list[int] Maximum 1D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + maxSurface2DLayered : list[int] Maximum 2D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + maxSurfaceCubemap : int Maximum Cubemap surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + maxSurfaceCubemapLayered : list[int] Maximum Cubemap layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + surfaceAlignment : size_t Alignment requirements for surfaces - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + concurrentKernels : int Device can possibly execute multiple kernels concurrently - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + ECCEnabled : int Device has ECC support enabled - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + pciBusID : int PCI bus ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + pciDeviceID : int PCI device ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + pciDomainID : int PCI domain ID of the device - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + tccDriver : int 1 if device is a Tesla device using TCC driver, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + asyncEngineCount : int Number of asynchronous engines - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + unifiedAddressing : int Device shares a unified address space with the host - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + memoryBusWidth : int Global memory bus width in bits - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + l2CacheSize : int Size of L2 cache in bytes - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + persistingL2CacheMaxSize : int Device's maximum l2 persisting lines capacity setting in bytes - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + maxThreadsPerMultiProcessor : int Maximum resident threads per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + streamPrioritiesSupported : int Device supports stream priorities - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + globalL1CacheSupported : int Device supports caching globals in L1 - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + localL1CacheSupported : int Device supports caching locals in L1 - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + sharedMemPerMultiprocessor : size_t Shared memory available per multiprocessor in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + regsPerMultiprocessor : int 32-bit registers available per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + managedMemory : int Device supports allocating managed memory on this system - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + isMultiGpuBoard : int Device is on a multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + multiGpuBoardGroupID : int Unique identifier for a group of devices on the same multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + hostNativeAtomicSupported : int Link between the device and the host supports native atomic operations - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + pageableMemoryAccess : int Device supports coherently accessing pageable memory without calling cudaHostRegister on it - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + concurrentManagedAccess : int Device can coherently access managed memory concurrently with the CPU - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + computePreemptionSupported : int Device supports Compute Preemption - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + canUseHostPointerForRegisteredMem : int Device can access host registered memory at the same virtual address as the CPU - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + cooperativeLaunch : int Device supports launching cooperative kernels via cudaLaunchCooperativeKernel - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + sharedMemPerBlockOptin : size_t Per device maximum shared memory per block usable by special opt in - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + pageableMemoryAccessUsesHostPageTables : int Device accesses pageable memory via the host's page tables - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + directManagedMemAccessFromHost : int Host can directly access managed memory on the device without migration. - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + maxBlocksPerMultiProcessor : int Maximum number of resident blocks per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + accessPolicyMaxWindowSize : int The maximum value of cudaAccessPolicyWindow::num_bytes. - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + reservedSharedMemPerBlock : size_t Shared memory reserved by CUDA driver per block in bytes - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + hostRegisterSupported : int Device supports host memory registration via cudaHostRegister. - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + sparseCudaArraySupported : int 1 if the device supports sparse CUDA arrays and sparse CUDA mipmapped arrays, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + hostRegisterReadOnlySupported : int Device supports using the cudaHostRegister flag cudaHostRegisterReadOnly to register memory that must be mapped as read-only to the GPU - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + timelineSemaphoreInteropSupported : int External timeline semaphore interop is supported on the device - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + memoryPoolsSupported : int 1 if the device supports using the cudaMallocAsync and cudaMemPool family of APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + gpuDirectRDMASupported : int 1 if the device supports GPUDirect RDMA APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + gpuDirectRDMAFlushWritesOptions : unsigned int Bitmask to be interpreted according to the cudaFlushGPUDirectRDMAWritesOptions enum - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + gpuDirectRDMAWritesOrdering : int See the cudaGPUDirectRDMAWritesOrdering enum for numerical values - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + memoryPoolSupportedHandleTypes : unsigned int Bitmask of handle types supported with mempool-based IPC - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + deferredMappingCudaArraySupported : int 1 if the device supports deferred mapping CUDA arrays and CUDA mipmapped arrays - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + ipcEventSupported : int Device supports IPC Events. - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + clusterLaunch : int Indicates device supports cluster launch - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + unifiedFunctionPointers : int Indicates device supports unified pointers - {{endif}} - {{if 'cudaDeviceProp.deviceNumaConfig' in found_struct}} + + deviceNumaConfig : int NUMA configuration of a device: value is of type cudaDeviceNumaConfig enum - {{endif}} - {{if 'cudaDeviceProp.deviceNumaId' in found_struct}} + + deviceNumaId : int NUMA node ID of the GPU memory - {{endif}} - {{if 'cudaDeviceProp.mpsEnabled' in found_struct}} + + mpsEnabled : int Indicates if contexts created on this device will be shared via MPS - {{endif}} - {{if 'cudaDeviceProp.hostNumaId' in found_struct}} + + hostNumaId : int NUMA ID of the host node closest to the device or -1 when system does not support NUMA - {{endif}} - {{if 'cudaDeviceProp.gpuPciDeviceID' in found_struct}} + + gpuPciDeviceID : unsigned int The combined 16-bit PCI device ID and 16-bit PCI vendor ID - {{endif}} - {{if 'cudaDeviceProp.gpuPciSubsystemID' in found_struct}} + + gpuPciSubsystemID : unsigned int The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID - {{endif}} - {{if 'cudaDeviceProp.hostNumaMultinodeIpcSupported' in found_struct}} + + hostNumaMultinodeIpcSupported : int 1 if the device supports HostNuma location IPC between nodes in a multi-node system. - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} + + reserved : list[int] Reserved for future use - {{endif}} + Methods ------- @@ -2396,11 +2246,9 @@ cdef class cudaDeviceProp: """ cdef cyruntime.cudaDeviceProp _pvt_val cdef cyruntime.cudaDeviceProp* _pvt_ptr - {{if 'cudaDeviceProp.uuid' in found_struct}} + cdef cudaUUID_t _uuid - {{endif}} -{{endif}} -{{if 'cudaIpcEventHandle_st' in found_struct}} + cdef class cudaIpcEventHandle_st: """ @@ -2408,10 +2256,10 @@ cdef class cudaIpcEventHandle_st: Attributes ---------- - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -2420,8 +2268,6 @@ cdef class cudaIpcEventHandle_st: """ cdef cyruntime.cudaIpcEventHandle_st _pvt_val cdef cyruntime.cudaIpcEventHandle_st* _pvt_ptr -{{endif}} -{{if 'cudaIpcMemHandle_st' in found_struct}} cdef class cudaIpcMemHandle_st: """ @@ -2429,10 +2275,10 @@ cdef class cudaIpcMemHandle_st: Attributes ---------- - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -2441,17 +2287,15 @@ cdef class cudaIpcMemHandle_st: """ cdef cyruntime.cudaIpcMemHandle_st _pvt_val cdef cyruntime.cudaIpcMemHandle_st* _pvt_ptr -{{endif}} -{{if 'cudaMemFabricHandle_st' in found_struct}} cdef class cudaMemFabricHandle_st: """ Attributes ---------- - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -2460,21 +2304,19 @@ cdef class cudaMemFabricHandle_st: """ cdef cyruntime.cudaMemFabricHandle_st _pvt_val cdef cyruntime.cudaMemFabricHandle_st* _pvt_ptr -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} cdef class anon_struct8: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -2482,31 +2324,29 @@ cdef class anon_struct8: Get memory address of class instance """ cdef cyruntime.cudaExternalMemoryHandleDesc* _pvt_ptr - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + cdef _HelperInputVoidPtr _cyhandle - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + cdef _HelperInputVoidPtr _cyname - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + cdef class anon_union3: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct8 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + nvSciBufObject : Any - {{endif}} + Methods ------- @@ -2514,14 +2354,12 @@ cdef class anon_union3: Get memory address of class instance """ cdef cyruntime.cudaExternalMemoryHandleDesc* _pvt_ptr - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + cdef anon_struct8 _win32 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + cdef _HelperInputVoidPtr _cynvSciBufObject - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc' in found_struct}} + cdef class cudaExternalMemoryHandleDesc: """ @@ -2529,26 +2367,26 @@ cdef class cudaExternalMemoryHandleDesc: Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + type : cudaExternalMemoryHandleType Type of the handle - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + + handle : anon_union3 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or cudaExternalMemoryDedicated - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -2557,11 +2395,9 @@ cdef class cudaExternalMemoryHandleDesc: """ cdef cyruntime.cudaExternalMemoryHandleDesc* _val_ptr cdef cyruntime.cudaExternalMemoryHandleDesc* _pvt_ptr - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + cdef anon_union3 _handle - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryBufferDesc' in found_struct}} + cdef class cudaExternalMemoryBufferDesc: """ @@ -2569,22 +2405,22 @@ cdef class cudaExternalMemoryBufferDesc: Attributes ---------- - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -2593,8 +2429,6 @@ cdef class cudaExternalMemoryBufferDesc: """ cdef cyruntime.cudaExternalMemoryBufferDesc _pvt_val cdef cyruntime.cudaExternalMemoryBufferDesc* _pvt_ptr -{{endif}} -{{if 'cudaExternalMemoryMipmappedArrayDesc' in found_struct}} cdef class cudaExternalMemoryMipmappedArrayDesc: """ @@ -2602,32 +2436,32 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: Attributes ---------- - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + formatDesc : cudaChannelFormatDesc Format of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + extent : cudaExtent Dimensions of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + flags : unsigned int Flags associated with CUDA mipmapped arrays. See cudaMallocMipmappedArray - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -2636,27 +2470,25 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: """ cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc _pvt_val cdef cyruntime.cudaExternalMemoryMipmappedArrayDesc* _pvt_ptr - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + cdef cudaChannelFormatDesc _formatDesc - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + cdef cudaExtent _extent - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + cdef class anon_struct9: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -2664,31 +2496,29 @@ cdef class anon_struct9: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreHandleDesc* _pvt_ptr - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + cdef _HelperInputVoidPtr _cyhandle - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + cdef _HelperInputVoidPtr _cyname - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + cdef class anon_union4: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct9 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + nvSciSyncObj : Any - {{endif}} + Methods ------- @@ -2696,14 +2526,12 @@ cdef class anon_union4: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreHandleDesc* _pvt_ptr - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + cdef anon_struct9 _win32 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + cdef _HelperInputVoidPtr _cynvSciSyncObj - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc' in found_struct}} + cdef class cudaExternalSemaphoreHandleDesc: """ @@ -2711,22 +2539,22 @@ cdef class cudaExternalSemaphoreHandleDesc: Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + type : cudaExternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + + handle : anon_union4 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -2735,20 +2563,18 @@ cdef class cudaExternalSemaphoreHandleDesc: """ cdef cyruntime.cudaExternalSemaphoreHandleDesc* _val_ptr cdef cyruntime.cudaExternalSemaphoreHandleDesc* _pvt_ptr - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + cdef anon_union4 _handle - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + cdef class anon_struct10: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -2756,21 +2582,19 @@ cdef class anon_struct10: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} cdef class anon_union5: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -2778,20 +2602,18 @@ cdef class anon_union5: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + cdef _HelperInputVoidPtr _cyfence - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + cdef class anon_struct11: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} + Methods ------- @@ -2799,29 +2621,27 @@ cdef class anon_struct11: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} cdef class anon_struct12: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + fence : anon_struct10 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union5 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct11 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -2829,17 +2649,15 @@ cdef class anon_struct12: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + cdef anon_struct10 _fence - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + cdef anon_union5 _nvSciSync - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + cdef anon_struct11 _keyedMutex - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams' in found_struct}} + cdef class cudaExternalSemaphoreSignalParams: """ @@ -2847,11 +2665,11 @@ cdef class cudaExternalSemaphoreSignalParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + params : anon_struct12 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -2861,11 +2679,11 @@ cdef class cudaExternalSemaphoreSignalParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -2874,20 +2692,18 @@ cdef class cudaExternalSemaphoreSignalParams: """ cdef cyruntime.cudaExternalSemaphoreSignalParams _pvt_val cdef cyruntime.cudaExternalSemaphoreSignalParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + cdef anon_struct12 _params - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + cdef class anon_struct13: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -2895,21 +2711,19 @@ cdef class anon_struct13: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} cdef class anon_union6: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -2917,24 +2731,22 @@ cdef class anon_union6: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + cdef _HelperInputVoidPtr _cyfence - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + cdef class anon_struct14: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + timeoutMs : unsigned int - {{endif}} + Methods ------- @@ -2942,29 +2754,27 @@ cdef class anon_struct14: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} cdef class anon_struct15: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + fence : anon_struct13 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union6 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct14 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -2972,17 +2782,15 @@ cdef class anon_struct15: Get memory address of class instance """ cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + cdef anon_struct13 _fence - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + cdef anon_union6 _nvSciSync - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + cdef anon_struct14 _keyedMutex - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitParams: """ @@ -2990,11 +2798,11 @@ cdef class cudaExternalSemaphoreWaitParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + params : anon_struct15 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -3004,11 +2812,11 @@ cdef class cudaExternalSemaphoreWaitParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -3017,11 +2825,9 @@ cdef class cudaExternalSemaphoreWaitParams: """ cdef cyruntime.cudaExternalSemaphoreWaitParams _pvt_val cdef cyruntime.cudaExternalSemaphoreWaitParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + cdef anon_struct15 _params - {{endif}} -{{endif}} -{{if 'cudaDevSmResource' in found_struct}} + cdef class cudaDevSmResource: """ @@ -3030,27 +2836,27 @@ cdef class cudaDevSmResource: Attributes ---------- - {{if 'cudaDevSmResource.smCount' in found_struct}} + smCount : unsigned int The amount of streaming multiprocessors available in this resource. - {{endif}} - {{if 'cudaDevSmResource.minSmPartitionSize' in found_struct}} + + minSmPartitionSize : unsigned int The minimum number of streaming multiprocessors required to partition this resource. - {{endif}} - {{if 'cudaDevSmResource.smCoscheduledAlignment' in found_struct}} + + smCoscheduledAlignment : unsigned int The number of streaming multiprocessors in this resource that are guaranteed to be co-scheduled on the same GPU processing cluster. smCount will be a multiple of this value, unless the backfill flag is set. - {{endif}} - {{if 'cudaDevSmResource.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource. For available flags see cudaDevSmResourceGroup_flags. - {{endif}} + Methods ------- @@ -3059,8 +2865,6 @@ cdef class cudaDevSmResource: """ cdef cyruntime.cudaDevSmResource _pvt_val cdef cyruntime.cudaDevSmResource* _pvt_ptr -{{endif}} -{{if 'cudaDevWorkqueueConfigResource' in found_struct}} cdef class cudaDevWorkqueueConfigResource: """ @@ -3068,18 +2872,18 @@ cdef class cudaDevWorkqueueConfigResource: Attributes ---------- - {{if 'cudaDevWorkqueueConfigResource.device' in found_struct}} + device : int The device on which the workqueue resources are available - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.wqConcurrencyLimit' in found_struct}} + + wqConcurrencyLimit : unsigned int The expected maximum number of concurrent stream-ordered workloads - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.sharingScope' in found_struct}} + + sharingScope : cudaDevWorkqueueConfigScope The sharing scope for the workqueue resources - {{endif}} + Methods ------- @@ -3088,8 +2892,6 @@ cdef class cudaDevWorkqueueConfigResource: """ cdef cyruntime.cudaDevWorkqueueConfigResource _pvt_val cdef cyruntime.cudaDevWorkqueueConfigResource* _pvt_ptr -{{endif}} -{{if 'cudaDevWorkqueueResource' in found_struct}} cdef class cudaDevWorkqueueResource: """ @@ -3097,10 +2899,10 @@ cdef class cudaDevWorkqueueResource: Attributes ---------- - {{if 'cudaDevWorkqueueResource.reserved' in found_struct}} + reserved : bytes Reserved for future use - {{endif}} + Methods ------- @@ -3109,8 +2911,6 @@ cdef class cudaDevWorkqueueResource: """ cdef cyruntime.cudaDevWorkqueueResource _pvt_val cdef cyruntime.cudaDevWorkqueueResource* _pvt_ptr -{{endif}} -{{if 'cudaDevSmResourceGroupParams_st' in found_struct}} cdef class cudaDevSmResourceGroupParams_st: """ @@ -3118,29 +2918,29 @@ cdef class cudaDevSmResourceGroupParams_st: Attributes ---------- - {{if 'cudaDevSmResourceGroupParams_st.smCount' in found_struct}} + smCount : unsigned int The amount of SMs available in this resource. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.coscheduledSmCount' in found_struct}} + + coscheduledSmCount : unsigned int The amount of co-scheduled SMs grouped together for locality purposes. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.preferredCoscheduledSmCount' in found_struct}} + + preferredCoscheduledSmCount : unsigned int When possible, combine co-scheduled groups together into larger groups of this size. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.flags' in found_struct}} + + flags : unsigned int Combination of `cudaDevSmResourceGroup_flags` values to indicate this this group is created. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.reserved' in found_struct}} + + reserved : list[unsigned int] Reserved for future use - ensure this is zero initialized. - {{endif}} + Methods ------- @@ -3149,8 +2949,6 @@ cdef class cudaDevSmResourceGroupParams_st: """ cdef cyruntime.cudaDevSmResourceGroupParams_st _pvt_val cdef cyruntime.cudaDevSmResourceGroupParams_st* _pvt_ptr -{{endif}} -{{if 'cudaDevResource_st' in found_struct}} cdef class cudaDevResource_st: """ @@ -3172,35 +2970,35 @@ cdef class cudaDevResource_st: Attributes ---------- - {{if 'cudaDevResource_st.type' in found_struct}} + type : cudaDevResourceType Type of resource, dictates which union field was last set - {{endif}} - {{if 'cudaDevResource_st._internal_padding' in found_struct}} + + _internal_padding : bytes - {{endif}} - {{if 'cudaDevResource_st.sm' in found_struct}} + + sm : cudaDevSmResource Resource corresponding to cudaDevResourceTypeSm `typename`. - {{endif}} - {{if 'cudaDevResource_st.wqConfig' in found_struct}} + + wqConfig : cudaDevWorkqueueConfigResource Resource corresponding to cudaDevResourceTypeWorkqueueConfig `typename`. - {{endif}} - {{if 'cudaDevResource_st.wq' in found_struct}} + + wq : cudaDevWorkqueueResource Resource corresponding to cudaDevResourceTypeWorkqueue `typename`. - {{endif}} - {{if 'cudaDevResource_st._oversize' in found_struct}} + + _oversize : bytes - {{endif}} - {{if 'cudaDevResource_st.nextResource' in found_struct}} + + nextResource : cudaDevResource_st - {{endif}} + Methods ------- @@ -3209,42 +3007,40 @@ cdef class cudaDevResource_st: """ cdef cyruntime.cudaDevResource_st* _val_ptr cdef cyruntime.cudaDevResource_st* _pvt_ptr - {{if 'cudaDevResource_st.sm' in found_struct}} + cdef cudaDevSmResource _sm - {{endif}} - {{if 'cudaDevResource_st.wqConfig' in found_struct}} + + cdef cudaDevWorkqueueConfigResource _wqConfig - {{endif}} - {{if 'cudaDevResource_st.wq' in found_struct}} + + cdef cudaDevWorkqueueResource _wq - {{endif}} - {{if 'cudaDevResource_st.nextResource' in found_struct}} + + cdef size_t _nextResource_length cdef cyruntime.cudaDevResource_st* _nextResource - {{endif}} -{{endif}} -{{if 'cudalibraryHostUniversalFunctionAndDataTable' in found_struct}} + cdef class cudalibraryHostUniversalFunctionAndDataTable: """ Attributes ---------- - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + functionTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + functionWindowSize : size_t - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + dataTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + dataWindowSize : size_t - {{endif}} + Methods ------- @@ -3253,14 +3049,12 @@ cdef class cudalibraryHostUniversalFunctionAndDataTable: """ cdef cyruntime.cudalibraryHostUniversalFunctionAndDataTable _pvt_val cdef cyruntime.cudalibraryHostUniversalFunctionAndDataTable* _pvt_ptr - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + cdef _HelperInputVoidPtr _cyfunctionTable - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + cdef _HelperInputVoidPtr _cydataTable - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParams' in found_struct}} + cdef class cudaKernelNodeParams: """ @@ -3268,30 +3062,30 @@ cdef class cudaKernelNodeParams: Attributes ---------- - {{if 'cudaKernelNodeParams.func' in found_struct}} + func : Any Kernel to launch - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} + Methods ------- @@ -3300,20 +3094,18 @@ cdef class cudaKernelNodeParams: """ cdef cyruntime.cudaKernelNodeParams _pvt_val cdef cyruntime.cudaKernelNodeParams* _pvt_ptr - {{if 'cudaKernelNodeParams.func' in found_struct}} + cdef _HelperInputVoidPtr _cyfunc - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + cdef dim3 _gridDim - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + cdef dim3 _blockDim - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParamsV2' in found_struct}} + cdef class cudaKernelNodeParamsV2: """ @@ -3321,47 +3113,47 @@ cdef class cudaKernelNodeParamsV2: Attributes ---------- - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + func : Any functionType = cudaKernelFucntionTypeDevice - {{endif}} - {{if 'cudaKernelNodeParamsV2.kern' in found_struct}} + + kern : cudaKernel_t functionType = cudaKernelFucntionTypeKernel - {{endif}} - {{if 'cudaKernelNodeParamsV2.cuFunc' in found_struct}} + + cuFunc : cudaFunction_t functionType = cudaKernelFucntionTypeFunction - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} - {{if 'cudaKernelNodeParamsV2.ctx' in found_struct}} + + ctx : cudaExecutionContext_t Context in which to run the kernel. If NULL will try to use the current context. - {{endif}} - {{if 'cudaKernelNodeParamsV2.functionType' in found_struct}} + + functionType : cudaKernelFunctionType Type of handle passed in the func/kern/cuFunc union above - {{endif}} + Methods ------- @@ -3370,29 +3162,27 @@ cdef class cudaKernelNodeParamsV2: """ cdef cyruntime.cudaKernelNodeParamsV2* _val_ptr cdef cyruntime.cudaKernelNodeParamsV2* _pvt_ptr - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + cdef _HelperInputVoidPtr _cyfunc - {{endif}} - {{if 'cudaKernelNodeParamsV2.kern' in found_struct}} + + cdef cudaKernel_t _kern - {{endif}} - {{if 'cudaKernelNodeParamsV2.cuFunc' in found_struct}} + + cdef cudaFunction_t _cuFunc - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + cdef dim3 _gridDim - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + cdef dim3 _blockDim - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + cdef _HelperKernelParams _cykernelParams - {{endif}} - {{if 'cudaKernelNodeParamsV2.ctx' in found_struct}} + + cdef cudaExecutionContext_t _ctx - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParams' in found_struct}} + cdef class cudaExternalSemaphoreSignalNodeParams: """ @@ -3400,19 +3190,19 @@ cdef class cudaExternalSemaphoreSignalNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -3421,16 +3211,14 @@ cdef class cudaExternalSemaphoreSignalNodeParams: """ cdef cyruntime.cudaExternalSemaphoreSignalNodeParams _pvt_val cdef cyruntime.cudaExternalSemaphoreSignalNodeParams* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreSignalNodeParamsV2: """ @@ -3438,19 +3226,19 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -3459,16 +3247,14 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: """ cdef cyruntime.cudaExternalSemaphoreSignalNodeParamsV2 _pvt_val cdef cyruntime.cudaExternalSemaphoreSignalNodeParamsV2* _pvt_ptr - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreSignalParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParams: """ @@ -3476,19 +3262,19 @@ cdef class cudaExternalSemaphoreWaitNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -3497,16 +3283,14 @@ cdef class cudaExternalSemaphoreWaitNodeParams: """ cdef cyruntime.cudaExternalSemaphoreWaitNodeParams _pvt_val cdef cyruntime.cudaExternalSemaphoreWaitNodeParams* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParamsV2: """ @@ -3514,19 +3298,19 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -3535,16 +3319,14 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: """ cdef cyruntime.cudaExternalSemaphoreWaitNodeParamsV2 _pvt_val cdef cyruntime.cudaExternalSemaphoreWaitNodeParamsV2* _pvt_ptr - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + cdef size_t _extSemArray_length cdef cyruntime.cudaExternalSemaphore_t* _extSemArray - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + cdef size_t _paramsArray_length cdef cyruntime.cudaExternalSemaphoreWaitParams* _paramsArray - {{endif}} -{{endif}} -{{if 'cudaConditionalNodeParams' in found_struct}} + cdef class cudaConditionalNodeParams: """ @@ -3552,22 +3334,22 @@ cdef class cudaConditionalNodeParams: Attributes ---------- - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + handle : cudaGraphConditionalHandle Conditional node handle. Handles must be created in advance of creating the node using cudaGraphConditionalHandleCreate. - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + type : cudaGraphConditionalNodeType Type of conditional node. - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + + size : unsigned int Size of graph output array. Allowed values are 1 for cudaGraphCondTypeWhile, 1 or 2 for cudaGraphCondTypeIf, or any value greater than zero for cudaGraphCondTypeSwitch. - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + phGraph_out : cudaGraph_t CUDA-owned array populated with conditional node child graphs during creation of the node. Valid for the lifetime of the @@ -3585,11 +3367,11 @@ cdef class cudaConditionalNodeParams: condition is non-zero. cudaGraphCondTypeSwitch: phGraph_out[n] is executed when the condition is equal to n. If the condition >= `size`, no body graph is executed. - {{endif}} - {{if 'cudaConditionalNodeParams.ctx' in found_struct}} + + ctx : cudaExecutionContext_t CUDA Execution Context - {{endif}} + Methods ------- @@ -3598,18 +3380,16 @@ cdef class cudaConditionalNodeParams: """ cdef cyruntime.cudaConditionalNodeParams _pvt_val cdef cyruntime.cudaConditionalNodeParams* _pvt_ptr - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + cdef cudaGraphConditionalHandle _handle - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + cdef size_t _phGraph_out_length cdef cyruntime.cudaGraph_t* _phGraph_out - {{endif}} - {{if 'cudaConditionalNodeParams.ctx' in found_struct}} + + cdef cudaExecutionContext_t _ctx - {{endif}} -{{endif}} -{{if 'cudaChildGraphNodeParams' in found_struct}} + cdef class cudaChildGraphNodeParams: """ @@ -3617,18 +3397,18 @@ cdef class cudaChildGraphNodeParams: Attributes ---------- - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + graph : cudaGraph_t The child graph to clone into the node for node creation, or a handle to the graph owned by the node for node query. The graph must not contain conditional nodes. Graphs containing memory allocation or memory free nodes must set the ownership to be moved to the parent. - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + ownership : cudaGraphChildGraphNodeOwnership The ownership relationship of the child graph node. - {{endif}} + Methods ------- @@ -3637,11 +3417,9 @@ cdef class cudaChildGraphNodeParams: """ cdef cyruntime.cudaChildGraphNodeParams _pvt_val cdef cyruntime.cudaChildGraphNodeParams* _pvt_ptr - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + cdef cudaGraph_t _graph - {{endif}} -{{endif}} -{{if 'cudaEventRecordNodeParams' in found_struct}} + cdef class cudaEventRecordNodeParams: """ @@ -3649,10 +3427,10 @@ cdef class cudaEventRecordNodeParams: Attributes ---------- - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + event : cudaEvent_t The event to record when the node executes - {{endif}} + Methods ------- @@ -3661,11 +3439,9 @@ cdef class cudaEventRecordNodeParams: """ cdef cyruntime.cudaEventRecordNodeParams _pvt_val cdef cyruntime.cudaEventRecordNodeParams* _pvt_ptr - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaEventWaitNodeParams' in found_struct}} + cdef class cudaEventWaitNodeParams: """ @@ -3673,10 +3449,10 @@ cdef class cudaEventWaitNodeParams: Attributes ---------- - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + event : cudaEvent_t The event to wait on from the node - {{endif}} + Methods ------- @@ -3685,11 +3461,9 @@ cdef class cudaEventWaitNodeParams: """ cdef cyruntime.cudaEventWaitNodeParams _pvt_val cdef cyruntime.cudaEventWaitNodeParams* _pvt_ptr - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaGraphNodeParams' in found_struct}} + cdef class cudaGraphNodeParams: """ @@ -3697,70 +3471,70 @@ cdef class cudaGraphNodeParams: Attributes ---------- - {{if 'cudaGraphNodeParams.type' in found_struct}} + type : cudaGraphNodeType Type of the node - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} + + reserved0 : list[int] Reserved. Must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} + + reserved1 : list[long long] Padding. Unused bytes must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + + kernel : cudaKernelNodeParamsV2 Kernel node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + memcpy : cudaMemcpyNodeParams Memcpy node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + memset : cudaMemsetParamsV2 Memset node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + host : cudaHostNodeParamsV2 Host node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + graph : cudaChildGraphNodeParams Child graph node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + eventWait : cudaEventWaitNodeParams Event wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + eventRecord : cudaEventRecordNodeParams Event record node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + extSemSignal : cudaExternalSemaphoreSignalNodeParamsV2 External semaphore signal node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + extSemWait : cudaExternalSemaphoreWaitNodeParamsV2 External semaphore wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + alloc : cudaMemAllocNodeParamsV2 Memory allocation node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + free : cudaMemFreeNodeParams Memory free node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + conditional : cudaConditionalNodeParams Conditional node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} + + reserved2 : long long Reserved bytes. Must be zero. - {{endif}} + Methods ------- @@ -3769,44 +3543,42 @@ cdef class cudaGraphNodeParams: """ cdef cyruntime.cudaGraphNodeParams* _val_ptr cdef cyruntime.cudaGraphNodeParams* _pvt_ptr - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + cdef cudaKernelNodeParamsV2 _kernel - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + cdef cudaMemcpyNodeParams _memcpy - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + cdef cudaMemsetParamsV2 _memset - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + cdef cudaHostNodeParamsV2 _host - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + cdef cudaChildGraphNodeParams _graph - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + cdef cudaEventWaitNodeParams _eventWait - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + cdef cudaEventRecordNodeParams _eventRecord - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + cdef cudaExternalSemaphoreSignalNodeParamsV2 _extSemSignal - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + cdef cudaExternalSemaphoreWaitNodeParamsV2 _extSemWait - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + cdef cudaMemAllocNodeParamsV2 _alloc - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + cdef cudaMemFreeNodeParams _free - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + cdef cudaConditionalNodeParams _conditional - {{endif}} -{{endif}} -{{if 'cudaGraphEdgeData_st' in found_struct}} + cdef class cudaGraphEdgeData_st: """ @@ -3817,7 +3589,7 @@ cdef class cudaGraphEdgeData_st: Attributes ---------- - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + from_port : bytes This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value @@ -3828,8 +3600,8 @@ cdef class cudaGraphEdgeData_st: cudaGraphKernelNodePortDefault, cudaGraphKernelNodePortProgrammatic, or cudaGraphKernelNodePortLaunchCompletion. - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + to_port : bytes This indicates what portion of the downstream node is dependent on the upstream node or portion thereof (indicated by `from_port`). @@ -3837,18 +3609,18 @@ cdef class cudaGraphEdgeData_st: means the entirety of the downstream node is dependent on the upstream work. Currently no node types define non-zero ports. Accordingly, this field must be set to zero. - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from cudaGraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See cudaGraphDependencyType. - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} + + reserved : bytes These bytes are unused and must be zeroed. This ensures compatibility if additional fields are added in the future. - {{endif}} + Methods ------- @@ -3857,8 +3629,6 @@ cdef class cudaGraphEdgeData_st: """ cdef cyruntime.cudaGraphEdgeData_st _pvt_val cdef cyruntime.cudaGraphEdgeData_st* _pvt_ptr -{{endif}} -{{if 'cudaGraphInstantiateParams_st' in found_struct}} cdef class cudaGraphInstantiateParams_st: """ @@ -3866,22 +3636,22 @@ cdef class cudaGraphInstantiateParams_st: Attributes ---------- - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + flags : unsigned long long Instantiation flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + uploadStream : cudaStream_t Upload stream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + errNode_out : cudaGraphNode_t The node which caused instantiation to fail, if any - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + result_out : cudaGraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -3890,14 +3660,12 @@ cdef class cudaGraphInstantiateParams_st: """ cdef cyruntime.cudaGraphInstantiateParams_st _pvt_val cdef cyruntime.cudaGraphInstantiateParams_st* _pvt_ptr - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + cdef cudaStream_t _uploadStream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + cdef cudaGraphNode_t _errNode_out - {{endif}} -{{endif}} -{{if 'cudaGraphExecUpdateResultInfo_st' in found_struct}} + cdef class cudaGraphExecUpdateResultInfo_st: """ @@ -3905,21 +3673,21 @@ cdef class cudaGraphExecUpdateResultInfo_st: Attributes ---------- - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + result : cudaGraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : cudaGraphNode_t The "to node" of the error edge when the topologies do not match. The error node when the error is associated with a specific node. NULL when the error is generic. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : cudaGraphNode_t The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -3928,31 +3696,29 @@ cdef class cudaGraphExecUpdateResultInfo_st: """ cdef cyruntime.cudaGraphExecUpdateResultInfo_st _pvt_val cdef cyruntime.cudaGraphExecUpdateResultInfo_st* _pvt_ptr - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + cdef cudaGraphNode_t _errorNode - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + cdef cudaGraphNode_t _errorFromNode - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + cdef class anon_struct16: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + pValue : Any - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + offset : size_t - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + size : size_t - {{endif}} + Methods ------- @@ -3960,28 +3726,26 @@ cdef class anon_struct16: Get memory address of class instance """ cdef cyruntime.cudaGraphKernelNodeUpdate* _pvt_ptr - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + cdef _HelperInputVoidPtr _cypValue - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + cdef class anon_union10: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + gridDim : dim3 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + param : anon_struct16 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + isEnabled : unsigned int - {{endif}} + Methods ------- @@ -3989,14 +3753,12 @@ cdef class anon_union10: Get memory address of class instance """ cdef cyruntime.cudaGraphKernelNodeUpdate* _pvt_ptr - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + cdef dim3 _gridDim - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + cdef anon_struct16 _param - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate' in found_struct}} + cdef class cudaGraphKernelNodeUpdate: """ @@ -4005,19 +3767,19 @@ cdef class cudaGraphKernelNodeUpdate: Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + node : cudaGraphDeviceNode_t Node to update - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + field : cudaGraphKernelNodeField Which type of update to apply. Determines how updateData is interpreted - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + updateData : anon_union10 Update data to apply. Which field is used depends on field's value - {{endif}} + Methods ------- @@ -4026,14 +3788,12 @@ cdef class cudaGraphKernelNodeUpdate: """ cdef cyruntime.cudaGraphKernelNodeUpdate* _val_ptr cdef cyruntime.cudaGraphKernelNodeUpdate* _pvt_ptr - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + cdef cudaGraphDeviceNode_t _node - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + cdef anon_union10 _updateData - {{endif}} -{{endif}} -{{if 'cudaLaunchMemSyncDomainMap_st' in found_struct}} + cdef class cudaLaunchMemSyncDomainMap_st: """ @@ -4047,14 +3807,14 @@ cdef class cudaLaunchMemSyncDomainMap_st: Attributes ---------- - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -4063,25 +3823,23 @@ cdef class cudaLaunchMemSyncDomainMap_st: """ cdef cyruntime.cudaLaunchMemSyncDomainMap_st _pvt_val cdef cyruntime.cudaLaunchMemSyncDomainMap_st* _pvt_ptr -{{endif}} -{{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} cdef class anon_struct17: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -4089,25 +3847,23 @@ cdef class anon_struct17: Get memory address of class instance """ cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr -{{endif}} -{{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} cdef class anon_struct18: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + flags : int - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + triggerAtBlockStart : int - {{endif}} + Methods ------- @@ -4115,28 +3871,26 @@ cdef class anon_struct18: Get memory address of class instance """ cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + cdef class anon_struct19: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -4144,21 +3898,19 @@ cdef class anon_struct19: Get memory address of class instance """ cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr -{{endif}} -{{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} cdef class anon_struct20: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + flags : int - {{endif}} + Methods ------- @@ -4166,24 +3918,22 @@ cdef class anon_struct20: Get memory address of class instance """ cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + cdef cudaEvent_t _event - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + cdef class anon_struct21: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + deviceUpdatable : int - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + devNode : cudaGraphDeviceNode_t - {{endif}} + Methods ------- @@ -4191,11 +3941,9 @@ cdef class anon_struct21: Get memory address of class instance """ cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + cdef cudaGraphDeviceNode_t _devNode - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue' in found_struct}} + cdef class cudaLaunchAttributeValue: """ @@ -4203,25 +3951,25 @@ cdef class cudaLaunchAttributeValue: Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct17 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -4230,19 +3978,19 @@ cdef class cudaLaunchAttributeValue: `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct18 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -4250,23 +3998,23 @@ cdef class cudaLaunchAttributeValue: cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct19 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -4280,16 +4028,16 @@ cdef class cudaLaunchAttributeValue: ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct20 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct21 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -4297,27 +4045,27 @@ cdef class cudaLaunchAttributeValue: kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} - {{if 'cudaLaunchAttributeValue.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int Value of launch attribute cudaLaunchAttributeNvlinkUtilCentricScheduling. - {{endif}} - {{if 'cudaLaunchAttributeValue.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : cudaLaunchAttributePortableClusterMode Value of launch attribute cudaLaunchAttributePortableClusterSizeMode - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : cudaSharedMemoryMode Value of launch attribute cudaLaunchAttributeSharedMemoryMode. See cudaSharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -4326,29 +4074,27 @@ cdef class cudaLaunchAttributeValue: """ cdef cyruntime.cudaLaunchAttributeValue _pvt_val cdef cyruntime.cudaLaunchAttributeValue* _pvt_ptr - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + cdef cudaAccessPolicyWindow _accessPolicyWindow - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + cdef anon_struct17 _clusterDim - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + cdef anon_struct18 _programmaticEvent - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + cdef cudaLaunchMemSyncDomainMap _memSyncDomainMap - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + cdef anon_struct19 _preferredClusterDim - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + cdef anon_struct20 _launchCompletionEvent - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + cdef anon_struct21 _deviceUpdatableKernelNode - {{endif}} -{{endif}} -{{if 'cudaLaunchAttribute_st' in found_struct}} + cdef class cudaLaunchAttribute_st: """ @@ -4356,14 +4102,14 @@ cdef class cudaLaunchAttribute_st: Attributes ---------- - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + id : cudaLaunchAttributeID Attribute to set - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + val : cudaLaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -4372,20 +4118,18 @@ cdef class cudaLaunchAttribute_st: """ cdef cyruntime.cudaLaunchAttribute_st _pvt_val cdef cyruntime.cudaLaunchAttribute_st* _pvt_ptr - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + cdef cudaLaunchAttributeValue _val - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + cdef class anon_struct22: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + bytesOverBudget : unsigned long long - {{endif}} + Methods ------- @@ -4393,17 +4137,15 @@ cdef class anon_struct22: Get memory address of class instance """ cdef cyruntime.cudaAsyncNotificationInfo* _pvt_ptr -{{endif}} -{{if 'cudaAsyncNotificationInfo.info' in found_struct}} cdef class anon_union11: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + overBudget : anon_struct22 - {{endif}} + Methods ------- @@ -4411,11 +4153,9 @@ cdef class anon_union11: Get memory address of class instance """ cdef cyruntime.cudaAsyncNotificationInfo* _pvt_ptr - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + cdef anon_struct22 _overBudget - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo' in found_struct}} + cdef class cudaAsyncNotificationInfo: """ @@ -4423,15 +4163,15 @@ cdef class cudaAsyncNotificationInfo: Attributes ---------- - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + type : cudaAsyncNotificationType The type of notification being sent - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + info : anon_union11 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -4440,11 +4180,9 @@ cdef class cudaAsyncNotificationInfo: """ cdef cyruntime.cudaAsyncNotificationInfo* _val_ptr cdef cyruntime.cudaAsyncNotificationInfo* _pvt_ptr - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + cdef anon_union11 _info - {{endif}} -{{endif}} -{{if 'cudaTextureDesc' in found_struct}} + cdef class cudaTextureDesc: """ @@ -4452,58 +4190,58 @@ cdef class cudaTextureDesc: Attributes ---------- - {{if 'cudaTextureDesc.addressMode' in found_struct}} + addressMode : list[cudaTextureAddressMode] Texture address mode for up to 3 dimensions - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + filterMode : cudaTextureFilterMode Texture filter mode - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + + readMode : cudaTextureReadMode Texture read mode - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + + sRGB : int Perform sRGB->linear conversion during texture read - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + borderColor : list[float] Texture Border Color - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + normalizedCoords : int Indicates whether texture reads are normalized or not - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Limit to the anisotropy ratio - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : cudaTextureFilterMode Mipmap filter mode - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Offset applied to the supplied mipmap level - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Lower end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Upper end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + disableTrilinearOptimization : int Disable any trilinear filtering optimizations. - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + seamlessCubemap : int Enable seamless cube map filtering. - {{endif}} + Methods ------- @@ -4512,8 +4250,6 @@ cdef class cudaTextureDesc: """ cdef cyruntime.cudaTextureDesc _pvt_val cdef cyruntime.cudaTextureDesc* _pvt_ptr -{{endif}} -{{if 'cudaGraphRecaptureCallbackData' in found_struct}} cdef class cudaGraphRecaptureCallbackData: """ @@ -4522,14 +4258,14 @@ cdef class cudaGraphRecaptureCallbackData: Attributes ---------- - {{if 'cudaGraphRecaptureCallbackData.callbackFunc' in found_struct}} + callbackFunc : cudaGraphRecaptureCallback_t Callback function that will be invoked - {{endif}} - {{if 'cudaGraphRecaptureCallbackData.userData' in found_struct}} + + userData : Any Generic pointer that is passed to the callback function - {{endif}} + Methods ------- @@ -4538,14 +4274,12 @@ cdef class cudaGraphRecaptureCallbackData: """ cdef cyruntime.cudaGraphRecaptureCallbackData _pvt_val cdef cyruntime.cudaGraphRecaptureCallbackData* _pvt_ptr - {{if 'cudaGraphRecaptureCallbackData.callbackFunc' in found_struct}} + cdef cudaGraphRecaptureCallback_t _callbackFunc - {{endif}} - {{if 'cudaGraphRecaptureCallbackData.userData' in found_struct}} + + cdef _HelperInputVoidPtr _cyuserData - {{endif}} -{{endif}} -{{if True}} + cdef class cudaEglPlaneDesc_st: """ @@ -4554,34 +4288,34 @@ cdef class cudaEglPlaneDesc_st: Attributes ---------- - {{if True}} + width : unsigned int Width of plane - {{endif}} - {{if True}} + + height : unsigned int Height of plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of plane - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + channelDesc : cudaChannelFormatDesc Channel Format Descriptor - {{endif}} - {{if True}} + + reserved : list[unsigned int] Reserved for future use - {{endif}} + Methods ------- @@ -4590,24 +4324,22 @@ cdef class cudaEglPlaneDesc_st: """ cdef cyruntime.cudaEglPlaneDesc_st _pvt_val cdef cyruntime.cudaEglPlaneDesc_st* _pvt_ptr - {{if True}} + cdef cudaChannelFormatDesc _channelDesc - {{endif}} -{{endif}} -{{if True}} + cdef class anon_union12: """ Attributes ---------- - {{if True}} + pArray : list[cudaArray_t] - {{endif}} - {{if True}} + + pPitch : list[cudaPitchedPtr] - {{endif}} + Methods ------- @@ -4615,8 +4347,6 @@ cdef class anon_union12: Get memory address of class instance """ cdef cyruntime.cudaEglFrame_st* _pvt_ptr -{{endif}} -{{if True}} cdef class cudaEglFrame_st: """ @@ -4631,26 +4361,26 @@ cdef class cudaEglFrame_st: Attributes ---------- - {{if True}} + frame : anon_union12 - {{endif}} - {{if True}} + + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + frameType : cudaEglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : cudaEglColorFormat CUDA EGL Color Format - {{endif}} + Methods ------- @@ -4659,20 +4389,18 @@ cdef class cudaEglFrame_st: """ cdef cyruntime.cudaEglFrame_st* _val_ptr cdef cyruntime.cudaEglFrame_st* _pvt_ptr - {{if True}} + cdef anon_union12 _frame - {{endif}} -{{endif}} -{{if 'CUuuid' in found_types}} + cdef class CUuuid(CUuuid_st): """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- @@ -4680,17 +4408,15 @@ cdef class CUuuid(CUuuid_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaUUID_t' in found_types}} cdef class cudaUUID_t(CUuuid_st): """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- @@ -4698,8 +4424,6 @@ cdef class cudaUUID_t(CUuuid_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaIpcEventHandle_t' in found_types}} cdef class cudaIpcEventHandle_t(cudaIpcEventHandle_st): """ @@ -4707,10 +4431,10 @@ cdef class cudaIpcEventHandle_t(cudaIpcEventHandle_st): Attributes ---------- - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -4718,8 +4442,6 @@ cdef class cudaIpcEventHandle_t(cudaIpcEventHandle_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaIpcMemHandle_t' in found_types}} cdef class cudaIpcMemHandle_t(cudaIpcMemHandle_st): """ @@ -4727,10 +4449,10 @@ cdef class cudaIpcMemHandle_t(cudaIpcMemHandle_st): Attributes ---------- - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -4738,17 +4460,15 @@ cdef class cudaIpcMemHandle_t(cudaIpcMemHandle_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaMemFabricHandle_t' in found_types}} cdef class cudaMemFabricHandle_t(cudaMemFabricHandle_st): """ Attributes ---------- - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -4756,8 +4476,6 @@ cdef class cudaMemFabricHandle_t(cudaMemFabricHandle_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaDevSmResourceGroupParams' in found_types}} cdef class cudaDevSmResourceGroupParams(cudaDevSmResourceGroupParams_st): """ @@ -4765,29 +4483,29 @@ cdef class cudaDevSmResourceGroupParams(cudaDevSmResourceGroupParams_st): Attributes ---------- - {{if 'cudaDevSmResourceGroupParams_st.smCount' in found_struct}} + smCount : unsigned int The amount of SMs available in this resource. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.coscheduledSmCount' in found_struct}} + + coscheduledSmCount : unsigned int The amount of co-scheduled SMs grouped together for locality purposes. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.preferredCoscheduledSmCount' in found_struct}} + + preferredCoscheduledSmCount : unsigned int When possible, combine co-scheduled groups together into larger groups of this size. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.flags' in found_struct}} + + flags : unsigned int Combination of `cudaDevSmResourceGroup_flags` values to indicate this this group is created. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.reserved' in found_struct}} + + reserved : list[unsigned int] Reserved for future use - ensure this is zero initialized. - {{endif}} + Methods ------- @@ -4795,8 +4513,6 @@ cdef class cudaDevSmResourceGroupParams(cudaDevSmResourceGroupParams_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaDevResource' in found_types}} cdef class cudaDevResource(cudaDevResource_st): """ @@ -4818,35 +4534,35 @@ cdef class cudaDevResource(cudaDevResource_st): Attributes ---------- - {{if 'cudaDevResource_st.type' in found_struct}} + type : cudaDevResourceType Type of resource, dictates which union field was last set - {{endif}} - {{if 'cudaDevResource_st._internal_padding' in found_struct}} + + _internal_padding : bytes - {{endif}} - {{if 'cudaDevResource_st.sm' in found_struct}} + + sm : cudaDevSmResource Resource corresponding to cudaDevResourceTypeSm `typename`. - {{endif}} - {{if 'cudaDevResource_st.wqConfig' in found_struct}} + + wqConfig : cudaDevWorkqueueConfigResource Resource corresponding to cudaDevResourceTypeWorkqueueConfig `typename`. - {{endif}} - {{if 'cudaDevResource_st.wq' in found_struct}} + + wq : cudaDevWorkqueueResource Resource corresponding to cudaDevResourceTypeWorkqueue `typename`. - {{endif}} - {{if 'cudaDevResource_st._oversize' in found_struct}} + + _oversize : bytes - {{endif}} - {{if 'cudaDevResource_st.nextResource' in found_struct}} + + nextResource : cudaDevResource_st - {{endif}} + Methods ------- @@ -4854,8 +4570,6 @@ cdef class cudaDevResource(cudaDevResource_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaGraphEdgeData' in found_types}} cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): """ @@ -4866,7 +4580,7 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): Attributes ---------- - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + from_port : bytes This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value @@ -4877,8 +4591,8 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): cudaGraphKernelNodePortDefault, cudaGraphKernelNodePortProgrammatic, or cudaGraphKernelNodePortLaunchCompletion. - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + to_port : bytes This indicates what portion of the downstream node is dependent on the upstream node or portion thereof (indicated by `from_port`). @@ -4886,18 +4600,18 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): means the entirety of the downstream node is dependent on the upstream work. Currently no node types define non-zero ports. Accordingly, this field must be set to zero. - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from cudaGraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See cudaGraphDependencyType. - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} + + reserved : bytes These bytes are unused and must be zeroed. This ensures compatibility if additional fields are added in the future. - {{endif}} + Methods ------- @@ -4905,8 +4619,6 @@ cdef class cudaGraphEdgeData(cudaGraphEdgeData_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaGraphInstantiateParams' in found_types}} cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st): """ @@ -4914,22 +4626,22 @@ cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st): Attributes ---------- - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + flags : unsigned long long Instantiation flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + uploadStream : cudaStream_t Upload stream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + errNode_out : cudaGraphNode_t The node which caused instantiation to fail, if any - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + result_out : cudaGraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -4937,8 +4649,6 @@ cdef class cudaGraphInstantiateParams(cudaGraphInstantiateParams_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaGraphExecUpdateResultInfo' in found_types}} cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st): """ @@ -4946,21 +4656,21 @@ cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st): Attributes ---------- - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + result : cudaGraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : cudaGraphNode_t The "to node" of the error edge when the topologies do not match. The error node when the error is associated with a specific node. NULL when the error is generic. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : cudaGraphNode_t The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -4968,8 +4678,6 @@ cdef class cudaGraphExecUpdateResultInfo(cudaGraphExecUpdateResultInfo_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaLaunchMemSyncDomainMap' in found_types}} cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st): """ @@ -4983,14 +4691,14 @@ cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st): Attributes ---------- - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -4998,8 +4706,6 @@ cdef class cudaLaunchMemSyncDomainMap(cudaLaunchMemSyncDomainMap_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaLaunchAttribute' in found_types}} cdef class cudaLaunchAttribute(cudaLaunchAttribute_st): """ @@ -5007,14 +4713,14 @@ cdef class cudaLaunchAttribute(cudaLaunchAttribute_st): Attributes ---------- - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + id : cudaLaunchAttributeID Attribute to set - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + val : cudaLaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -5022,8 +4728,6 @@ cdef class cudaLaunchAttribute(cudaLaunchAttribute_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaAsyncNotificationInfo_t' in found_types}} cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo): """ @@ -5031,15 +4735,15 @@ cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo): Attributes ---------- - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + type : cudaAsyncNotificationType The type of notification being sent - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + info : anon_union11 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -5047,8 +4751,6 @@ cdef class cudaAsyncNotificationInfo_t(cudaAsyncNotificationInfo): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): """ @@ -5056,25 +4758,25 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct17 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -5083,19 +4785,19 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct18 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -5103,23 +4805,23 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct19 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -5133,16 +4835,16 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct20 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct21 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -5150,27 +4852,27 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} - {{if 'cudaLaunchAttributeValue.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int Value of launch attribute cudaLaunchAttributeNvlinkUtilCentricScheduling. - {{endif}} - {{if 'cudaLaunchAttributeValue.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : cudaLaunchAttributePortableClusterMode Value of launch attribute cudaLaunchAttributePortableClusterSizeMode - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : cudaSharedMemoryMode Value of launch attribute cudaLaunchAttributeSharedMemoryMode. See cudaSharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -5178,8 +4880,6 @@ cdef class cudaStreamAttrValue(cudaLaunchAttributeValue): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): """ @@ -5187,25 +4887,25 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct17 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -5214,19 +4914,19 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct18 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -5234,23 +4934,23 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct19 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -5264,16 +4964,16 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct20 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct21 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -5281,27 +4981,27 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} - {{if 'cudaLaunchAttributeValue.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int Value of launch attribute cudaLaunchAttributeNvlinkUtilCentricScheduling. - {{endif}} - {{if 'cudaLaunchAttributeValue.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : cudaLaunchAttributePortableClusterMode Value of launch attribute cudaLaunchAttributePortableClusterSizeMode - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : cudaSharedMemoryMode Value of launch attribute cudaLaunchAttributeSharedMemoryMode. See cudaSharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -5309,8 +5009,6 @@ cdef class cudaKernelNodeAttrValue(cudaLaunchAttributeValue): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): """ @@ -5319,34 +5017,34 @@ cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): Attributes ---------- - {{if True}} + width : unsigned int Width of plane - {{endif}} - {{if True}} + + height : unsigned int Height of plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of plane - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + channelDesc : cudaChannelFormatDesc Channel Format Descriptor - {{endif}} - {{if True}} + + reserved : list[unsigned int] Reserved for future use - {{endif}} + Methods ------- @@ -5354,8 +5052,6 @@ cdef class cudaEglPlaneDesc(cudaEglPlaneDesc_st): Get memory address of class instance """ pass -{{endif}} -{{if True}} cdef class cudaEglFrame(cudaEglFrame_st): """ @@ -5370,26 +5066,26 @@ cdef class cudaEglFrame(cudaEglFrame_st): Attributes ---------- - {{if True}} + frame : anon_union12 - {{endif}} - {{if True}} + + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + frameType : cudaEglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : cudaEglColorFormat CUDA EGL Color Format - {{endif}} + Methods ------- @@ -5397,8 +5093,6 @@ cdef class cudaEglFrame(cudaEglFrame_st): Get memory address of class instance """ pass -{{endif}} -{{if 'cudaStream_t' in found_types}} cdef class cudaStream_t(driver.CUstream): """ @@ -5412,9 +5106,6 @@ cdef class cudaStream_t(driver.CUstream): """ pass -{{endif}} - -{{if 'cudaEvent_t' in found_types}} cdef class cudaEvent_t(driver.CUevent): """ @@ -5428,9 +5119,6 @@ cdef class cudaEvent_t(driver.CUevent): """ pass -{{endif}} - -{{if 'cudaGraph_t' in found_types}} cdef class cudaGraph_t(driver.CUgraph): """ @@ -5444,9 +5132,6 @@ cdef class cudaGraph_t(driver.CUgraph): """ pass -{{endif}} - -{{if 'cudaGraphNode_t' in found_types}} cdef class cudaGraphNode_t(driver.CUgraphNode): """ @@ -5460,9 +5145,6 @@ cdef class cudaGraphNode_t(driver.CUgraphNode): """ pass -{{endif}} - -{{if 'cudaUserObject_t' in found_types}} cdef class cudaUserObject_t(driver.CUuserObject): """ @@ -5476,9 +5158,6 @@ cdef class cudaUserObject_t(driver.CUuserObject): """ pass -{{endif}} - -{{if 'cudaFunction_t' in found_types}} cdef class cudaFunction_t(driver.CUfunction): """ @@ -5492,9 +5171,6 @@ cdef class cudaFunction_t(driver.CUfunction): """ pass -{{endif}} - -{{if 'cudaMemPool_t' in found_types}} cdef class cudaMemPool_t(driver.CUmemoryPool): """ @@ -5508,9 +5184,6 @@ cdef class cudaMemPool_t(driver.CUmemoryPool): """ pass -{{endif}} - -{{if 'cudaGraphExec_t' in found_types}} cdef class cudaGraphExec_t(driver.CUgraphExec): """ @@ -5524,9 +5197,6 @@ cdef class cudaGraphExec_t(driver.CUgraphExec): """ pass -{{endif}} - -{{if True}} cdef class cudaEglStreamConnection(driver.CUeglStreamConnection): """ @@ -5540,9 +5210,6 @@ cdef class cudaEglStreamConnection(driver.CUeglStreamConnection): """ pass -{{endif}} - -{{if 'cudaGraphConditionalHandle' in found_types}} cdef class cudaGraphConditionalHandle: """ @@ -5557,9 +5224,6 @@ cdef class cudaGraphConditionalHandle: """ cdef cyruntime.cudaGraphConditionalHandle _pvt_val cdef cyruntime.cudaGraphConditionalHandle* _pvt_ptr -{{endif}} - -{{if 'cudaLogIterator' in found_types}} cdef class cudaLogIterator: """ @@ -5572,9 +5236,6 @@ cdef class cudaLogIterator: """ cdef cyruntime.cudaLogIterator _pvt_val cdef cyruntime.cudaLogIterator* _pvt_ptr -{{endif}} - -{{if 'cudaSurfaceObject_t' in found_types}} cdef class cudaSurfaceObject_t: """ @@ -5589,9 +5250,6 @@ cdef class cudaSurfaceObject_t: """ cdef cyruntime.cudaSurfaceObject_t _pvt_val cdef cyruntime.cudaSurfaceObject_t* _pvt_ptr -{{endif}} - -{{if 'cudaTextureObject_t' in found_types}} cdef class cudaTextureObject_t: """ @@ -5606,9 +5264,6 @@ cdef class cudaTextureObject_t: """ cdef cyruntime.cudaTextureObject_t _pvt_val cdef cyruntime.cudaTextureObject_t* _pvt_ptr -{{endif}} - -{{if True}} cdef class GLenum: """ @@ -5621,9 +5276,6 @@ cdef class GLenum: """ cdef cyruntime.GLenum _pvt_val cdef cyruntime.GLenum* _pvt_ptr -{{endif}} - -{{if True}} cdef class GLuint: """ @@ -5636,9 +5288,6 @@ cdef class GLuint: """ cdef cyruntime.GLuint _pvt_val cdef cyruntime.GLuint* _pvt_ptr -{{endif}} - -{{if True}} cdef class EGLint: """ @@ -5651,9 +5300,6 @@ cdef class EGLint: """ cdef cyruntime.EGLint _pvt_val cdef cyruntime.EGLint* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpDevice: """ @@ -5666,9 +5312,6 @@ cdef class VdpDevice: """ cdef cyruntime.VdpDevice _pvt_val cdef cyruntime.VdpDevice* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpGetProcAddress: """ @@ -5681,9 +5324,6 @@ cdef class VdpGetProcAddress: """ cdef cyruntime.VdpGetProcAddress _pvt_val cdef cyruntime.VdpGetProcAddress* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpVideoSurface: """ @@ -5696,9 +5336,6 @@ cdef class VdpVideoSurface: """ cdef cyruntime.VdpVideoSurface _pvt_val cdef cyruntime.VdpVideoSurface* _pvt_ptr -{{endif}} - -{{if True}} cdef class VdpOutputSurface: """ @@ -5711,4 +5348,3 @@ cdef class VdpOutputSurface: """ cdef cyruntime.VdpOutputSurface _pvt_val cdef cyruntime.VdpOutputSurface* _pvt_ptr -{{endif}} diff --git a/cuda_bindings/cuda/bindings/runtime.pyx.in b/cuda_bindings/cuda/bindings/runtime.pyx similarity index 85% rename from cuda_bindings/cuda/bindings/runtime.pyx.in rename to cuda_bindings/cuda/bindings/runtime.pyx index 2b3bb33d60c..e3f8f68ae48 100644 --- a/cuda_bindings/cuda/bindings/runtime.pyx.in +++ b/cuda_bindings/cuda/bindings/runtime.pyx @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE -# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1752+g89e531539. Do not modify it directly. +# This code was automatically generated with version 13.3.0, generator version 0.3.1.dev1779+ga8cc71818.d20260625. Do not modify it directly. from typing import Any, Optional import cython import ctypes @@ -339,76 +339,74 @@ __CUDART_API_VERSION = cyruntime.__CUDART_API_VERSION #: Maximum number of planes per frame CUDA_EGL_MAX_PLANES = cyruntime.CUDA_EGL_MAX_PLANES -{{if 'cudaError' in found_types}} - class cudaError_t(_FastEnum): """ impl_private CUDA error types """ - {{if 'cudaSuccess' in found_values}} + cudaSuccess = ( cyruntime.cudaError.cudaSuccess, 'The API call returned with no errors. In the case of query calls, this also\n' 'means that the operation being queried is complete (see\n' ':py:obj:`~.cudaEventQuery()` and :py:obj:`~.cudaStreamQuery()`).\n' - ){{endif}} - {{if 'cudaErrorInvalidValue' in found_values}} + ) + cudaErrorInvalidValue = ( cyruntime.cudaError.cudaErrorInvalidValue, 'This indicates that one or more of the parameters passed to the API call is\n' 'not within an acceptable range of values.\n' - ){{endif}} - {{if 'cudaErrorMemoryAllocation' in found_values}} + ) + cudaErrorMemoryAllocation = ( cyruntime.cudaError.cudaErrorMemoryAllocation, 'The API call failed because it was unable to allocate enough memory or\n' 'other resources to perform the requested operation.\n' - ){{endif}} - {{if 'cudaErrorInitializationError' in found_values}} + ) + cudaErrorInitializationError = ( cyruntime.cudaError.cudaErrorInitializationError, 'The API call failed because the CUDA driver and runtime could not be\n' 'initialized.\n' - ){{endif}} - {{if 'cudaErrorCudartUnloading' in found_values}} + ) + cudaErrorCudartUnloading = ( cyruntime.cudaError.cudaErrorCudartUnloading, 'This indicates that a CUDA Runtime API call cannot be executed because it\n' 'is being called during process shut down, at a point in time after CUDA\n' 'driver has been unloaded.\n' - ){{endif}} - {{if 'cudaErrorProfilerDisabled' in found_values}} + ) + cudaErrorProfilerDisabled = ( cyruntime.cudaError.cudaErrorProfilerDisabled, 'This indicates profiler is not initialized for this run. This can happen\n' 'when the application is running with external profiling tools like visual\n' 'profiler.\n' - ){{endif}} - {{if 'cudaErrorProfilerNotInitialized' in found_values}} + ) + cudaErrorProfilerNotInitialized = ( cyruntime.cudaError.cudaErrorProfilerNotInitialized, '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorProfilerAlreadyStarted' in found_values}} + ) + cudaErrorProfilerAlreadyStarted = ( cyruntime.cudaError.cudaErrorProfilerAlreadyStarted, '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorProfilerAlreadyStopped' in found_values}} + ) + cudaErrorProfilerAlreadyStopped = ( cyruntime.cudaError.cudaErrorProfilerAlreadyStopped, '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidConfiguration' in found_values}} + ) + cudaErrorInvalidConfiguration = ( cyruntime.cudaError.cudaErrorInvalidConfiguration, @@ -417,196 +415,196 @@ class cudaError_t(_FastEnum): 'than the device supports will trigger this error, as will requesting too\n' 'many threads or blocks. See :py:obj:`~.cudaDeviceProp` for more device\n' 'limitations.\n' - ){{endif}} - {{if 'cudaErrorVersionTranslation' in found_values}} + ) + cudaErrorVersionTranslation = ( cyruntime.cudaError.cudaErrorVersionTranslation, 'This indicates that the driver is newer than the runtime version and\n' 'returned graph node parameter information that the runtime does not\n' 'understand and is unable to translate.\n' - ){{endif}} - {{if 'cudaErrorInvalidPitchValue' in found_values}} + ) + cudaErrorInvalidPitchValue = ( cyruntime.cudaError.cudaErrorInvalidPitchValue, 'This indicates that one or more of the pitch-related parameters passed to\n' 'the API call is not within the acceptable range for pitch.\n' - ){{endif}} - {{if 'cudaErrorInvalidSymbol' in found_values}} + ) + cudaErrorInvalidSymbol = ( cyruntime.cudaError.cudaErrorInvalidSymbol, 'This indicates that the symbol name/identifier passed to the API call is\n' 'not a valid name or identifier.\n' - ){{endif}} - {{if 'cudaErrorInvalidHostPointer' in found_values}} + ) + cudaErrorInvalidHostPointer = ( cyruntime.cudaError.cudaErrorInvalidHostPointer, 'This indicates that at least one host pointer passed to the API call is not\n' 'a valid host pointer.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidDevicePointer' in found_values}} + ) + cudaErrorInvalidDevicePointer = ( cyruntime.cudaError.cudaErrorInvalidDevicePointer, 'This indicates that at least one device pointer passed to the API call is\n' 'not a valid device pointer.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidTexture' in found_values}} + ) + cudaErrorInvalidTexture = ( cyruntime.cudaError.cudaErrorInvalidTexture, 'This indicates that the texture passed to the API call is not a valid\n' 'texture.\n' - ){{endif}} - {{if 'cudaErrorInvalidTextureBinding' in found_values}} + ) + cudaErrorInvalidTextureBinding = ( cyruntime.cudaError.cudaErrorInvalidTextureBinding, 'This indicates that the texture binding is not valid. This occurs if you\n' 'call :py:obj:`~.cudaGetTextureAlignmentOffset()` with an unbound texture.\n' - ){{endif}} - {{if 'cudaErrorInvalidChannelDescriptor' in found_values}} + ) + cudaErrorInvalidChannelDescriptor = ( cyruntime.cudaError.cudaErrorInvalidChannelDescriptor, 'This indicates that the channel descriptor passed to the API call is not\n' 'valid. This occurs if the format is not one of the formats specified by\n' ':py:obj:`~.cudaChannelFormatKind`, or if one of the dimensions is invalid.\n' - ){{endif}} - {{if 'cudaErrorInvalidMemcpyDirection' in found_values}} + ) + cudaErrorInvalidMemcpyDirection = ( cyruntime.cudaError.cudaErrorInvalidMemcpyDirection, 'This indicates that the direction of the memcpy passed to the API call is\n' 'not one of the types specified by :py:obj:`~.cudaMemcpyKind`.\n' - ){{endif}} - {{if 'cudaErrorAddressOfConstant' in found_values}} + ) + cudaErrorAddressOfConstant = ( cyruntime.cudaError.cudaErrorAddressOfConstant, 'This indicated that the user has taken the address of a constant variable,\n' 'which was forbidden up until the CUDA 3.1 release.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorTextureFetchFailed' in found_values}} + ) + cudaErrorTextureFetchFailed = ( cyruntime.cudaError.cudaErrorTextureFetchFailed, 'This indicated that a texture fetch was not able to be performed. This was\n' 'previously used for device emulation of texture operations.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorTextureNotBound' in found_values}} + ) + cudaErrorTextureNotBound = ( cyruntime.cudaError.cudaErrorTextureNotBound, 'This indicated that a texture was not bound for access. This was previously\n' 'used for device emulation of texture operations.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorSynchronizationError' in found_values}} + ) + cudaErrorSynchronizationError = ( cyruntime.cudaError.cudaErrorSynchronizationError, 'This indicated that a synchronization operation had failed. This was\n' 'previously used for some device emulation functions.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorInvalidFilterSetting' in found_values}} + ) + cudaErrorInvalidFilterSetting = ( cyruntime.cudaError.cudaErrorInvalidFilterSetting, 'This indicates that a non-float texture was being accessed with linear\n' 'filtering. This is not supported by CUDA.\n' - ){{endif}} - {{if 'cudaErrorInvalidNormSetting' in found_values}} + ) + cudaErrorInvalidNormSetting = ( cyruntime.cudaError.cudaErrorInvalidNormSetting, 'This indicates that an attempt was made to read an unsupported data type as\n' 'a normalized float. This is not supported by CUDA.\n' - ){{endif}} - {{if 'cudaErrorMixedDeviceExecution' in found_values}} + ) + cudaErrorMixedDeviceExecution = ( cyruntime.cudaError.cudaErrorMixedDeviceExecution, 'Mixing of device and device emulation code was not allowed.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorNotYetImplemented' in found_values}} + ) + cudaErrorNotYetImplemented = ( cyruntime.cudaError.cudaErrorNotYetImplemented, 'This indicates that the API call is not yet implemented. Production\n' 'releases of CUDA will never return this error.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorMemoryValueTooLarge' in found_values}} + ) + cudaErrorMemoryValueTooLarge = ( cyruntime.cudaError.cudaErrorMemoryValueTooLarge, 'This indicated that an emulated device pointer exceeded the 32-bit address\n' 'range.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorStubLibrary' in found_values}} + ) + cudaErrorStubLibrary = ( cyruntime.cudaError.cudaErrorStubLibrary, 'This indicates that the CUDA driver that the application has loaded is a\n' 'stub library. Applications that run with the stub rather than a real driver\n' 'loaded will result in CUDA API returning this error.\n' - ){{endif}} - {{if 'cudaErrorInsufficientDriver' in found_values}} + ) + cudaErrorInsufficientDriver = ( cyruntime.cudaError.cudaErrorInsufficientDriver, 'This indicates that the installed NVIDIA CUDA driver is older than the CUDA\n' 'runtime library. This is not a supported configuration. Users should\n' 'install an updated NVIDIA display driver to allow the application to run.\n' - ){{endif}} - {{if 'cudaErrorCallRequiresNewerDriver' in found_values}} + ) + cudaErrorCallRequiresNewerDriver = ( cyruntime.cudaError.cudaErrorCallRequiresNewerDriver, 'This indicates that the API call requires a newer CUDA driver than the one\n' 'currently installed. Users should install an updated NVIDIA CUDA driver to\n' 'allow the API call to succeed.\n' - ){{endif}} - {{if 'cudaErrorInvalidSurface' in found_values}} + ) + cudaErrorInvalidSurface = ( cyruntime.cudaError.cudaErrorInvalidSurface, 'This indicates that the surface passed to the API call is not a valid\n' 'surface.\n' - ){{endif}} - {{if 'cudaErrorDuplicateVariableName' in found_values}} + ) + cudaErrorDuplicateVariableName = ( cyruntime.cudaError.cudaErrorDuplicateVariableName, 'This indicates that multiple global or constant variables (across separate\n' 'CUDA source files in the application) share the same string name.\n' - ){{endif}} - {{if 'cudaErrorDuplicateTextureName' in found_values}} + ) + cudaErrorDuplicateTextureName = ( cyruntime.cudaError.cudaErrorDuplicateTextureName, 'This indicates that multiple textures (across separate CUDA source files in\n' 'the application) share the same string name.\n' - ){{endif}} - {{if 'cudaErrorDuplicateSurfaceName' in found_values}} + ) + cudaErrorDuplicateSurfaceName = ( cyruntime.cudaError.cudaErrorDuplicateSurfaceName, 'This indicates that multiple surfaces (across separate CUDA source files in\n' 'the application) share the same string name.\n' - ){{endif}} - {{if 'cudaErrorDevicesUnavailable' in found_values}} + ) + cudaErrorDevicesUnavailable = ( cyruntime.cudaError.cudaErrorDevicesUnavailable, @@ -617,8 +615,8 @@ class cudaError_t(_FastEnum): 'kernels have filled up the GPU and are blocking new work from starting.\n' 'They can also be unavailable due to memory constraints on a device that\n' 'already has active CUDA work being performed.\n' - ){{endif}} - {{if 'cudaErrorIncompatibleDriverContext' in found_values}} + ) + cudaErrorIncompatibleDriverContext = ( cyruntime.cudaError.cudaErrorIncompatibleDriverContext, @@ -630,32 +628,32 @@ class cudaError_t(_FastEnum): 'Runtime API call expects a primary driver context and the Driver context is\n' 'not primary, or because the Driver context has been destroyed. Please see\n' ':py:obj:`~.Interactions with the CUDA Driver API` for more information.\n' - ){{endif}} - {{if 'cudaErrorMissingConfiguration' in found_values}} + ) + cudaErrorMissingConfiguration = ( cyruntime.cudaError.cudaErrorMissingConfiguration, 'The device function being invoked (usually via\n' ':py:obj:`~.cudaLaunchKernel()`) was not previously configured via the\n' ':py:obj:`~.cudaConfigureCall()` function.\n' - ){{endif}} - {{if 'cudaErrorPriorLaunchFailure' in found_values}} + ) + cudaErrorPriorLaunchFailure = ( cyruntime.cudaError.cudaErrorPriorLaunchFailure, 'This indicated that a previous kernel launch failed. This was previously\n' 'used for device emulation of kernel launches.\n' '[Deprecated]\n' - ){{endif}} - {{if 'cudaErrorLaunchMaxDepthExceeded' in found_values}} + ) + cudaErrorLaunchMaxDepthExceeded = ( cyruntime.cudaError.cudaErrorLaunchMaxDepthExceeded, 'This error indicates that a device runtime grid launch did not occur\n' 'because the depth of the child grid would exceed the maximum supported\n' 'number of nested grid launches.\n' - ){{endif}} - {{if 'cudaErrorLaunchFileScopedTex' in found_values}} + ) + cudaErrorLaunchFileScopedTex = ( cyruntime.cudaError.cudaErrorLaunchFileScopedTex, @@ -663,8 +661,8 @@ class cudaError_t(_FastEnum): 'uses file-scoped textures which are unsupported by the device runtime.\n' 'Kernels launched via the device runtime only support textures created with\n' "the Texture Object API's.\n" - ){{endif}} - {{if 'cudaErrorLaunchFileScopedSurf' in found_values}} + ) + cudaErrorLaunchFileScopedSurf = ( cyruntime.cudaError.cudaErrorLaunchFileScopedSurf, @@ -672,8 +670,8 @@ class cudaError_t(_FastEnum): 'uses file-scoped surfaces which are unsupported by the device runtime.\n' 'Kernels launched via the device runtime only support surfaces created with\n' "the Surface Object API's.\n" - ){{endif}} - {{if 'cudaErrorSyncDepthExceeded' in found_values}} + ) + cudaErrorSyncDepthExceeded = ( cyruntime.cudaError.cudaErrorSyncDepthExceeded, @@ -690,8 +688,8 @@ class cudaError_t(_FastEnum): 'be used for user allocations. Note that :py:obj:`~.cudaDeviceSynchronize`\n' 'made from device runtime is only supported on devices of compute capability\n' '< 9.0.\n' - ){{endif}} - {{if 'cudaErrorLaunchPendingCountExceeded' in found_values}} + ) + cudaErrorLaunchPendingCountExceeded = ( cyruntime.cudaError.cudaErrorLaunchPendingCountExceeded, @@ -704,36 +702,36 @@ class cudaError_t(_FastEnum): 'runtime. Keep in mind that raising the limit of pending device runtime\n' 'launches will require the runtime to reserve device memory that cannot be\n' 'used for user allocations.\n' - ){{endif}} - {{if 'cudaErrorInvalidDeviceFunction' in found_values}} + ) + cudaErrorInvalidDeviceFunction = ( cyruntime.cudaError.cudaErrorInvalidDeviceFunction, 'The requested device function does not exist or is not compiled for the\n' 'proper device architecture.\n' - ){{endif}} - {{if 'cudaErrorNoDevice' in found_values}} + ) + cudaErrorNoDevice = ( cyruntime.cudaError.cudaErrorNoDevice, 'This indicates that no CUDA-capable devices were detected by the installed\n' 'CUDA driver.\n' - ){{endif}} - {{if 'cudaErrorInvalidDevice' in found_values}} + ) + cudaErrorInvalidDevice = ( cyruntime.cudaError.cudaErrorInvalidDevice, 'This indicates that the device ordinal supplied by the user does not\n' 'correspond to a valid CUDA device or that the action requested is invalid\n' 'for the specified device.\n' - ){{endif}} - {{if 'cudaErrorDeviceNotLicensed' in found_values}} + ) + cudaErrorDeviceNotLicensed = ( cyruntime.cudaError.cudaErrorDeviceNotLicensed, "This indicates that the device doesn't have a valid Grid License.\n" - ){{endif}} - {{if 'cudaErrorSoftwareValidityNotEstablished' in found_values}} + ) + cudaErrorSoftwareValidityNotEstablished = ( cyruntime.cudaError.cudaErrorSoftwareValidityNotEstablished, @@ -742,20 +740,20 @@ class cudaError_t(_FastEnum): 'CUDA 11.2, this error return indicates that at least one of these tests has\n' 'failed and the validity of either the runtime or the driver could not be\n' 'established.\n' - ){{endif}} - {{if 'cudaErrorStartupFailure' in found_values}} + ) + cudaErrorStartupFailure = ( cyruntime.cudaError.cudaErrorStartupFailure, 'This indicates an internal startup failure in the CUDA runtime.\n' - ){{endif}} - {{if 'cudaErrorInvalidKernelImage' in found_values}} + ) + cudaErrorInvalidKernelImage = ( cyruntime.cudaError.cudaErrorInvalidKernelImage, 'This indicates that the device kernel image is invalid.\n' - ){{endif}} - {{if 'cudaErrorDeviceUninitialized' in found_values}} + ) + cudaErrorDeviceUninitialized = ( cyruntime.cudaError.cudaErrorDeviceUninitialized, @@ -765,33 +763,33 @@ class cudaError_t(_FastEnum): ':py:obj:`~.cuCtxDestroy()` invoked on it). This can also be returned if a\n' 'user mixes different API versions (i.e. 3010 context with 3020 API calls).\n' 'See :py:obj:`~.cuCtxGetApiVersion()` for more details.\n' - ){{endif}} - {{if 'cudaErrorMapBufferObjectFailed' in found_values}} + ) + cudaErrorMapBufferObjectFailed = ( cyruntime.cudaError.cudaErrorMapBufferObjectFailed, 'This indicates that the buffer object could not be mapped.\n' - ){{endif}} - {{if 'cudaErrorUnmapBufferObjectFailed' in found_values}} + ) + cudaErrorUnmapBufferObjectFailed = ( cyruntime.cudaError.cudaErrorUnmapBufferObjectFailed, 'This indicates that the buffer object could not be unmapped.\n' - ){{endif}} - {{if 'cudaErrorArrayIsMapped' in found_values}} + ) + cudaErrorArrayIsMapped = ( cyruntime.cudaError.cudaErrorArrayIsMapped, 'This indicates that the specified array is currently mapped and thus cannot\n' 'be destroyed.\n' - ){{endif}} - {{if 'cudaErrorAlreadyMapped' in found_values}} + ) + cudaErrorAlreadyMapped = ( cyruntime.cudaError.cudaErrorAlreadyMapped, 'This indicates that the resource is already mapped.\n' - ){{endif}} - {{if 'cudaErrorNoKernelImageForDevice' in found_values}} + ) + cudaErrorNoKernelImageForDevice = ( cyruntime.cudaError.cudaErrorNoKernelImageForDevice, @@ -799,82 +797,82 @@ class cudaError_t(_FastEnum): 'the device. This can occur when a user specifies code generation options\n' 'for a particular CUDA source file that do not include the corresponding\n' 'device configuration.\n' - ){{endif}} - {{if 'cudaErrorAlreadyAcquired' in found_values}} + ) + cudaErrorAlreadyAcquired = ( cyruntime.cudaError.cudaErrorAlreadyAcquired, 'This indicates that a resource has already been acquired.\n' - ){{endif}} - {{if 'cudaErrorNotMapped' in found_values}} + ) + cudaErrorNotMapped = ( cyruntime.cudaError.cudaErrorNotMapped, 'This indicates that a resource is not mapped.\n' - ){{endif}} - {{if 'cudaErrorNotMappedAsArray' in found_values}} + ) + cudaErrorNotMappedAsArray = ( cyruntime.cudaError.cudaErrorNotMappedAsArray, 'This indicates that a mapped resource is not available for access as an\n' 'array.\n' - ){{endif}} - {{if 'cudaErrorNotMappedAsPointer' in found_values}} + ) + cudaErrorNotMappedAsPointer = ( cyruntime.cudaError.cudaErrorNotMappedAsPointer, 'This indicates that a mapped resource is not available for access as a\n' 'pointer.\n' - ){{endif}} - {{if 'cudaErrorECCUncorrectable' in found_values}} + ) + cudaErrorECCUncorrectable = ( cyruntime.cudaError.cudaErrorECCUncorrectable, 'This indicates that an uncorrectable ECC error was detected during\n' 'execution.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedLimit' in found_values}} + ) + cudaErrorUnsupportedLimit = ( cyruntime.cudaError.cudaErrorUnsupportedLimit, 'This indicates that the :py:obj:`~.cudaLimit` passed to the API call is not\n' 'supported by the active device.\n' - ){{endif}} - {{if 'cudaErrorDeviceAlreadyInUse' in found_values}} + ) + cudaErrorDeviceAlreadyInUse = ( cyruntime.cudaError.cudaErrorDeviceAlreadyInUse, 'This indicates that a call tried to access an exclusive-thread device that\n' 'is already in use by a different thread.\n' - ){{endif}} - {{if 'cudaErrorPeerAccessUnsupported' in found_values}} + ) + cudaErrorPeerAccessUnsupported = ( cyruntime.cudaError.cudaErrorPeerAccessUnsupported, 'This error indicates that P2P access is not supported across the given\n' 'devices.\n' - ){{endif}} - {{if 'cudaErrorInvalidPtx' in found_values}} + ) + cudaErrorInvalidPtx = ( cyruntime.cudaError.cudaErrorInvalidPtx, 'A PTX compilation failed. The runtime may fall back to compiling PTX if an\n' 'application does not contain a suitable binary for the current device.\n' - ){{endif}} - {{if 'cudaErrorInvalidGraphicsContext' in found_values}} + ) + cudaErrorInvalidGraphicsContext = ( cyruntime.cudaError.cudaErrorInvalidGraphicsContext, 'This indicates an error with the OpenGL or DirectX context.\n' - ){{endif}} - {{if 'cudaErrorNvlinkUncorrectable' in found_values}} + ) + cudaErrorNvlinkUncorrectable = ( cyruntime.cudaError.cudaErrorNvlinkUncorrectable, 'This indicates that an uncorrectable NVLink error was detected during the\n' 'execution.\n' - ){{endif}} - {{if 'cudaErrorJitCompilerNotFound' in found_values}} + ) + cudaErrorJitCompilerNotFound = ( cyruntime.cudaError.cudaErrorJitCompilerNotFound, @@ -882,8 +880,8 @@ class cudaError_t(_FastEnum): 'Compiler library is used for PTX compilation. The runtime may fall back to\n' 'compiling PTX if an application does not contain a suitable binary for the\n' 'current device.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedPtxVersion' in found_values}} + ) + cudaErrorUnsupportedPtxVersion = ( cyruntime.cudaError.cudaErrorUnsupportedPtxVersion, @@ -891,30 +889,30 @@ class cudaError_t(_FastEnum): 'toolchain. The most common reason for this, is the PTX was generated by a\n' 'compiler newer than what is supported by the CUDA driver and PTX JIT\n' 'compiler.\n' - ){{endif}} - {{if 'cudaErrorJitCompilationDisabled' in found_values}} + ) + cudaErrorJitCompilationDisabled = ( cyruntime.cudaError.cudaErrorJitCompilationDisabled, 'This indicates that the JIT compilation was disabled. The JIT compilation\n' 'compiles PTX. The runtime may fall back to compiling PTX if an application\n' 'does not contain a suitable binary for the current device.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedExecAffinity' in found_values}} + ) + cudaErrorUnsupportedExecAffinity = ( cyruntime.cudaError.cudaErrorUnsupportedExecAffinity, 'This indicates that the provided execution affinity is not supported by the\n' 'device.\n' - ){{endif}} - {{if 'cudaErrorUnsupportedDevSideSync' in found_values}} + ) + cudaErrorUnsupportedDevSideSync = ( cyruntime.cudaError.cudaErrorUnsupportedDevSideSync, 'This indicates that the code to be compiled by the PTX JIT contains\n' 'unsupported call to cudaDeviceSynchronize.\n' - ){{endif}} - {{if 'cudaErrorContained' in found_values}} + ) + cudaErrorContained = ( cyruntime.cudaError.cudaErrorContained, @@ -924,53 +922,53 @@ class cudaError_t(_FastEnum): 'classes of hardware errors This leaves the process in an inconsistent state\n' 'and any further CUDA work will return the same error. To continue using\n' 'CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorInvalidSource' in found_values}} + ) + cudaErrorInvalidSource = ( cyruntime.cudaError.cudaErrorInvalidSource, 'This indicates that the device kernel source is invalid.\n' - ){{endif}} - {{if 'cudaErrorFileNotFound' in found_values}} + ) + cudaErrorFileNotFound = ( cyruntime.cudaError.cudaErrorFileNotFound, 'This indicates that the file specified was not found.\n' - ){{endif}} - {{if 'cudaErrorSharedObjectSymbolNotFound' in found_values}} + ) + cudaErrorSharedObjectSymbolNotFound = ( cyruntime.cudaError.cudaErrorSharedObjectSymbolNotFound, 'This indicates that a link to a shared object failed to resolve.\n' - ){{endif}} - {{if 'cudaErrorSharedObjectInitFailed' in found_values}} + ) + cudaErrorSharedObjectInitFailed = ( cyruntime.cudaError.cudaErrorSharedObjectInitFailed, 'This indicates that initialization of a shared object failed.\n' - ){{endif}} - {{if 'cudaErrorOperatingSystem' in found_values}} + ) + cudaErrorOperatingSystem = ( cyruntime.cudaError.cudaErrorOperatingSystem, 'This error indicates that an OS call failed.\n' - ){{endif}} - {{if 'cudaErrorInvalidResourceHandle' in found_values}} + ) + cudaErrorInvalidResourceHandle = ( cyruntime.cudaError.cudaErrorInvalidResourceHandle, 'This indicates that a resource handle passed to the API call was not valid.\n' 'Resource handles are opaque types like :py:obj:`~.cudaStream_t` and\n' ':py:obj:`~.cudaEvent_t`.\n' - ){{endif}} - {{if 'cudaErrorIllegalState' in found_values}} + ) + cudaErrorIllegalState = ( cyruntime.cudaError.cudaErrorIllegalState, 'This indicates that a resource required by the API call is not in a valid\n' 'state to perform the requested operation.\n' - ){{endif}} - {{if 'cudaErrorLossyQuery' in found_values}} + ) + cudaErrorLossyQuery = ( cyruntime.cudaError.cudaErrorLossyQuery, @@ -978,16 +976,16 @@ class cudaError_t(_FastEnum): 'would discard semantically important information. This is either due to the\n' 'object using funtionality newer than the API version used to introspect it\n' 'or omission of optional return arguments.\n' - ){{endif}} - {{if 'cudaErrorSymbolNotFound' in found_values}} + ) + cudaErrorSymbolNotFound = ( cyruntime.cudaError.cudaErrorSymbolNotFound, 'This indicates that a named symbol was not found. Examples of symbols are\n' 'global/constant variable names, driver function names, texture names, and\n' 'surface names.\n' - ){{endif}} - {{if 'cudaErrorNotReady' in found_values}} + ) + cudaErrorNotReady = ( cyruntime.cudaError.cudaErrorNotReady, @@ -996,8 +994,8 @@ class cudaError_t(_FastEnum): 'differently than :py:obj:`~.cudaSuccess` (which indicates completion).\n' 'Calls that may return this value include :py:obj:`~.cudaEventQuery()` and\n' ':py:obj:`~.cudaStreamQuery()`.\n' - ){{endif}} - {{if 'cudaErrorIllegalAddress' in found_values}} + ) + cudaErrorIllegalAddress = ( cyruntime.cudaError.cudaErrorIllegalAddress, @@ -1005,8 +1003,8 @@ class cudaError_t(_FastEnum): 'address. This leaves the process in an inconsistent state and any further\n' 'CUDA work will return the same error. To continue using CUDA, the process\n' 'must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorLaunchOutOfResources' in found_values}} + ) + cudaErrorLaunchOutOfResources = ( cyruntime.cudaError.cudaErrorLaunchOutOfResources, @@ -1016,8 +1014,8 @@ class cudaError_t(_FastEnum): 'that the user has attempted to pass too many arguments to the device\n' "kernel, or the kernel launch specifies too many threads for the kernel's\n" 'register count.\n' - ){{endif}} - {{if 'cudaErrorLaunchTimeout' in found_values}} + ) + cudaErrorLaunchTimeout = ( cyruntime.cudaError.cudaErrorLaunchTimeout, @@ -1027,31 +1025,31 @@ class cudaError_t(_FastEnum): 'the process in an inconsistent state and any further CUDA work will return\n' 'the same error. To continue using CUDA, the process must be terminated and\n' 'relaunched.\n' - ){{endif}} - {{if 'cudaErrorLaunchIncompatibleTexturing' in found_values}} + ) + cudaErrorLaunchIncompatibleTexturing = ( cyruntime.cudaError.cudaErrorLaunchIncompatibleTexturing, 'This error indicates a kernel launch that uses an incompatible texturing\n' 'mode.\n' - ){{endif}} - {{if 'cudaErrorPeerAccessAlreadyEnabled' in found_values}} + ) + cudaErrorPeerAccessAlreadyEnabled = ( cyruntime.cudaError.cudaErrorPeerAccessAlreadyEnabled, 'This error indicates that a call to\n' ':py:obj:`~.cudaDeviceEnablePeerAccess()` is trying to re-enable peer\n' 'addressing on from a context which has already had peer addressing enabled.\n' - ){{endif}} - {{if 'cudaErrorPeerAccessNotEnabled' in found_values}} + ) + cudaErrorPeerAccessNotEnabled = ( cyruntime.cudaError.cudaErrorPeerAccessNotEnabled, 'This error indicates that :py:obj:`~.cudaDeviceDisablePeerAccess()` is\n' 'trying to disable peer addressing which has not been enabled yet via\n' ':py:obj:`~.cudaDeviceEnablePeerAccess()`.\n' - ){{endif}} - {{if 'cudaErrorSetOnActiveProcess' in found_values}} + ) + cudaErrorSetOnActiveProcess = ( cyruntime.cudaError.cudaErrorSetOnActiveProcess, @@ -1064,47 +1062,47 @@ class cudaError_t(_FastEnum): 'launching kernels are examples of non-device management operations). This\n' 'error can also be returned if using runtime/driver interoperability and\n' 'there is an existing :py:obj:`~.CUcontext` active on the host thread.\n' - ){{endif}} - {{if 'cudaErrorContextIsDestroyed' in found_values}} + ) + cudaErrorContextIsDestroyed = ( cyruntime.cudaError.cudaErrorContextIsDestroyed, 'This error indicates that the context current to the calling thread has\n' 'been destroyed using :py:obj:`~.cuCtxDestroy`, or is a primary context\n' 'which has not yet been initialized.\n' - ){{endif}} - {{if 'cudaErrorAssert' in found_values}} + ) + cudaErrorAssert = ( cyruntime.cudaError.cudaErrorAssert, 'An assert triggered in device code during kernel execution. The device\n' 'cannot be used again. All existing allocations are invalid. To continue\n' 'using CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorTooManyPeers' in found_values}} + ) + cudaErrorTooManyPeers = ( cyruntime.cudaError.cudaErrorTooManyPeers, 'This error indicates that the hardware resources required to enable peer\n' 'access have been exhausted for one or more of the devices passed to\n' ':py:obj:`~.cudaEnablePeerAccess()`.\n' - ){{endif}} - {{if 'cudaErrorHostMemoryAlreadyRegistered' in found_values}} + ) + cudaErrorHostMemoryAlreadyRegistered = ( cyruntime.cudaError.cudaErrorHostMemoryAlreadyRegistered, 'This error indicates that the memory range passed to\n' ':py:obj:`~.cudaHostRegister()` has already been registered.\n' - ){{endif}} - {{if 'cudaErrorHostMemoryNotRegistered' in found_values}} + ) + cudaErrorHostMemoryNotRegistered = ( cyruntime.cudaError.cudaErrorHostMemoryNotRegistered, 'This error indicates that the pointer passed to\n' ':py:obj:`~.cudaHostUnregister()` does not correspond to any currently\n' 'registered memory region.\n' - ){{endif}} - {{if 'cudaErrorHardwareStackError' in found_values}} + ) + cudaErrorHardwareStackError = ( cyruntime.cudaError.cudaErrorHardwareStackError, @@ -1113,8 +1111,8 @@ class cudaError_t(_FastEnum): 'leaves the process in an inconsistent state and any further CUDA work will\n' 'return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorIllegalInstruction' in found_values}} + ) + cudaErrorIllegalInstruction = ( cyruntime.cudaError.cudaErrorIllegalInstruction, @@ -1122,8 +1120,8 @@ class cudaError_t(_FastEnum): 'leaves the process in an inconsistent state and any further CUDA work will\n' 'return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorMisalignedAddress' in found_values}} + ) + cudaErrorMisalignedAddress = ( cyruntime.cudaError.cudaErrorMisalignedAddress, @@ -1131,8 +1129,8 @@ class cudaError_t(_FastEnum): 'which is not aligned. This leaves the process in an inconsistent state and\n' 'any further CUDA work will return the same error. To continue using CUDA,\n' 'the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorInvalidAddressSpace' in found_values}} + ) + cudaErrorInvalidAddressSpace = ( cyruntime.cudaError.cudaErrorInvalidAddressSpace, @@ -1142,8 +1140,8 @@ class cudaError_t(_FastEnum): 'address space. This leaves the process in an inconsistent state and any\n' 'further CUDA work will return the same error. To continue using CUDA, the\n' 'process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorInvalidPc' in found_values}} + ) + cudaErrorInvalidPc = ( cyruntime.cudaError.cudaErrorInvalidPc, @@ -1151,8 +1149,8 @@ class cudaError_t(_FastEnum): 'in an inconsistent state and any further CUDA work will return the same\n' 'error. To continue using CUDA, the process must be terminated and\n' 'relaunched.\n' - ){{endif}} - {{if 'cudaErrorLaunchFailure' in found_values}} + ) + cudaErrorLaunchFailure = ( cyruntime.cudaError.cudaErrorLaunchFailure, @@ -1163,8 +1161,8 @@ class cudaError_t(_FastEnum): 'leaves the process in an inconsistent state and any further CUDA work will\n' 'return the same error. To continue using CUDA, the process must be\n' 'terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorCooperativeLaunchTooLarge' in found_values}} + ) + cudaErrorCooperativeLaunchTooLarge = ( cyruntime.cudaError.cudaErrorCooperativeLaunchTooLarge, @@ -1175,8 +1173,8 @@ class cudaError_t(_FastEnum): ':py:obj:`~.cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags` times\n' 'the number of multiprocessors as specified by the device attribute\n' ':py:obj:`~.cudaDevAttrMultiProcessorCount`.\n' - ){{endif}} - {{if 'cudaErrorTensorMemoryLeak' in found_values}} + ) + cudaErrorTensorMemoryLeak = ( cyruntime.cudaError.cudaErrorTensorMemoryLeak, @@ -1185,21 +1183,21 @@ class cudaError_t(_FastEnum): 'process in an inconsistent state and any further CUDA work will return the\n' 'same error. To continue using CUDA, the process must be terminated and\n' 'relaunched.\n' - ){{endif}} - {{if 'cudaErrorNotPermitted' in found_values}} + ) + cudaErrorNotPermitted = ( cyruntime.cudaError.cudaErrorNotPermitted, 'This error indicates the attempted operation is not permitted.\n' - ){{endif}} - {{if 'cudaErrorNotSupported' in found_values}} + ) + cudaErrorNotSupported = ( cyruntime.cudaError.cudaErrorNotSupported, 'This error indicates the attempted operation is not supported on the\n' 'current system or device.\n' - ){{endif}} - {{if 'cudaErrorSystemNotReady' in found_values}} + ) + cudaErrorSystemNotReady = ( cyruntime.cudaError.cudaErrorSystemNotReady, @@ -1208,16 +1206,16 @@ class cudaError_t(_FastEnum): 'state and all required driver daemons are actively running. More\n' 'information about this error can be found in the system specific user\n' 'guide.\n' - ){{endif}} - {{if 'cudaErrorSystemDriverMismatch' in found_values}} + ) + cudaErrorSystemDriverMismatch = ( cyruntime.cudaError.cudaErrorSystemDriverMismatch, 'This error indicates that there is a mismatch between the versions of the\n' 'display driver and the CUDA driver. Refer to the compatibility\n' 'documentation for supported versions.\n' - ){{endif}} - {{if 'cudaErrorCompatNotSupportedOnDevice' in found_values}} + ) + cudaErrorCompatNotSupportedOnDevice = ( cyruntime.cudaError.cudaErrorCompatNotSupportedOnDevice, @@ -1226,120 +1224,120 @@ class cudaError_t(_FastEnum): 'this configuration. Refer to the compatibility documentation for the\n' 'supported hardware matrix or ensure that only supported hardware is visible\n' 'during initialization via the CUDA_VISIBLE_DEVICES environment variable.\n' - ){{endif}} - {{if 'cudaErrorMpsConnectionFailed' in found_values}} + ) + cudaErrorMpsConnectionFailed = ( cyruntime.cudaError.cudaErrorMpsConnectionFailed, 'This error indicates that the MPS client failed to connect to the MPS\n' 'control daemon or the MPS server.\n' - ){{endif}} - {{if 'cudaErrorMpsRpcFailure' in found_values}} + ) + cudaErrorMpsRpcFailure = ( cyruntime.cudaError.cudaErrorMpsRpcFailure, 'This error indicates that the remote procedural call between the MPS server\n' 'and the MPS client failed.\n' - ){{endif}} - {{if 'cudaErrorMpsServerNotReady' in found_values}} + ) + cudaErrorMpsServerNotReady = ( cyruntime.cudaError.cudaErrorMpsServerNotReady, 'This error indicates that the MPS server is not ready to accept new MPS\n' 'client requests. This error can be returned when the MPS server is in the\n' 'process of recovering from a fatal failure.\n' - ){{endif}} - {{if 'cudaErrorMpsMaxClientsReached' in found_values}} + ) + cudaErrorMpsMaxClientsReached = ( cyruntime.cudaError.cudaErrorMpsMaxClientsReached, 'This error indicates that the hardware resources required to create MPS\n' 'client have been exhausted.\n' - ){{endif}} - {{if 'cudaErrorMpsMaxConnectionsReached' in found_values}} + ) + cudaErrorMpsMaxConnectionsReached = ( cyruntime.cudaError.cudaErrorMpsMaxConnectionsReached, 'This error indicates the the hardware resources required to device\n' 'connections have been exhausted.\n' - ){{endif}} - {{if 'cudaErrorMpsClientTerminated' in found_values}} + ) + cudaErrorMpsClientTerminated = ( cyruntime.cudaError.cudaErrorMpsClientTerminated, 'This error indicates that the MPS client has been terminated by the server.\n' 'To continue using CUDA, the process must be terminated and relaunched.\n' - ){{endif}} - {{if 'cudaErrorCdpNotSupported' in found_values}} + ) + cudaErrorCdpNotSupported = ( cyruntime.cudaError.cudaErrorCdpNotSupported, 'This error indicates, that the program is using CUDA Dynamic Parallelism,\n' 'but the current configuration, like MPS, does not support it.\n' - ){{endif}} - {{if 'cudaErrorCdpVersionMismatch' in found_values}} + ) + cudaErrorCdpVersionMismatch = ( cyruntime.cudaError.cudaErrorCdpVersionMismatch, 'This error indicates, that the program contains an unsupported interaction\n' 'between different versions of CUDA Dynamic Parallelism.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureUnsupported' in found_values}} + ) + cudaErrorStreamCaptureUnsupported = ( cyruntime.cudaError.cudaErrorStreamCaptureUnsupported, 'The operation is not permitted when the stream is capturing.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureInvalidated' in found_values}} + ) + cudaErrorStreamCaptureInvalidated = ( cyruntime.cudaError.cudaErrorStreamCaptureInvalidated, 'The current capture sequence on the stream has been invalidated due to a\n' 'previous error.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureMerge' in found_values}} + ) + cudaErrorStreamCaptureMerge = ( cyruntime.cudaError.cudaErrorStreamCaptureMerge, 'The operation would have resulted in a merge of two independent capture\n' 'sequences.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureUnmatched' in found_values}} + ) + cudaErrorStreamCaptureUnmatched = ( cyruntime.cudaError.cudaErrorStreamCaptureUnmatched, 'The capture was not initiated in this stream.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureUnjoined' in found_values}} + ) + cudaErrorStreamCaptureUnjoined = ( cyruntime.cudaError.cudaErrorStreamCaptureUnjoined, 'The capture sequence contains a fork that was not joined to the primary\n' 'stream.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureIsolation' in found_values}} + ) + cudaErrorStreamCaptureIsolation = ( cyruntime.cudaError.cudaErrorStreamCaptureIsolation, 'A dependency would have been created which crosses the capture sequence\n' 'boundary. Only implicit in-stream ordering dependencies are allowed to\n' 'cross the boundary.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureImplicit' in found_values}} + ) + cudaErrorStreamCaptureImplicit = ( cyruntime.cudaError.cudaErrorStreamCaptureImplicit, 'The operation would have resulted in a disallowed implicit dependency on a\n' 'current capture sequence from cudaStreamLegacy.\n' - ){{endif}} - {{if 'cudaErrorCapturedEvent' in found_values}} + ) + cudaErrorCapturedEvent = ( cyruntime.cudaError.cudaErrorCapturedEvent, 'The operation is not permitted on an event which was last recorded in a\n' 'capturing stream.\n' - ){{endif}} - {{if 'cudaErrorStreamCaptureWrongThread' in found_values}} + ) + cudaErrorStreamCaptureWrongThread = ( cyruntime.cudaError.cudaErrorStreamCaptureWrongThread, @@ -1347,22 +1345,22 @@ class cudaError_t(_FastEnum): ':py:obj:`~.cudaStreamCaptureModeRelaxed` argument to\n' ':py:obj:`~.cudaStreamBeginCapture` was passed to\n' ':py:obj:`~.cudaStreamEndCapture` in a different thread.\n' - ){{endif}} - {{if 'cudaErrorTimeout' in found_values}} + ) + cudaErrorTimeout = ( cyruntime.cudaError.cudaErrorTimeout, 'This indicates that the wait operation has timed out.\n' - ){{endif}} - {{if 'cudaErrorGraphExecUpdateFailure' in found_values}} + ) + cudaErrorGraphExecUpdateFailure = ( cyruntime.cudaError.cudaErrorGraphExecUpdateFailure, 'This error indicates that the graph update was not performed because it\n' 'included changes which violated constraints specific to instantiated graph\n' 'update.\n' - ){{endif}} - {{if 'cudaErrorExternalDevice' in found_values}} + ) + cudaErrorExternalDevice = ( cyruntime.cudaError.cudaErrorExternalDevice, @@ -1376,36 +1374,36 @@ class cudaError_t(_FastEnum): 'process must be terminated and relaunched. In case of synchronous error, it\n' 'means that one or more external devices have encountered an error and\n' 'cannot complete the operation.\n' - ){{endif}} - {{if 'cudaErrorInvalidClusterSize' in found_values}} + ) + cudaErrorInvalidClusterSize = ( cyruntime.cudaError.cudaErrorInvalidClusterSize, 'This indicates that a kernel launch error has occurred due to cluster\n' 'misconfiguration.\n' - ){{endif}} - {{if 'cudaErrorFunctionNotLoaded' in found_values}} + ) + cudaErrorFunctionNotLoaded = ( cyruntime.cudaError.cudaErrorFunctionNotLoaded, 'Indiciates a function handle is not loaded when calling an API that\n' 'requires a loaded function.\n' - ){{endif}} - {{if 'cudaErrorInvalidResourceType' in found_values}} + ) + cudaErrorInvalidResourceType = ( cyruntime.cudaError.cudaErrorInvalidResourceType, 'This error indicates one or more resources passed in are not valid resource\n' 'types for the operation.\n' - ){{endif}} - {{if 'cudaErrorInvalidResourceConfiguration' in found_values}} + ) + cudaErrorInvalidResourceConfiguration = ( cyruntime.cudaError.cudaErrorInvalidResourceConfiguration, 'This error indicates one or more resources are insufficient or non-\n' 'applicable for the operation.\n' - ){{endif}} - {{if 'cudaErrorStreamDetached' in found_values}} + ) + cudaErrorStreamDetached = ( cyruntime.cudaError.cudaErrorStreamDetached, @@ -1413,69 +1411,63 @@ class cudaError_t(_FastEnum): 'the stream is in a detached state. This can occur if the green context\n' "associated with the stream has been destroyed, limiting the stream's\n" 'operational capabilities.\n' - ){{endif}} - {{if 'cudaErrorGraphRecaptureFailure' in found_values}} + ) + cudaErrorGraphRecaptureFailure = ( cyruntime.cudaError.cudaErrorGraphRecaptureFailure, 'This error indicates that a graph recapture failed and had to be\n' 'terminated.\n' - ){{endif}} - {{if 'cudaErrorUnknown' in found_values}} + ) + cudaErrorUnknown = ( cyruntime.cudaError.cudaErrorUnknown, 'This indicates that an unknown internal error has occurred.\n' - ){{endif}} - {{if 'cudaErrorApiFailureBase' in found_values}} - cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase{{endif}} + ) -{{endif}} -{{if 'cudaSharedMemoryMode' in found_types}} + cudaErrorApiFailureBase = cyruntime.cudaError.cudaErrorApiFailureBase class cudaSharedMemoryMode(_FastEnum): """ Shared memory related attributes for use with :py:obj:`~.cuLaunchKernelEx` """ - {{if 'cudaSharedMemoryModeDefault' in found_values}} + cudaSharedMemoryModeDefault = ( cyruntime.cudaSharedMemoryMode.cudaSharedMemoryModeDefault, 'The default to use for allowing non-portable shared memory size on launch -\n' 'uses current function attributes for\n' ':py:obj:`~.cudaFuncAttributeMaxDynamicSharedMemorySize`\n' - ){{endif}} - {{if 'cudaSharedMemoryModeRequirePortable' in found_values}} + ) + cudaSharedMemoryModeRequirePortable = ( cyruntime.cudaSharedMemoryMode.cudaSharedMemoryModeRequirePortable, 'Specifies that the shared memory size requested must be a portable size\n' 'within :py:obj:`~.cudaDevAttrMaxSharedMemoryPerBlock`\n' - ){{endif}} - {{if 'cudaSharedMemoryModeAllowNonPortable' in found_values}} + ) + cudaSharedMemoryModeAllowNonPortable = ( cyruntime.cudaSharedMemoryMode.cudaSharedMemoryModeAllowNonPortable, 'Specifies that the shared memory size requested may be a non-portable size\n' 'up to :py:obj:`~.cudaDevAttrMaxSharedMemoryPerBlockOptin`\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphDependencyType_enum' in found_types}} + ) class cudaGraphDependencyType(_FastEnum): """ Type annotations that can be applied to graph edges as part of :py:obj:`~.cudaGraphEdgeData`. """ - {{if 'cudaGraphDependencyTypeDefault' in found_values}} + cudaGraphDependencyTypeDefault = ( cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeDefault, 'This is an ordinary dependency.\n' - ){{endif}} - {{if 'cudaGraphDependencyTypeProgrammatic' in found_values}} + ) + cudaGraphDependencyTypeProgrammatic = ( cyruntime.cudaGraphDependencyType_enum.cudaGraphDependencyTypeProgrammatic, @@ -1484,57 +1476,51 @@ class cudaGraphDependencyType(_FastEnum): 'nodes, and must be used with either the\n' ':py:obj:`~.cudaGraphKernelNodePortProgrammatic` or\n' ':py:obj:`~.cudaGraphKernelNodePortLaunchCompletion` outgoing port.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphInstantiateResult' in found_types}} + ) class cudaGraphInstantiateResult(_FastEnum): """ Graph instantiation results """ - {{if 'cudaGraphInstantiateSuccess' in found_values}} + cudaGraphInstantiateSuccess = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateSuccess, 'Instantiation succeeded\n' - ){{endif}} - {{if 'cudaGraphInstantiateError' in found_values}} + ) + cudaGraphInstantiateError = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateError, 'Instantiation failed for an unexpected reason which is described in the\n' 'return value of the function\n' - ){{endif}} - {{if 'cudaGraphInstantiateInvalidStructure' in found_values}} + ) + cudaGraphInstantiateInvalidStructure = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateInvalidStructure, 'Instantiation failed due to invalid structure, such as cycles\n' - ){{endif}} - {{if 'cudaGraphInstantiateNodeOperationNotSupported' in found_values}} + ) + cudaGraphInstantiateNodeOperationNotSupported = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateNodeOperationNotSupported, 'Instantiation for device launch failed because the graph contained an\n' 'unsupported operation\n' - ){{endif}} - {{if 'cudaGraphInstantiateMultipleDevicesNotSupported' in found_values}} + ) + cudaGraphInstantiateMultipleDevicesNotSupported = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateMultipleDevicesNotSupported, 'Instantiation for device launch failed due to the nodes belonging to\n' 'different contexts\n' - ){{endif}} - {{if 'cudaGraphInstantiateConditionalHandleUnused' in found_values}} + ) + cudaGraphInstantiateConditionalHandleUnused = ( cyruntime.cudaGraphInstantiateResult.cudaGraphInstantiateConditionalHandleUnused, 'One or more conditional handles are not associated with conditional nodes\n' - ){{endif}} - -{{endif}} -{{if 'cudaLaunchMemSyncDomain' in found_types}} + ) class cudaLaunchMemSyncDomain(_FastEnum): """ @@ -1557,97 +1543,91 @@ class cudaLaunchMemSyncDomain(_FastEnum): by kernels in another memory synchronization domain even if they are on the same GPU. """ - {{if 'cudaLaunchMemSyncDomainDefault' in found_values}} + cudaLaunchMemSyncDomainDefault = ( cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainDefault, 'Launch kernels in the default domain\n' - ){{endif}} - {{if 'cudaLaunchMemSyncDomainRemote' in found_values}} + ) + cudaLaunchMemSyncDomainRemote = ( cyruntime.cudaLaunchMemSyncDomain.cudaLaunchMemSyncDomainRemote, 'Launch kernels in the remote domain\n' - ){{endif}} - -{{endif}} -{{if 'cudaLaunchAttributePortableClusterMode' in found_types}} + ) class cudaLaunchAttributePortableClusterMode(_FastEnum): """ Enum for defining applicability of portable cluster size, used with :py:obj:`~.cudaLaunchKernelEx` """ - {{if 'cudaLaunchPortableClusterModeDefault' in found_values}} + cudaLaunchPortableClusterModeDefault = ( cyruntime.cudaLaunchAttributePortableClusterMode.cudaLaunchPortableClusterModeDefault, 'The default to use for allowing non-portable cluster size on launch - uses\n' 'current function attribute for\n' ':py:obj:`~.cudaFuncAttributeNonPortableClusterSizeAllowed`\n' - ){{endif}} - {{if 'cudaLaunchPortableClusterModeRequirePortable' in found_values}} + ) + cudaLaunchPortableClusterModeRequirePortable = ( cyruntime.cudaLaunchAttributePortableClusterMode.cudaLaunchPortableClusterModeRequirePortable, 'Specifies that the cluster size requested must be a portable size\n' - ){{endif}} - {{if 'cudaLaunchPortableClusterModeAllowNonPortable' in found_values}} + ) + cudaLaunchPortableClusterModeAllowNonPortable = ( cyruntime.cudaLaunchAttributePortableClusterMode.cudaLaunchPortableClusterModeAllowNonPortable, 'Specifies that the cluster size requested may be a non-portable size\n' - ){{endif}} - -{{endif}} -{{if 'cudaLaunchAttributeID' in found_types}} + ) class cudaLaunchAttributeID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.cudaLaunchAttribute` """ - {{if 'cudaLaunchAttributeIgnore' in found_values}} + cudaLaunchAttributeIgnore = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'cudaLaunchAttributeAccessPolicyWindow' in found_values}} + ) + cudaLaunchAttributeAccessPolicyWindow = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeCooperative' in found_values}} + ) + cudaLaunchAttributeCooperative = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeSynchronizationPolicy' in found_values}} + ) + cudaLaunchAttributeSynchronizationPolicy = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy, 'Valid for streams. See :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterDimension' in found_values}} + ) + cudaLaunchAttributeClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaLaunchAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticStreamSerialization' in found_values}} + ) + cudaLaunchAttributeProgrammaticStreamSerialization = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization, @@ -1659,8 +1639,8 @@ class cudaLaunchAttributeID(_FastEnum): 'that kernel requests the overlap. The dependent launches can choose to wait\n' 'on the dependency using the programmatic sync\n' '(cudaGridDependencySynchronize() or equivalent PTX instructions).\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticEvent' in found_values}} + ) + cudaLaunchAttributeProgrammaticEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent, @@ -1684,29 +1664,29 @@ class cudaLaunchAttributeID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributePriority' in found_values}} + ) + cudaLaunchAttributePriority = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomainMap' in found_values}} + ) + cudaLaunchAttributeMemSyncDomainMap = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomain' in found_values}} + ) + cudaLaunchAttributeMemSyncDomain = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredClusterDimension' in found_values}} + ) + cudaLaunchAttributePreferredClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension, @@ -1739,8 +1719,8 @@ class cudaLaunchAttributeID(_FastEnum): 'than the maximum value the driver can support. Otherwise, setting this\n' 'attribute to a value physically unable to fit on any particular device is\n' 'permitted.\n' - ){{endif}} - {{if 'cudaLaunchAttributeLaunchCompletionEvent' in found_values}} + ) + cudaLaunchAttributeLaunchCompletionEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent, @@ -1761,8 +1741,8 @@ class cudaLaunchAttributeID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributeDeviceUpdatableKernelNode' in found_values}} + ) + cudaLaunchAttributeDeviceUpdatableKernelNode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode, @@ -1793,8 +1773,8 @@ class cudaLaunchAttributeID(_FastEnum): ':py:obj:`~.cuGraphUpload` before it is launched. For such a graph, if host-\n' 'side executable graph updates are made to the device-updatable nodes, the\n' 'graph must be uploaded before it is launched again.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaLaunchAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout, @@ -1806,8 +1786,8 @@ class cudaLaunchAttributeID(_FastEnum): 'precedence over :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout`.\n' 'This is only a hint, and the driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - {{if 'cudaLaunchAttributeNvlinkUtilCentricScheduling' in found_values}} + ) + cudaLaunchAttributeNvlinkUtilCentricScheduling = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling, @@ -1828,8 +1808,8 @@ class cudaLaunchAttributeID(_FastEnum): ' Valid values for\n' ':py:obj:`~.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling` are 0\n' '(disabled) and 1 (enabled).\n' - ){{endif}} - {{if 'cudaLaunchAttributePortableClusterSizeMode' in found_values}} + ) + cudaLaunchAttributePortableClusterSizeMode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePortableClusterSizeMode, @@ -1838,244 +1818,217 @@ class cudaLaunchAttributeID(_FastEnum): ':py:obj:`~.cudaLaunchAttributeValue.portableClusterSizeMode` are values for\n' ':py:obj:`~.cudaLaunchAttributePortableClusterMode` Any other value will\n' 'return :py:obj:`~.cudaErrorInvalidValue`\n' - ){{endif}} - {{if 'cudaLaunchAttributeSharedMemoryMode' in found_values}} + ) + cudaLaunchAttributeSharedMemoryMode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSharedMemoryMode, 'Valid for graph nodes, launches. This indicates that the kernel launch is\n' 'allowed to use a non-portable shared memory mode.\n' - ){{endif}} - -{{endif}} -{{if 'cudaAsyncNotificationType_enum' in found_types}} + ) class cudaAsyncNotificationType(_FastEnum): """ Types of async notification that can occur """ - {{if 'cudaAsyncNotificationTypeOverBudget' in found_values}} + cudaAsyncNotificationTypeOverBudget = ( cyruntime.cudaAsyncNotificationType_enum.cudaAsyncNotificationTypeOverBudget, 'Sent when the process has exceeded its device memory budget\n' - ){{endif}} - -{{endif}} -{{if 'CUDAlogLevel_enum' in found_types}} + ) class cudaLogLevel(_FastEnum): """ """ - {{if 'cudaLogLevelError' in found_values}} - cudaLogLevelError = cyruntime.CUDAlogLevel_enum.cudaLogLevelError{{endif}} - {{if 'cudaLogLevelWarning' in found_values}} - cudaLogLevelWarning = cyruntime.CUDAlogLevel_enum.cudaLogLevelWarning{{endif}} -{{endif}} -{{if 'cudaDataType_t' in found_types}} + cudaLogLevelError = cyruntime.CUDAlogLevel_enum.cudaLogLevelError + + cudaLogLevelWarning = cyruntime.CUDAlogLevel_enum.cudaLogLevelWarning class cudaDataType(_FastEnum): """ """ - {{if 'CUDA_R_32F' in found_values}} - CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F{{endif}} - {{if 'CUDA_R_64F' in found_values}} - CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F{{endif}} - {{if 'CUDA_R_16F' in found_values}} - CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F{{endif}} - {{if 'CUDA_R_8I' in found_values}} - CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I{{endif}} - {{if 'CUDA_C_32F' in found_values}} - CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F{{endif}} - {{if 'CUDA_C_64F' in found_values}} - CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F{{endif}} - {{if 'CUDA_C_16F' in found_values}} - CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F{{endif}} - {{if 'CUDA_C_8I' in found_values}} - CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I{{endif}} - {{if 'CUDA_R_8U' in found_values}} - CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U{{endif}} - {{if 'CUDA_C_8U' in found_values}} - CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U{{endif}} - {{if 'CUDA_R_32I' in found_values}} - CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I{{endif}} - {{if 'CUDA_C_32I' in found_values}} - CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I{{endif}} - {{if 'CUDA_R_32U' in found_values}} - CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U{{endif}} - {{if 'CUDA_C_32U' in found_values}} - CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U{{endif}} - {{if 'CUDA_R_16BF' in found_values}} - CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF{{endif}} - {{if 'CUDA_C_16BF' in found_values}} - CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF{{endif}} - {{if 'CUDA_R_4I' in found_values}} - CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I{{endif}} - {{if 'CUDA_C_4I' in found_values}} - CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I{{endif}} - {{if 'CUDA_R_4U' in found_values}} - CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U{{endif}} - {{if 'CUDA_C_4U' in found_values}} - CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U{{endif}} - {{if 'CUDA_R_16I' in found_values}} - CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I{{endif}} - {{if 'CUDA_C_16I' in found_values}} - CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I{{endif}} - {{if 'CUDA_R_16U' in found_values}} - CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U{{endif}} - {{if 'CUDA_C_16U' in found_values}} - CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U{{endif}} - {{if 'CUDA_R_64I' in found_values}} - CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I{{endif}} - {{if 'CUDA_C_64I' in found_values}} - CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I{{endif}} - {{if 'CUDA_R_64U' in found_values}} - CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U{{endif}} - {{if 'CUDA_C_64U' in found_values}} - CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U{{endif}} - {{if 'CUDA_R_8F_E4M3' in found_values}} - CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3{{endif}} - {{if 'CUDA_R_8F_UE4M3' in found_values}} - CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3{{endif}} - {{if 'CUDA_R_8F_E5M2' in found_values}} - CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2{{endif}} - {{if 'CUDA_R_8F_UE8M0' in found_values}} - CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0{{endif}} - {{if 'CUDA_R_6F_E2M3' in found_values}} - CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3{{endif}} - {{if 'CUDA_R_6F_E3M2' in found_values}} - CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2{{endif}} - {{if 'CUDA_R_4F_E2M1' in found_values}} - CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1{{endif}} - -{{endif}} -{{if 'cudaEmulationStrategy_t' in found_types}} + + CUDA_R_32F = cyruntime.cudaDataType_t.CUDA_R_32F + + CUDA_R_64F = cyruntime.cudaDataType_t.CUDA_R_64F + + CUDA_R_16F = cyruntime.cudaDataType_t.CUDA_R_16F + + CUDA_R_8I = cyruntime.cudaDataType_t.CUDA_R_8I + + CUDA_C_32F = cyruntime.cudaDataType_t.CUDA_C_32F + + CUDA_C_64F = cyruntime.cudaDataType_t.CUDA_C_64F + + CUDA_C_16F = cyruntime.cudaDataType_t.CUDA_C_16F + + CUDA_C_8I = cyruntime.cudaDataType_t.CUDA_C_8I + + CUDA_R_8U = cyruntime.cudaDataType_t.CUDA_R_8U + + CUDA_C_8U = cyruntime.cudaDataType_t.CUDA_C_8U + + CUDA_R_32I = cyruntime.cudaDataType_t.CUDA_R_32I + + CUDA_C_32I = cyruntime.cudaDataType_t.CUDA_C_32I + + CUDA_R_32U = cyruntime.cudaDataType_t.CUDA_R_32U + + CUDA_C_32U = cyruntime.cudaDataType_t.CUDA_C_32U + + CUDA_R_16BF = cyruntime.cudaDataType_t.CUDA_R_16BF + + CUDA_C_16BF = cyruntime.cudaDataType_t.CUDA_C_16BF + + CUDA_R_4I = cyruntime.cudaDataType_t.CUDA_R_4I + + CUDA_C_4I = cyruntime.cudaDataType_t.CUDA_C_4I + + CUDA_R_4U = cyruntime.cudaDataType_t.CUDA_R_4U + + CUDA_C_4U = cyruntime.cudaDataType_t.CUDA_C_4U + + CUDA_R_16I = cyruntime.cudaDataType_t.CUDA_R_16I + + CUDA_C_16I = cyruntime.cudaDataType_t.CUDA_C_16I + + CUDA_R_16U = cyruntime.cudaDataType_t.CUDA_R_16U + + CUDA_C_16U = cyruntime.cudaDataType_t.CUDA_C_16U + + CUDA_R_64I = cyruntime.cudaDataType_t.CUDA_R_64I + + CUDA_C_64I = cyruntime.cudaDataType_t.CUDA_C_64I + + CUDA_R_64U = cyruntime.cudaDataType_t.CUDA_R_64U + + CUDA_C_64U = cyruntime.cudaDataType_t.CUDA_C_64U + + CUDA_R_8F_E4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_E4M3 + + CUDA_R_8F_UE4M3 = cyruntime.cudaDataType_t.CUDA_R_8F_UE4M3 + + CUDA_R_8F_E5M2 = cyruntime.cudaDataType_t.CUDA_R_8F_E5M2 + + CUDA_R_8F_UE8M0 = cyruntime.cudaDataType_t.CUDA_R_8F_UE8M0 + + CUDA_R_6F_E2M3 = cyruntime.cudaDataType_t.CUDA_R_6F_E2M3 + + CUDA_R_6F_E3M2 = cyruntime.cudaDataType_t.CUDA_R_6F_E3M2 + + CUDA_R_4F_E2M1 = cyruntime.cudaDataType_t.CUDA_R_4F_E2M1 class cudaEmulationStrategy(_FastEnum): """ Enum for specifying how to leverage floating-point emulation algorithms """ - {{if 'CUDA_EMULATION_STRATEGY_DEFAULT' in found_values}} + CUDA_EMULATION_STRATEGY_DEFAULT = ( cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_DEFAULT, 'The default emulation strategy. For emulated computations, this is\n' 'equivalent to CUDA_EMULATION_STRATEGY_PERFORMANT, unless a library\n' 'dependent environment variable is set\n' - ){{endif}} - {{if 'CUDA_EMULATION_STRATEGY_PERFORMANT' in found_values}} + ) + CUDA_EMULATION_STRATEGY_PERFORMANT = ( cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_PERFORMANT, 'An emulation strategy which configures libraries to use emulation when it\n' 'provides a performance benefit\n' - ){{endif}} - {{if 'CUDA_EMULATION_STRATEGY_EAGER' in found_values}} + ) + CUDA_EMULATION_STRATEGY_EAGER = ( cyruntime.cudaEmulationStrategy_t.CUDA_EMULATION_STRATEGY_EAGER, 'An emulation strategy which configures libraries to use emulation whenever\n' 'possible\n' - ){{endif}} - -{{endif}} -{{if 'cudaEmulationMantissaControl_t' in found_types}} + ) class cudaEmulationMantissaControl(_FastEnum): """ Enum to configure the mantissa related parameters for floating- point emulation algorithms """ - {{if 'CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC' in found_values}} + CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC = ( cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_DYNAMIC, 'The number of retained mantissa bits are computed at runtime to ensure the\n' 'same or better accuracy than the floating point representation being\n' 'emulated\n' - ){{endif}} - {{if 'CUDA_EMULATION_MANTISSA_CONTROL_FIXED' in found_values}} + ) + CUDA_EMULATION_MANTISSA_CONTROL_FIXED = ( cyruntime.cudaEmulationMantissaControl_t.CUDA_EMULATION_MANTISSA_CONTROL_FIXED, 'The number of retained mantissa bits are known at runtime\n' - ){{endif}} - -{{endif}} -{{if 'cudaEmulationSpecialValuesSupport_t' in found_types}} + ) class cudaEmulationSpecialValuesSupport(_FastEnum): """ Enum to configure how special floating-point values will be handled by emulation algorithms """ - {{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE' in found_values}} + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE = ( cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NONE, 'There are no requirements for emulation algorithms to support special\n' 'values\n' - ){{endif}} - {{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY' in found_values}} + ) + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY = ( cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_INFINITY, 'Require emulation algorithms to handle signed infinity inputs and outputs\n' - ){{endif}} - {{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN' in found_values}} + ) + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN = ( cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_NAN, 'Require emulation algorithms to handle NaN inputs and outputs\n' - ){{endif}} - {{if 'CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT' in found_values}} + ) + CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT = ( cyruntime.cudaEmulationSpecialValuesSupport_t.CUDA_EMULATION_SPECIAL_VALUES_SUPPORT_DEFAULT, 'The default special value support mask which contains support for signed\n' 'infinities and NaN values\n' - ){{endif}} - -{{endif}} -{{if 'libraryPropertyType_t' in found_types}} + ) class libraryPropertyType(_FastEnum): """ """ - {{if 'MAJOR_VERSION' in found_values}} - MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION{{endif}} - {{if 'MINOR_VERSION' in found_values}} - MINOR_VERSION = cyruntime.libraryPropertyType_t.MINOR_VERSION{{endif}} - {{if 'PATCH_LEVEL' in found_values}} - PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL{{endif}} -{{endif}} -{{if True}} + MAJOR_VERSION = cyruntime.libraryPropertyType_t.MAJOR_VERSION + + MINOR_VERSION = cyruntime.libraryPropertyType_t.MINOR_VERSION + + PATCH_LEVEL = cyruntime.libraryPropertyType_t.PATCH_LEVEL class cudaEglFrameType(_FastEnum): """ CUDA EglFrame type - array or pointer """ - {{if True}} + cudaEglFrameTypeArray = ( cyruntime.cudaEglFrameType_enum.cudaEglFrameTypeArray, 'Frame type CUDA array\n' - ){{endif}} - {{if True}} + ) + cudaEglFrameTypePitch = ( cyruntime.cudaEglFrameType_enum.cudaEglFrameTypePitch, 'Frame type CUDA pointer\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class cudaEglResourceLocationFlags(_FastEnum): """ @@ -2091,1227 +2044,1203 @@ class cudaEglResourceLocationFlags(_FastEnum): CUDA. There may be an additional latency due to new allocation and data migration, if the frame is produced on a different memory. """ - {{if True}} + cudaEglResourceLocationSysmem = ( cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationSysmem, 'Resource location sysmem\n' - ){{endif}} - {{if True}} + ) + cudaEglResourceLocationVidmem = ( cyruntime.cudaEglResourceLocationFlags_enum.cudaEglResourceLocationVidmem, 'Resource location vidmem\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class cudaEglColorFormat(_FastEnum): """ CUDA EGL Color Format - The different planar and multiplanar formats currently supported for CUDA_EGL interops. """ - {{if True}} + cudaEglColorFormatYUV420Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar, 'Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar, 'Y, UV in two surfaces (UV as one surface) with VU byte ordering, width,\n' 'height ratio same as YUV420Planar.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar, 'Y, U, V each in a separate surface, U/V width = 1/2 Y width, U/V height = Y\n' 'height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar, 'Y, UV in two surfaces with VU byte ordering, width, height ratio same as\n' 'YUV422Planar.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatARGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatARGB, 'R/G/B/A four channels in one surface with BGRA byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatRGBA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatRGBA, 'R/G/B/A four channels in one surface with ABGR byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatL = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatL, 'single luminance channel in one surface.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatR, 'single color channel in one surface.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar, 'Y, U, V in three surfaces, each in a separate surface, U/V width = Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar, 'Y, UV in two surfaces (UV as one surface) with VU byte ordering, width,\n' 'height ratio same as YUV444Planar.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUYV422 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUYV422, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY422 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY422, 'Y, U, V in one surface, interleaved as YUYV in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatABGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatABGR, 'R/G/B/A four channels in one surface with RGBA byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBGRA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBGRA, 'R/G/B/A four channels in one surface with ARGB byte ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatA, 'Alpha color format - one channel in one surface.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatRG, 'R/G color format - two channels in one surface with GR byte ordering\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatAYUV = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatAYUV, 'Y, U, V, A four channels in one surface, interleaved as VUYA.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar, 'Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width\n' '= Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar, 'Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width\n' '= 1/2 Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar, 'Y, VU in two surfaces (VU as one surface) with UV byte ordering, U/V width\n' '= 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar, 'Y10, V10U10 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar, 'Y10, V10U10 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_444SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar, 'Y12, V12U12 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_420SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar, 'Y12, V12U12 in two surfaces (VU as one surface) with UV byte ordering, U/V\n' 'width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatVYUY_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatVYUY_ER, 'Extended Range Y, U, V in one surface, interleaved as YVYU in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY_ER, 'Extended Range Y, U, V in one surface, interleaved as YUYV in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUYV_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUYV_ER, 'Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVYU_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVYU_ER, 'Extended Range Y, U, V in one surface, interleaved as VYUY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUVA_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUVA_ER, 'Extended Range Y, U, V, A four channels in one surface, interleaved as\n' 'AVUY.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatAYUV_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatAYUV_ER, 'Extended Range Y, U, V, A four channels in one surface, interleaved as\n' 'VUYA.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444Planar_ER, 'Extended Range Y, U, V in three surfaces, U/V width = Y width, U/V height =\n' 'Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422Planar_ER, 'Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_ER, 'Extended Range Y, U, V in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV444SemiPlanar_ER, 'Extended Range Y, UV in two surfaces (UV as one surface) with VU byte\n' 'ordering, U/V width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV422SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV422SemiPlanar_ER, 'Extended Range Y, UV in two surfaces (UV as one surface) with VU byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_ER, 'Extended Range Y, UV in two surfaces (UV as one surface) with VU byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar_ER, 'Extended Range Y, V, U in three surfaces, U/V width = Y width, U/V height =\n' 'Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar_ER, 'Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_ER, 'Extended Range Y, V, U in three surfaces, U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444SemiPlanar_ER, 'Extended Range Y, VU in two surfaces (VU as one surface) with UV byte\n' 'ordering, U/V width = Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422SemiPlanar_ER, 'Extended Range Y, VU in two surfaces (VU as one surface) with UV byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_ER, 'Extended Range Y, VU in two surfaces (VU as one surface) with UV byte\n' 'ordering, U/V width = 1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerRGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerRGGB, 'Bayer format - one channel in one surface with interleaved RGGB ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerBGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerBGGR, 'Bayer format - one channel in one surface with interleaved BGGR ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerGRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerGRBG, 'Bayer format - one channel in one surface with interleaved GRBG ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerGBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerGBRG, 'Bayer format - one channel in one surface with interleaved GBRG ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10RGGB, 'Bayer10 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10BGGR, 'Bayer10 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GRBG, 'Bayer10 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10GBRG, 'Bayer10 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RGGB, 'Bayer12 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BGGR, 'Bayer12 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GRBG, 'Bayer12 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12GBRG, 'Bayer12 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14RGGB, 'Bayer14 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14BGGR, 'Bayer14 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GRBG, 'Bayer14 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer14GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer14GBRG, 'Bayer14 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 16 bits, 14 bits used 2 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20RGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20RGGB, 'Bayer20 format - one channel in one surface with interleaved RGGB ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20BGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20BGGR, 'Bayer20 format - one channel in one surface with interleaved BGGR ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20GRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GRBG, 'Bayer20 format - one channel in one surface with interleaved GRBG ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer20GBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer20GBRG, 'Bayer20 format - one channel in one surface with interleaved GBRG ordering.\n' 'Out of 32 bits, 20 bits used 12 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU444Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU444Planar, 'Y, V, U in three surfaces, each in a separate surface, U/V width = Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU422Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU422Planar, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspRGGB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspRGGB, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved RGGB ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspBGGR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspBGGR, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved BGGR ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspGRBG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGRBG, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved GRBG ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerIspGBRG = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerIspGBRG, 'Nvidia proprietary Bayer ISP format - one channel in one surface with\n' 'interleaved GBRG ordering and mapped to opaque integer datatype.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerBCCR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerBCCR, 'Bayer format - one channel in one surface with interleaved BCCR ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerRCCB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerRCCB, 'Bayer format - one channel in one surface with interleaved RCCB ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerCRBC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerCRBC, 'Bayer format - one channel in one surface with interleaved CRBC ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayerCBRC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayerCBRC, 'Bayer format - one channel in one surface with interleaved CBRC ordering.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer10CCCC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer10CCCC, 'Bayer10 format - one channel in one surface with interleaved CCCC ordering.\n' 'Out of 16 bits, 10 bits used 6 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12BCCR = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12BCCR, 'Bayer12 format - one channel in one surface with interleaved BCCR ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12RCCB = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12RCCB, 'Bayer12 format - one channel in one surface with interleaved RCCB ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12CRBC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CRBC, 'Bayer12 format - one channel in one surface with interleaved CRBC ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12CBRC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CBRC, 'Bayer12 format - one channel in one surface with interleaved CBRC ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatBayer12CCCC = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatBayer12CCCC, 'Bayer12 format - one channel in one surface with interleaved CCCC ordering.\n' 'Out of 16 bits, 12 bits used 4 bits No-op.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY, 'Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_2020, 'Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_2020, 'Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420Planar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_2020, 'Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_2020, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420SemiPlanar_709, 'Y, UV in two surfaces (UV as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420SemiPlanar_709, 'Y, VU in two surfaces (VU as one surface) U/V width = 1/2 Y width, U/V\n' 'height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUV420Planar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUV420Planar_709, 'Y, U, V in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVU420Planar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVU420Planar_709, 'Y, V, U in three surfaces, each in a separate surface, U/V width = 1/2 Y\n' 'width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_2020, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_422SemiPlanar_2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_2020, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_422SemiPlanar = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_422SemiPlanar_709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_422SemiPlanar_709, 'Y10, V10U10 in two surfaces (VU as one surface) U/V width = 1/2 Y width,\n' 'U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY_ER, 'Extended Range Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY_709_ER, 'Extended Range Color format for single Y plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10_ER, 'Extended Range Color format for single Y10 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10_709_ER, 'Extended Range Color format for single Y10 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12_ER, 'Extended Range Color format for single Y12 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12_709_ER, 'Extended Range Color format for single Y12 plane.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYUVA = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYUVA, 'Y, U, V, A four channels in one surface, interleaved as AVUY.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatYVYU = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatYVYU, 'Y, U, V in one surface, interleaved as YVYU in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatVYUY = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatVYUY, 'Y, U, V in one surface, interleaved as VYUY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_420SemiPlanar_709_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY10V10U10_444SemiPlanar_709_ER, 'Extended Range Y10, V10U10 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_420SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_420SemiPlanar_709_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' '1/2 Y width, U/V height = 1/2 Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_444SemiPlanar_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatY12V12U12_444SemiPlanar_709_ER, 'Extended Range Y12, V12U12 in two surfaces (VU as one surface) U/V width =\n' 'Y width, U/V height = Y height.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY709 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY709, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY709_ER = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY709_ER, 'Extended Range Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - {{if True}} + ) + cudaEglColorFormatUYVY2020 = ( cyruntime.cudaEglColorFormat_enum.cudaEglColorFormatUYVY2020, 'Y, U, V in one surface, interleaved as UYVY in one channel.\n' - ){{endif}} - -{{endif}} -{{if 'cudaChannelFormatKind' in found_types}} + ) class cudaChannelFormatKind(_FastEnum): """ Channel format kind """ - {{if 'cudaChannelFormatKindSigned' in found_values}} + cudaChannelFormatKindSigned = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSigned, 'Signed channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned' in found_values}} + ) + cudaChannelFormatKindUnsigned = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned, 'Unsigned channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindFloat' in found_values}} + ) + cudaChannelFormatKindFloat = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindFloat, 'Float channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindNone' in found_values}} + ) + cudaChannelFormatKindNone = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindNone, 'No channel format\n' - ){{endif}} - {{if 'cudaChannelFormatKindNV12' in found_values}} + ) + cudaChannelFormatKindNV12 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindNV12, 'Unsigned 8-bit integers, planar 4:2:0 YUV format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized8X1' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized8X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X1, '1 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized8X2' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized8X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X2, '2 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized8X4' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized8X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized8X4, '4 channel unsigned 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized16X1' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized16X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X1, '1 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized16X2' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized16X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X2, '2 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized16X4' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized16X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized16X4, '4 channel unsigned 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized8X1' in found_values}} + ) + cudaChannelFormatKindSignedNormalized8X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X1, '1 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized8X2' in found_values}} + ) + cudaChannelFormatKindSignedNormalized8X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X2, '2 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized8X4' in found_values}} + ) + cudaChannelFormatKindSignedNormalized8X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized8X4, '4 channel signed 8-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized16X1' in found_values}} + ) + cudaChannelFormatKindSignedNormalized16X1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X1, '1 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized16X2' in found_values}} + ) + cudaChannelFormatKindSignedNormalized16X2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X2, '2 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedNormalized16X4' in found_values}} + ) + cudaChannelFormatKindSignedNormalized16X4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedNormalized16X4, '4 channel signed 16-bit normalized integer\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed1' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed1 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1, '4 channel unsigned normalized block-compressed (BC1 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed1SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed1SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed1SRGB, '4 channel unsigned normalized block-compressed (BC1 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed2' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed2 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2, '4 channel unsigned normalized block-compressed (BC2 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed2SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed2SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed2SRGB, '4 channel unsigned normalized block-compressed (BC2 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed3' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed3 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3, '4 channel unsigned normalized block-compressed (BC3 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed3SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed3SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed3SRGB, '4 channel unsigned normalized block-compressed (BC3 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed4' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed4, '1 channel unsigned normalized block-compressed (BC4 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedBlockCompressed4' in found_values}} + ) + cudaChannelFormatKindSignedBlockCompressed4 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed4, '1 channel signed normalized block-compressed (BC4 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed5' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed5 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed5, '2 channel unsigned normalized block-compressed (BC5 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedBlockCompressed5' in found_values}} + ) + cudaChannelFormatKindSignedBlockCompressed5 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed5, '2 channel signed normalized block-compressed (BC5 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed6H' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed6H = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed6H, '3 channel unsigned half-float block-compressed (BC6H compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindSignedBlockCompressed6H' in found_values}} + ) + cudaChannelFormatKindSignedBlockCompressed6H = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindSignedBlockCompressed6H, '3 channel signed half-float block-compressed (BC6H compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed7' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed7 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7, '4 channel unsigned normalized block-compressed (BC7 compression) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedBlockCompressed7SRGB' in found_values}} + ) + cudaChannelFormatKindUnsignedBlockCompressed7SRGB = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedBlockCompressed7SRGB, '4 channel unsigned normalized block-compressed (BC7 compression) format\n' 'with sRGB encoding\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsignedNormalized1010102' in found_values}} + ) + cudaChannelFormatKindUnsignedNormalized1010102 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsignedNormalized1010102, '4 channel unsigned normalized (10-bit, 10-bit, 10-bit, 2-bit) format\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8Packed422' in found_values}} + ) + cudaChannelFormatKindUnsigned8Packed422 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8Packed422, '4 channel unsigned 8-bit packed format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8Packed444' in found_values}} + ) + cudaChannelFormatKindUnsigned8Packed444 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8Packed444, '4 channel unsigned 8-bit packed format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8SemiPlanar420' in found_values}} + ) + cudaChannelFormatKindUnsigned8SemiPlanar420 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8SemiPlanar420, '3 channel unsigned 8-bit semi-planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned16SemiPlanar420' in found_values}} + ) + cudaChannelFormatKindUnsigned16SemiPlanar420 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned16SemiPlanar420, '3 channel unsigned 16-bit semi-planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8SemiPlanar422' in found_values}} + ) + cudaChannelFormatKindUnsigned8SemiPlanar422 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8SemiPlanar422, '3 channel unsigned 8-bit semi-planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned16SemiPlanar422' in found_values}} + ) + cudaChannelFormatKindUnsigned16SemiPlanar422 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned16SemiPlanar422, '3 channel unsigned 16-bit semi-planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8SemiPlanar444' in found_values}} + ) + cudaChannelFormatKindUnsigned8SemiPlanar444 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8SemiPlanar444, '3 channel unsigned 8-bit semi-planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned16SemiPlanar444' in found_values}} + ) + cudaChannelFormatKindUnsigned16SemiPlanar444 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned16SemiPlanar444, '3 channel unsigned 16-bit semi-planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8Planar420' in found_values}} + ) + cudaChannelFormatKindUnsigned8Planar420 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8Planar420, '3 channel unsigned 8-bit planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned16Planar420' in found_values}} + ) + cudaChannelFormatKindUnsigned16Planar420 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned16Planar420, '3 channel unsigned 16-bit planar format, with 4:2:0 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8Planar422' in found_values}} + ) + cudaChannelFormatKindUnsigned8Planar422 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8Planar422, '3 channel unsigned 8-bit planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned16Planar422' in found_values}} + ) + cudaChannelFormatKindUnsigned16Planar422 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned16Planar422, '3 channel unsigned 16-bit planar format, with 4:2:2 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned8Planar444' in found_values}} + ) + cudaChannelFormatKindUnsigned8Planar444 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned8Planar444, '3 channel unsigned 8-bit planar format, with 4:4:4 sampling\n' - ){{endif}} - {{if 'cudaChannelFormatKindUnsigned16Planar444' in found_values}} + ) + cudaChannelFormatKindUnsigned16Planar444 = ( cyruntime.cudaChannelFormatKind.cudaChannelFormatKindUnsigned16Planar444, '3 channel unsigned 16-bit planar format, with 4:4:4 sampling\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemoryType' in found_types}} + ) class cudaMemoryType(_FastEnum): """ CUDA memory types """ - {{if 'cudaMemoryTypeUnregistered' in found_values}} + cudaMemoryTypeUnregistered = ( cyruntime.cudaMemoryType.cudaMemoryTypeUnregistered, 'Unregistered memory\n' - ){{endif}} - {{if 'cudaMemoryTypeHost' in found_values}} + ) + cudaMemoryTypeHost = ( cyruntime.cudaMemoryType.cudaMemoryTypeHost, 'Host memory\n' - ){{endif}} - {{if 'cudaMemoryTypeDevice' in found_values}} + ) + cudaMemoryTypeDevice = ( cyruntime.cudaMemoryType.cudaMemoryTypeDevice, 'Device memory\n' - ){{endif}} - {{if 'cudaMemoryTypeManaged' in found_values}} + ) + cudaMemoryTypeManaged = ( cyruntime.cudaMemoryType.cudaMemoryTypeManaged, 'Managed memory\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemcpyKind' in found_types}} + ) class cudaMemcpyKind(_FastEnum): """ CUDA memory copy types """ - {{if 'cudaMemcpyHostToHost' in found_values}} + cudaMemcpyHostToHost = ( cyruntime.cudaMemcpyKind.cudaMemcpyHostToHost, 'Host -> Host\n' - ){{endif}} - {{if 'cudaMemcpyHostToDevice' in found_values}} + ) + cudaMemcpyHostToDevice = ( cyruntime.cudaMemcpyKind.cudaMemcpyHostToDevice, 'Host -> Device\n' - ){{endif}} - {{if 'cudaMemcpyDeviceToHost' in found_values}} + ) + cudaMemcpyDeviceToHost = ( cyruntime.cudaMemcpyKind.cudaMemcpyDeviceToHost, 'Device -> Host\n' - ){{endif}} - {{if 'cudaMemcpyDeviceToDevice' in found_values}} + ) + cudaMemcpyDeviceToDevice = ( cyruntime.cudaMemcpyKind.cudaMemcpyDeviceToDevice, 'Device -> Device\n' - ){{endif}} - {{if 'cudaMemcpyDefault' in found_values}} + ) + cudaMemcpyDefault = ( cyruntime.cudaMemcpyKind.cudaMemcpyDefault, 'Direction of the transfer is inferred from the pointer values. Requires\n' 'unified virtual addressing\n' - ){{endif}} - -{{endif}} -{{if 'cudaAccessProperty' in found_types}} + ) class cudaAccessProperty(_FastEnum): """ Specifies performance hint with :py:obj:`~.cudaAccessPolicyWindow` for hitProp and missProp members. """ - {{if 'cudaAccessPropertyNormal' in found_values}} + cudaAccessPropertyNormal = ( cyruntime.cudaAccessProperty.cudaAccessPropertyNormal, 'Normal cache persistence.\n' - ){{endif}} - {{if 'cudaAccessPropertyStreaming' in found_values}} + ) + cudaAccessPropertyStreaming = ( cyruntime.cudaAccessProperty.cudaAccessPropertyStreaming, 'Streaming access is less likely to persit from cache.\n' - ){{endif}} - {{if 'cudaAccessPropertyPersisting' in found_values}} + ) + cudaAccessPropertyPersisting = ( cyruntime.cudaAccessProperty.cudaAccessPropertyPersisting, 'Persisting access is more likely to persist in cache.\n' - ){{endif}} - -{{endif}} -{{if 'cudaStreamCaptureStatus' in found_types}} + ) class cudaStreamCaptureStatus(_FastEnum): """ Possible stream capture statuses returned by :py:obj:`~.cudaStreamIsCapturing` """ - {{if 'cudaStreamCaptureStatusNone' in found_values}} + cudaStreamCaptureStatusNone = ( cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusNone, 'Stream is not capturing\n' - ){{endif}} - {{if 'cudaStreamCaptureStatusActive' in found_values}} + ) + cudaStreamCaptureStatusActive = ( cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusActive, 'Stream is actively capturing\n' - ){{endif}} - {{if 'cudaStreamCaptureStatusInvalidated' in found_values}} + ) + cudaStreamCaptureStatusInvalidated = ( cyruntime.cudaStreamCaptureStatus.cudaStreamCaptureStatusInvalidated, 'Stream is part of a capture sequence that has been invalidated, but not\n' 'terminated\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphRecaptureStatus' in found_types}} + ) class cudaGraphRecaptureStatus(_FastEnum): """ Possible recapture statuses that can be returned to the user callback """ - {{if 'cudaGraphRecaptureEligibleForUpdate' in found_values}} + cudaGraphRecaptureEligibleForUpdate = ( cyruntime.cudaGraphRecaptureStatus.cudaGraphRecaptureEligibleForUpdate, 'Node is eligible for update in an instantiated graph.\n' - ){{endif}} - {{if 'cudaGraphRecaptureIneligibleForUpdate' in found_values}} + ) + cudaGraphRecaptureIneligibleForUpdate = ( cyruntime.cudaGraphRecaptureStatus.cudaGraphRecaptureIneligibleForUpdate, 'Parameter changes in the node cannot be applied to an instantiated graph.\n' - ){{endif}} - {{if 'cudaGraphRecaptureError' in found_values}} + ) + cudaGraphRecaptureError = ( cyruntime.cudaGraphRecaptureStatus.cudaGraphRecaptureError, 'Error while attempting to recapture the node. The recapture will be ended\n' 'regardless of the return value from the callback.\n' - ){{endif}} - -{{endif}} -{{if 'cudaStreamCaptureMode' in found_types}} + ) class cudaStreamCaptureMode(_FastEnum): """ @@ -3319,1548 +3248,1476 @@ class cudaStreamCaptureMode(_FastEnum): details see :py:obj:`~.cudaStreamBeginCapture` and :py:obj:`~.cudaThreadExchangeStreamCaptureMode` """ - {{if 'cudaStreamCaptureModeGlobal' in found_values}} - cudaStreamCaptureModeGlobal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal{{endif}} - {{if 'cudaStreamCaptureModeThreadLocal' in found_values}} - cudaStreamCaptureModeThreadLocal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal{{endif}} - {{if 'cudaStreamCaptureModeRelaxed' in found_values}} - cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed{{endif}} -{{endif}} -{{if 'cudaSynchronizationPolicy' in found_types}} + cudaStreamCaptureModeGlobal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeGlobal + + cudaStreamCaptureModeThreadLocal = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeThreadLocal + + cudaStreamCaptureModeRelaxed = cyruntime.cudaStreamCaptureMode.cudaStreamCaptureModeRelaxed class cudaSynchronizationPolicy(_FastEnum): """ """ - {{if 'cudaSyncPolicyAuto' in found_values}} - cudaSyncPolicyAuto = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyAuto{{endif}} - {{if 'cudaSyncPolicySpin' in found_values}} - cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin{{endif}} - {{if 'cudaSyncPolicyYield' in found_values}} - cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield{{endif}} - {{if 'cudaSyncPolicyBlockingSync' in found_values}} - cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync{{endif}} -{{endif}} -{{if 'cudaClusterSchedulingPolicy' in found_types}} + cudaSyncPolicyAuto = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyAuto + + cudaSyncPolicySpin = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicySpin + + cudaSyncPolicyYield = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyYield + + cudaSyncPolicyBlockingSync = cyruntime.cudaSynchronizationPolicy.cudaSyncPolicyBlockingSync class cudaClusterSchedulingPolicy(_FastEnum): """ Cluster scheduling policies. These may be passed to :py:obj:`~.cudaFuncSetAttribute` """ - {{if 'cudaClusterSchedulingPolicyDefault' in found_values}} + cudaClusterSchedulingPolicyDefault = ( cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyDefault, 'the default policy\n' - ){{endif}} - {{if 'cudaClusterSchedulingPolicySpread' in found_values}} + ) + cudaClusterSchedulingPolicySpread = ( cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicySpread, 'spread the blocks within a cluster to the SMs\n' - ){{endif}} - {{if 'cudaClusterSchedulingPolicyLoadBalancing' in found_values}} + ) + cudaClusterSchedulingPolicyLoadBalancing = ( cyruntime.cudaClusterSchedulingPolicy.cudaClusterSchedulingPolicyLoadBalancing, 'allow the hardware to load-balance the blocks in a cluster to the SMs\n' - ){{endif}} - -{{endif}} -{{if 'cudaStreamUpdateCaptureDependenciesFlags' in found_types}} + ) class cudaStreamUpdateCaptureDependenciesFlags(_FastEnum): """ Flags for :py:obj:`~.cudaStreamUpdateCaptureDependencies` """ - {{if 'cudaStreamAddCaptureDependencies' in found_values}} + cudaStreamAddCaptureDependencies = ( cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamAddCaptureDependencies, 'Add new nodes to the dependency set\n' - ){{endif}} - {{if 'cudaStreamSetCaptureDependencies' in found_values}} + ) + cudaStreamSetCaptureDependencies = ( cyruntime.cudaStreamUpdateCaptureDependenciesFlags.cudaStreamSetCaptureDependencies, 'Replace the dependency set with the new nodes\n' - ){{endif}} - -{{endif}} -{{if 'cudaUserObjectFlags' in found_types}} + ) class cudaUserObjectFlags(_FastEnum): """ Flags for user objects for graphs """ - {{if 'cudaUserObjectNoDestructorSync' in found_values}} + cudaUserObjectNoDestructorSync = ( cyruntime.cudaUserObjectFlags.cudaUserObjectNoDestructorSync, 'Indicates the destructor execution is not synchronized by any CUDA handle.\n' - ){{endif}} - -{{endif}} -{{if 'cudaUserObjectRetainFlags' in found_types}} + ) class cudaUserObjectRetainFlags(_FastEnum): """ Flags for retaining user object references for graphs """ - {{if 'cudaGraphUserObjectMove' in found_values}} + cudaGraphUserObjectMove = ( cyruntime.cudaUserObjectRetainFlags.cudaGraphUserObjectMove, 'Transfer references from the caller rather than creating new references.\n' - ){{endif}} - -{{endif}} -{{if 'cudaHostTaskSyncMode' in found_types}} + ) class cudaHostTaskSyncMode(_FastEnum): """ Flags for host task sync mode """ - {{if 'cudaHostTaskBlocking' in found_values}} - cudaHostTaskBlocking = cyruntime.cudaHostTaskSyncMode.cudaHostTaskBlocking{{endif}} - {{if 'cudaHostTaskSpinWait' in found_values}} - cudaHostTaskSpinWait = cyruntime.cudaHostTaskSyncMode.cudaHostTaskSpinWait{{endif}} -{{endif}} -{{if 'cudaGraphicsRegisterFlags' in found_types}} + cudaHostTaskBlocking = cyruntime.cudaHostTaskSyncMode.cudaHostTaskBlocking + + cudaHostTaskSpinWait = cyruntime.cudaHostTaskSyncMode.cudaHostTaskSpinWait class cudaGraphicsRegisterFlags(_FastEnum): """ CUDA graphics interop register flags """ - {{if 'cudaGraphicsRegisterFlagsNone' in found_values}} + cudaGraphicsRegisterFlagsNone = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsNone, 'Default\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsReadOnly' in found_values}} + ) + cudaGraphicsRegisterFlagsReadOnly = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsReadOnly, 'CUDA will not write to this resource\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsWriteDiscard' in found_values}} + ) + cudaGraphicsRegisterFlagsWriteDiscard = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsWriteDiscard, 'CUDA will only write to and will not read from this resource\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsSurfaceLoadStore' in found_values}} + ) + cudaGraphicsRegisterFlagsSurfaceLoadStore = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsSurfaceLoadStore, 'CUDA will bind this resource to a surface reference\n' - ){{endif}} - {{if 'cudaGraphicsRegisterFlagsTextureGather' in found_values}} + ) + cudaGraphicsRegisterFlagsTextureGather = ( cyruntime.cudaGraphicsRegisterFlags.cudaGraphicsRegisterFlagsTextureGather, 'CUDA will perform texture gather operations on this resource\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphicsMapFlags' in found_types}} + ) class cudaGraphicsMapFlags(_FastEnum): """ CUDA graphics interop map flags """ - {{if 'cudaGraphicsMapFlagsNone' in found_values}} + cudaGraphicsMapFlagsNone = ( cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsNone, 'Default; Assume resource can be read/written\n' - ){{endif}} - {{if 'cudaGraphicsMapFlagsReadOnly' in found_values}} + ) + cudaGraphicsMapFlagsReadOnly = ( cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsReadOnly, 'CUDA will not write to this resource\n' - ){{endif}} - {{if 'cudaGraphicsMapFlagsWriteDiscard' in found_values}} + ) + cudaGraphicsMapFlagsWriteDiscard = ( cyruntime.cudaGraphicsMapFlags.cudaGraphicsMapFlagsWriteDiscard, 'CUDA will only write to and will not read from this resource\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphicsCubeFace' in found_types}} + ) class cudaGraphicsCubeFace(_FastEnum): """ CUDA graphics interop array indices for cube maps """ - {{if 'cudaGraphicsCubeFacePositiveX' in found_values}} + cudaGraphicsCubeFacePositiveX = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveX, 'Positive X face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFaceNegativeX' in found_values}} + ) + cudaGraphicsCubeFaceNegativeX = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeX, 'Negative X face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFacePositiveY' in found_values}} + ) + cudaGraphicsCubeFacePositiveY = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveY, 'Positive Y face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFaceNegativeY' in found_values}} + ) + cudaGraphicsCubeFaceNegativeY = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeY, 'Negative Y face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFacePositiveZ' in found_values}} + ) + cudaGraphicsCubeFacePositiveZ = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFacePositiveZ, 'Positive Z face of cubemap\n' - ){{endif}} - {{if 'cudaGraphicsCubeFaceNegativeZ' in found_values}} + ) + cudaGraphicsCubeFaceNegativeZ = ( cyruntime.cudaGraphicsCubeFace.cudaGraphicsCubeFaceNegativeZ, 'Negative Z face of cubemap\n' - ){{endif}} - -{{endif}} -{{if 'cudaResourceType' in found_types}} + ) class cudaResourceType(_FastEnum): """ CUDA resource types """ - {{if 'cudaResourceTypeArray' in found_values}} + cudaResourceTypeArray = ( cyruntime.cudaResourceType.cudaResourceTypeArray, 'Array resource\n' - ){{endif}} - {{if 'cudaResourceTypeMipmappedArray' in found_values}} + ) + cudaResourceTypeMipmappedArray = ( cyruntime.cudaResourceType.cudaResourceTypeMipmappedArray, 'Mipmapped array resource\n' - ){{endif}} - {{if 'cudaResourceTypeLinear' in found_values}} + ) + cudaResourceTypeLinear = ( cyruntime.cudaResourceType.cudaResourceTypeLinear, 'Linear resource\n' - ){{endif}} - {{if 'cudaResourceTypePitch2D' in found_values}} + ) + cudaResourceTypePitch2D = ( cyruntime.cudaResourceType.cudaResourceTypePitch2D, 'Pitch 2D resource\n' - ){{endif}} - -{{endif}} -{{if 'cudaResourceViewFormat' in found_types}} + ) class cudaResourceViewFormat(_FastEnum): """ CUDA texture resource view formats """ - {{if 'cudaResViewFormatNone' in found_values}} + cudaResViewFormatNone = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatNone, 'No resource view format (use underlying resource format)\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedChar1' in found_values}} + ) + cudaResViewFormatUnsignedChar1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar1, '1 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedChar2' in found_values}} + ) + cudaResViewFormatUnsignedChar2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar2, '2 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedChar4' in found_values}} + ) + cudaResViewFormatUnsignedChar4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedChar4, '4 channel unsigned 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedChar1' in found_values}} + ) + cudaResViewFormatSignedChar1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar1, '1 channel signed 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedChar2' in found_values}} + ) + cudaResViewFormatSignedChar2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar2, '2 channel signed 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedChar4' in found_values}} + ) + cudaResViewFormatSignedChar4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedChar4, '4 channel signed 8-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedShort1' in found_values}} + ) + cudaResViewFormatUnsignedShort1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort1, '1 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedShort2' in found_values}} + ) + cudaResViewFormatUnsignedShort2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort2, '2 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedShort4' in found_values}} + ) + cudaResViewFormatUnsignedShort4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedShort4, '4 channel unsigned 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedShort1' in found_values}} + ) + cudaResViewFormatSignedShort1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort1, '1 channel signed 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedShort2' in found_values}} + ) + cudaResViewFormatSignedShort2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort2, '2 channel signed 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedShort4' in found_values}} + ) + cudaResViewFormatSignedShort4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedShort4, '4 channel signed 16-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedInt1' in found_values}} + ) + cudaResViewFormatUnsignedInt1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt1, '1 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedInt2' in found_values}} + ) + cudaResViewFormatUnsignedInt2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt2, '2 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedInt4' in found_values}} + ) + cudaResViewFormatUnsignedInt4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedInt4, '4 channel unsigned 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedInt1' in found_values}} + ) + cudaResViewFormatSignedInt1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt1, '1 channel signed 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedInt2' in found_values}} + ) + cudaResViewFormatSignedInt2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt2, '2 channel signed 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatSignedInt4' in found_values}} + ) + cudaResViewFormatSignedInt4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedInt4, '4 channel signed 32-bit integers\n' - ){{endif}} - {{if 'cudaResViewFormatHalf1' in found_values}} + ) + cudaResViewFormatHalf1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf1, '1 channel 16-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatHalf2' in found_values}} + ) + cudaResViewFormatHalf2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf2, '2 channel 16-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatHalf4' in found_values}} + ) + cudaResViewFormatHalf4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatHalf4, '4 channel 16-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatFloat1' in found_values}} + ) + cudaResViewFormatFloat1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat1, '1 channel 32-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatFloat2' in found_values}} + ) + cudaResViewFormatFloat2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat2, '2 channel 32-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatFloat4' in found_values}} + ) + cudaResViewFormatFloat4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatFloat4, '4 channel 32-bit floating point\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed1' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed1 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed1, 'Block compressed 1\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed2' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed2 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed2, 'Block compressed 2\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed3' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed3 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed3, 'Block compressed 3\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed4' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed4, 'Block compressed 4 unsigned\n' - ){{endif}} - {{if 'cudaResViewFormatSignedBlockCompressed4' in found_values}} + ) + cudaResViewFormatSignedBlockCompressed4 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed4, 'Block compressed 4 signed\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed5' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed5 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed5, 'Block compressed 5 unsigned\n' - ){{endif}} - {{if 'cudaResViewFormatSignedBlockCompressed5' in found_values}} + ) + cudaResViewFormatSignedBlockCompressed5 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed5, 'Block compressed 5 signed\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed6H' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed6H = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed6H, 'Block compressed 6 unsigned half-float\n' - ){{endif}} - {{if 'cudaResViewFormatSignedBlockCompressed6H' in found_values}} + ) + cudaResViewFormatSignedBlockCompressed6H = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatSignedBlockCompressed6H, 'Block compressed 6 signed half-float\n' - ){{endif}} - {{if 'cudaResViewFormatUnsignedBlockCompressed7' in found_values}} + ) + cudaResViewFormatUnsignedBlockCompressed7 = ( cyruntime.cudaResourceViewFormat.cudaResViewFormatUnsignedBlockCompressed7, 'Block compressed 7\n' - ){{endif}} - -{{endif}} -{{if 'cudaFuncAttribute' in found_types}} + ) class cudaFuncAttribute(_FastEnum): """ CUDA function attributes that can be set using :py:obj:`~.cudaFuncSetAttribute` """ - {{if 'cudaFuncAttributeMaxDynamicSharedMemorySize' in found_values}} + cudaFuncAttributeMaxDynamicSharedMemorySize = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeMaxDynamicSharedMemorySize, 'Maximum dynamic shared memory size\n' - ){{endif}} - {{if 'cudaFuncAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaFuncAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaFuncAttribute.cudaFuncAttributePreferredSharedMemoryCarveout, 'Preferred shared memory-L1 cache split\n' - ){{endif}} - {{if 'cudaFuncAttributeClusterDimMustBeSet' in found_values}} + ) + cudaFuncAttributeClusterDimMustBeSet = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeClusterDimMustBeSet, 'Indicator to enforce valid cluster dimension specification on kernel launch\n' - ){{endif}} - {{if 'cudaFuncAttributeRequiredClusterWidth' in found_values}} + ) + cudaFuncAttributeRequiredClusterWidth = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterWidth, 'Required cluster width\n' - ){{endif}} - {{if 'cudaFuncAttributeRequiredClusterHeight' in found_values}} + ) + cudaFuncAttributeRequiredClusterHeight = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterHeight, 'Required cluster height\n' - ){{endif}} - {{if 'cudaFuncAttributeRequiredClusterDepth' in found_values}} + ) + cudaFuncAttributeRequiredClusterDepth = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeRequiredClusterDepth, 'Required cluster depth\n' - ){{endif}} - {{if 'cudaFuncAttributeNonPortableClusterSizeAllowed' in found_values}} + ) + cudaFuncAttributeNonPortableClusterSizeAllowed = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeNonPortableClusterSizeAllowed, 'Whether non-portable cluster scheduling policy is supported\n' - ){{endif}} - {{if 'cudaFuncAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaFuncAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaFuncAttribute.cudaFuncAttributeClusterSchedulingPolicyPreference, 'Required cluster scheduling policy preference\n' - ){{endif}} - {{if 'cudaFuncAttributeMax' in found_values}} - cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax{{endif}} + ) -{{endif}} -{{if 'cudaFuncCache' in found_types}} + cudaFuncAttributeMax = cyruntime.cudaFuncAttribute.cudaFuncAttributeMax class cudaFuncCache(_FastEnum): """ CUDA function cache configurations """ - {{if 'cudaFuncCachePreferNone' in found_values}} + cudaFuncCachePreferNone = ( cyruntime.cudaFuncCache.cudaFuncCachePreferNone, 'Default function cache configuration, no preference\n' - ){{endif}} - {{if 'cudaFuncCachePreferShared' in found_values}} + ) + cudaFuncCachePreferShared = ( cyruntime.cudaFuncCache.cudaFuncCachePreferShared, 'Prefer larger shared memory and smaller L1 cache\n' - ){{endif}} - {{if 'cudaFuncCachePreferL1' in found_values}} + ) + cudaFuncCachePreferL1 = ( cyruntime.cudaFuncCache.cudaFuncCachePreferL1, 'Prefer larger L1 cache and smaller shared memory\n' - ){{endif}} - {{if 'cudaFuncCachePreferEqual' in found_values}} + ) + cudaFuncCachePreferEqual = ( cyruntime.cudaFuncCache.cudaFuncCachePreferEqual, 'Prefer equal size L1 cache and shared memory\n' - ){{endif}} - -{{endif}} -{{if 'cudaSharedMemConfig' in found_types}} + ) class cudaSharedMemConfig(_FastEnum): """ CUDA shared memory configuration [Deprecated] """ - {{if 'cudaSharedMemBankSizeDefault' in found_values}} - cudaSharedMemBankSizeDefault = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeDefault{{endif}} - {{if 'cudaSharedMemBankSizeFourByte' in found_values}} - cudaSharedMemBankSizeFourByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte{{endif}} - {{if 'cudaSharedMemBankSizeEightByte' in found_values}} - cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte{{endif}} -{{endif}} -{{if 'cudaSharedCarveout' in found_types}} + cudaSharedMemBankSizeDefault = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeDefault + + cudaSharedMemBankSizeFourByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeFourByte + + cudaSharedMemBankSizeEightByte = cyruntime.cudaSharedMemConfig.cudaSharedMemBankSizeEightByte class cudaSharedCarveout(_FastEnum): """ Shared memory carveout configurations. These may be passed to cudaFuncSetAttribute """ - {{if 'cudaSharedmemCarveoutDefault' in found_values}} + cudaSharedmemCarveoutDefault = ( cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutDefault, 'No preference for shared memory or L1 (default)\n' - ){{endif}} - {{if 'cudaSharedmemCarveoutMaxL1' in found_values}} + ) + cudaSharedmemCarveoutMaxL1 = ( cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxL1, 'Prefer maximum available L1 cache, minimum shared memory\n' - ){{endif}} - {{if 'cudaSharedmemCarveoutMaxShared' in found_values}} + ) + cudaSharedmemCarveoutMaxShared = ( cyruntime.cudaSharedCarveout.cudaSharedmemCarveoutMaxShared, 'Prefer maximum available shared memory, minimum L1 cache\n' - ){{endif}} - -{{endif}} -{{if 'cudaComputeMode' in found_types}} + ) class cudaComputeMode(_FastEnum): """ CUDA device compute modes """ - {{if 'cudaComputeModeDefault' in found_values}} + cudaComputeModeDefault = ( cyruntime.cudaComputeMode.cudaComputeModeDefault, 'Default compute mode (Multiple threads can use :py:obj:`~.cudaSetDevice()`\n' 'with this device)\n' - ){{endif}} - {{if 'cudaComputeModeExclusive' in found_values}} + ) + cudaComputeModeExclusive = ( cyruntime.cudaComputeMode.cudaComputeModeExclusive, 'Compute-exclusive-thread mode (Only one thread in one process will be able\n' 'to use :py:obj:`~.cudaSetDevice()` with this device)\n' - ){{endif}} - {{if 'cudaComputeModeProhibited' in found_values}} + ) + cudaComputeModeProhibited = ( cyruntime.cudaComputeMode.cudaComputeModeProhibited, 'Compute-prohibited mode (No threads can use :py:obj:`~.cudaSetDevice()`\n' 'with this device)\n' - ){{endif}} - {{if 'cudaComputeModeExclusiveProcess' in found_values}} + ) + cudaComputeModeExclusiveProcess = ( cyruntime.cudaComputeMode.cudaComputeModeExclusiveProcess, 'Compute-exclusive-process mode (Many threads in one process will be able to\n' 'use :py:obj:`~.cudaSetDevice()` with this device)\n' - ){{endif}} - -{{endif}} -{{if 'cudaLimit' in found_types}} + ) class cudaLimit(_FastEnum): """ CUDA Limits """ - {{if 'cudaLimitStackSize' in found_values}} + cudaLimitStackSize = ( cyruntime.cudaLimit.cudaLimitStackSize, 'GPU thread stack size\n' - ){{endif}} - {{if 'cudaLimitPrintfFifoSize' in found_values}} + ) + cudaLimitPrintfFifoSize = ( cyruntime.cudaLimit.cudaLimitPrintfFifoSize, 'GPU printf FIFO size\n' - ){{endif}} - {{if 'cudaLimitMallocHeapSize' in found_values}} + ) + cudaLimitMallocHeapSize = ( cyruntime.cudaLimit.cudaLimitMallocHeapSize, 'GPU malloc heap size\n' - ){{endif}} - {{if 'cudaLimitDevRuntimeSyncDepth' in found_values}} + ) + cudaLimitDevRuntimeSyncDepth = ( cyruntime.cudaLimit.cudaLimitDevRuntimeSyncDepth, 'GPU device runtime synchronize depth\n' - ){{endif}} - {{if 'cudaLimitDevRuntimePendingLaunchCount' in found_values}} + ) + cudaLimitDevRuntimePendingLaunchCount = ( cyruntime.cudaLimit.cudaLimitDevRuntimePendingLaunchCount, 'GPU device runtime pending launch count\n' - ){{endif}} - {{if 'cudaLimitMaxL2FetchGranularity' in found_values}} + ) + cudaLimitMaxL2FetchGranularity = ( cyruntime.cudaLimit.cudaLimitMaxL2FetchGranularity, 'A value between 0 and 128 that indicates the maximum fetch granularity of\n' 'L2 (in Bytes). This is a hint\n' - ){{endif}} - {{if 'cudaLimitPersistingL2CacheSize' in found_values}} + ) + cudaLimitPersistingL2CacheSize = ( cyruntime.cudaLimit.cudaLimitPersistingL2CacheSize, 'A size in bytes for L2 persisting lines cache size\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemoryAdvise' in found_types}} + ) class cudaMemoryAdvise(_FastEnum): """ CUDA Memory Advise values """ - {{if 'cudaMemAdviseSetReadMostly' in found_values}} + cudaMemAdviseSetReadMostly = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseSetReadMostly, 'Data will mostly be read and only occassionally be written to\n' - ){{endif}} - {{if 'cudaMemAdviseUnsetReadMostly' in found_values}} + ) + cudaMemAdviseUnsetReadMostly = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetReadMostly, 'Undo the effect of :py:obj:`~.cudaMemAdviseSetReadMostly`\n' - ){{endif}} - {{if 'cudaMemAdviseSetPreferredLocation' in found_values}} + ) + cudaMemAdviseSetPreferredLocation = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseSetPreferredLocation, 'Set the preferred location for the data as the specified device\n' - ){{endif}} - {{if 'cudaMemAdviseUnsetPreferredLocation' in found_values}} + ) + cudaMemAdviseUnsetPreferredLocation = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetPreferredLocation, 'Clear the preferred location for the data\n' - ){{endif}} - {{if 'cudaMemAdviseSetAccessedBy' in found_values}} + ) + cudaMemAdviseSetAccessedBy = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseSetAccessedBy, 'Data will be accessed by the specified device, so prevent page faults as\n' 'much as possible\n' - ){{endif}} - {{if 'cudaMemAdviseUnsetAccessedBy' in found_values}} + ) + cudaMemAdviseUnsetAccessedBy = ( cyruntime.cudaMemoryAdvise.cudaMemAdviseUnsetAccessedBy, 'Let the Unified Memory subsystem decide on the page faulting policy for the\n' 'specified device\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemRangeAttribute' in found_types}} + ) class cudaMemRangeAttribute(_FastEnum): """ CUDA range attributes """ - {{if 'cudaMemRangeAttributeReadMostly' in found_values}} + cudaMemRangeAttributeReadMostly = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeReadMostly, 'Whether the range will mostly be read and only occassionally be written to\n' - ){{endif}} - {{if 'cudaMemRangeAttributePreferredLocation' in found_values}} + ) + cudaMemRangeAttributePreferredLocation = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocation, 'The preferred location of the range\n' - ){{endif}} - {{if 'cudaMemRangeAttributeAccessedBy' in found_values}} + ) + cudaMemRangeAttributeAccessedBy = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeAccessedBy, 'Memory range has :py:obj:`~.cudaMemAdviseSetAccessedBy` set for specified\n' 'device\n' - ){{endif}} - {{if 'cudaMemRangeAttributeLastPrefetchLocation' in found_values}} + ) + cudaMemRangeAttributeLastPrefetchLocation = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocation, 'The last location to which the range was prefetched\n' - ){{endif}} - {{if 'cudaMemRangeAttributePreferredLocationType' in found_values}} + ) + cudaMemRangeAttributePreferredLocationType = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationType, 'The preferred location type of the range\n' - ){{endif}} - {{if 'cudaMemRangeAttributePreferredLocationId' in found_values}} + ) + cudaMemRangeAttributePreferredLocationId = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributePreferredLocationId, 'The preferred location id of the range\n' - ){{endif}} - {{if 'cudaMemRangeAttributeLastPrefetchLocationType' in found_values}} + ) + cudaMemRangeAttributeLastPrefetchLocationType = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationType, 'The last location type to which the range was prefetched\n' - ){{endif}} - {{if 'cudaMemRangeAttributeLastPrefetchLocationId' in found_values}} + ) + cudaMemRangeAttributeLastPrefetchLocationId = ( cyruntime.cudaMemRangeAttribute.cudaMemRangeAttributeLastPrefetchLocationId, 'The last location id to which the range was prefetched\n' - ){{endif}} - -{{endif}} -{{if 'cudaFlushGPUDirectRDMAWritesOptions' in found_types}} + ) class cudaFlushGPUDirectRDMAWritesOptions(_FastEnum): """ CUDA GPUDirect RDMA flush writes APIs supported on the device """ - {{if 'cudaFlushGPUDirectRDMAWritesOptionHost' in found_values}} + cudaFlushGPUDirectRDMAWritesOptionHost = ( cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionHost, ':py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()` and its CUDA Driver API\n' 'counterpart are supported on the device.\n' - ){{endif}} - {{if 'cudaFlushGPUDirectRDMAWritesOptionMemOps' in found_values}} + ) + cudaFlushGPUDirectRDMAWritesOptionMemOps = ( cyruntime.cudaFlushGPUDirectRDMAWritesOptions.cudaFlushGPUDirectRDMAWritesOptionMemOps, 'The :py:obj:`~.CU_STREAM_WAIT_VALUE_FLUSH` flag and the\n' ':py:obj:`~.CU_STREAM_MEM_OP_FLUSH_REMOTE_WRITES` MemOp are supported on the\n' 'CUDA device.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGPUDirectRDMAWritesOrdering' in found_types}} + ) class cudaGPUDirectRDMAWritesOrdering(_FastEnum): """ CUDA GPUDirect RDMA flush writes ordering features of the device """ - {{if 'cudaGPUDirectRDMAWritesOrderingNone' in found_values}} + cudaGPUDirectRDMAWritesOrderingNone = ( cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingNone, 'The device does not natively support ordering of GPUDirect RDMA writes.\n' ':py:obj:`~.cudaFlushGPUDirectRDMAWrites()` can be leveraged if supported.\n' - ){{endif}} - {{if 'cudaGPUDirectRDMAWritesOrderingOwner' in found_values}} + ) + cudaGPUDirectRDMAWritesOrderingOwner = ( cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingOwner, 'Natively, the device can consistently consume GPUDirect RDMA writes,\n' 'although other CUDA devices may not.\n' - ){{endif}} - {{if 'cudaGPUDirectRDMAWritesOrderingAllDevices' in found_values}} + ) + cudaGPUDirectRDMAWritesOrderingAllDevices = ( cyruntime.cudaGPUDirectRDMAWritesOrdering.cudaGPUDirectRDMAWritesOrderingAllDevices, 'Any CUDA device in the system can consistently consume GPUDirect RDMA\n' 'writes to this device.\n' - ){{endif}} - -{{endif}} -{{if 'cudaFlushGPUDirectRDMAWritesScope' in found_types}} + ) class cudaFlushGPUDirectRDMAWritesScope(_FastEnum): """ CUDA GPUDirect RDMA flush writes scopes """ - {{if 'cudaFlushGPUDirectRDMAWritesToOwner' in found_values}} + cudaFlushGPUDirectRDMAWritesToOwner = ( cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToOwner, 'Blocks until remote writes are visible to the CUDA device context owning\n' 'the data.\n' - ){{endif}} - {{if 'cudaFlushGPUDirectRDMAWritesToAllDevices' in found_values}} + ) + cudaFlushGPUDirectRDMAWritesToAllDevices = ( cyruntime.cudaFlushGPUDirectRDMAWritesScope.cudaFlushGPUDirectRDMAWritesToAllDevices, 'Blocks until remote writes are visible to all CUDA device contexts.\n' - ){{endif}} - -{{endif}} -{{if 'cudaFlushGPUDirectRDMAWritesTarget' in found_types}} + ) class cudaFlushGPUDirectRDMAWritesTarget(_FastEnum): """ CUDA GPUDirect RDMA flush writes targets """ - {{if 'cudaFlushGPUDirectRDMAWritesTargetCurrentDevice' in found_values}} + cudaFlushGPUDirectRDMAWritesTargetCurrentDevice = ( cyruntime.cudaFlushGPUDirectRDMAWritesTarget.cudaFlushGPUDirectRDMAWritesTargetCurrentDevice, 'Sets the target for :py:obj:`~.cudaDeviceFlushGPUDirectRDMAWrites()` to the\n' 'currently active CUDA device context.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDeviceAttr' in found_types}} + ) class cudaDeviceAttr(_FastEnum): """ CUDA device attributes """ - {{if 'cudaDevAttrMaxThreadsPerBlock' in found_values}} + cudaDevAttrMaxThreadsPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxThreadsPerBlock, 'Maximum number of threads per block\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlockDimX' in found_values}} + ) + cudaDevAttrMaxBlockDimX = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimX, 'Maximum block dimension X\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlockDimY' in found_values}} + ) + cudaDevAttrMaxBlockDimY = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimY, 'Maximum block dimension Y\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlockDimZ' in found_values}} + ) + cudaDevAttrMaxBlockDimZ = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlockDimZ, 'Maximum block dimension Z\n' - ){{endif}} - {{if 'cudaDevAttrMaxGridDimX' in found_values}} + ) + cudaDevAttrMaxGridDimX = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimX, 'Maximum grid dimension X\n' - ){{endif}} - {{if 'cudaDevAttrMaxGridDimY' in found_values}} + ) + cudaDevAttrMaxGridDimY = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimY, 'Maximum grid dimension Y\n' - ){{endif}} - {{if 'cudaDevAttrMaxGridDimZ' in found_values}} + ) + cudaDevAttrMaxGridDimZ = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxGridDimZ, 'Maximum grid dimension Z\n' - ){{endif}} - {{if 'cudaDevAttrMaxSharedMemoryPerBlock' in found_values}} + ) + cudaDevAttrMaxSharedMemoryPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlock, 'Maximum shared memory available per block in bytes\n' - ){{endif}} - {{if 'cudaDevAttrTotalConstantMemory' in found_values}} + ) + cudaDevAttrTotalConstantMemory = ( cyruntime.cudaDeviceAttr.cudaDevAttrTotalConstantMemory, 'Memory available on device for constant variables in a CUDA C kernel in\n' 'bytes\n' - ){{endif}} - {{if 'cudaDevAttrWarpSize' in found_values}} + ) + cudaDevAttrWarpSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrWarpSize, 'Warp size in threads\n' - ){{endif}} - {{if 'cudaDevAttrMaxPitch' in found_values}} + ) + cudaDevAttrMaxPitch = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxPitch, 'Maximum pitch in bytes allowed by memory copies\n' - ){{endif}} - {{if 'cudaDevAttrMaxRegistersPerBlock' in found_values}} + ) + cudaDevAttrMaxRegistersPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxRegistersPerBlock, 'Maximum number of 32-bit registers available per block\n' - ){{endif}} - {{if 'cudaDevAttrClockRate' in found_values}} + ) + cudaDevAttrClockRate = ( cyruntime.cudaDeviceAttr.cudaDevAttrClockRate, 'Peak clock frequency in kilohertz\n' - ){{endif}} - {{if 'cudaDevAttrTextureAlignment' in found_values}} + ) + cudaDevAttrTextureAlignment = ( cyruntime.cudaDeviceAttr.cudaDevAttrTextureAlignment, 'Alignment requirement for textures\n' - ){{endif}} - {{if 'cudaDevAttrGpuOverlap' in found_values}} + ) + cudaDevAttrGpuOverlap = ( cyruntime.cudaDeviceAttr.cudaDevAttrGpuOverlap, 'Device can possibly copy memory and execute a kernel concurrently\n' - ){{endif}} - {{if 'cudaDevAttrMultiProcessorCount' in found_values}} + ) + cudaDevAttrMultiProcessorCount = ( cyruntime.cudaDeviceAttr.cudaDevAttrMultiProcessorCount, 'Number of multiprocessors on device\n' - ){{endif}} - {{if 'cudaDevAttrKernelExecTimeout' in found_values}} + ) + cudaDevAttrKernelExecTimeout = ( cyruntime.cudaDeviceAttr.cudaDevAttrKernelExecTimeout, 'Specifies whether there is a run time limit on kernels\n' - ){{endif}} - {{if 'cudaDevAttrIntegrated' in found_values}} + ) + cudaDevAttrIntegrated = ( cyruntime.cudaDeviceAttr.cudaDevAttrIntegrated, 'Device is integrated with host memory\n' - ){{endif}} - {{if 'cudaDevAttrCanMapHostMemory' in found_values}} + ) + cudaDevAttrCanMapHostMemory = ( cyruntime.cudaDeviceAttr.cudaDevAttrCanMapHostMemory, 'Device can map host memory into CUDA address space\n' - ){{endif}} - {{if 'cudaDevAttrComputeMode' in found_values}} + ) + cudaDevAttrComputeMode = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputeMode, 'Compute mode (See :py:obj:`~.cudaComputeMode` for details)\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DWidth, 'Maximum 1D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DWidth, 'Maximum 2D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DHeight, 'Maximum 2D texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DWidth' in found_values}} + ) + cudaDevAttrMaxTexture3DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidth, 'Maximum 3D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DHeight' in found_values}} + ) + cudaDevAttrMaxTexture3DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeight, 'Maximum 3D texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DDepth' in found_values}} + ) + cudaDevAttrMaxTexture3DDepth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepth, 'Maximum 3D texture depth\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredWidth, 'Maximum 2D layered texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLayeredHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DLayeredHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredHeight, 'Maximum 2D layered texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxTexture2DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLayeredLayers, 'Maximum layers in a 2D layered texture\n' - ){{endif}} - {{if 'cudaDevAttrSurfaceAlignment' in found_values}} + ) + cudaDevAttrSurfaceAlignment = ( cyruntime.cudaDeviceAttr.cudaDevAttrSurfaceAlignment, 'Alignment requirement for surfaces\n' - ){{endif}} - {{if 'cudaDevAttrConcurrentKernels' in found_values}} + ) + cudaDevAttrConcurrentKernels = ( cyruntime.cudaDeviceAttr.cudaDevAttrConcurrentKernels, 'Device can possibly execute multiple kernels concurrently\n' - ){{endif}} - {{if 'cudaDevAttrEccEnabled' in found_values}} + ) + cudaDevAttrEccEnabled = ( cyruntime.cudaDeviceAttr.cudaDevAttrEccEnabled, 'Device has ECC support enabled\n' - ){{endif}} - {{if 'cudaDevAttrPciBusId' in found_values}} + ) + cudaDevAttrPciBusId = ( cyruntime.cudaDeviceAttr.cudaDevAttrPciBusId, 'PCI bus ID of the device\n' - ){{endif}} - {{if 'cudaDevAttrPciDeviceId' in found_values}} + ) + cudaDevAttrPciDeviceId = ( cyruntime.cudaDeviceAttr.cudaDevAttrPciDeviceId, 'PCI device ID of the device\n' - ){{endif}} - {{if 'cudaDevAttrTccDriver' in found_values}} + ) + cudaDevAttrTccDriver = ( cyruntime.cudaDeviceAttr.cudaDevAttrTccDriver, 'Device is using TCC driver model\n' - ){{endif}} - {{if 'cudaDevAttrMemoryClockRate' in found_values}} + ) + cudaDevAttrMemoryClockRate = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemoryClockRate, 'Peak memory clock frequency in kilohertz\n' - ){{endif}} - {{if 'cudaDevAttrGlobalMemoryBusWidth' in found_values}} + ) + cudaDevAttrGlobalMemoryBusWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrGlobalMemoryBusWidth, 'Global memory bus width in bits\n' - ){{endif}} - {{if 'cudaDevAttrL2CacheSize' in found_values}} + ) + cudaDevAttrL2CacheSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrL2CacheSize, 'Size of L2 cache in bytes\n' - ){{endif}} - {{if 'cudaDevAttrMaxThreadsPerMultiProcessor' in found_values}} + ) + cudaDevAttrMaxThreadsPerMultiProcessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxThreadsPerMultiProcessor, 'Maximum resident threads per multiprocessor\n' - ){{endif}} - {{if 'cudaDevAttrAsyncEngineCount' in found_values}} + ) + cudaDevAttrAsyncEngineCount = ( cyruntime.cudaDeviceAttr.cudaDevAttrAsyncEngineCount, 'Number of asynchronous engines\n' - ){{endif}} - {{if 'cudaDevAttrUnifiedAddressing' in found_values}} + ) + cudaDevAttrUnifiedAddressing = ( cyruntime.cudaDeviceAttr.cudaDevAttrUnifiedAddressing, 'Device shares a unified address space with the host\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredWidth, 'Maximum 1D layered texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxTexture1DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLayeredLayers, 'Maximum layers in a 1D layered texture\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DGatherWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DGatherWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherWidth, 'Maximum 2D texture width if cudaArrayTextureGather is set\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DGatherHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DGatherHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DGatherHeight, 'Maximum 2D texture height if cudaArrayTextureGather is set\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DWidthAlt' in found_values}} + ) + cudaDevAttrMaxTexture3DWidthAlt = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DWidthAlt, 'Alternate maximum 3D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DHeightAlt' in found_values}} + ) + cudaDevAttrMaxTexture3DHeightAlt = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DHeightAlt, 'Alternate maximum 3D texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture3DDepthAlt' in found_values}} + ) + cudaDevAttrMaxTexture3DDepthAlt = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture3DDepthAlt, 'Alternate maximum 3D texture depth\n' - ){{endif}} - {{if 'cudaDevAttrPciDomainId' in found_values}} + ) + cudaDevAttrPciDomainId = ( cyruntime.cudaDeviceAttr.cudaDevAttrPciDomainId, 'PCI domain ID of the device\n' - ){{endif}} - {{if 'cudaDevAttrTexturePitchAlignment' in found_values}} + ) + cudaDevAttrTexturePitchAlignment = ( cyruntime.cudaDeviceAttr.cudaDevAttrTexturePitchAlignment, 'Pitch alignment requirement for textures\n' - ){{endif}} - {{if 'cudaDevAttrMaxTextureCubemapWidth' in found_values}} + ) + cudaDevAttrMaxTextureCubemapWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapWidth, 'Maximum cubemap texture width/height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTextureCubemapLayeredWidth' in found_values}} + ) + cudaDevAttrMaxTextureCubemapLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredWidth, 'Maximum cubemap layered texture width/height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTextureCubemapLayeredLayers' in found_values}} + ) + cudaDevAttrMaxTextureCubemapLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTextureCubemapLayeredLayers, 'Maximum layers in a cubemap layered texture\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface1DWidth' in found_values}} + ) + cudaDevAttrMaxSurface1DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DWidth, 'Maximum 1D surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DWidth' in found_values}} + ) + cudaDevAttrMaxSurface2DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DWidth, 'Maximum 2D surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DHeight' in found_values}} + ) + cudaDevAttrMaxSurface2DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DHeight, 'Maximum 2D surface height\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface3DWidth' in found_values}} + ) + cudaDevAttrMaxSurface3DWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DWidth, 'Maximum 3D surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface3DHeight' in found_values}} + ) + cudaDevAttrMaxSurface3DHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DHeight, 'Maximum 3D surface height\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface3DDepth' in found_values}} + ) + cudaDevAttrMaxSurface3DDepth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface3DDepth, 'Maximum 3D surface depth\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface1DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxSurface1DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredWidth, 'Maximum 1D layered surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface1DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxSurface1DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface1DLayeredLayers, 'Maximum layers in a 1D layered surface\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DLayeredWidth' in found_values}} + ) + cudaDevAttrMaxSurface2DLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredWidth, 'Maximum 2D layered surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DLayeredHeight' in found_values}} + ) + cudaDevAttrMaxSurface2DLayeredHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredHeight, 'Maximum 2D layered surface height\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurface2DLayeredLayers' in found_values}} + ) + cudaDevAttrMaxSurface2DLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurface2DLayeredLayers, 'Maximum layers in a 2D layered surface\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurfaceCubemapWidth' in found_values}} + ) + cudaDevAttrMaxSurfaceCubemapWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapWidth, 'Maximum cubemap surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurfaceCubemapLayeredWidth' in found_values}} + ) + cudaDevAttrMaxSurfaceCubemapLayeredWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredWidth, 'Maximum cubemap layered surface width\n' - ){{endif}} - {{if 'cudaDevAttrMaxSurfaceCubemapLayeredLayers' in found_values}} + ) + cudaDevAttrMaxSurfaceCubemapLayeredLayers = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSurfaceCubemapLayeredLayers, 'Maximum layers in a cubemap layered surface\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DLinearWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DLinearWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DLinearWidth, 'Maximum 1D linear texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLinearWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DLinearWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearWidth, 'Maximum 2D linear texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLinearHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DLinearHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearHeight, 'Maximum 2D linear texture height\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DLinearPitch' in found_values}} + ) + cudaDevAttrMaxTexture2DLinearPitch = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DLinearPitch, 'Maximum 2D linear texture pitch in bytes\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DMipmappedWidth' in found_values}} + ) + cudaDevAttrMaxTexture2DMipmappedWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedWidth, 'Maximum mipmapped 2D texture width\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture2DMipmappedHeight' in found_values}} + ) + cudaDevAttrMaxTexture2DMipmappedHeight = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture2DMipmappedHeight, 'Maximum mipmapped 2D texture height\n' - ){{endif}} - {{if 'cudaDevAttrComputeCapabilityMajor' in found_values}} + ) + cudaDevAttrComputeCapabilityMajor = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputeCapabilityMajor, 'Major compute capability version number\n' - ){{endif}} - {{if 'cudaDevAttrComputeCapabilityMinor' in found_values}} + ) + cudaDevAttrComputeCapabilityMinor = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputeCapabilityMinor, 'Minor compute capability version number\n' - ){{endif}} - {{if 'cudaDevAttrMaxTexture1DMipmappedWidth' in found_values}} + ) + cudaDevAttrMaxTexture1DMipmappedWidth = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxTexture1DMipmappedWidth, 'Maximum mipmapped 1D texture width\n' - ){{endif}} - {{if 'cudaDevAttrStreamPrioritiesSupported' in found_values}} + ) + cudaDevAttrStreamPrioritiesSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrStreamPrioritiesSupported, 'Device supports stream priorities\n' - ){{endif}} - {{if 'cudaDevAttrGlobalL1CacheSupported' in found_values}} + ) + cudaDevAttrGlobalL1CacheSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrGlobalL1CacheSupported, 'Device supports caching globals in L1\n' - ){{endif}} - {{if 'cudaDevAttrLocalL1CacheSupported' in found_values}} + ) + cudaDevAttrLocalL1CacheSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrLocalL1CacheSupported, 'Device supports caching locals in L1\n' - ){{endif}} - {{if 'cudaDevAttrMaxSharedMemoryPerMultiprocessor' in found_values}} + ) + cudaDevAttrMaxSharedMemoryPerMultiprocessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerMultiprocessor, 'Maximum shared memory available per multiprocessor in bytes\n' - ){{endif}} - {{if 'cudaDevAttrMaxRegistersPerMultiprocessor' in found_values}} + ) + cudaDevAttrMaxRegistersPerMultiprocessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxRegistersPerMultiprocessor, 'Maximum number of 32-bit registers available per multiprocessor\n' - ){{endif}} - {{if 'cudaDevAttrManagedMemory' in found_values}} + ) + cudaDevAttrManagedMemory = ( cyruntime.cudaDeviceAttr.cudaDevAttrManagedMemory, 'Device can allocate managed memory on this system\n' - ){{endif}} - {{if 'cudaDevAttrIsMultiGpuBoard' in found_values}} + ) + cudaDevAttrIsMultiGpuBoard = ( cyruntime.cudaDeviceAttr.cudaDevAttrIsMultiGpuBoard, 'Device is on a multi-GPU board\n' - ){{endif}} - {{if 'cudaDevAttrMultiGpuBoardGroupID' in found_values}} + ) + cudaDevAttrMultiGpuBoardGroupID = ( cyruntime.cudaDeviceAttr.cudaDevAttrMultiGpuBoardGroupID, 'Unique identifier for a group of devices on the same multi-GPU board\n' - ){{endif}} - {{if 'cudaDevAttrHostNativeAtomicSupported' in found_values}} + ) + cudaDevAttrHostNativeAtomicSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNativeAtomicSupported, 'Link between the device and the host supports native atomic operations\n' - ){{endif}} - {{if 'cudaDevAttrSingleToDoublePrecisionPerfRatio' in found_values}} + ) + cudaDevAttrSingleToDoublePrecisionPerfRatio = ( cyruntime.cudaDeviceAttr.cudaDevAttrSingleToDoublePrecisionPerfRatio, 'Ratio of single precision performance (in floating-point operations per\n' 'second) to double precision performance\n' - ){{endif}} - {{if 'cudaDevAttrPageableMemoryAccess' in found_values}} + ) + cudaDevAttrPageableMemoryAccess = ( cyruntime.cudaDeviceAttr.cudaDevAttrPageableMemoryAccess, 'Device supports coherently accessing pageable memory without calling\n' 'cudaHostRegister on it\n' - ){{endif}} - {{if 'cudaDevAttrConcurrentManagedAccess' in found_values}} + ) + cudaDevAttrConcurrentManagedAccess = ( cyruntime.cudaDeviceAttr.cudaDevAttrConcurrentManagedAccess, 'Device can coherently access managed memory concurrently with the CPU\n' - ){{endif}} - {{if 'cudaDevAttrComputePreemptionSupported' in found_values}} + ) + cudaDevAttrComputePreemptionSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrComputePreemptionSupported, 'Device supports Compute Preemption\n' - ){{endif}} - {{if 'cudaDevAttrCanUseHostPointerForRegisteredMem' in found_values}} + ) + cudaDevAttrCanUseHostPointerForRegisteredMem = ( cyruntime.cudaDeviceAttr.cudaDevAttrCanUseHostPointerForRegisteredMem, 'Device can access host registered memory at the same virtual address as the\n' 'CPU\n' - ){{endif}} - {{if 'cudaDevAttrReserved92' in found_values}} - cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92{{endif}} - {{if 'cudaDevAttrReserved93' in found_values}} - cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93{{endif}} - {{if 'cudaDevAttrReserved94' in found_values}} - cudaDevAttrReserved94 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved94{{endif}} - {{if 'cudaDevAttrCooperativeLaunch' in found_values}} + ) + + cudaDevAttrReserved92 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved92 + + cudaDevAttrReserved93 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved93 + + cudaDevAttrReserved94 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved94 + cudaDevAttrCooperativeLaunch = ( cyruntime.cudaDeviceAttr.cudaDevAttrCooperativeLaunch, 'Device supports launching cooperative kernels via\n' ':py:obj:`~.cudaLaunchCooperativeKernel`\n' - ){{endif}} - {{if 'cudaDevAttrReserved96' in found_values}} - cudaDevAttrReserved96 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved96{{endif}} - {{if 'cudaDevAttrMaxSharedMemoryPerBlockOptin' in found_values}} + ) + + cudaDevAttrReserved96 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved96 + cudaDevAttrMaxSharedMemoryPerBlockOptin = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxSharedMemoryPerBlockOptin, 'The maximum optin shared memory per block. This value may vary by chip. See\n' ':py:obj:`~.cudaFuncSetAttribute`\n' - ){{endif}} - {{if 'cudaDevAttrCanFlushRemoteWrites' in found_values}} + ) + cudaDevAttrCanFlushRemoteWrites = ( cyruntime.cudaDeviceAttr.cudaDevAttrCanFlushRemoteWrites, 'Device supports flushing of outstanding remote writes.\n' - ){{endif}} - {{if 'cudaDevAttrHostRegisterSupported' in found_values}} + ) + cudaDevAttrHostRegisterSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostRegisterSupported, 'Device supports host memory registration via :py:obj:`~.cudaHostRegister`.\n' - ){{endif}} - {{if 'cudaDevAttrPageableMemoryAccessUsesHostPageTables' in found_values}} + ) + cudaDevAttrPageableMemoryAccessUsesHostPageTables = ( cyruntime.cudaDeviceAttr.cudaDevAttrPageableMemoryAccessUsesHostPageTables, "Device accesses pageable memory via the host's page tables.\n" - ){{endif}} - {{if 'cudaDevAttrDirectManagedMemAccessFromHost' in found_values}} + ) + cudaDevAttrDirectManagedMemAccessFromHost = ( cyruntime.cudaDeviceAttr.cudaDevAttrDirectManagedMemAccessFromHost, 'Host can directly access managed memory on the device without migration.\n' - ){{endif}} - {{if 'cudaDevAttrMaxBlocksPerMultiprocessor' in found_values}} + ) + cudaDevAttrMaxBlocksPerMultiprocessor = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxBlocksPerMultiprocessor, 'Maximum number of blocks per multiprocessor\n' - ){{endif}} - {{if 'cudaDevAttrMaxPersistingL2CacheSize' in found_values}} + ) + cudaDevAttrMaxPersistingL2CacheSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxPersistingL2CacheSize, 'Maximum L2 persisting lines capacity setting in bytes.\n' - ){{endif}} - {{if 'cudaDevAttrMaxAccessPolicyWindowSize' in found_values}} + ) + cudaDevAttrMaxAccessPolicyWindowSize = ( cyruntime.cudaDeviceAttr.cudaDevAttrMaxAccessPolicyWindowSize, 'Maximum value of :py:obj:`~.cudaAccessPolicyWindow.num_bytes`.\n' - ){{endif}} - {{if 'cudaDevAttrReservedSharedMemoryPerBlock' in found_values}} + ) + cudaDevAttrReservedSharedMemoryPerBlock = ( cyruntime.cudaDeviceAttr.cudaDevAttrReservedSharedMemoryPerBlock, 'Shared memory reserved by CUDA driver per block in bytes\n' - ){{endif}} - {{if 'cudaDevAttrSparseCudaArraySupported' in found_values}} + ) + cudaDevAttrSparseCudaArraySupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrSparseCudaArraySupported, 'Device supports sparse CUDA arrays and sparse CUDA mipmapped arrays\n' - ){{endif}} - {{if 'cudaDevAttrHostRegisterReadOnlySupported' in found_values}} + ) + cudaDevAttrHostRegisterReadOnlySupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostRegisterReadOnlySupported, 'Device supports using the :py:obj:`~.cudaHostRegister` flag\n' 'cudaHostRegisterReadOnly to register memory that must be mapped as read-\n' 'only to the GPU\n' - ){{endif}} - {{if 'cudaDevAttrTimelineSemaphoreInteropSupported' in found_values}} + ) + cudaDevAttrTimelineSemaphoreInteropSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrTimelineSemaphoreInteropSupported, 'External timeline semaphore interop is supported on the device\n' - ){{endif}} - {{if 'cudaDevAttrMemoryPoolsSupported' in found_values}} + ) + cudaDevAttrMemoryPoolsSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemoryPoolsSupported, 'Device supports using the :py:obj:`~.cudaMallocAsync` and\n' ':py:obj:`~.cudaMemPool` family of APIs\n' - ){{endif}} - {{if 'cudaDevAttrGPUDirectRDMASupported' in found_values}} + ) + cudaDevAttrGPUDirectRDMASupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMASupported, 'Device supports GPUDirect RDMA APIs, like nvidia_p2p_get_pages (see\n' 'https://docs.nvidia.com/cuda/gpudirect-rdma for more information)\n' - ){{endif}} - {{if 'cudaDevAttrGPUDirectRDMAFlushWritesOptions' in found_values}} + ) + cudaDevAttrGPUDirectRDMAFlushWritesOptions = ( cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAFlushWritesOptions, 'The returned attribute shall be interpreted as a bitmask, where the\n' 'individual bits are listed in the\n' ':py:obj:`~.cudaFlushGPUDirectRDMAWritesOptions` enum\n' - ){{endif}} - {{if 'cudaDevAttrGPUDirectRDMAWritesOrdering' in found_values}} + ) + cudaDevAttrGPUDirectRDMAWritesOrdering = ( cyruntime.cudaDeviceAttr.cudaDevAttrGPUDirectRDMAWritesOrdering, @@ -4868,156 +4725,153 @@ class cudaDeviceAttr(_FastEnum): 'within the scope indicated by the returned attribute. See\n' ':py:obj:`~.cudaGPUDirectRDMAWritesOrdering` for the numerical values\n' 'returned here.\n' - ){{endif}} - {{if 'cudaDevAttrMemoryPoolSupportedHandleTypes' in found_values}} + ) + cudaDevAttrMemoryPoolSupportedHandleTypes = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemoryPoolSupportedHandleTypes, 'Handle types supported with mempool based IPC\n' - ){{endif}} - {{if 'cudaDevAttrClusterLaunch' in found_values}} + ) + cudaDevAttrClusterLaunch = ( cyruntime.cudaDeviceAttr.cudaDevAttrClusterLaunch, 'Indicates device supports cluster launch\n' - ){{endif}} - {{if 'cudaDevAttrDeferredMappingCudaArraySupported' in found_values}} + ) + cudaDevAttrDeferredMappingCudaArraySupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrDeferredMappingCudaArraySupported, 'Device supports deferred mapping CUDA arrays and CUDA mipmapped arrays\n' - ){{endif}} - {{if 'cudaDevAttrReserved122' in found_values}} - cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122{{endif}} - {{if 'cudaDevAttrReserved123' in found_values}} - cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123{{endif}} - {{if 'cudaDevAttrReserved124' in found_values}} - cudaDevAttrReserved124 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved124{{endif}} - {{if 'cudaDevAttrIpcEventSupport' in found_values}} + ) + + cudaDevAttrReserved122 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved122 + + cudaDevAttrReserved123 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved123 + + cudaDevAttrReserved124 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved124 + cudaDevAttrIpcEventSupport = ( cyruntime.cudaDeviceAttr.cudaDevAttrIpcEventSupport, 'Device supports IPC Events.\n' - ){{endif}} - {{if 'cudaDevAttrMemSyncDomainCount' in found_values}} + ) + cudaDevAttrMemSyncDomainCount = ( cyruntime.cudaDeviceAttr.cudaDevAttrMemSyncDomainCount, 'Number of memory synchronization domains the device supports.\n' - ){{endif}} - {{if 'cudaDevAttrReserved127' in found_values}} - cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127{{endif}} - {{if 'cudaDevAttrReserved128' in found_values}} - cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128{{endif}} - {{if 'cudaDevAttrReserved129' in found_values}} - cudaDevAttrReserved129 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved129{{endif}} - {{if 'cudaDevAttrNumaConfig' in found_values}} + ) + + cudaDevAttrReserved127 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved127 + + cudaDevAttrReserved128 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved128 + + cudaDevAttrReserved129 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved129 + cudaDevAttrNumaConfig = ( cyruntime.cudaDeviceAttr.cudaDevAttrNumaConfig, 'NUMA configuration of a device: value is of type\n' ':py:obj:`~.cudaDeviceNumaConfig` enum\n' - ){{endif}} - {{if 'cudaDevAttrNumaId' in found_values}} + ) + cudaDevAttrNumaId = ( cyruntime.cudaDeviceAttr.cudaDevAttrNumaId, 'NUMA node ID of the GPU memory\n' - ){{endif}} - {{if 'cudaDevAttrReserved132' in found_values}} - cudaDevAttrReserved132 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved132{{endif}} - {{if 'cudaDevAttrMpsEnabled' in found_values}} + ) + + cudaDevAttrReserved132 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved132 + cudaDevAttrMpsEnabled = ( cyruntime.cudaDeviceAttr.cudaDevAttrMpsEnabled, 'Contexts created on this device will be shared via MPS\n' - ){{endif}} - {{if 'cudaDevAttrHostNumaId' in found_values}} + ) + cudaDevAttrHostNumaId = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaId, 'NUMA ID of the host node closest to the device or -1 when system does not\n' 'support NUMA\n' - ){{endif}} - {{if 'cudaDevAttrD3D12CigSupported' in found_values}} + ) + cudaDevAttrD3D12CigSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrD3D12CigSupported, 'Device supports CIG with D3D12.\n' - ){{endif}} - {{if 'cudaDevAttrVulkanCigSupported' in found_values}} + ) + cudaDevAttrVulkanCigSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrVulkanCigSupported, 'Device supports CIG with Vulkan.\n' - ){{endif}} - {{if 'cudaDevAttrGpuPciDeviceId' in found_values}} + ) + cudaDevAttrGpuPciDeviceId = ( cyruntime.cudaDeviceAttr.cudaDevAttrGpuPciDeviceId, 'The combined 16-bit PCI device ID and 16-bit PCI vendor ID.\n' - ){{endif}} - {{if 'cudaDevAttrGpuPciSubsystemId' in found_values}} + ) + cudaDevAttrGpuPciSubsystemId = ( cyruntime.cudaDeviceAttr.cudaDevAttrGpuPciSubsystemId, 'The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID.\n' - ){{endif}} - {{if 'cudaDevAttrReserved141' in found_values}} - cudaDevAttrReserved141 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved141{{endif}} - {{if 'cudaDevAttrHostNumaMemoryPoolsSupported' in found_values}} + ) + + cudaDevAttrReserved141 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved141 + cudaDevAttrHostNumaMemoryPoolsSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaMemoryPoolsSupported, 'Device supports HOST_NUMA location with the :py:obj:`~.cudaMallocAsync` and\n' ':py:obj:`~.cudaMemPool` family of APIs\n' - ){{endif}} - {{if 'cudaDevAttrHostNumaMultinodeIpcSupported' in found_values}} + ) + cudaDevAttrHostNumaMultinodeIpcSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostNumaMultinodeIpcSupported, 'Device supports HostNuma location IPC between nodes in a multi-node system.\n' - ){{endif}} - {{if 'cudaDevAttrHostMemoryPoolsSupported' in found_values}} + ) + cudaDevAttrHostMemoryPoolsSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrHostMemoryPoolsSupported, 'Device suports HOST location with the :py:obj:`~.cuMemAllocAsync` and\n' ':py:obj:`~.cuMemPool` family of APIs\n' - ){{endif}} - {{if 'cudaDevAttrReserved145' in found_values}} - cudaDevAttrReserved145 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved145{{endif}} - {{if 'cudaDevAttrOnlyPartialHostNativeAtomicSupported' in found_values}} + ) + + cudaDevAttrReserved145 = cyruntime.cudaDeviceAttr.cudaDevAttrReserved145 + cudaDevAttrOnlyPartialHostNativeAtomicSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrOnlyPartialHostNativeAtomicSupported, 'Link between the device and the host supports only some native atomic\n' 'operations\n' - ){{endif}} - {{if 'cudaDevAttrAtomicReductionSupported' in found_values}} + ) + cudaDevAttrAtomicReductionSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrAtomicReductionSupported, 'Device supports atomic reduction operations in stream batch memory\n' 'operations\n' - ){{endif}} - {{if 'cudaDevAttrCigStreamsSupported' in found_values}} + ) + cudaDevAttrCigStreamsSupported = ( cyruntime.cudaDeviceAttr.cudaDevAttrCigStreamsSupported, 'Device supports CIG streams\n' - ){{endif}} - {{if 'cudaDevAttrMax' in found_values}} - cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax{{endif}} + ) -{{endif}} -{{if 'cudaMemPoolAttr' in found_types}} + cudaDevAttrMax = cyruntime.cudaDeviceAttr.cudaDevAttrMax class cudaMemPoolAttr(_FastEnum): """ CUDA memory pool attributes """ - {{if 'cudaMemPoolReuseFollowEventDependencies' in found_values}} + cudaMemPoolReuseFollowEventDependencies = ( cyruntime.cudaMemPoolAttr.cudaMemPoolReuseFollowEventDependencies, @@ -5026,23 +4880,23 @@ class cudaMemPoolAttr(_FastEnum): 'allocating stream on the free action exists. Cuda events and null stream\n' 'interactions can create the required stream ordered dependencies. (default\n' 'enabled)\n' - ){{endif}} - {{if 'cudaMemPoolReuseAllowOpportunistic' in found_values}} + ) + cudaMemPoolReuseAllowOpportunistic = ( cyruntime.cudaMemPoolAttr.cudaMemPoolReuseAllowOpportunistic, '(value type = int) Allow reuse of already completed frees when there is no\n' 'dependency between the free and allocation. (default enabled)\n' - ){{endif}} - {{if 'cudaMemPoolReuseAllowInternalDependencies' in found_values}} + ) + cudaMemPoolReuseAllowInternalDependencies = ( cyruntime.cudaMemPoolAttr.cudaMemPoolReuseAllowInternalDependencies, '(value type = int) Allow cuMemAllocAsync to insert new stream dependencies\n' 'in order to establish the stream ordering required to reuse a piece of\n' 'memory released by cuFreeAsync (default enabled).\n' - ){{endif}} - {{if 'cudaMemPoolAttrReleaseThreshold' in found_values}} + ) + cudaMemPoolAttrReleaseThreshold = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReleaseThreshold, @@ -5051,61 +4905,61 @@ class cudaMemPoolAttr(_FastEnum): 'threshold bytes of memory are held by the memory pool, the allocator will\n' 'try to release memory back to the OS on the next call to stream, event or\n' 'context synchronize. (default 0)\n' - ){{endif}} - {{if 'cudaMemPoolAttrReservedMemCurrent' in found_values}} + ) + cudaMemPoolAttrReservedMemCurrent = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReservedMemCurrent, '(value type = cuuint64_t) Amount of backing memory currently allocated for\n' 'the mempool.\n' - ){{endif}} - {{if 'cudaMemPoolAttrReservedMemHigh' in found_values}} + ) + cudaMemPoolAttrReservedMemHigh = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrReservedMemHigh, '(value type = cuuint64_t) High watermark of backing memory allocated for\n' 'the mempool since the last time it was reset. High watermark can only be\n' 'reset to zero.\n' - ){{endif}} - {{if 'cudaMemPoolAttrUsedMemCurrent' in found_values}} + ) + cudaMemPoolAttrUsedMemCurrent = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemCurrent, '(value type = cuuint64_t) Amount of memory from the pool that is currently\n' 'in use by the application.\n' - ){{endif}} - {{if 'cudaMemPoolAttrUsedMemHigh' in found_values}} + ) + cudaMemPoolAttrUsedMemHigh = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrUsedMemHigh, '(value type = cuuint64_t) High watermark of the amount of memory from the\n' 'pool that was in use by the application since the last time it was reset.\n' 'High watermark can only be reset to zero.\n' - ){{endif}} - {{if 'cudaMemPoolAttrAllocationType' in found_values}} + ) + cudaMemPoolAttrAllocationType = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrAllocationType, '(value type = :py:obj:`~.cudaMemAllocationType`) The allocation type of the\n' 'mempool\n' - ){{endif}} - {{if 'cudaMemPoolAttrExportHandleTypes' in found_values}} + ) + cudaMemPoolAttrExportHandleTypes = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrExportHandleTypes, '(value type = :py:obj:`~.cudaMemAllocationHandleType`) Available export\n' 'handle types for the mempool. For imported pools this value is always\n' 'cudaMemHandleTypeNone as an imported pool cannot be re-exported\n' - ){{endif}} - {{if 'cudaMemPoolAttrLocationId' in found_values}} + ) + cudaMemPoolAttrLocationId = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrLocationId, '(value type = int) The location id for the mempool. If the location type\n' 'for this pool is cudaMemLocationTypeInvisible then ID will be\n' 'cudaInvalidDeviceId\n' - ){{endif}} - {{if 'cudaMemPoolAttrLocationType' in found_values}} + ) + cudaMemPoolAttrLocationType = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrLocationType, @@ -5113,8 +4967,8 @@ class cudaMemPoolAttr(_FastEnum): 'mempool. For imported memory pools where the device is not directly visible\n' 'to the importing process or pools imported via fabric handles across nodes\n' 'this will be cudaMemLocationTypeInvisible\n' - ){{endif}} - {{if 'cudaMemPoolAttrMaxPoolSize' in found_values}} + ) + cudaMemPoolAttrMaxPoolSize = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrMaxPoolSize, @@ -5123,230 +4977,209 @@ class cudaMemPoolAttr(_FastEnum): 'alignment requirements. A value of 0 indicates no maximum size. For\n' 'cudaMemAllocationTypeManaged and IPC imported pools this value will be\n' 'system dependent.\n' - ){{endif}} - {{if 'cudaMemPoolAttrHwDecompressEnabled' in found_values}} + ) + cudaMemPoolAttrHwDecompressEnabled = ( cyruntime.cudaMemPoolAttr.cudaMemPoolAttrHwDecompressEnabled, '(value type = int) Indicates whether the pool has hardware compresssion\n' 'enabled\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemLocationType' in found_types}} + ) class cudaMemLocationType(_FastEnum): """ Specifies the type of location """ - {{if 'cudaMemLocationTypeInvalid' in found_values}} - cudaMemLocationTypeInvalid = cyruntime.cudaMemLocationType.cudaMemLocationTypeInvalid{{endif}} - {{if 'cudaMemLocationTypeNone' in found_values}} + + cudaMemLocationTypeInvalid = cyruntime.cudaMemLocationType.cudaMemLocationTypeInvalid + cudaMemLocationTypeNone = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeNone, 'Location is unspecified. This is used when creating a managed memory pool\n' 'to indicate no preferred location for the pool\n' - ){{endif}} - {{if 'cudaMemLocationTypeDevice' in found_values}} + ) + cudaMemLocationTypeDevice = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeDevice, 'Location is a device location, thus id is a device ordinal\n' - ){{endif}} - {{if 'cudaMemLocationTypeHost' in found_values}} + ) + cudaMemLocationTypeHost = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeHost, 'Location is host, id is ignored\n' - ){{endif}} - {{if 'cudaMemLocationTypeHostNuma' in found_values}} + ) + cudaMemLocationTypeHostNuma = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNuma, 'Location is a host NUMA node, thus id is a host NUMA node id\n' - ){{endif}} - {{if 'cudaMemLocationTypeHostNumaCurrent' in found_values}} + ) + cudaMemLocationTypeHostNumaCurrent = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeHostNumaCurrent, "Location is the host NUMA node closest to the current thread's CPU, id is\n" 'ignored\n' - ){{endif}} - {{if 'cudaMemLocationTypeInvisible' in found_values}} + ) + cudaMemLocationTypeInvisible = ( cyruntime.cudaMemLocationType.cudaMemLocationTypeInvisible, 'Location is not visible but device is accessible, id is always\n' 'cudaInvalidDeviceId\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemAccessFlags' in found_types}} + ) class cudaMemAccessFlags(_FastEnum): """ Specifies the memory protection flags for mapping. """ - {{if 'cudaMemAccessFlagsProtNone' in found_values}} + cudaMemAccessFlagsProtNone = ( cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtNone, 'Default, make the address range not accessible\n' - ){{endif}} - {{if 'cudaMemAccessFlagsProtRead' in found_values}} + ) + cudaMemAccessFlagsProtRead = ( cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtRead, 'Make the address range read accessible\n' - ){{endif}} - {{if 'cudaMemAccessFlagsProtReadWrite' in found_values}} + ) + cudaMemAccessFlagsProtReadWrite = ( cyruntime.cudaMemAccessFlags.cudaMemAccessFlagsProtReadWrite, 'Make the address range read-write accessible\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemAllocationType' in found_types}} + ) class cudaMemAllocationType(_FastEnum): """ Defines the allocation types available """ - {{if 'cudaMemAllocationTypeInvalid' in found_values}} - cudaMemAllocationTypeInvalid = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeInvalid{{endif}} - {{if 'cudaMemAllocationTypePinned' in found_values}} + + cudaMemAllocationTypeInvalid = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeInvalid + cudaMemAllocationTypePinned = ( cyruntime.cudaMemAllocationType.cudaMemAllocationTypePinned, "This allocation type is 'pinned', i.e. cannot migrate from its current\n" 'location while the application is actively using it\n' - ){{endif}} - {{if 'cudaMemAllocationTypeManaged' in found_values}} + ) + cudaMemAllocationTypeManaged = ( cyruntime.cudaMemAllocationType.cudaMemAllocationTypeManaged, 'This allocation type is managed memory\n' - ){{endif}} - {{if 'cudaMemAllocationTypeMax' in found_values}} - cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax{{endif}} + ) -{{endif}} -{{if 'cudaMemAllocationHandleType' in found_types}} + cudaMemAllocationTypeMax = cyruntime.cudaMemAllocationType.cudaMemAllocationTypeMax class cudaMemAllocationHandleType(_FastEnum): """ Flags for specifying particular handle types """ - {{if 'cudaMemHandleTypeNone' in found_values}} + cudaMemHandleTypeNone = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeNone, 'Does not allow any export mechanism. >\n' - ){{endif}} - {{if 'cudaMemHandleTypePosixFileDescriptor' in found_values}} + ) + cudaMemHandleTypePosixFileDescriptor = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypePosixFileDescriptor, 'Allows a file descriptor to be used for exporting. Permitted only on POSIX\n' 'systems. (int)\n' - ){{endif}} - {{if 'cudaMemHandleTypeWin32' in found_values}} + ) + cudaMemHandleTypeWin32 = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeWin32, 'Allows a Win32 NT handle to be used for exporting. (HANDLE)\n' - ){{endif}} - {{if 'cudaMemHandleTypeWin32Kmt' in found_values}} + ) + cudaMemHandleTypeWin32Kmt = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeWin32Kmt, 'Allows a Win32 KMT handle to be used for exporting. (D3DKMT_HANDLE)\n' - ){{endif}} - {{if 'cudaMemHandleTypeFabric' in found_values}} + ) + cudaMemHandleTypeFabric = ( cyruntime.cudaMemAllocationHandleType.cudaMemHandleTypeFabric, 'Allows a fabric handle to be used for exporting.\n' '(:py:obj:`~.cudaMemFabricHandle_t`)\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphMemAttributeType' in found_types}} + ) class cudaGraphMemAttributeType(_FastEnum): """ Graph memory attributes """ - {{if 'cudaGraphMemAttrUsedMemCurrent' in found_values}} + cudaGraphMemAttrUsedMemCurrent = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemCurrent, '(value type = cuuint64_t) Amount of memory, in bytes, currently associated\n' 'with graphs.\n' - ){{endif}} - {{if 'cudaGraphMemAttrUsedMemHigh' in found_values}} + ) + cudaGraphMemAttrUsedMemHigh = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrUsedMemHigh, '(value type = cuuint64_t) High watermark of memory, in bytes, associated\n' 'with graphs since the last time it was reset. High watermark can only be\n' 'reset to zero.\n' - ){{endif}} - {{if 'cudaGraphMemAttrReservedMemCurrent' in found_values}} + ) + cudaGraphMemAttrReservedMemCurrent = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemCurrent, '(value type = cuuint64_t) Amount of memory, in bytes, currently allocated\n' 'for use by the CUDA graphs asynchronous allocator.\n' - ){{endif}} - {{if 'cudaGraphMemAttrReservedMemHigh' in found_values}} + ) + cudaGraphMemAttrReservedMemHigh = ( cyruntime.cudaGraphMemAttributeType.cudaGraphMemAttrReservedMemHigh, '(value type = cuuint64_t) High watermark of memory, in bytes, currently\n' 'allocated for use by the CUDA graphs asynchronous allocator.\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemcpyFlags' in found_types}} + ) class cudaMemcpyFlags(_FastEnum): """ Flags to specify for copies within a batch. For more details see :py:obj:`~.cudaMemcpyBatchAsync`. """ - {{if 'cudaMemcpyFlagDefault' in found_values}} - cudaMemcpyFlagDefault = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagDefault{{endif}} - {{if 'cudaMemcpyFlagPreferOverlapWithCompute' in found_values}} + + cudaMemcpyFlagDefault = cyruntime.cudaMemcpyFlags.cudaMemcpyFlagDefault + cudaMemcpyFlagPreferOverlapWithCompute = ( cyruntime.cudaMemcpyFlags.cudaMemcpyFlagPreferOverlapWithCompute, 'Hint to the driver to try and overlap the copy with compute work on the\n' 'SMs.\n' - ){{endif}} - -{{endif}} -{{if 'cudaMemcpySrcAccessOrder' in found_types}} + ) class cudaMemcpySrcAccessOrder(_FastEnum): """ """ - {{if 'cudaMemcpySrcAccessOrderInvalid' in found_values}} + cudaMemcpySrcAccessOrderInvalid = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderInvalid, 'Default invalid.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderStream' in found_values}} + ) + cudaMemcpySrcAccessOrderStream = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderStream, 'Indicates that access to the source pointer must be in stream order.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderDuringApiCall' in found_values}} + ) + cudaMemcpySrcAccessOrderDuringApiCall = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderDuringApiCall, @@ -5358,8 +5191,8 @@ class cudaMemcpySrcAccessOrder(_FastEnum): 'was declared in. Specifying this flag allows the driver to optimize the\n' 'copy and removes the need for the user to synchronize the stream after the\n' 'API call.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderAny' in found_values}} + ) + cudaMemcpySrcAccessOrderAny = ( cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderAny, @@ -5369,345 +5202,312 @@ class cudaMemcpySrcAccessOrder(_FastEnum): 'known that no prior operations in the stream can be accessing the memory.\n' 'Specifying this flag allows the driver to optimize the copy on certain\n' 'platforms.\n' - ){{endif}} - {{if 'cudaMemcpySrcAccessOrderMax' in found_values}} - cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax{{endif}} + ) -{{endif}} -{{if 'cudaMemcpy3DOperandType' in found_types}} + cudaMemcpySrcAccessOrderMax = cyruntime.cudaMemcpySrcAccessOrder.cudaMemcpySrcAccessOrderMax class cudaMemcpy3DOperandType(_FastEnum): """ These flags allow applications to convey the operand type for individual copies specified in :py:obj:`~.cudaMemcpy3DBatchAsync`. """ - {{if 'cudaMemcpyOperandTypePointer' in found_values}} + cudaMemcpyOperandTypePointer = ( cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypePointer, 'Memcpy operand is a valid pointer.\n' - ){{endif}} - {{if 'cudaMemcpyOperandTypeArray' in found_values}} + ) + cudaMemcpyOperandTypeArray = ( cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeArray, 'Memcpy operand is a CUarray.\n' - ){{endif}} - {{if 'cudaMemcpyOperandTypeMax' in found_values}} - cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax{{endif}} + ) -{{endif}} -{{if 'cudaDeviceP2PAttr' in found_types}} + cudaMemcpyOperandTypeMax = cyruntime.cudaMemcpy3DOperandType.cudaMemcpyOperandTypeMax class cudaDeviceP2PAttr(_FastEnum): """ CUDA device P2P attributes """ - {{if 'cudaDevP2PAttrPerformanceRank' in found_values}} + cudaDevP2PAttrPerformanceRank = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrPerformanceRank, 'A relative value indicating the performance of the link between two devices\n' - ){{endif}} - {{if 'cudaDevP2PAttrAccessSupported' in found_values}} + ) + cudaDevP2PAttrAccessSupported = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrAccessSupported, 'Peer access is enabled\n' - ){{endif}} - {{if 'cudaDevP2PAttrNativeAtomicSupported' in found_values}} + ) + cudaDevP2PAttrNativeAtomicSupported = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrNativeAtomicSupported, 'Native atomic operation over the link supported\n' - ){{endif}} - {{if 'cudaDevP2PAttrCudaArrayAccessSupported' in found_values}} + ) + cudaDevP2PAttrCudaArrayAccessSupported = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrCudaArrayAccessSupported, 'Accessing CUDA arrays over the link supported\n' - ){{endif}} - {{if 'cudaDevP2PAttrOnlyPartialNativeAtomicSupported' in found_values}} + ) + cudaDevP2PAttrOnlyPartialNativeAtomicSupported = ( cyruntime.cudaDeviceP2PAttr.cudaDevP2PAttrOnlyPartialNativeAtomicSupported, 'Only some CUDA-valid atomic operations over the link are supported.\n' - ){{endif}} - -{{endif}} -{{if 'cudaAtomicOperation' in found_types}} + ) class cudaAtomicOperation(_FastEnum): """ CUDA-valid Atomic Operations """ - {{if 'cudaAtomicOperationIntegerAdd' in found_values}} - cudaAtomicOperationIntegerAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerAdd{{endif}} - {{if 'cudaAtomicOperationIntegerMin' in found_values}} - cudaAtomicOperationIntegerMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMin{{endif}} - {{if 'cudaAtomicOperationIntegerMax' in found_values}} - cudaAtomicOperationIntegerMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMax{{endif}} - {{if 'cudaAtomicOperationIntegerIncrement' in found_values}} - cudaAtomicOperationIntegerIncrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerIncrement{{endif}} - {{if 'cudaAtomicOperationIntegerDecrement' in found_values}} - cudaAtomicOperationIntegerDecrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerDecrement{{endif}} - {{if 'cudaAtomicOperationAnd' in found_values}} - cudaAtomicOperationAnd = cyruntime.cudaAtomicOperation.cudaAtomicOperationAnd{{endif}} - {{if 'cudaAtomicOperationOr' in found_values}} - cudaAtomicOperationOr = cyruntime.cudaAtomicOperation.cudaAtomicOperationOr{{endif}} - {{if 'cudaAtomicOperationXOR' in found_values}} - cudaAtomicOperationXOR = cyruntime.cudaAtomicOperation.cudaAtomicOperationXOR{{endif}} - {{if 'cudaAtomicOperationExchange' in found_values}} - cudaAtomicOperationExchange = cyruntime.cudaAtomicOperation.cudaAtomicOperationExchange{{endif}} - {{if 'cudaAtomicOperationCAS' in found_values}} - cudaAtomicOperationCAS = cyruntime.cudaAtomicOperation.cudaAtomicOperationCAS{{endif}} - {{if 'cudaAtomicOperationFloatAdd' in found_values}} - cudaAtomicOperationFloatAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatAdd{{endif}} - {{if 'cudaAtomicOperationFloatMin' in found_values}} - cudaAtomicOperationFloatMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMin{{endif}} - {{if 'cudaAtomicOperationFloatMax' in found_values}} - cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax{{endif}} - -{{endif}} -{{if 'cudaAtomicOperationCapability' in found_types}} + + cudaAtomicOperationIntegerAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerAdd + + cudaAtomicOperationIntegerMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMin + + cudaAtomicOperationIntegerMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerMax + + cudaAtomicOperationIntegerIncrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerIncrement + + cudaAtomicOperationIntegerDecrement = cyruntime.cudaAtomicOperation.cudaAtomicOperationIntegerDecrement + + cudaAtomicOperationAnd = cyruntime.cudaAtomicOperation.cudaAtomicOperationAnd + + cudaAtomicOperationOr = cyruntime.cudaAtomicOperation.cudaAtomicOperationOr + + cudaAtomicOperationXOR = cyruntime.cudaAtomicOperation.cudaAtomicOperationXOR + + cudaAtomicOperationExchange = cyruntime.cudaAtomicOperation.cudaAtomicOperationExchange + + cudaAtomicOperationCAS = cyruntime.cudaAtomicOperation.cudaAtomicOperationCAS + + cudaAtomicOperationFloatAdd = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatAdd + + cudaAtomicOperationFloatMin = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMin + + cudaAtomicOperationFloatMax = cyruntime.cudaAtomicOperation.cudaAtomicOperationFloatMax class cudaAtomicOperationCapability(_FastEnum): """ CUDA-valid Atomic Operation capabilities """ - {{if 'cudaAtomicCapabilitySigned' in found_values}} - cudaAtomicCapabilitySigned = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilitySigned{{endif}} - {{if 'cudaAtomicCapabilityUnsigned' in found_values}} - cudaAtomicCapabilityUnsigned = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityUnsigned{{endif}} - {{if 'cudaAtomicCapabilityReduction' in found_values}} - cudaAtomicCapabilityReduction = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityReduction{{endif}} - {{if 'cudaAtomicCapabilityScalar32' in found_values}} - cudaAtomicCapabilityScalar32 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityScalar32{{endif}} - {{if 'cudaAtomicCapabilityScalar64' in found_values}} - cudaAtomicCapabilityScalar64 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityScalar64{{endif}} - {{if 'cudaAtomicCapabilityScalar128' in found_values}} - cudaAtomicCapabilityScalar128 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityScalar128{{endif}} - {{if 'cudaAtomicCapabilityVector32x4' in found_values}} - cudaAtomicCapabilityVector32x4 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityVector32x4{{endif}} - -{{endif}} -{{if 'cudaExternalMemoryHandleType' in found_types}} + + cudaAtomicCapabilitySigned = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilitySigned + + cudaAtomicCapabilityUnsigned = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityUnsigned + + cudaAtomicCapabilityReduction = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityReduction + + cudaAtomicCapabilityScalar32 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityScalar32 + + cudaAtomicCapabilityScalar64 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityScalar64 + + cudaAtomicCapabilityScalar128 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityScalar128 + + cudaAtomicCapabilityVector32x4 = cyruntime.cudaAtomicOperationCapability.cudaAtomicCapabilityVector32x4 class cudaExternalMemoryHandleType(_FastEnum): """ External memory handle types """ - {{if 'cudaExternalMemoryHandleTypeOpaqueFd' in found_values}} + cudaExternalMemoryHandleTypeOpaqueFd = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueFd, 'Handle is an opaque file descriptor\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeOpaqueWin32' in found_values}} + ) + cudaExternalMemoryHandleTypeOpaqueWin32 = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32, 'Handle is an opaque shared NT handle\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeOpaqueWin32Kmt' in found_values}} + ) + cudaExternalMemoryHandleTypeOpaqueWin32Kmt = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeOpaqueWin32Kmt, 'Handle is an opaque, globally shared handle\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D12Heap' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D12Heap = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Heap, 'Handle is a D3D12 heap object\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D12Resource' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D12Resource = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D12Resource, 'Handle is a D3D12 committed resource\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D11Resource' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D11Resource = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11Resource, 'Handle is a shared NT handle to a D3D11 resource\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeD3D11ResourceKmt' in found_values}} + ) + cudaExternalMemoryHandleTypeD3D11ResourceKmt = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeD3D11ResourceKmt, 'Handle is a globally shared handle to a D3D11 resource\n' - ){{endif}} - {{if 'cudaExternalMemoryHandleTypeNvSciBuf' in found_values}} + ) + cudaExternalMemoryHandleTypeNvSciBuf = ( cyruntime.cudaExternalMemoryHandleType.cudaExternalMemoryHandleTypeNvSciBuf, 'Handle is an NvSciBuf object\n' - ){{endif}} - -{{endif}} -{{if 'cudaExternalSemaphoreHandleType' in found_types}} + ) class cudaExternalSemaphoreHandleType(_FastEnum): """ External semaphore handle types """ - {{if 'cudaExternalSemaphoreHandleTypeOpaqueFd' in found_values}} + cudaExternalSemaphoreHandleTypeOpaqueFd = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueFd, 'Handle is an opaque file descriptor\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeOpaqueWin32' in found_values}} + ) + cudaExternalSemaphoreHandleTypeOpaqueWin32 = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32, 'Handle is an opaque shared NT handle\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt' in found_values}} + ) + cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeOpaqueWin32Kmt, 'Handle is an opaque, globally shared handle\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeD3D12Fence' in found_values}} + ) + cudaExternalSemaphoreHandleTypeD3D12Fence = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D12Fence, 'Handle is a shared NT handle referencing a D3D12 fence object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeD3D11Fence' in found_values}} + ) + cudaExternalSemaphoreHandleTypeD3D11Fence = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeD3D11Fence, 'Handle is a shared NT handle referencing a D3D11 fence object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeNvSciSync' in found_values}} + ) + cudaExternalSemaphoreHandleTypeNvSciSync = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeNvSciSync, 'Opaque handle to NvSciSync Object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeKeyedMutex' in found_values}} + ) + cudaExternalSemaphoreHandleTypeKeyedMutex = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutex, 'Handle is a shared NT handle referencing a D3D11 keyed mutex object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeKeyedMutexKmt' in found_values}} + ) + cudaExternalSemaphoreHandleTypeKeyedMutexKmt = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeKeyedMutexKmt, 'Handle is a shared KMT handle referencing a D3D11 keyed mutex object\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd' in found_values}} + ) + cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreFd, 'Handle is an opaque handle file descriptor referencing a timeline semaphore\n' - ){{endif}} - {{if 'cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32' in found_values}} + ) + cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32 = ( cyruntime.cudaExternalSemaphoreHandleType.cudaExternalSemaphoreHandleTypeTimelineSemaphoreWin32, 'Handle is an opaque handle file descriptor referencing a timeline semaphore\n' - ){{endif}} - -{{endif}} -{{if 'cudaDevSmResourceGroup_flags' in found_types}} + ) class cudaDevSmResourceGroup_flags(_FastEnum): """ Flags for a CUdevSmResource group """ - {{if 'cudaDevSmResourceGroupDefault' in found_values}} - cudaDevSmResourceGroupDefault = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupDefault{{endif}} - {{if 'cudaDevSmResourceGroupBackfill' in found_values}} + + cudaDevSmResourceGroupDefault = cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupDefault + cudaDevSmResourceGroupBackfill = ( cyruntime.cudaDevSmResourceGroup_flags.cudaDevSmResourceGroupBackfill, 'Lets smCount be a non-multiple of minCoscheduledCount, filling the\n' 'difference with other SMs.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDevSmResourceSplitByCount_flags' in found_types}} + ) class cudaDevSmResourceSplitByCount_flags(_FastEnum): """ """ - {{if 'cudaDevSmResourceSplitIgnoreSmCoscheduling' in found_values}} - cudaDevSmResourceSplitIgnoreSmCoscheduling = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitIgnoreSmCoscheduling{{endif}} - {{if 'cudaDevSmResourceSplitMaxPotentialClusterSize' in found_values}} - cudaDevSmResourceSplitMaxPotentialClusterSize = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitMaxPotentialClusterSize{{endif}} -{{endif}} -{{if 'cudaDevResourceType' in found_types}} + cudaDevSmResourceSplitIgnoreSmCoscheduling = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitIgnoreSmCoscheduling + + cudaDevSmResourceSplitMaxPotentialClusterSize = cyruntime.cudaDevSmResourceSplitByCount_flags.cudaDevSmResourceSplitMaxPotentialClusterSize class cudaDevResourceType(_FastEnum): """ Type of resource """ - {{if 'cudaDevResourceTypeInvalid' in found_values}} - cudaDevResourceTypeInvalid = cyruntime.cudaDevResourceType.cudaDevResourceTypeInvalid{{endif}} - {{if 'cudaDevResourceTypeSm' in found_values}} + + cudaDevResourceTypeInvalid = cyruntime.cudaDevResourceType.cudaDevResourceTypeInvalid + cudaDevResourceTypeSm = ( cyruntime.cudaDevResourceType.cudaDevResourceTypeSm, 'Streaming multiprocessors related information\n' - ){{endif}} - {{if 'cudaDevResourceTypeWorkqueueConfig' in found_values}} + ) + cudaDevResourceTypeWorkqueueConfig = ( cyruntime.cudaDevResourceType.cudaDevResourceTypeWorkqueueConfig, 'Workqueue configuration related information\n' - ){{endif}} - {{if 'cudaDevResourceTypeWorkqueue' in found_values}} + ) + cudaDevResourceTypeWorkqueue = ( cyruntime.cudaDevResourceType.cudaDevResourceTypeWorkqueue, 'Pre-existing workqueue related information\n' - ){{endif}} - -{{endif}} -{{if 'cudaDevWorkqueueConfigScope' in found_types}} + ) class cudaDevWorkqueueConfigScope(_FastEnum): """ Sharing scope for workqueues """ - {{if 'cudaDevWorkqueueConfigScopeDeviceCtx' in found_values}} + cudaDevWorkqueueConfigScopeDeviceCtx = ( cyruntime.cudaDevWorkqueueConfigScope.cudaDevWorkqueueConfigScopeDeviceCtx, 'Use all shared workqueue resources on the device. Default driver behaviour.\n' - ){{endif}} - {{if 'cudaDevWorkqueueConfigScopeGreenCtxBalanced' in found_values}} + ) + cudaDevWorkqueueConfigScopeGreenCtxBalanced = ( cyruntime.cudaDevWorkqueueConfigScope.cudaDevWorkqueueConfigScopeGreenCtxBalanced, 'When possible, use non-overlapping workqueue resources with other balanced\n' 'green contexts.\n' - ){{endif}} - -{{endif}} -{{if 'cudaJitOption' in found_types}} + ) class cudaJitOption(_FastEnum): """ Online compiler and linker options """ - {{if 'cudaJitMaxRegisters' in found_values}} + cudaJitMaxRegisters = ( cyruntime.cudaJitOption.cudaJitMaxRegisters, 'Max number of registers that a thread may use.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitThreadsPerBlock' in found_values}} + ) + cudaJitThreadsPerBlock = ( cyruntime.cudaJitOption.cudaJitThreadsPerBlock, @@ -5720,8 +5520,8 @@ class cudaJitOption(_FastEnum): 'utilization.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitWallTime' in found_values}} + ) + cudaJitWallTime = ( cyruntime.cudaJitOption.cudaJitWallTime, @@ -5729,8 +5529,8 @@ class cudaJitOption(_FastEnum): 'milliseconds, spent in the compiler and linker\n' 'Option type: float\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitInfoLogBuffer' in found_values}} + ) + cudaJitInfoLogBuffer = ( cyruntime.cudaJitOption.cudaJitInfoLogBuffer, @@ -5739,8 +5539,8 @@ class cudaJitOption(_FastEnum): ':py:obj:`~.cudaJitInfoLogBufferSizeBytes`)\n' 'Option type: char *\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitInfoLogBufferSizeBytes' in found_values}} + ) + cudaJitInfoLogBufferSizeBytes = ( cyruntime.cudaJitOption.cudaJitInfoLogBufferSizeBytes, @@ -5749,8 +5549,8 @@ class cudaJitOption(_FastEnum): 'OUT: Amount of log buffer filled with messages\n' 'Option type: unsigned int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitErrorLogBuffer' in found_values}} + ) + cudaJitErrorLogBuffer = ( cyruntime.cudaJitOption.cudaJitErrorLogBuffer, @@ -5759,8 +5559,8 @@ class cudaJitOption(_FastEnum): ':py:obj:`~.cudaJitErrorLogBufferSizeBytes`)\n' 'Option type: char *\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitErrorLogBufferSizeBytes' in found_values}} + ) + cudaJitErrorLogBufferSizeBytes = ( cyruntime.cudaJitOption.cudaJitErrorLogBufferSizeBytes, @@ -5769,8 +5569,8 @@ class cudaJitOption(_FastEnum): 'OUT: Amount of log buffer filled with messages\n' 'Option type: unsigned int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitOptimizationLevel' in found_values}} + ) + cudaJitOptimizationLevel = ( cyruntime.cudaJitOption.cudaJitOptimizationLevel, @@ -5778,8 +5578,8 @@ class cudaJitOption(_FastEnum): 'default and highest level of optimizations.\n' 'Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitFallbackStrategy' in found_values}} + ) + cudaJitFallbackStrategy = ( cyruntime.cudaJitOption.cudaJitFallbackStrategy, @@ -5787,8 +5587,8 @@ class cudaJitOption(_FastEnum): 'Choice is based on supplied :py:obj:`~.cudaJit_Fallback`. Option type:\n' 'unsigned int for enumerated type :py:obj:`~.cudaJit_Fallback`\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitGenerateDebugInfo' in found_values}} + ) + cudaJitGenerateDebugInfo = ( cyruntime.cudaJitOption.cudaJitGenerateDebugInfo, @@ -5796,24 +5596,24 @@ class cudaJitOption(_FastEnum): 'default)\n' 'Option type: int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitLogVerbose' in found_values}} + ) + cudaJitLogVerbose = ( cyruntime.cudaJitOption.cudaJitLogVerbose, 'Generate verbose log messages (0: false, default)\n' 'Option type: int\n' 'Applies to: compiler and linker\n' - ){{endif}} - {{if 'cudaJitGenerateLineInfo' in found_values}} + ) + cudaJitGenerateLineInfo = ( cyruntime.cudaJitOption.cudaJitGenerateLineInfo, 'Generate line number information (-lineinfo) (0: false, default)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitCacheMode' in found_values}} + ) + cudaJitCacheMode = ( cyruntime.cudaJitOption.cudaJitCacheMode, @@ -5821,16 +5621,16 @@ class cudaJitOption(_FastEnum): 'Choice is based on supplied :py:obj:`~.cudaJit_CacheMode`.\n' 'Option type: unsigned int for enumerated type :py:obj:`~.cudaJit_CacheMode`\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitPositionIndependentCode' in found_values}} + ) + cudaJitPositionIndependentCode = ( cyruntime.cudaJitOption.cudaJitPositionIndependentCode, 'Generate position independent code (0: false)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitMinCtaPerSm' in found_values}} + ) + cudaJitMinCtaPerSm = ( cyruntime.cudaJitOption.cudaJitMinCtaPerSm, @@ -5843,8 +5643,8 @@ class cudaJitOption(_FastEnum): 'default. Use :py:obj:`~.cudaJitOverrideDirectiveValues` to let this option\n' 'take precedence over the PTX directive. Option type: unsigned int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitMaxThreadsPerBlock' in found_values}} + ) + cudaJitMaxThreadsPerBlock = ( cyruntime.cudaJitOption.cudaJitMaxThreadsPerBlock, @@ -5856,8 +5656,8 @@ class cudaJitOption(_FastEnum): 'be ignored by default. Use :py:obj:`~.cudaJitOverrideDirectiveValues` to\n' 'let this option take precedence over the PTX directive. Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - {{if 'cudaJitOverrideDirectiveValues' in found_values}} + ) + cudaJitOverrideDirectiveValues = ( cyruntime.cudaJitOption.cudaJitOverrideDirectiveValues, @@ -5867,10 +5667,7 @@ class cudaJitOption(_FastEnum): 'take precedence over any PTX directives. (0: Disable, default; 1: Enable)\n' 'Option type: int\n' 'Applies to: compiler only\n' - ){{endif}} - -{{endif}} -{{if 'cudaLibraryOption' in found_types}} + ) class cudaLibraryOption(_FastEnum): """ @@ -5878,9 +5675,9 @@ class cudaLibraryOption(_FastEnum): :py:obj:`~.cudaLibraryLoadData()` or :py:obj:`~.cudaLibraryLoadFromFile()` """ - {{if 'cudaLibraryHostUniversalFunctionAndDataTable' in found_values}} - cudaLibraryHostUniversalFunctionAndDataTable = cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable{{endif}} - {{if 'cudaLibraryBinaryIsPreserved' in found_values}} + + cudaLibraryHostUniversalFunctionAndDataTable = cyruntime.cudaLibraryOption.cudaLibraryHostUniversalFunctionAndDataTable + cudaLibraryBinaryIsPreserved = ( cyruntime.cudaLibraryOption.cudaLibraryBinaryIsPreserved, @@ -5892,238 +5689,217 @@ class cudaLibraryOption(_FastEnum): 'memory usage optimization hint and the driver can choose to ignore it if\n' 'required. Specifying this option with :py:obj:`~.cudaLibraryLoadFromFile()`\n' 'is invalid and will return :py:obj:`~.cudaErrorInvalidValue`.\n' - ){{endif}} - -{{endif}} -{{if 'cudaJit_CacheMode' in found_types}} + ) class cudaJit_CacheMode(_FastEnum): """ Caching modes for dlcm """ - {{if 'cudaJitCacheOptionNone' in found_values}} + cudaJitCacheOptionNone = ( cyruntime.cudaJit_CacheMode.cudaJitCacheOptionNone, 'Compile with no -dlcm flag specified\n' - ){{endif}} - {{if 'cudaJitCacheOptionCG' in found_values}} + ) + cudaJitCacheOptionCG = ( cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCG, 'Compile with L1 cache disabled\n' - ){{endif}} - {{if 'cudaJitCacheOptionCA' in found_values}} + ) + cudaJitCacheOptionCA = ( cyruntime.cudaJit_CacheMode.cudaJitCacheOptionCA, 'Compile with L1 cache enabled\n' - ){{endif}} - -{{endif}} -{{if 'cudaJit_Fallback' in found_types}} + ) class cudaJit_Fallback(_FastEnum): """ Cubin matching fallback strategies """ - {{if 'cudaPreferPtx' in found_values}} + cudaPreferPtx = ( cyruntime.cudaJit_Fallback.cudaPreferPtx, 'Prefer to compile ptx if exact binary match not found\n' - ){{endif}} - {{if 'cudaPreferBinary' in found_values}} + ) + cudaPreferBinary = ( cyruntime.cudaJit_Fallback.cudaPreferBinary, 'Prefer to fall back to compatible binary code if exact match not found\n' - ){{endif}} - -{{endif}} -{{if 'cudaCGScope' in found_types}} + ) class cudaCGScope(_FastEnum): """ CUDA cooperative group scope """ - {{if 'cudaCGScopeInvalid' in found_values}} + cudaCGScopeInvalid = ( cyruntime.cudaCGScope.cudaCGScopeInvalid, 'Invalid cooperative group scope\n' - ){{endif}} - {{if 'cudaCGScopeGrid' in found_values}} + ) + cudaCGScopeGrid = ( cyruntime.cudaCGScope.cudaCGScopeGrid, 'Scope represented by a grid_group\n' - ){{endif}} - {{if 'cudaCGScopeReserved' in found_values}} + ) + cudaCGScopeReserved = ( cyruntime.cudaCGScope.cudaCGScopeReserved, 'Reserved\n' - ){{endif}} - -{{endif}} -{{if 'cudaKernelFunctionType' in found_types}} + ) class cudaKernelFunctionType(_FastEnum): """ CUDA Kernel Function Handle Type """ - {{if 'cudaKernelFunctionTypeUnspecified' in found_values}} + cudaKernelFunctionTypeUnspecified = ( cyruntime.cudaKernelFunctionType.cudaKernelFunctionTypeUnspecified, 'CUDA will attempt to deduce the type of the function handle\n' - ){{endif}} - {{if 'cudaKernelFunctionTypeDeviceEntry' in found_values}} + ) + cudaKernelFunctionTypeDeviceEntry = ( cyruntime.cudaKernelFunctionType.cudaKernelFunctionTypeDeviceEntry, 'Function handle is a device-entry function pointer(i.e. global function\n' 'pointer)\n' - ){{endif}} - {{if 'cudaKernelFunctionTypeKernel' in found_values}} + ) + cudaKernelFunctionTypeKernel = ( cyruntime.cudaKernelFunctionType.cudaKernelFunctionTypeKernel, 'Function handle is a :py:obj:`~.cudaKernel_t`\n' - ){{endif}} - {{if 'cudaKernelFunctionTypeFunction' in found_values}} + ) + cudaKernelFunctionTypeFunction = ( cyruntime.cudaKernelFunctionType.cudaKernelFunctionTypeFunction, 'Function handle is a :py:obj:`~.cudaFunction_t`\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphConditionalHandleFlags' in found_types}} + ) class cudaGraphConditionalHandleFlags(_FastEnum): """ """ - {{if 'cudaGraphCondAssignDefault' in found_values}} + cudaGraphCondAssignDefault = ( cyruntime.cudaGraphConditionalHandleFlags.cudaGraphCondAssignDefault, 'Apply default handle value when graph is launched.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphConditionalNodeType' in found_types}} + ) class cudaGraphConditionalNodeType(_FastEnum): """ CUDA conditional node types """ - {{if 'cudaGraphCondTypeIf' in found_values}} + cudaGraphCondTypeIf = ( cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeIf, "Conditional 'if/else' Node. Body[0] executed if condition is non-zero. If\n" '`size` == 2, an optional ELSE graph is created and this is executed if the\n' 'condition is zero.\n' - ){{endif}} - {{if 'cudaGraphCondTypeWhile' in found_values}} + ) + cudaGraphCondTypeWhile = ( cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeWhile, "Conditional 'while' Node. Body executed repeatedly while condition value is\n" 'non-zero.\n' - ){{endif}} - {{if 'cudaGraphCondTypeSwitch' in found_values}} + ) + cudaGraphCondTypeSwitch = ( cyruntime.cudaGraphConditionalNodeType.cudaGraphCondTypeSwitch, "Conditional 'switch' Node. Body[n] is executed once, where 'n' is the value\n" 'of the condition. If the condition does not match a body index, no body is\n' 'launched.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphNodeType' in found_types}} + ) class cudaGraphNodeType(_FastEnum): """ CUDA Graph node types """ - {{if 'cudaGraphNodeTypeKernel' in found_values}} + cudaGraphNodeTypeKernel = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeKernel, 'GPU kernel node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemcpy' in found_values}} + ) + cudaGraphNodeTypeMemcpy = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemcpy, 'Memcpy node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemset' in found_values}} + ) + cudaGraphNodeTypeMemset = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemset, 'Memset node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeHost' in found_values}} + ) + cudaGraphNodeTypeHost = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeHost, 'Host (executable) node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeGraph' in found_values}} + ) + cudaGraphNodeTypeGraph = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeGraph, 'Node which executes an embedded graph\n' - ){{endif}} - {{if 'cudaGraphNodeTypeEmpty' in found_values}} + ) + cudaGraphNodeTypeEmpty = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeEmpty, 'Empty (no-op) node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeWaitEvent' in found_values}} + ) + cudaGraphNodeTypeWaitEvent = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeWaitEvent, 'External event wait node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeEventRecord' in found_values}} + ) + cudaGraphNodeTypeEventRecord = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeEventRecord, 'External event record node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeExtSemaphoreSignal' in found_values}} + ) + cudaGraphNodeTypeExtSemaphoreSignal = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreSignal, 'External semaphore signal node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeExtSemaphoreWait' in found_values}} + ) + cudaGraphNodeTypeExtSemaphoreWait = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeExtSemaphoreWait, 'External semaphore wait node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemAlloc' in found_values}} + ) + cudaGraphNodeTypeMemAlloc = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemAlloc, 'Memory allocation node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeMemFree' in found_values}} + ) + cudaGraphNodeTypeMemFree = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeMemFree, 'Memory free node\n' - ){{endif}} - {{if 'cudaGraphNodeTypeConditional' in found_values}} + ) + cudaGraphNodeTypeConditional = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeConditional, @@ -6149,39 +5925,36 @@ class cudaGraphNodeType(_FastEnum): 'default value when creating the handle and/or\n' ' call :py:obj:`~.cudaGraphSetConditional`\n' 'from device code.\n' - ){{endif}} - {{if 'cudaGraphNodeTypeReserved16' in found_values}} + ) + cudaGraphNodeTypeReserved16 = ( cyruntime.cudaGraphNodeType.cudaGraphNodeTypeReserved16, 'Reserved.\n' - ){{endif}} - {{if 'cudaGraphNodeTypeCount' in found_values}} - cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount{{endif}} + ) -{{endif}} -{{if 'cudaGraphChildGraphNodeOwnership' in found_types}} + cudaGraphNodeTypeCount = cyruntime.cudaGraphNodeType.cudaGraphNodeTypeCount class cudaGraphChildGraphNodeOwnership(_FastEnum): """ Child graph node ownership """ - {{if 'cudaGraphChildGraphOwnershipInvalid' in found_values}} + cudaGraphChildGraphOwnershipInvalid = ( cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipInvalid, 'Invalid ownership flag. Set when params are queried to prevent accidentally\n' 'reusing the driver-owned graph object\n' - ){{endif}} - {{if 'cudaGraphChildGraphOwnershipClone' in found_values}} + ) + cudaGraphChildGraphOwnershipClone = ( cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipClone, 'Default behavior for a child graph node. Child graph is cloned into the\n' "parent and memory allocation/free nodes can't be present in the child\n" 'graph.\n' - ){{endif}} - {{if 'cudaGraphChildGraphOwnershipMove' in found_values}} + ) + cudaGraphChildGraphOwnershipMove = ( cyruntime.cudaGraphChildGraphNodeOwnership.cudaGraphChildGraphOwnershipMove, @@ -6192,110 +5965,101 @@ class cudaGraphChildGraphNodeOwnership(_FastEnum): 'as a child graph of a separate parent graph; Cannot be used as an argument\n' 'to cudaGraphExecUpdate; Cannot have additional memory allocation or free\n' 'nodes added.\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphExecUpdateResult' in found_types}} + ) class cudaGraphExecUpdateResult(_FastEnum): """ CUDA Graph Update error types """ - {{if 'cudaGraphExecUpdateSuccess' in found_values}} + cudaGraphExecUpdateSuccess = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateSuccess, 'The update succeeded\n' - ){{endif}} - {{if 'cudaGraphExecUpdateError' in found_values}} + ) + cudaGraphExecUpdateError = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateError, 'The update failed for an unexpected reason which is described in the return\n' 'value of the function\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorTopologyChanged' in found_values}} + ) + cudaGraphExecUpdateErrorTopologyChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorTopologyChanged, 'The update failed because the topology changed\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorNodeTypeChanged' in found_values}} + ) + cudaGraphExecUpdateErrorNodeTypeChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNodeTypeChanged, 'The update failed because a node type changed\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorFunctionChanged' in found_values}} + ) + cudaGraphExecUpdateErrorFunctionChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorFunctionChanged, 'The update failed because the function of a kernel node changed (CUDA\n' 'driver < 11.2)\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorParametersChanged' in found_values}} + ) + cudaGraphExecUpdateErrorParametersChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorParametersChanged, 'The update failed because the parameters changed in a way that is not\n' 'supported\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorNotSupported' in found_values}} + ) + cudaGraphExecUpdateErrorNotSupported = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorNotSupported, 'The update failed because something about the node is not supported\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorUnsupportedFunctionChange' in found_values}} + ) + cudaGraphExecUpdateErrorUnsupportedFunctionChange = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorUnsupportedFunctionChange, 'The update failed because the function of a kernel node changed in an\n' 'unsupported way\n' - ){{endif}} - {{if 'cudaGraphExecUpdateErrorAttributesChanged' in found_values}} + ) + cudaGraphExecUpdateErrorAttributesChanged = ( cyruntime.cudaGraphExecUpdateResult.cudaGraphExecUpdateErrorAttributesChanged, 'The update failed because the node attributes changed in a way that is not\n' 'supported\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphKernelNodeField' in found_types}} + ) class cudaGraphKernelNodeField(_FastEnum): """ Specifies the field to update when performing multiple node updates from the device """ - {{if 'cudaGraphKernelNodeFieldInvalid' in found_values}} + cudaGraphKernelNodeFieldInvalid = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldInvalid, 'Invalid field\n' - ){{endif}} - {{if 'cudaGraphKernelNodeFieldGridDim' in found_values}} + ) + cudaGraphKernelNodeFieldGridDim = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldGridDim, 'Grid dimension update\n' - ){{endif}} - {{if 'cudaGraphKernelNodeFieldParam' in found_values}} + ) + cudaGraphKernelNodeFieldParam = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldParam, 'Kernel parameter update\n' - ){{endif}} - {{if 'cudaGraphKernelNodeFieldEnabled' in found_values}} + ) + cudaGraphKernelNodeFieldEnabled = ( cyruntime.cudaGraphKernelNodeField.cudaGraphKernelNodeFieldEnabled, 'Node enable/disable\n' - ){{endif}} - -{{endif}} -{{if 'cudaGetDriverEntryPointFlags' in found_types}} + ) class cudaGetDriverEntryPointFlags(_FastEnum): """ @@ -6303,140 +6067,131 @@ class cudaGetDriverEntryPointFlags(_FastEnum): :py:obj:`~.cudaGetDriverEntryPoint` For more details see :py:obj:`~.cuGetProcAddress` """ - {{if 'cudaEnableDefault' in found_values}} + cudaEnableDefault = ( cyruntime.cudaGetDriverEntryPointFlags.cudaEnableDefault, 'Default search mode for driver symbols.\n' - ){{endif}} - {{if 'cudaEnableLegacyStream' in found_values}} + ) + cudaEnableLegacyStream = ( cyruntime.cudaGetDriverEntryPointFlags.cudaEnableLegacyStream, 'Search for legacy versions of driver symbols.\n' - ){{endif}} - {{if 'cudaEnablePerThreadDefaultStream' in found_values}} + ) + cudaEnablePerThreadDefaultStream = ( cyruntime.cudaGetDriverEntryPointFlags.cudaEnablePerThreadDefaultStream, 'Search for per-thread versions of driver symbols.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDriverEntryPointQueryResult' in found_types}} + ) class cudaDriverEntryPointQueryResult(_FastEnum): """ Enum for status from obtaining driver entry points, used with :py:obj:`~.cudaApiGetDriverEntryPoint` """ - {{if 'cudaDriverEntryPointSuccess' in found_values}} + cudaDriverEntryPointSuccess = ( cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSuccess, 'Search for symbol found a match\n' - ){{endif}} - {{if 'cudaDriverEntryPointSymbolNotFound' in found_values}} + ) + cudaDriverEntryPointSymbolNotFound = ( cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointSymbolNotFound, 'Search for symbol was not found\n' - ){{endif}} - {{if 'cudaDriverEntryPointVersionNotSufficent' in found_values}} + ) + cudaDriverEntryPointVersionNotSufficent = ( cyruntime.cudaDriverEntryPointQueryResult.cudaDriverEntryPointVersionNotSufficent, "Search for symbol was found but version wasn't great enough\n" - ){{endif}} - -{{endif}} -{{if 'cudaGraphDebugDotFlags' in found_types}} + ) class cudaGraphDebugDotFlags(_FastEnum): """ CUDA Graph debug write options """ - {{if 'cudaGraphDebugDotFlagsVerbose' in found_values}} + cudaGraphDebugDotFlagsVerbose = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsVerbose, 'Output all debug data as if every debug flag is enabled\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsKernelNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsKernelNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeParams, 'Adds :py:obj:`~.cudaKernelNodeParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsMemcpyNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsMemcpyNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemcpyNodeParams, 'Adds :py:obj:`~.cudaMemcpy3DParms` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsMemsetNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsMemsetNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsMemsetNodeParams, 'Adds :py:obj:`~.cudaMemsetParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsHostNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsHostNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHostNodeParams, 'Adds :py:obj:`~.cudaHostNodeParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsEventNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsEventNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsEventNodeParams, 'Adds :py:obj:`~.cudaEvent_t` handle from record and wait nodes to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsExtSemasSignalNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsExtSemasSignalNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasSignalNodeParams, 'Adds :py:obj:`~.cudaExternalSemaphoreSignalNodeParams` values to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsExtSemasWaitNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsExtSemasWaitNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasWaitNodeParams, 'Adds :py:obj:`~.cudaExternalSemaphoreWaitNodeParams` to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsKernelNodeAttributes' in found_values}} + ) + cudaGraphDebugDotFlagsKernelNodeAttributes = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsKernelNodeAttributes, 'Adds cudaKernelNodeAttrID values to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsHandles' in found_values}} + ) + cudaGraphDebugDotFlagsHandles = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsHandles, 'Adds node handles and every kernel function handle to output\n' - ){{endif}} - {{if 'cudaGraphDebugDotFlagsConditionalNodeParams' in found_values}} + ) + cudaGraphDebugDotFlagsConditionalNodeParams = ( cyruntime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsConditionalNodeParams, 'Adds :py:obj:`~.cudaConditionalNodeParams` to output\n' - ){{endif}} - -{{endif}} -{{if 'cudaGraphInstantiateFlags' in found_types}} + ) class cudaGraphInstantiateFlags(_FastEnum): """ Flags for instantiating a graph """ - {{if 'cudaGraphInstantiateFlagAutoFreeOnLaunch' in found_values}} + cudaGraphInstantiateFlagAutoFreeOnLaunch = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagAutoFreeOnLaunch, 'Automatically free memory allocated in a graph before relaunching.\n' - ){{endif}} - {{if 'cudaGraphInstantiateFlagUpload' in found_values}} + ) + cudaGraphInstantiateFlagUpload = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUpload, @@ -6444,316 +6199,277 @@ class cudaGraphInstantiateFlags(_FastEnum): ' :py:obj:`~.cudaGraphInstantiateWithParams`. The upload will be performed\n' 'using the\n' ' stream provided in `instantiateParams`.\n' - ){{endif}} - {{if 'cudaGraphInstantiateFlagDeviceLaunch' in found_values}} + ) + cudaGraphInstantiateFlagDeviceLaunch = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagDeviceLaunch, 'Instantiate the graph to be launchable from the device. This flag can only\n' ' be used on platforms which support unified addressing. This flag cannot be\n' ' used in conjunction with cudaGraphInstantiateFlagAutoFreeOnLaunch.\n' - ){{endif}} - {{if 'cudaGraphInstantiateFlagUseNodePriority' in found_values}} + ) + cudaGraphInstantiateFlagUseNodePriority = ( cyruntime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagUseNodePriority, 'Run the graph using the per-node priority attributes rather than the\n' 'priority of the stream it is launched into.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDeviceNumaConfig' in found_types}} + ) class cudaDeviceNumaConfig(_FastEnum): """ CUDA device NUMA config """ - {{if 'cudaDeviceNumaConfigNone' in found_values}} + cudaDeviceNumaConfigNone = ( cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNone, 'The GPU is not a NUMA node\n' - ){{endif}} - {{if 'cudaDeviceNumaConfigNumaNode' in found_values}} + ) + cudaDeviceNumaConfigNumaNode = ( cyruntime.cudaDeviceNumaConfig.cudaDeviceNumaConfigNumaNode, 'The GPU is a NUMA node, cudaDevAttrNumaId contains its NUMA ID\n' - ){{endif}} - -{{endif}} -{{if 'cudaFabricOpStatusSource' in found_types}} + ) class cudaFabricOpStatusSource(_FastEnum): """ Fabric operation status source """ - {{if 'cudaFabricOpStatusSourceMbarrierV1' in found_values}} + cudaFabricOpStatusSourceMbarrierV1 = ( cyruntime.cudaFabricOpStatusSource.cudaFabricOpStatusSourceMbarrierV1, '1B-aligned 1B-wide status from an mbarrier.layout::v1\n' - ){{endif}} - {{if 'cudaFabricOpStatusSourceMax' in found_values}} - cudaFabricOpStatusSourceMax = cyruntime.cudaFabricOpStatusSource.cudaFabricOpStatusSourceMax{{endif}} + ) -{{endif}} -{{if 'cudaFabricOpStatusInfo' in found_types}} + cudaFabricOpStatusSourceMax = cyruntime.cudaFabricOpStatusSource.cudaFabricOpStatusSourceMax class cudaFabricOpStatusInfo(_FastEnum): """ Fabric operation status info """ - {{if 'cudaFabricOpStatusInfoSuccess' in found_values}} - cudaFabricOpStatusInfoSuccess = cyruntime.cudaFabricOpStatusInfo.cudaFabricOpStatusInfoSuccess{{endif}} - {{if 'cudaFabricOpStatusInfoLast' in found_values}} - cudaFabricOpStatusInfoLast = cyruntime.cudaFabricOpStatusInfo.cudaFabricOpStatusInfoLast{{endif}} - {{if 'cudaFabricOpStatusInfoMax' in found_values}} - cudaFabricOpStatusInfoMax = cyruntime.cudaFabricOpStatusInfo.cudaFabricOpStatusInfoMax{{endif}} -{{endif}} -{{if 'cudaSurfaceBoundaryMode' in found_types}} + cudaFabricOpStatusInfoSuccess = cyruntime.cudaFabricOpStatusInfo.cudaFabricOpStatusInfoSuccess + + cudaFabricOpStatusInfoLast = cyruntime.cudaFabricOpStatusInfo.cudaFabricOpStatusInfoLast + + cudaFabricOpStatusInfoMax = cyruntime.cudaFabricOpStatusInfo.cudaFabricOpStatusInfoMax class cudaSurfaceBoundaryMode(_FastEnum): """ CUDA Surface boundary modes """ - {{if 'cudaBoundaryModeZero' in found_values}} + cudaBoundaryModeZero = ( cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeZero, 'Zero boundary mode\n' - ){{endif}} - {{if 'cudaBoundaryModeClamp' in found_values}} + ) + cudaBoundaryModeClamp = ( cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeClamp, 'Clamp boundary mode\n' - ){{endif}} - {{if 'cudaBoundaryModeTrap' in found_values}} + ) + cudaBoundaryModeTrap = ( cyruntime.cudaSurfaceBoundaryMode.cudaBoundaryModeTrap, 'Trap boundary mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaSurfaceFormatMode' in found_types}} + ) class cudaSurfaceFormatMode(_FastEnum): """ CUDA Surface format modes """ - {{if 'cudaFormatModeForced' in found_values}} + cudaFormatModeForced = ( cyruntime.cudaSurfaceFormatMode.cudaFormatModeForced, 'Forced format mode\n' - ){{endif}} - {{if 'cudaFormatModeAuto' in found_values}} + ) + cudaFormatModeAuto = ( cyruntime.cudaSurfaceFormatMode.cudaFormatModeAuto, 'Auto format mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaTextureAddressMode' in found_types}} + ) class cudaTextureAddressMode(_FastEnum): """ CUDA texture address modes """ - {{if 'cudaAddressModeWrap' in found_values}} + cudaAddressModeWrap = ( cyruntime.cudaTextureAddressMode.cudaAddressModeWrap, 'Wrapping address mode\n' - ){{endif}} - {{if 'cudaAddressModeClamp' in found_values}} + ) + cudaAddressModeClamp = ( cyruntime.cudaTextureAddressMode.cudaAddressModeClamp, 'Clamp to edge address mode\n' - ){{endif}} - {{if 'cudaAddressModeMirror' in found_values}} + ) + cudaAddressModeMirror = ( cyruntime.cudaTextureAddressMode.cudaAddressModeMirror, 'Mirror address mode\n' - ){{endif}} - {{if 'cudaAddressModeBorder' in found_values}} + ) + cudaAddressModeBorder = ( cyruntime.cudaTextureAddressMode.cudaAddressModeBorder, 'Border address mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaTextureFilterMode' in found_types}} + ) class cudaTextureFilterMode(_FastEnum): """ CUDA texture filter modes """ - {{if 'cudaFilterModePoint' in found_values}} + cudaFilterModePoint = ( cyruntime.cudaTextureFilterMode.cudaFilterModePoint, 'Point filter mode\n' - ){{endif}} - {{if 'cudaFilterModeLinear' in found_values}} + ) + cudaFilterModeLinear = ( cyruntime.cudaTextureFilterMode.cudaFilterModeLinear, 'Linear filter mode\n' - ){{endif}} - -{{endif}} -{{if 'cudaTextureReadMode' in found_types}} + ) class cudaTextureReadMode(_FastEnum): """ CUDA texture read modes """ - {{if 'cudaReadModeElementType' in found_values}} + cudaReadModeElementType = ( cyruntime.cudaTextureReadMode.cudaReadModeElementType, 'Read texture as specified element type\n' - ){{endif}} - {{if 'cudaReadModeNormalizedFloat' in found_values}} + ) + cudaReadModeNormalizedFloat = ( cyruntime.cudaTextureReadMode.cudaReadModeNormalizedFloat, 'Read texture as normalized float\n' - ){{endif}} - -{{endif}} -{{if 'cudaRoundMode' in found_types}} + ) class cudaRoundMode(_FastEnum): """ """ - {{if 'cudaRoundNearest' in found_values}} - cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest{{endif}} - {{if 'cudaRoundZero' in found_values}} - cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero{{endif}} - {{if 'cudaRoundPosInf' in found_values}} - cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf{{endif}} - {{if 'cudaRoundMinInf' in found_values}} - cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf{{endif}} -{{endif}} -{{if True}} + cudaRoundNearest = cyruntime.cudaRoundMode.cudaRoundNearest + + cudaRoundZero = cyruntime.cudaRoundMode.cudaRoundZero + + cudaRoundPosInf = cyruntime.cudaRoundMode.cudaRoundPosInf + + cudaRoundMinInf = cyruntime.cudaRoundMode.cudaRoundMinInf class cudaGLDeviceList(_FastEnum): """ CUDA devices corresponding to the current OpenGL context """ - {{if True}} + cudaGLDeviceListAll = ( cyruntime.cudaGLDeviceList.cudaGLDeviceListAll, 'The CUDA devices for all GPUs used by the current OpenGL context\n' - ){{endif}} - {{if True}} + ) + cudaGLDeviceListCurrentFrame = ( cyruntime.cudaGLDeviceList.cudaGLDeviceListCurrentFrame, 'The CUDA devices for the GPUs used by the current OpenGL context in its\n' 'currently rendering frame\n' - ){{endif}} - {{if True}} + ) + cudaGLDeviceListNextFrame = ( cyruntime.cudaGLDeviceList.cudaGLDeviceListNextFrame, 'The CUDA devices for the GPUs to be used by the current OpenGL context in\n' 'the next frame\n' - ){{endif}} - -{{endif}} -{{if True}} + ) class cudaGLMapFlags(_FastEnum): """ CUDA GL Map Flags """ - {{if True}} + cudaGLMapFlagsNone = ( cyruntime.cudaGLMapFlags.cudaGLMapFlagsNone, 'Default; Assume resource can be read/written\n' - ){{endif}} - {{if True}} + ) + cudaGLMapFlagsReadOnly = ( cyruntime.cudaGLMapFlags.cudaGLMapFlagsReadOnly, 'CUDA kernels will not write to this resource\n' - ){{endif}} - {{if True}} + ) + cudaGLMapFlagsWriteDiscard = ( cyruntime.cudaGLMapFlags.cudaGLMapFlagsWriteDiscard, 'CUDA kernels will only write to and will not read from this resource\n' - ){{endif}} - -{{endif}} + ) cdef object _cudaError_t = cudaError_t cdef object _cudaError_t_SUCCESS = cudaError_t.cudaSuccess - - -{{if 'cudaLaunchAttributeID' in found_types}} - class cudaStreamAttrID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.cudaLaunchAttribute` """ - {{if 'cudaLaunchAttributeIgnore' in found_values}} + cudaLaunchAttributeIgnore = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'cudaLaunchAttributeAccessPolicyWindow' in found_values}} + ) + cudaLaunchAttributeAccessPolicyWindow = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeCooperative' in found_values}} + ) + cudaLaunchAttributeCooperative = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeSynchronizationPolicy' in found_values}} + ) + cudaLaunchAttributeSynchronizationPolicy = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy, 'Valid for streams. See :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterDimension' in found_values}} + ) + cudaLaunchAttributeClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaLaunchAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticStreamSerialization' in found_values}} + ) + cudaLaunchAttributeProgrammaticStreamSerialization = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization, @@ -6765,8 +6481,8 @@ class cudaStreamAttrID(_FastEnum): 'that kernel requests the overlap. The dependent launches can choose to wait\n' 'on the dependency using the programmatic sync\n' '(cudaGridDependencySynchronize() or equivalent PTX instructions).\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticEvent' in found_values}} + ) + cudaLaunchAttributeProgrammaticEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent, @@ -6790,29 +6506,29 @@ class cudaStreamAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributePriority' in found_values}} + ) + cudaLaunchAttributePriority = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomainMap' in found_values}} + ) + cudaLaunchAttributeMemSyncDomainMap = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomain' in found_values}} + ) + cudaLaunchAttributeMemSyncDomain = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredClusterDimension' in found_values}} + ) + cudaLaunchAttributePreferredClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension, @@ -6845,8 +6561,8 @@ class cudaStreamAttrID(_FastEnum): 'than the maximum value the driver can support. Otherwise, setting this\n' 'attribute to a value physically unable to fit on any particular device is\n' 'permitted.\n' - ){{endif}} - {{if 'cudaLaunchAttributeLaunchCompletionEvent' in found_values}} + ) + cudaLaunchAttributeLaunchCompletionEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent, @@ -6867,8 +6583,8 @@ class cudaStreamAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributeDeviceUpdatableKernelNode' in found_values}} + ) + cudaLaunchAttributeDeviceUpdatableKernelNode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode, @@ -6899,8 +6615,8 @@ class cudaStreamAttrID(_FastEnum): ':py:obj:`~.cuGraphUpload` before it is launched. For such a graph, if host-\n' 'side executable graph updates are made to the device-updatable nodes, the\n' 'graph must be uploaded before it is launched again.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaLaunchAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout, @@ -6912,8 +6628,8 @@ class cudaStreamAttrID(_FastEnum): 'precedence over :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout`.\n' 'This is only a hint, and the driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - {{if 'cudaLaunchAttributeNvlinkUtilCentricScheduling' in found_values}} + ) + cudaLaunchAttributeNvlinkUtilCentricScheduling = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling, @@ -6934,8 +6650,8 @@ class cudaStreamAttrID(_FastEnum): ' Valid values for\n' ':py:obj:`~.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling` are 0\n' '(disabled) and 1 (enabled).\n' - ){{endif}} - {{if 'cudaLaunchAttributePortableClusterSizeMode' in found_values}} + ) + cudaLaunchAttributePortableClusterSizeMode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePortableClusterSizeMode, @@ -6944,64 +6660,61 @@ class cudaStreamAttrID(_FastEnum): ':py:obj:`~.cudaLaunchAttributeValue.portableClusterSizeMode` are values for\n' ':py:obj:`~.cudaLaunchAttributePortableClusterMode` Any other value will\n' 'return :py:obj:`~.cudaErrorInvalidValue`\n' - ){{endif}} - {{if 'cudaLaunchAttributeSharedMemoryMode' in found_values}} + ) + cudaLaunchAttributeSharedMemoryMode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSharedMemoryMode, 'Valid for graph nodes, launches. This indicates that the kernel launch is\n' 'allowed to use a non-portable shared memory mode.\n' - ){{endif}} - -{{endif}} -{{if 'cudaLaunchAttributeID' in found_types}} + ) class cudaKernelNodeAttrID(_FastEnum): """ Launch attributes enum; used as id field of :py:obj:`~.cudaLaunchAttribute` """ - {{if 'cudaLaunchAttributeIgnore' in found_values}} + cudaLaunchAttributeIgnore = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeIgnore, 'Ignored entry, for convenient composition\n' - ){{endif}} - {{if 'cudaLaunchAttributeAccessPolicyWindow' in found_values}} + ) + cudaLaunchAttributeAccessPolicyWindow = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeAccessPolicyWindow, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.accessPolicyWindow`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeCooperative' in found_values}} + ) + cudaLaunchAttributeCooperative = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeCooperative, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.cooperative`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeSynchronizationPolicy' in found_values}} + ) + cudaLaunchAttributeSynchronizationPolicy = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSynchronizationPolicy, 'Valid for streams. See :py:obj:`~.cudaLaunchAttributeValue.syncPolicy`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterDimension' in found_values}} + ) + cudaLaunchAttributeClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterDimension, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterDim`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeClusterSchedulingPolicyPreference' in found_values}} + ) + cudaLaunchAttributeClusterSchedulingPolicyPreference = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeClusterSchedulingPolicyPreference, 'Valid for graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.clusterSchedulingPolicyPreference`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticStreamSerialization' in found_values}} + ) + cudaLaunchAttributeProgrammaticStreamSerialization = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticStreamSerialization, @@ -7013,8 +6726,8 @@ class cudaKernelNodeAttrID(_FastEnum): 'that kernel requests the overlap. The dependent launches can choose to wait\n' 'on the dependency using the programmatic sync\n' '(cudaGridDependencySynchronize() or equivalent PTX instructions).\n' - ){{endif}} - {{if 'cudaLaunchAttributeProgrammaticEvent' in found_values}} + ) + cudaLaunchAttributeProgrammaticEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeProgrammaticEvent, @@ -7038,29 +6751,29 @@ class cudaKernelNodeAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributePriority' in found_values}} + ) + cudaLaunchAttributePriority = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePriority, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.priority`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomainMap' in found_values}} + ) + cudaLaunchAttributeMemSyncDomainMap = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomainMap, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomainMap`.\n' - ){{endif}} - {{if 'cudaLaunchAttributeMemSyncDomain' in found_values}} + ) + cudaLaunchAttributeMemSyncDomain = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeMemSyncDomain, 'Valid for streams, graph nodes, launches. See\n' ':py:obj:`~.cudaLaunchAttributeValue.memSyncDomain`.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredClusterDimension' in found_values}} + ) + cudaLaunchAttributePreferredClusterDimension = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredClusterDimension, @@ -7093,8 +6806,8 @@ class cudaKernelNodeAttrID(_FastEnum): 'than the maximum value the driver can support. Otherwise, setting this\n' 'attribute to a value physically unable to fit on any particular device is\n' 'permitted.\n' - ){{endif}} - {{if 'cudaLaunchAttributeLaunchCompletionEvent' in found_values}} + ) + cudaLaunchAttributeLaunchCompletionEvent = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent, @@ -7115,8 +6828,8 @@ class cudaKernelNodeAttrID(_FastEnum): ' The event supplied must not be an interprocess or interop event. The event\n' 'must disable timing (i.e. must be created with the\n' ':py:obj:`~.cudaEventDisableTiming` flag set).\n' - ){{endif}} - {{if 'cudaLaunchAttributeDeviceUpdatableKernelNode' in found_values}} + ) + cudaLaunchAttributeDeviceUpdatableKernelNode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeDeviceUpdatableKernelNode, @@ -7147,8 +6860,8 @@ class cudaKernelNodeAttrID(_FastEnum): ':py:obj:`~.cuGraphUpload` before it is launched. For such a graph, if host-\n' 'side executable graph updates are made to the device-updatable nodes, the\n' 'graph must be uploaded before it is launched again.\n' - ){{endif}} - {{if 'cudaLaunchAttributePreferredSharedMemoryCarveout' in found_values}} + ) + cudaLaunchAttributePreferredSharedMemoryCarveout = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePreferredSharedMemoryCarveout, @@ -7160,8 +6873,8 @@ class cudaKernelNodeAttrID(_FastEnum): 'precedence over :py:obj:`~.cudaFuncAttributePreferredSharedMemoryCarveout`.\n' 'This is only a hint, and the driver can choose a different configuration if\n' 'required for the launch.\n' - ){{endif}} - {{if 'cudaLaunchAttributeNvlinkUtilCentricScheduling' in found_values}} + ) + cudaLaunchAttributeNvlinkUtilCentricScheduling = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeNvlinkUtilCentricScheduling, @@ -7182,8 +6895,8 @@ class cudaKernelNodeAttrID(_FastEnum): ' Valid values for\n' ':py:obj:`~.cudaLaunchAttributeValue.nvlinkUtilCentricScheduling` are 0\n' '(disabled) and 1 (enabled).\n' - ){{endif}} - {{if 'cudaLaunchAttributePortableClusterSizeMode' in found_values}} + ) + cudaLaunchAttributePortableClusterSizeMode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributePortableClusterSizeMode, @@ -7192,17 +6905,14 @@ class cudaKernelNodeAttrID(_FastEnum): ':py:obj:`~.cudaLaunchAttributeValue.portableClusterSizeMode` are values for\n' ':py:obj:`~.cudaLaunchAttributePortableClusterMode` Any other value will\n' 'return :py:obj:`~.cudaErrorInvalidValue`\n' - ){{endif}} - {{if 'cudaLaunchAttributeSharedMemoryMode' in found_values}} + ) + cudaLaunchAttributeSharedMemoryMode = ( cyruntime.cudaLaunchAttributeID.cudaLaunchAttributeSharedMemoryMode, 'Valid for graph nodes, launches. This indicates that the kernel launch is\n' 'allowed to use a non-portable shared memory mode.\n' - ){{endif}} - -{{endif}} -{{if 'cudaDevResourceDesc_t' in found_types}} + ) cdef class cudaDevResourceDesc_t: """ @@ -7237,9 +6947,6 @@ cdef class cudaDevResourceDesc_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaExecutionContext_t' in found_types}} cdef class cudaExecutionContext_t: """ @@ -7274,9 +6981,6 @@ cdef class cudaExecutionContext_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaArray_t' in found_types}} cdef class cudaArray_t: """ @@ -7311,9 +7015,6 @@ cdef class cudaArray_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaArray_const_t' in found_types}} cdef class cudaArray_const_t: """ @@ -7348,9 +7049,6 @@ cdef class cudaArray_const_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_t' in found_types}} cdef class cudaMipmappedArray_t: """ @@ -7385,9 +7083,6 @@ cdef class cudaMipmappedArray_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaMipmappedArray_const_t' in found_types}} cdef class cudaMipmappedArray_const_t: """ @@ -7422,9 +7117,6 @@ cdef class cudaMipmappedArray_const_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaGraphicsResource_t' in found_types}} cdef class cudaGraphicsResource_t: """ @@ -7459,9 +7151,6 @@ cdef class cudaGraphicsResource_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaExternalMemory_t' in found_types}} cdef class cudaExternalMemory_t: """ @@ -7496,9 +7185,6 @@ cdef class cudaExternalMemory_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaExternalSemaphore_t' in found_types}} cdef class cudaExternalSemaphore_t: """ @@ -7533,9 +7219,6 @@ cdef class cudaExternalSemaphore_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaKernel_t' in found_types}} cdef class cudaKernel_t: """ @@ -7570,9 +7253,6 @@ cdef class cudaKernel_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaLibrary_t' in found_types}} cdef class cudaLibrary_t: """ @@ -7607,9 +7287,6 @@ cdef class cudaLibrary_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaGraphDeviceNode_t' in found_types}} cdef class cudaGraphDeviceNode_t: """ @@ -7644,9 +7321,6 @@ cdef class cudaGraphDeviceNode_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallbackHandle_t' in found_types}} cdef class cudaAsyncCallbackHandle_t: """ @@ -7681,9 +7355,6 @@ cdef class cudaAsyncCallbackHandle_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaLogsCallbackHandle' in found_types}} cdef class cudaLogsCallbackHandle: """ @@ -7716,9 +7387,6 @@ cdef class cudaLogsCallbackHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLImageKHR: """ @@ -7751,9 +7419,6 @@ cdef class EGLImageKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLStreamKHR: """ @@ -7786,9 +7451,6 @@ cdef class EGLStreamKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLSyncKHR: """ @@ -7821,9 +7483,6 @@ cdef class EGLSyncKHR: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaHostFn_t' in found_types}} cdef class cudaHostFn_t: """ @@ -7850,9 +7509,6 @@ cdef class cudaHostFn_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaAsyncCallback' in found_types}} cdef class cudaAsyncCallback: """ @@ -7879,9 +7535,6 @@ cdef class cudaAsyncCallback: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaStreamCallback_t' in found_types}} cdef class cudaStreamCallback_t: """ @@ -7908,9 +7561,6 @@ cdef class cudaStreamCallback_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaGraphRecaptureCallback_t' in found_types}} cdef class cudaGraphRecaptureCallback_t: """ @@ -7937,9 +7587,6 @@ cdef class cudaGraphRecaptureCallback_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaLogsCallback_t' in found_types}} cdef class cudaLogsCallback_t: """ @@ -7966,26 +7613,23 @@ cdef class cudaLogsCallback_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'dim3' in found_struct}} cdef class dim3: """ Attributes ---------- - {{if 'dim3.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'dim3.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'dim3.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -8006,53 +7650,51 @@ cdef class dim3: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'dim3.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'dim3.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'dim3.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'dim3.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, unsigned int x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'dim3.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, unsigned int y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'dim3.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, unsigned int z): self._pvt_ptr[0].z = z - {{endif}} -{{endif}} -{{if 'cudaChannelFormatDesc' in found_struct}} + cdef class cudaChannelFormatDesc: """ @@ -8060,26 +7702,26 @@ cdef class cudaChannelFormatDesc: Attributes ---------- - {{if 'cudaChannelFormatDesc.x' in found_struct}} + x : int x - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + y : int y - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + z : int z - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + w : int w - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + f : cudaChannelFormatKind Channel format kind - {{endif}} + Methods ------- @@ -8100,98 +7742,96 @@ cdef class cudaChannelFormatDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaChannelFormatDesc.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + try: str_list += ['w : ' + str(self.w)] except ValueError: str_list += ['w : '] - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + try: str_list += ['f : ' + str(self.f)] except ValueError: str_list += ['f : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaChannelFormatDesc.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, int x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'cudaChannelFormatDesc.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, int y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'cudaChannelFormatDesc.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, int z): self._pvt_ptr[0].z = z - {{endif}} - {{if 'cudaChannelFormatDesc.w' in found_struct}} + + @property def w(self): return self._pvt_ptr[0].w @w.setter def w(self, int w): self._pvt_ptr[0].w = w - {{endif}} - {{if 'cudaChannelFormatDesc.f' in found_struct}} + + @property def f(self): return cudaChannelFormatKind(self._pvt_ptr[0].f) @f.setter def f(self, f not None : cudaChannelFormatKind): - self._pvt_ptr[0].f = int(f) - {{endif}} -{{endif}} -{{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + self._pvt_ptr[0].f = int(f) + cdef class anon_struct0: """ Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + width : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + height : unsigned int - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + depth : unsigned int - {{endif}} + Methods ------- @@ -8210,53 +7850,51 @@ cdef class anon_struct0: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaArraySparseProperties.tileExtent.width' in found_struct}} + @property def width(self): return self._pvt_ptr[0].tileExtent.width @width.setter def width(self, unsigned int width): self._pvt_ptr[0].tileExtent.width = width - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].tileExtent.height @height.setter def height(self, unsigned int height): self._pvt_ptr[0].tileExtent.height = height - {{endif}} - {{if 'cudaArraySparseProperties.tileExtent.depth' in found_struct}} + + @property def depth(self): return self._pvt_ptr[0].tileExtent.depth @depth.setter def depth(self, unsigned int depth): self._pvt_ptr[0].tileExtent.depth = depth - {{endif}} -{{endif}} -{{if 'cudaArraySparseProperties' in found_struct}} + cdef class cudaArraySparseProperties: """ @@ -8264,26 +7902,26 @@ cdef class cudaArraySparseProperties: Attributes ---------- - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + tileExtent : anon_struct0 - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + miptailFirstLevel : unsigned int First mip level at which the mip tail begins - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + miptailSize : unsigned long long Total size of the mip tail. - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + flags : unsigned int Flags will either be zero or cudaArraySparsePropertiesSingleMipTail - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -8297,9 +7935,9 @@ cdef class cudaArraySparseProperties: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + self._tileExtent = anon_struct0(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -8307,81 +7945,79 @@ cdef class cudaArraySparseProperties: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + try: str_list += ['tileExtent :\n' + '\n'.join([' ' + line for line in str(self.tileExtent).splitlines()])] except ValueError: str_list += ['tileExtent : '] - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + try: str_list += ['miptailFirstLevel : ' + str(self.miptailFirstLevel)] except ValueError: str_list += ['miptailFirstLevel : '] - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + try: str_list += ['miptailSize : ' + str(self.miptailSize)] except ValueError: str_list += ['miptailSize : '] - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaArraySparseProperties.tileExtent' in found_struct}} + @property def tileExtent(self): return self._tileExtent @tileExtent.setter def tileExtent(self, tileExtent not None : anon_struct0): string.memcpy(&self._pvt_ptr[0].tileExtent, tileExtent.getPtr(), sizeof(self._pvt_ptr[0].tileExtent)) - {{endif}} - {{if 'cudaArraySparseProperties.miptailFirstLevel' in found_struct}} + + @property def miptailFirstLevel(self): return self._pvt_ptr[0].miptailFirstLevel @miptailFirstLevel.setter def miptailFirstLevel(self, unsigned int miptailFirstLevel): self._pvt_ptr[0].miptailFirstLevel = miptailFirstLevel - {{endif}} - {{if 'cudaArraySparseProperties.miptailSize' in found_struct}} + + @property def miptailSize(self): return self._pvt_ptr[0].miptailSize @miptailSize.setter def miptailSize(self, unsigned long long miptailSize): self._pvt_ptr[0].miptailSize = miptailSize - {{endif}} - {{if 'cudaArraySparseProperties.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaArraySparseProperties.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaArrayMemoryRequirements' in found_struct}} + cdef class cudaArrayMemoryRequirements: """ @@ -8389,18 +8025,18 @@ cdef class cudaArrayMemoryRequirements: Attributes ---------- - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + size : size_t Total size of the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + alignment : size_t Alignment necessary for mapping the array. - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -8421,53 +8057,51 @@ cdef class cudaArrayMemoryRequirements: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + try: str_list += ['alignment : ' + str(self.alignment)] except ValueError: str_list += ['alignment : '] - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaArrayMemoryRequirements.size' in found_struct}} + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, size_t size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaArrayMemoryRequirements.alignment' in found_struct}} + + @property def alignment(self): return self._pvt_ptr[0].alignment @alignment.setter def alignment(self, size_t alignment): self._pvt_ptr[0].alignment = alignment - {{endif}} - {{if 'cudaArrayMemoryRequirements.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaPitchedPtr' in found_struct}} + cdef class cudaPitchedPtr: """ @@ -8475,22 +8109,22 @@ cdef class cudaPitchedPtr: Attributes ---------- - {{if 'cudaPitchedPtr.ptr' in found_struct}} + ptr : Any Pointer to allocated memory - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + pitch : size_t Pitch of allocated memory in bytes - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + xsize : size_t Logical width of allocation in elements - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + ysize : size_t Logical height of allocation in elements - {{endif}} + Methods ------- @@ -8511,34 +8145,34 @@ cdef class cudaPitchedPtr: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaPitchedPtr.ptr' in found_struct}} + try: str_list += ['ptr : ' + hex(self.ptr)] except ValueError: str_list += ['ptr : '] - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + try: str_list += ['xsize : ' + str(self.xsize)] except ValueError: str_list += ['xsize : '] - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + try: str_list += ['ysize : ' + str(self.ysize)] except ValueError: str_list += ['ysize : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaPitchedPtr.ptr' in found_struct}} + @property def ptr(self): return self._pvt_ptr[0].ptr @@ -8546,33 +8180,31 @@ cdef class cudaPitchedPtr: def ptr(self, ptr): self._cyptr = _HelperInputVoidPtr(ptr) self._pvt_ptr[0].ptr = self._cyptr.cptr - {{endif}} - {{if 'cudaPitchedPtr.pitch' in found_struct}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, size_t pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if 'cudaPitchedPtr.xsize' in found_struct}} + + @property def xsize(self): return self._pvt_ptr[0].xsize @xsize.setter def xsize(self, size_t xsize): self._pvt_ptr[0].xsize = xsize - {{endif}} - {{if 'cudaPitchedPtr.ysize' in found_struct}} + + @property def ysize(self): return self._pvt_ptr[0].ysize @ysize.setter def ysize(self, size_t ysize): self._pvt_ptr[0].ysize = ysize - {{endif}} -{{endif}} -{{if 'cudaExtent' in found_struct}} + cdef class cudaExtent: """ @@ -8580,19 +8212,19 @@ cdef class cudaExtent: Attributes ---------- - {{if 'cudaExtent.width' in found_struct}} + width : size_t Width in elements when referring to array memory, in bytes when referring to linear memory - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + height : size_t Height in elements - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + depth : size_t Depth in elements - {{endif}} + Methods ------- @@ -8613,53 +8245,51 @@ cdef class cudaExtent: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExtent.width' in found_struct}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExtent.width' in found_struct}} + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaExtent.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} - {{if 'cudaExtent.depth' in found_struct}} + + @property def depth(self): return self._pvt_ptr[0].depth @depth.setter def depth(self, size_t depth): self._pvt_ptr[0].depth = depth - {{endif}} -{{endif}} -{{if 'cudaPos' in found_struct}} + cdef class cudaPos: """ @@ -8667,18 +8297,18 @@ cdef class cudaPos: Attributes ---------- - {{if 'cudaPos.x' in found_struct}} + x : size_t x - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + y : size_t y - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + z : size_t z - {{endif}} + Methods ------- @@ -8699,53 +8329,51 @@ cdef class cudaPos: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaPos.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaPos.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, size_t x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'cudaPos.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, size_t y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'cudaPos.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, size_t z): self._pvt_ptr[0].z = z - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DParms' in found_struct}} + cdef class cudaMemcpy3DParms: """ @@ -8753,38 +8381,38 @@ cdef class cudaMemcpy3DParms: Attributes ---------- - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + kind : cudaMemcpyKind Type of transfer - {{endif}} + Methods ------- @@ -8798,27 +8426,27 @@ cdef class cudaMemcpy3DParms: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + self._srcArray = cudaArray_t(_ptr=&self._pvt_ptr[0].srcArray) - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + self._srcPos = cudaPos(_ptr=&self._pvt_ptr[0].srcPos) - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + self._srcPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].srcPtr) - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + self._dstArray = cudaArray_t(_ptr=&self._pvt_ptr[0].dstArray) - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + self._dstPos = cudaPos(_ptr=&self._pvt_ptr[0].dstPos) - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + self._dstPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].dstPtr) - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -8826,58 +8454,58 @@ cdef class cudaMemcpy3DParms: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + try: str_list += ['srcArray : ' + str(self.srcArray)] except ValueError: str_list += ['srcArray : '] - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + try: str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] except ValueError: str_list += ['srcPos : '] - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + try: str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] except ValueError: str_list += ['srcPtr : '] - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + try: str_list += ['dstArray : ' + str(self.dstArray)] except ValueError: str_list += ['dstArray : '] - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + try: str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] except ValueError: str_list += ['dstPos : '] - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + try: str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] except ValueError: str_list += ['dstPtr : '] - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + try: str_list += ['kind : ' + str(self.kind)] except ValueError: str_list += ['kind : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DParms.srcArray' in found_struct}} + @property def srcArray(self): return self._srcArray @@ -8893,24 +8521,24 @@ cdef class cudaMemcpy3DParms: psrcArray = int(cudaArray_t(srcArray)) cysrcArray = psrcArray self._srcArray._pvt_ptr[0] = cysrcArray - {{endif}} - {{if 'cudaMemcpy3DParms.srcPos' in found_struct}} + + @property def srcPos(self): return self._srcPos @srcPos.setter def srcPos(self, srcPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].srcPos, srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos)) - {{endif}} - {{if 'cudaMemcpy3DParms.srcPtr' in found_struct}} + + @property def srcPtr(self): return self._srcPtr @srcPtr.setter def srcPtr(self, srcPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr)) - {{endif}} - {{if 'cudaMemcpy3DParms.dstArray' in found_struct}} + + @property def dstArray(self): return self._dstArray @@ -8926,41 +8554,39 @@ cdef class cudaMemcpy3DParms: pdstArray = int(cudaArray_t(dstArray)) cydstArray = pdstArray self._dstArray._pvt_ptr[0] = cydstArray - {{endif}} - {{if 'cudaMemcpy3DParms.dstPos' in found_struct}} + + @property def dstPos(self): return self._dstPos @dstPos.setter def dstPos(self, dstPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].dstPos, dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos)) - {{endif}} - {{if 'cudaMemcpy3DParms.dstPtr' in found_struct}} + + @property def dstPtr(self): return self._dstPtr @dstPtr.setter def dstPtr(self, dstPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr)) - {{endif}} - {{if 'cudaMemcpy3DParms.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} - {{if 'cudaMemcpy3DParms.kind' in found_struct}} + + @property def kind(self): return cudaMemcpyKind(self._pvt_ptr[0].kind) @kind.setter def kind(self, kind not None : cudaMemcpyKind): - self._pvt_ptr[0].kind = int(kind) - {{endif}} -{{endif}} -{{if 'cudaMemcpyNodeParams' in found_struct}} + self._pvt_ptr[0].kind = int(kind) + cdef class cudaMemcpyNodeParams: """ @@ -8968,23 +8594,23 @@ cdef class cudaMemcpyNodeParams: Attributes ---------- - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + flags : int Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} + + reserved : int Must be zero - {{endif}} - {{if 'cudaMemcpyNodeParams.ctx' in found_struct}} + + ctx : cudaExecutionContext_t Context in which to run the memcpy. If NULL will try to use the current context. - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + copyParams : cudaMemcpy3DParms Parameters for the memory copy - {{endif}} + Methods ------- @@ -8998,12 +8624,12 @@ cdef class cudaMemcpyNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemcpyNodeParams.ctx' in found_struct}} + self._ctx = cudaExecutionContext_t(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + self._copyParams = cudaMemcpy3DParms(_ptr=&self._pvt_ptr[0].copyParams) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -9011,50 +8637,50 @@ cdef class cudaMemcpyNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} - {{if 'cudaMemcpyNodeParams.ctx' in found_struct}} + + try: str_list += ['ctx : ' + str(self.ctx)] except ValueError: str_list += ['ctx : '] - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + try: str_list += ['copyParams :\n' + '\n'.join([' ' + line for line in str(self.copyParams).splitlines()])] except ValueError: str_list += ['copyParams : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpyNodeParams.flags' in found_struct}} + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaMemcpyNodeParams.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, int reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} - {{if 'cudaMemcpyNodeParams.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -9070,17 +8696,15 @@ cdef class cudaMemcpyNodeParams: pctx = int(cudaExecutionContext_t(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} - {{if 'cudaMemcpyNodeParams.copyParams' in found_struct}} + + @property def copyParams(self): return self._copyParams @copyParams.setter def copyParams(self, copyParams not None : cudaMemcpy3DParms): string.memcpy(&self._pvt_ptr[0].copyParams, copyParams.getPtr(), sizeof(self._pvt_ptr[0].copyParams)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DPeerParms' in found_struct}} + cdef class cudaMemcpy3DPeerParms: """ @@ -9088,42 +8712,42 @@ cdef class cudaMemcpy3DPeerParms: Attributes ---------- - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + srcArray : cudaArray_t Source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + srcPos : cudaPos Source position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + srcPtr : cudaPitchedPtr Pitched source memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + srcDevice : int Source device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + dstArray : cudaArray_t Destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + dstPos : cudaPos Destination position offset - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + dstPtr : cudaPitchedPtr Pitched destination memory address - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + dstDevice : int Destination device - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + extent : cudaExtent Requested memory copy size - {{endif}} + Methods ------- @@ -9137,27 +8761,27 @@ cdef class cudaMemcpy3DPeerParms: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + self._srcArray = cudaArray_t(_ptr=&self._pvt_ptr[0].srcArray) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + self._srcPos = cudaPos(_ptr=&self._pvt_ptr[0].srcPos) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + self._srcPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].srcPtr) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + self._dstArray = cudaArray_t(_ptr=&self._pvt_ptr[0].dstArray) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + self._dstPos = cudaPos(_ptr=&self._pvt_ptr[0].dstPos) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + self._dstPtr = cudaPitchedPtr(_ptr=&self._pvt_ptr[0].dstPtr) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -9165,64 +8789,64 @@ cdef class cudaMemcpy3DPeerParms: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + try: str_list += ['srcArray : ' + str(self.srcArray)] except ValueError: str_list += ['srcArray : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + try: str_list += ['srcPos :\n' + '\n'.join([' ' + line for line in str(self.srcPos).splitlines()])] except ValueError: str_list += ['srcPos : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + try: str_list += ['srcPtr :\n' + '\n'.join([' ' + line for line in str(self.srcPtr).splitlines()])] except ValueError: str_list += ['srcPtr : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + try: str_list += ['srcDevice : ' + str(self.srcDevice)] except ValueError: str_list += ['srcDevice : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + try: str_list += ['dstArray : ' + str(self.dstArray)] except ValueError: str_list += ['dstArray : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + try: str_list += ['dstPos :\n' + '\n'.join([' ' + line for line in str(self.dstPos).splitlines()])] except ValueError: str_list += ['dstPos : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + try: str_list += ['dstPtr :\n' + '\n'.join([' ' + line for line in str(self.dstPtr).splitlines()])] except ValueError: str_list += ['dstPtr : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + try: str_list += ['dstDevice : ' + str(self.dstDevice)] except ValueError: str_list += ['dstDevice : '] - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DPeerParms.srcArray' in found_struct}} + @property def srcArray(self): return self._srcArray @@ -9238,32 +8862,32 @@ cdef class cudaMemcpy3DPeerParms: psrcArray = int(cudaArray_t(srcArray)) cysrcArray = psrcArray self._srcArray._pvt_ptr[0] = cysrcArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPos' in found_struct}} + + @property def srcPos(self): return self._srcPos @srcPos.setter def srcPos(self, srcPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].srcPos, srcPos.getPtr(), sizeof(self._pvt_ptr[0].srcPos)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcPtr' in found_struct}} + + @property def srcPtr(self): return self._srcPtr @srcPtr.setter def srcPtr(self, srcPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].srcPtr, srcPtr.getPtr(), sizeof(self._pvt_ptr[0].srcPtr)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.srcDevice' in found_struct}} + + @property def srcDevice(self): return self._pvt_ptr[0].srcDevice @srcDevice.setter def srcDevice(self, int srcDevice): self._pvt_ptr[0].srcDevice = srcDevice - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstArray' in found_struct}} + + @property def dstArray(self): return self._dstArray @@ -9279,41 +8903,39 @@ cdef class cudaMemcpy3DPeerParms: pdstArray = int(cudaArray_t(dstArray)) cydstArray = pdstArray self._dstArray._pvt_ptr[0] = cydstArray - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPos' in found_struct}} + + @property def dstPos(self): return self._dstPos @dstPos.setter def dstPos(self, dstPos not None : cudaPos): string.memcpy(&self._pvt_ptr[0].dstPos, dstPos.getPtr(), sizeof(self._pvt_ptr[0].dstPos)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstPtr' in found_struct}} + + @property def dstPtr(self): return self._dstPtr @dstPtr.setter def dstPtr(self, dstPtr not None : cudaPitchedPtr): string.memcpy(&self._pvt_ptr[0].dstPtr, dstPtr.getPtr(), sizeof(self._pvt_ptr[0].dstPtr)) - {{endif}} - {{if 'cudaMemcpy3DPeerParms.dstDevice' in found_struct}} + + @property def dstDevice(self): return self._pvt_ptr[0].dstDevice @dstDevice.setter def dstDevice(self, int dstDevice): self._pvt_ptr[0].dstDevice = dstDevice - {{endif}} - {{if 'cudaMemcpy3DPeerParms.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} -{{endif}} -{{if 'cudaMemsetParams' in found_struct}} + cdef class cudaMemsetParams: """ @@ -9321,30 +8943,30 @@ cdef class cudaMemsetParams: Attributes ---------- - {{if 'cudaMemsetParams.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + height : size_t Number of rows - {{endif}} + Methods ------- @@ -9365,46 +8987,46 @@ cdef class cudaMemsetParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemsetParams.dst' in found_struct}} + try: str_list += ['dst : ' + hex(self.dst)] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + try: str_list += ['elementSize : ' + str(self.elementSize)] except ValueError: str_list += ['elementSize : '] - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemsetParams.dst' in found_struct}} + @property def dst(self): return self._pvt_ptr[0].dst @@ -9412,49 +9034,47 @@ cdef class cudaMemsetParams: def dst(self, dst): self._cydst = _HelperInputVoidPtr(dst) self._pvt_ptr[0].dst = self._cydst.cptr - {{endif}} - {{if 'cudaMemsetParams.pitch' in found_struct}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, size_t pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if 'cudaMemsetParams.value' in found_struct}} + + @property def value(self): return self._pvt_ptr[0].value @value.setter def value(self, unsigned int value): self._pvt_ptr[0].value = value - {{endif}} - {{if 'cudaMemsetParams.elementSize' in found_struct}} + + @property def elementSize(self): return self._pvt_ptr[0].elementSize @elementSize.setter def elementSize(self, unsigned int elementSize): self._pvt_ptr[0].elementSize = elementSize - {{endif}} - {{if 'cudaMemsetParams.width' in found_struct}} + + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaMemsetParams.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} -{{endif}} -{{if 'cudaMemsetParamsV2' in found_struct}} + cdef class cudaMemsetParamsV2: """ @@ -9462,35 +9082,35 @@ cdef class cudaMemsetParamsV2: Attributes ---------- - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + dst : Any Destination device pointer - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + pitch : size_t Pitch of destination device pointer. Unused if height is 1 - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + value : unsigned int Value to be set - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + elementSize : unsigned int Size of each element in bytes. Must be 1, 2, or 4. - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + width : size_t Width of the row in elements - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + height : size_t Number of rows - {{endif}} - {{if 'cudaMemsetParamsV2.ctx' in found_struct}} + + ctx : cudaExecutionContext_t Context in which to run the memset. If NULL will try to use the current context. - {{endif}} + Methods ------- @@ -9504,9 +9124,9 @@ cdef class cudaMemsetParamsV2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemsetParamsV2.ctx' in found_struct}} + self._ctx = cudaExecutionContext_t(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -9514,52 +9134,52 @@ cdef class cudaMemsetParamsV2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + try: str_list += ['dst : ' + hex(self.dst)] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + try: str_list += ['elementSize : ' + str(self.elementSize)] except ValueError: str_list += ['elementSize : '] - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaMemsetParamsV2.ctx' in found_struct}} + + try: str_list += ['ctx : ' + str(self.ctx)] except ValueError: str_list += ['ctx : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemsetParamsV2.dst' in found_struct}} + @property def dst(self): return self._pvt_ptr[0].dst @@ -9567,48 +9187,48 @@ cdef class cudaMemsetParamsV2: def dst(self, dst): self._cydst = _HelperInputVoidPtr(dst) self._pvt_ptr[0].dst = self._cydst.cptr - {{endif}} - {{if 'cudaMemsetParamsV2.pitch' in found_struct}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, size_t pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if 'cudaMemsetParamsV2.value' in found_struct}} + + @property def value(self): return self._pvt_ptr[0].value @value.setter def value(self, unsigned int value): self._pvt_ptr[0].value = value - {{endif}} - {{if 'cudaMemsetParamsV2.elementSize' in found_struct}} + + @property def elementSize(self): return self._pvt_ptr[0].elementSize @elementSize.setter def elementSize(self, unsigned int elementSize): self._pvt_ptr[0].elementSize = elementSize - {{endif}} - {{if 'cudaMemsetParamsV2.width' in found_struct}} + + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaMemsetParamsV2.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} - {{if 'cudaMemsetParamsV2.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -9624,9 +9244,7 @@ cdef class cudaMemsetParamsV2: pctx = int(cudaExecutionContext_t(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} -{{endif}} -{{if 'cudaAccessPolicyWindow' in found_struct}} + cdef class cudaAccessPolicyWindow: """ @@ -9641,30 +9259,30 @@ cdef class cudaAccessPolicyWindow: Attributes ---------- - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + base_ptr : Any Starting address of the access policy window. CUDA driver may align it. - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + num_bytes : size_t Size in bytes of the window policy. CUDA driver may restrict the maximum size and alignment. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + hitRatio : float hitRatio specifies percentage of lines assigned hitProp, rest are assigned missProp. - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + hitProp : cudaAccessProperty ::CUaccessProperty set for hit. - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + + missProp : cudaAccessProperty ::CUaccessProperty set for miss. Must be either NORMAL or STREAMING. - {{endif}} + Methods ------- @@ -9685,40 +9303,40 @@ cdef class cudaAccessPolicyWindow: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + try: str_list += ['base_ptr : ' + hex(self.base_ptr)] except ValueError: str_list += ['base_ptr : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + try: str_list += ['num_bytes : ' + str(self.num_bytes)] except ValueError: str_list += ['num_bytes : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + try: str_list += ['hitRatio : ' + str(self.hitRatio)] except ValueError: str_list += ['hitRatio : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + try: str_list += ['hitProp : ' + str(self.hitProp)] except ValueError: str_list += ['hitProp : '] - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + + try: str_list += ['missProp : ' + str(self.missProp)] except ValueError: str_list += ['missProp : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAccessPolicyWindow.base_ptr' in found_struct}} + @property def base_ptr(self): return self._pvt_ptr[0].base_ptr @@ -9726,41 +9344,39 @@ cdef class cudaAccessPolicyWindow: def base_ptr(self, base_ptr): self._cybase_ptr = _HelperInputVoidPtr(base_ptr) self._pvt_ptr[0].base_ptr = self._cybase_ptr.cptr - {{endif}} - {{if 'cudaAccessPolicyWindow.num_bytes' in found_struct}} + + @property def num_bytes(self): return self._pvt_ptr[0].num_bytes @num_bytes.setter def num_bytes(self, size_t num_bytes): self._pvt_ptr[0].num_bytes = num_bytes - {{endif}} - {{if 'cudaAccessPolicyWindow.hitRatio' in found_struct}} + + @property def hitRatio(self): return self._pvt_ptr[0].hitRatio @hitRatio.setter def hitRatio(self, float hitRatio): self._pvt_ptr[0].hitRatio = hitRatio - {{endif}} - {{if 'cudaAccessPolicyWindow.hitProp' in found_struct}} + + @property def hitProp(self): return cudaAccessProperty(self._pvt_ptr[0].hitProp) @hitProp.setter def hitProp(self, hitProp not None : cudaAccessProperty): - self._pvt_ptr[0].hitProp = int(hitProp) - {{endif}} - {{if 'cudaAccessPolicyWindow.missProp' in found_struct}} + self._pvt_ptr[0].hitProp = int(hitProp) + + @property def missProp(self): return cudaAccessProperty(self._pvt_ptr[0].missProp) @missProp.setter def missProp(self, missProp not None : cudaAccessProperty): - self._pvt_ptr[0].missProp = int(missProp) - {{endif}} -{{endif}} -{{if 'cudaHostNodeParams' in found_struct}} + self._pvt_ptr[0].missProp = int(missProp) + cdef class cudaHostNodeParams: """ @@ -9768,14 +9384,14 @@ cdef class cudaHostNodeParams: Attributes ---------- - {{if 'cudaHostNodeParams.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} + Methods ------- @@ -9789,9 +9405,9 @@ cdef class cudaHostNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaHostNodeParams.fn' in found_struct}} + self._fn = cudaHostFn_t(_ptr=&self._pvt_ptr[0].fn) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -9799,22 +9415,22 @@ cdef class cudaHostNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaHostNodeParams.fn' in found_struct}} + try: str_list += ['fn : ' + str(self.fn)] except ValueError: str_list += ['fn : '] - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + try: str_list += ['userData : ' + hex(self.userData)] except ValueError: str_list += ['userData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaHostNodeParams.fn' in found_struct}} + @property def fn(self): return self._fn @@ -9830,8 +9446,8 @@ cdef class cudaHostNodeParams: pfn = int(cudaHostFn_t(fn)) cyfn = pfn self._fn._pvt_ptr[0] = cyfn - {{endif}} - {{if 'cudaHostNodeParams.userData' in found_struct}} + + @property def userData(self): return self._pvt_ptr[0].userData @@ -9839,9 +9455,7 @@ cdef class cudaHostNodeParams: def userData(self, userData): self._cyuserData = _HelperInputVoidPtr(userData) self._pvt_ptr[0].userData = self._cyuserData.cptr - {{endif}} -{{endif}} -{{if 'cudaHostNodeParamsV2' in found_struct}} + cdef class cudaHostNodeParamsV2: """ @@ -9849,18 +9463,18 @@ cdef class cudaHostNodeParamsV2: Attributes ---------- - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + fn : cudaHostFn_t The function to call when the node executes - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + userData : Any Argument to pass to the function - {{endif}} - {{if 'cudaHostNodeParamsV2.syncMode' in found_struct}} + + syncMode : unsigned int The synchronization mode to use for the host task - {{endif}} + Methods ------- @@ -9874,9 +9488,9 @@ cdef class cudaHostNodeParamsV2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + self._fn = cudaHostFn_t(_ptr=&self._pvt_ptr[0].fn) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -9884,28 +9498,28 @@ cdef class cudaHostNodeParamsV2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + try: str_list += ['fn : ' + str(self.fn)] except ValueError: str_list += ['fn : '] - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + try: str_list += ['userData : ' + hex(self.userData)] except ValueError: str_list += ['userData : '] - {{endif}} - {{if 'cudaHostNodeParamsV2.syncMode' in found_struct}} + + try: str_list += ['syncMode : ' + str(self.syncMode)] except ValueError: str_list += ['syncMode : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaHostNodeParamsV2.fn' in found_struct}} + @property def fn(self): return self._fn @@ -9921,8 +9535,8 @@ cdef class cudaHostNodeParamsV2: pfn = int(cudaHostFn_t(fn)) cyfn = pfn self._fn._pvt_ptr[0] = cyfn - {{endif}} - {{if 'cudaHostNodeParamsV2.userData' in found_struct}} + + @property def userData(self): return self._pvt_ptr[0].userData @@ -9930,26 +9544,24 @@ cdef class cudaHostNodeParamsV2: def userData(self, userData): self._cyuserData = _HelperInputVoidPtr(userData) self._pvt_ptr[0].userData = self._cyuserData.cptr - {{endif}} - {{if 'cudaHostNodeParamsV2.syncMode' in found_struct}} + + @property def syncMode(self): return self._pvt_ptr[0].syncMode @syncMode.setter def syncMode(self, unsigned int syncMode): self._pvt_ptr[0].syncMode = syncMode - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.array' in found_struct}} + cdef class anon_struct1: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + array : cudaArray_t - {{endif}} + Methods ------- @@ -9961,9 +9573,9 @@ cdef class anon_struct1: def __init__(self, void_ptr _ptr): pass - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + self._array = cudaArray_t(_ptr=&self._pvt_ptr[0].res.array.array) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -9971,16 +9583,16 @@ cdef class anon_struct1: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + try: str_list += ['array : ' + str(self.array)] except ValueError: str_list += ['array : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.array.array' in found_struct}} + @property def array(self): return self._array @@ -9996,18 +9608,16 @@ cdef class anon_struct1: parray = int(cudaArray_t(array)) cyarray = parray self._array._pvt_ptr[0] = cyarray - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.mipmap' in found_struct}} + cdef class anon_struct2: """ Attributes ---------- - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + mipmap : cudaMipmappedArray_t - {{endif}} + Methods ------- @@ -10019,9 +9629,9 @@ cdef class anon_struct2: def __init__(self, void_ptr _ptr): pass - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + self._mipmap = cudaMipmappedArray_t(_ptr=&self._pvt_ptr[0].res.mipmap.mipmap) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10029,16 +9639,16 @@ cdef class anon_struct2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + try: str_list += ['mipmap : ' + str(self.mipmap)] except ValueError: str_list += ['mipmap : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.mipmap.mipmap' in found_struct}} + @property def mipmap(self): return self._mipmap @@ -10054,26 +9664,24 @@ cdef class anon_struct2: pmipmap = int(cudaMipmappedArray_t(mipmap)) cymipmap = pmipmap self._mipmap._pvt_ptr[0] = cymipmap - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.linear' in found_struct}} + cdef class anon_struct3: """ Attributes ---------- - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + sizeInBytes : size_t - {{endif}} + Methods ------- @@ -10085,9 +9693,9 @@ cdef class anon_struct3: def __init__(self, void_ptr _ptr): pass - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + self._desc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].res.linear.desc) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10095,28 +9703,28 @@ cdef class anon_struct3: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + try: str_list += ['devPtr : ' + hex(self.devPtr)] except ValueError: str_list += ['devPtr : '] - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + try: str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] except ValueError: str_list += ['desc : '] - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + try: str_list += ['sizeInBytes : ' + str(self.sizeInBytes)] except ValueError: str_list += ['sizeInBytes : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.linear.devPtr' in found_struct}} + @property def devPtr(self): return self._pvt_ptr[0].res.linear.devPtr @@ -10124,50 +9732,48 @@ cdef class anon_struct3: def devPtr(self, devPtr): self._cydevPtr = _HelperInputVoidPtr(devPtr) self._pvt_ptr[0].res.linear.devPtr = self._cydevPtr.cptr - {{endif}} - {{if 'cudaResourceDesc.res.linear.desc' in found_struct}} + + @property def desc(self): return self._desc @desc.setter def desc(self, desc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].res.linear.desc, desc.getPtr(), sizeof(self._pvt_ptr[0].res.linear.desc)) - {{endif}} - {{if 'cudaResourceDesc.res.linear.sizeInBytes' in found_struct}} + + @property def sizeInBytes(self): return self._pvt_ptr[0].res.linear.sizeInBytes @sizeInBytes.setter def sizeInBytes(self, size_t sizeInBytes): self._pvt_ptr[0].res.linear.sizeInBytes = sizeInBytes - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + cdef class anon_struct4: """ Attributes ---------- - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + devPtr : Any - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + desc : cudaChannelFormatDesc - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + width : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + height : size_t - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + pitchInBytes : size_t - {{endif}} + Methods ------- @@ -10179,9 +9785,9 @@ cdef class anon_struct4: def __init__(self, void_ptr _ptr): pass - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + self._desc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].res.pitch2D.desc) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10189,40 +9795,40 @@ cdef class anon_struct4: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + try: str_list += ['devPtr : ' + hex(self.devPtr)] except ValueError: str_list += ['devPtr : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + try: str_list += ['desc :\n' + '\n'.join([' ' + line for line in str(self.desc).splitlines()])] except ValueError: str_list += ['desc : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + try: str_list += ['pitchInBytes : ' + str(self.pitchInBytes)] except ValueError: str_list += ['pitchInBytes : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.pitch2D.devPtr' in found_struct}} + @property def devPtr(self): return self._pvt_ptr[0].res.pitch2D.devPtr @@ -10230,50 +9836,48 @@ cdef class anon_struct4: def devPtr(self, devPtr): self._cydevPtr = _HelperInputVoidPtr(devPtr) self._pvt_ptr[0].res.pitch2D.devPtr = self._cydevPtr.cptr - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.desc' in found_struct}} + + @property def desc(self): return self._desc @desc.setter def desc(self, desc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].res.pitch2D.desc, desc.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D.desc)) - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.width' in found_struct}} + + @property def width(self): return self._pvt_ptr[0].res.pitch2D.width @width.setter def width(self, size_t width): self._pvt_ptr[0].res.pitch2D.width = width - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].res.pitch2D.height @height.setter def height(self, size_t height): self._pvt_ptr[0].res.pitch2D.height = height - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D.pitchInBytes' in found_struct}} + + @property def pitchInBytes(self): return self._pvt_ptr[0].res.pitch2D.pitchInBytes @pitchInBytes.setter def pitchInBytes(self, size_t pitchInBytes): self._pvt_ptr[0].res.pitch2D.pitchInBytes = pitchInBytes - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res.reserved' in found_struct}} + cdef class anon_struct5: """ Attributes ---------- - {{if 'cudaResourceDesc.res.reserved.reserved' in found_struct}} + reserved : list[int] - {{endif}} + Methods ------- @@ -10292,50 +9896,48 @@ cdef class anon_struct5: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.reserved.reserved' in found_struct}} + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.reserved.reserved' in found_struct}} + @property def reserved(self): return self._pvt_ptr[0].res.reserved.reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].res.reserved.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaResourceDesc.res' in found_struct}} + cdef class anon_union0: """ Attributes ---------- - {{if 'cudaResourceDesc.res.array' in found_struct}} + array : anon_struct1 - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + mipmap : anon_struct2 - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + linear : anon_struct3 - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + pitch2D : anon_struct4 - {{endif}} - {{if 'cudaResourceDesc.res.reserved' in found_struct}} + + reserved : anon_struct5 - {{endif}} + Methods ------- @@ -10347,21 +9949,21 @@ cdef class anon_union0: def __init__(self, void_ptr _ptr): pass - {{if 'cudaResourceDesc.res.array' in found_struct}} + self._array = anon_struct1(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + self._mipmap = anon_struct2(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + self._linear = anon_struct3(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + self._pitch2D = anon_struct4(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaResourceDesc.res.reserved' in found_struct}} + + self._reserved = anon_struct5(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -10369,81 +9971,79 @@ cdef class anon_union0: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.res.array' in found_struct}} + try: str_list += ['array :\n' + '\n'.join([' ' + line for line in str(self.array).splitlines()])] except ValueError: str_list += ['array : '] - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + try: str_list += ['mipmap :\n' + '\n'.join([' ' + line for line in str(self.mipmap).splitlines()])] except ValueError: str_list += ['mipmap : '] - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + try: str_list += ['linear :\n' + '\n'.join([' ' + line for line in str(self.linear).splitlines()])] except ValueError: str_list += ['linear : '] - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + try: str_list += ['pitch2D :\n' + '\n'.join([' ' + line for line in str(self.pitch2D).splitlines()])] except ValueError: str_list += ['pitch2D : '] - {{endif}} - {{if 'cudaResourceDesc.res.reserved' in found_struct}} + + try: str_list += ['reserved :\n' + '\n'.join([' ' + line for line in str(self.reserved).splitlines()])] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.res.array' in found_struct}} + @property def array(self): return self._array @array.setter def array(self, array not None : anon_struct1): string.memcpy(&self._pvt_ptr[0].res.array, array.getPtr(), sizeof(self._pvt_ptr[0].res.array)) - {{endif}} - {{if 'cudaResourceDesc.res.mipmap' in found_struct}} + + @property def mipmap(self): return self._mipmap @mipmap.setter def mipmap(self, mipmap not None : anon_struct2): string.memcpy(&self._pvt_ptr[0].res.mipmap, mipmap.getPtr(), sizeof(self._pvt_ptr[0].res.mipmap)) - {{endif}} - {{if 'cudaResourceDesc.res.linear' in found_struct}} + + @property def linear(self): return self._linear @linear.setter def linear(self, linear not None : anon_struct3): string.memcpy(&self._pvt_ptr[0].res.linear, linear.getPtr(), sizeof(self._pvt_ptr[0].res.linear)) - {{endif}} - {{if 'cudaResourceDesc.res.pitch2D' in found_struct}} + + @property def pitch2D(self): return self._pitch2D @pitch2D.setter def pitch2D(self, pitch2D not None : anon_struct4): string.memcpy(&self._pvt_ptr[0].res.pitch2D, pitch2D.getPtr(), sizeof(self._pvt_ptr[0].res.pitch2D)) - {{endif}} - {{if 'cudaResourceDesc.res.reserved' in found_struct}} + + @property def reserved(self): return self._reserved @reserved.setter def reserved(self, reserved not None : anon_struct5): string.memcpy(&self._pvt_ptr[0].res.reserved, reserved.getPtr(), sizeof(self._pvt_ptr[0].res.reserved)) - {{endif}} -{{endif}} -{{if 'cudaResourceDesc' in found_struct}} + cdef class cudaResourceDesc: """ @@ -10451,18 +10051,18 @@ cdef class cudaResourceDesc: Attributes ---------- - {{if 'cudaResourceDesc.resType' in found_struct}} + resType : cudaResourceType Resource type - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + + res : anon_union0 - {{endif}} - {{if 'cudaResourceDesc.flags' in found_struct}} + + flags : unsigned int Flags (must be zero) - {{endif}} + Methods ------- @@ -10477,9 +10077,9 @@ cdef class cudaResourceDesc: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaResourceDesc.res' in found_struct}} + self._res = anon_union0(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -10488,53 +10088,51 @@ cdef class cudaResourceDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceDesc.resType' in found_struct}} + try: str_list += ['resType : ' + str(self.resType)] except ValueError: str_list += ['resType : '] - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + + try: str_list += ['res :\n' + '\n'.join([' ' + line for line in str(self.res).splitlines()])] except ValueError: str_list += ['res : '] - {{endif}} - {{if 'cudaResourceDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceDesc.resType' in found_struct}} + @property def resType(self): return cudaResourceType(self._pvt_ptr[0].resType) @resType.setter def resType(self, resType not None : cudaResourceType): - self._pvt_ptr[0].resType = int(resType) - {{endif}} - {{if 'cudaResourceDesc.res' in found_struct}} + self._pvt_ptr[0].resType = int(resType) + + @property def res(self): return self._res @res.setter def res(self, res not None : anon_union0): string.memcpy(&self._pvt_ptr[0].res, res.getPtr(), sizeof(self._pvt_ptr[0].res)) - {{endif}} - {{if 'cudaResourceDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'cudaResourceViewDesc' in found_struct}} + cdef class cudaResourceViewDesc: """ @@ -10542,42 +10140,42 @@ cdef class cudaResourceViewDesc: Attributes ---------- - {{if 'cudaResourceViewDesc.format' in found_struct}} + format : cudaResourceViewFormat Resource view format - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + + width : size_t Width of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + height : size_t Height of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + depth : size_t Depth of the resource view - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + firstMipmapLevel : unsigned int First defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + lastMipmapLevel : unsigned int Last defined mipmap level - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + firstLayer : unsigned int First layer index - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + lastLayer : unsigned int Last layer index - {{endif}} - {{if 'cudaResourceViewDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -10598,137 +10196,135 @@ cdef class cudaResourceViewDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaResourceViewDesc.format' in found_struct}} + try: str_list += ['format : ' + str(self.format)] except ValueError: str_list += ['format : '] - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + try: str_list += ['firstMipmapLevel : ' + str(self.firstMipmapLevel)] except ValueError: str_list += ['firstMipmapLevel : '] - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + try: str_list += ['lastMipmapLevel : ' + str(self.lastMipmapLevel)] except ValueError: str_list += ['lastMipmapLevel : '] - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + try: str_list += ['firstLayer : ' + str(self.firstLayer)] except ValueError: str_list += ['firstLayer : '] - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + try: str_list += ['lastLayer : ' + str(self.lastLayer)] except ValueError: str_list += ['lastLayer : '] - {{endif}} - {{if 'cudaResourceViewDesc.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaResourceViewDesc.format' in found_struct}} + @property def format(self): return cudaResourceViewFormat(self._pvt_ptr[0].format) @format.setter def format(self, format not None : cudaResourceViewFormat): - self._pvt_ptr[0].format = int(format) - {{endif}} - {{if 'cudaResourceViewDesc.width' in found_struct}} + self._pvt_ptr[0].format = int(format) + + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, size_t width): self._pvt_ptr[0].width = width - {{endif}} - {{if 'cudaResourceViewDesc.height' in found_struct}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, size_t height): self._pvt_ptr[0].height = height - {{endif}} - {{if 'cudaResourceViewDesc.depth' in found_struct}} + + @property def depth(self): return self._pvt_ptr[0].depth @depth.setter def depth(self, size_t depth): self._pvt_ptr[0].depth = depth - {{endif}} - {{if 'cudaResourceViewDesc.firstMipmapLevel' in found_struct}} + + @property def firstMipmapLevel(self): return self._pvt_ptr[0].firstMipmapLevel @firstMipmapLevel.setter def firstMipmapLevel(self, unsigned int firstMipmapLevel): self._pvt_ptr[0].firstMipmapLevel = firstMipmapLevel - {{endif}} - {{if 'cudaResourceViewDesc.lastMipmapLevel' in found_struct}} + + @property def lastMipmapLevel(self): return self._pvt_ptr[0].lastMipmapLevel @lastMipmapLevel.setter def lastMipmapLevel(self, unsigned int lastMipmapLevel): self._pvt_ptr[0].lastMipmapLevel = lastMipmapLevel - {{endif}} - {{if 'cudaResourceViewDesc.firstLayer' in found_struct}} + + @property def firstLayer(self): return self._pvt_ptr[0].firstLayer @firstLayer.setter def firstLayer(self, unsigned int firstLayer): self._pvt_ptr[0].firstLayer = firstLayer - {{endif}} - {{if 'cudaResourceViewDesc.lastLayer' in found_struct}} + + @property def lastLayer(self): return self._pvt_ptr[0].lastLayer @lastLayer.setter def lastLayer(self, unsigned int lastLayer): self._pvt_ptr[0].lastLayer = lastLayer - {{endif}} - {{if 'cudaResourceViewDesc.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaPointerAttributes' in found_struct}} + cdef class cudaPointerAttributes: """ @@ -10736,12 +10332,12 @@ cdef class cudaPointerAttributes: Attributes ---------- - {{if 'cudaPointerAttributes.type' in found_struct}} + type : cudaMemoryType The type of memory - cudaMemoryTypeUnregistered, cudaMemoryTypeHost, cudaMemoryTypeDevice or cudaMemoryTypeManaged. - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + + device : int The device against which the memory was allocated or registered. If the memory type is cudaMemoryTypeDevice then this identifies the @@ -10750,23 +10346,23 @@ cdef class cudaPointerAttributes: this identifies the device which was current when the memory was allocated or registered (and if that device is deinitialized then this allocation will vanish with that device's state). - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + devicePointer : Any The address which may be dereferenced on the current device to access the memory or NULL if no such address exists. - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + hostPointer : Any The address which may be dereferenced on the host to access the memory or NULL if no such address exists. CUDA doesn't check if unregistered memory is allocated so this field may contain invalid pointer if an invalid pointer has been passed to CUDA. - {{endif}} - {{if 'cudaPointerAttributes.reserved' in found_struct}} + + reserved : list[long] Must be zero - {{endif}} + Methods ------- @@ -10787,56 +10383,56 @@ cdef class cudaPointerAttributes: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaPointerAttributes.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + + try: str_list += ['device : ' + str(self.device)] except ValueError: str_list += ['device : '] - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + try: str_list += ['devicePointer : ' + hex(self.devicePointer)] except ValueError: str_list += ['devicePointer : '] - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + try: str_list += ['hostPointer : ' + hex(self.hostPointer)] except ValueError: str_list += ['hostPointer : '] - {{endif}} - {{if 'cudaPointerAttributes.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaPointerAttributes.type' in found_struct}} + @property def type(self): return cudaMemoryType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaMemoryType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaPointerAttributes.device' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def device(self): return self._pvt_ptr[0].device @device.setter def device(self, int device): self._pvt_ptr[0].device = device - {{endif}} - {{if 'cudaPointerAttributes.devicePointer' in found_struct}} + + @property def devicePointer(self): return self._pvt_ptr[0].devicePointer @@ -10844,8 +10440,8 @@ cdef class cudaPointerAttributes: def devicePointer(self, devicePointer): self._cydevicePointer = _HelperInputVoidPtr(devicePointer) self._pvt_ptr[0].devicePointer = self._cydevicePointer.cptr - {{endif}} - {{if 'cudaPointerAttributes.hostPointer' in found_struct}} + + @property def hostPointer(self): return self._pvt_ptr[0].hostPointer @@ -10853,17 +10449,15 @@ cdef class cudaPointerAttributes: def hostPointer(self, hostPointer): self._cyhostPointer = _HelperInputVoidPtr(hostPointer) self._pvt_ptr[0].hostPointer = self._cyhostPointer.cptr - {{endif}} - {{if 'cudaPointerAttributes.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaFuncAttributes' in found_struct}} + cdef class cudaFuncAttributes: """ @@ -10871,57 +10465,57 @@ cdef class cudaFuncAttributes: Attributes ---------- - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + sharedSizeBytes : size_t The size in bytes of statically-allocated shared memory per block required by this function. This does not include dynamically- allocated shared memory requested by the user at runtime. - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + constSizeBytes : size_t The size in bytes of user-allocated constant memory required by this function. - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + localSizeBytes : size_t The size in bytes of local memory used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int The maximum number of threads per block, beyond which a launch of the function would fail. This number depends on both the function and the device on which the function is currently loaded. - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + numRegs : int The number of registers used by each thread of this function. - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + ptxVersion : int The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so a PTX version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + binaryVersion : int The binary architecture version for which the function was compiled. This value is the major binary version * 10 + the minor binary version, so a binary version 1.3 function would return the value 13. - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + cacheModeCA : int The attribute to indicate whether the function has been compiled with user specified option "-Xptxas --dlcm=ca" set. - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + maxDynamicSharedSizeBytes : int The maximum size in bytes of dynamic shared memory per block for this function. Any launch must have a dynamic shared memory size smaller than this value. - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + preferredShmemCarveout : int On devices where the L1 cache and shared memory use the same hardware resources, this sets the shared memory carveout @@ -10929,13 +10523,13 @@ cdef class cudaFuncAttributes: cudaDevAttrMaxSharedMemoryPerMultiprocessor. This is only a hint, and the driver can choose a different ratio if required to execute the function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + clusterDimMustBeSet : int If this attribute is set, the kernel must launch with a valid cluster dimension specified. - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + requiredClusterWidth : int The required cluster width/height/depth in blocks. The values must either all be 0 or all be positive. The validity of the cluster @@ -10943,20 +10537,20 @@ cdef class cudaFuncAttributes: set during compile time, it cannot be set at runtime. Setting it at runtime should return cudaErrorNotPermitted. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + requiredClusterHeight : int - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + requiredClusterDepth : int - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : int The block scheduling policy of a function. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + nonPortableClusterSizeAllowed : int Whether the function can be launched with non-portable cluster size. 1 is allowed, 0 is disallowed. A non-portable cluster size @@ -10971,21 +10565,21 @@ cdef class cudaFuncAttributes: compute capabilities. The specific hardware unit may support higher cluster sizes that’s not guaranteed to be portable. See cudaFuncSetAttribute - {{endif}} - {{if 'cudaFuncAttributes.deviceNodeUpdateStatus' in found_struct}} + + deviceNodeUpdateStatus : int Whether the function can be updated on device. 1 means device node update is supported, 0 is unsupported or driver is too old to check the value. - {{endif}} - {{if 'cudaFuncAttributes.reserved1' in found_struct}} + + reserved1 : int - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} + + reserved : list[int] Reserved for future use. - {{endif}} + Methods ------- @@ -11006,277 +10600,275 @@ cdef class cudaFuncAttributes: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + try: str_list += ['sharedSizeBytes : ' + str(self.sharedSizeBytes)] except ValueError: str_list += ['sharedSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + try: str_list += ['constSizeBytes : ' + str(self.constSizeBytes)] except ValueError: str_list += ['constSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + try: str_list += ['localSizeBytes : ' + str(self.localSizeBytes)] except ValueError: str_list += ['localSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + try: str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] except ValueError: str_list += ['maxThreadsPerBlock : '] - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + try: str_list += ['numRegs : ' + str(self.numRegs)] except ValueError: str_list += ['numRegs : '] - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + try: str_list += ['ptxVersion : ' + str(self.ptxVersion)] except ValueError: str_list += ['ptxVersion : '] - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + try: str_list += ['binaryVersion : ' + str(self.binaryVersion)] except ValueError: str_list += ['binaryVersion : '] - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + try: str_list += ['cacheModeCA : ' + str(self.cacheModeCA)] except ValueError: str_list += ['cacheModeCA : '] - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + try: str_list += ['maxDynamicSharedSizeBytes : ' + str(self.maxDynamicSharedSizeBytes)] except ValueError: str_list += ['maxDynamicSharedSizeBytes : '] - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + try: str_list += ['preferredShmemCarveout : ' + str(self.preferredShmemCarveout)] except ValueError: str_list += ['preferredShmemCarveout : '] - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + try: str_list += ['clusterDimMustBeSet : ' + str(self.clusterDimMustBeSet)] except ValueError: str_list += ['clusterDimMustBeSet : '] - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + try: str_list += ['requiredClusterWidth : ' + str(self.requiredClusterWidth)] except ValueError: str_list += ['requiredClusterWidth : '] - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + try: str_list += ['requiredClusterHeight : ' + str(self.requiredClusterHeight)] except ValueError: str_list += ['requiredClusterHeight : '] - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + try: str_list += ['requiredClusterDepth : ' + str(self.requiredClusterDepth)] except ValueError: str_list += ['requiredClusterDepth : '] - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + try: str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] except ValueError: str_list += ['clusterSchedulingPolicyPreference : '] - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + try: str_list += ['nonPortableClusterSizeAllowed : ' + str(self.nonPortableClusterSizeAllowed)] except ValueError: str_list += ['nonPortableClusterSizeAllowed : '] - {{endif}} - {{if 'cudaFuncAttributes.deviceNodeUpdateStatus' in found_struct}} + + try: str_list += ['deviceNodeUpdateStatus : ' + str(self.deviceNodeUpdateStatus)] except ValueError: str_list += ['deviceNodeUpdateStatus : '] - {{endif}} - {{if 'cudaFuncAttributes.reserved1' in found_struct}} + + try: str_list += ['reserved1 : ' + str(self.reserved1)] except ValueError: str_list += ['reserved1 : '] - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaFuncAttributes.sharedSizeBytes' in found_struct}} + @property def sharedSizeBytes(self): return self._pvt_ptr[0].sharedSizeBytes @sharedSizeBytes.setter def sharedSizeBytes(self, size_t sharedSizeBytes): self._pvt_ptr[0].sharedSizeBytes = sharedSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.constSizeBytes' in found_struct}} + + @property def constSizeBytes(self): return self._pvt_ptr[0].constSizeBytes @constSizeBytes.setter def constSizeBytes(self, size_t constSizeBytes): self._pvt_ptr[0].constSizeBytes = constSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.localSizeBytes' in found_struct}} + + @property def localSizeBytes(self): return self._pvt_ptr[0].localSizeBytes @localSizeBytes.setter def localSizeBytes(self, size_t localSizeBytes): self._pvt_ptr[0].localSizeBytes = localSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.maxThreadsPerBlock' in found_struct}} + + @property def maxThreadsPerBlock(self): return self._pvt_ptr[0].maxThreadsPerBlock @maxThreadsPerBlock.setter def maxThreadsPerBlock(self, int maxThreadsPerBlock): self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock - {{endif}} - {{if 'cudaFuncAttributes.numRegs' in found_struct}} + + @property def numRegs(self): return self._pvt_ptr[0].numRegs @numRegs.setter def numRegs(self, int numRegs): self._pvt_ptr[0].numRegs = numRegs - {{endif}} - {{if 'cudaFuncAttributes.ptxVersion' in found_struct}} + + @property def ptxVersion(self): return self._pvt_ptr[0].ptxVersion @ptxVersion.setter def ptxVersion(self, int ptxVersion): self._pvt_ptr[0].ptxVersion = ptxVersion - {{endif}} - {{if 'cudaFuncAttributes.binaryVersion' in found_struct}} + + @property def binaryVersion(self): return self._pvt_ptr[0].binaryVersion @binaryVersion.setter def binaryVersion(self, int binaryVersion): self._pvt_ptr[0].binaryVersion = binaryVersion - {{endif}} - {{if 'cudaFuncAttributes.cacheModeCA' in found_struct}} + + @property def cacheModeCA(self): return self._pvt_ptr[0].cacheModeCA @cacheModeCA.setter def cacheModeCA(self, int cacheModeCA): self._pvt_ptr[0].cacheModeCA = cacheModeCA - {{endif}} - {{if 'cudaFuncAttributes.maxDynamicSharedSizeBytes' in found_struct}} + + @property def maxDynamicSharedSizeBytes(self): return self._pvt_ptr[0].maxDynamicSharedSizeBytes @maxDynamicSharedSizeBytes.setter def maxDynamicSharedSizeBytes(self, int maxDynamicSharedSizeBytes): self._pvt_ptr[0].maxDynamicSharedSizeBytes = maxDynamicSharedSizeBytes - {{endif}} - {{if 'cudaFuncAttributes.preferredShmemCarveout' in found_struct}} + + @property def preferredShmemCarveout(self): return self._pvt_ptr[0].preferredShmemCarveout @preferredShmemCarveout.setter def preferredShmemCarveout(self, int preferredShmemCarveout): self._pvt_ptr[0].preferredShmemCarveout = preferredShmemCarveout - {{endif}} - {{if 'cudaFuncAttributes.clusterDimMustBeSet' in found_struct}} + + @property def clusterDimMustBeSet(self): return self._pvt_ptr[0].clusterDimMustBeSet @clusterDimMustBeSet.setter def clusterDimMustBeSet(self, int clusterDimMustBeSet): self._pvt_ptr[0].clusterDimMustBeSet = clusterDimMustBeSet - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterWidth' in found_struct}} + + @property def requiredClusterWidth(self): return self._pvt_ptr[0].requiredClusterWidth @requiredClusterWidth.setter def requiredClusterWidth(self, int requiredClusterWidth): self._pvt_ptr[0].requiredClusterWidth = requiredClusterWidth - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterHeight' in found_struct}} + + @property def requiredClusterHeight(self): return self._pvt_ptr[0].requiredClusterHeight @requiredClusterHeight.setter def requiredClusterHeight(self, int requiredClusterHeight): self._pvt_ptr[0].requiredClusterHeight = requiredClusterHeight - {{endif}} - {{if 'cudaFuncAttributes.requiredClusterDepth' in found_struct}} + + @property def requiredClusterDepth(self): return self._pvt_ptr[0].requiredClusterDepth @requiredClusterDepth.setter def requiredClusterDepth(self, int requiredClusterDepth): self._pvt_ptr[0].requiredClusterDepth = requiredClusterDepth - {{endif}} - {{if 'cudaFuncAttributes.clusterSchedulingPolicyPreference' in found_struct}} + + @property def clusterSchedulingPolicyPreference(self): return self._pvt_ptr[0].clusterSchedulingPolicyPreference @clusterSchedulingPolicyPreference.setter def clusterSchedulingPolicyPreference(self, int clusterSchedulingPolicyPreference): self._pvt_ptr[0].clusterSchedulingPolicyPreference = clusterSchedulingPolicyPreference - {{endif}} - {{if 'cudaFuncAttributes.nonPortableClusterSizeAllowed' in found_struct}} + + @property def nonPortableClusterSizeAllowed(self): return self._pvt_ptr[0].nonPortableClusterSizeAllowed @nonPortableClusterSizeAllowed.setter def nonPortableClusterSizeAllowed(self, int nonPortableClusterSizeAllowed): self._pvt_ptr[0].nonPortableClusterSizeAllowed = nonPortableClusterSizeAllowed - {{endif}} - {{if 'cudaFuncAttributes.deviceNodeUpdateStatus' in found_struct}} + + @property def deviceNodeUpdateStatus(self): return self._pvt_ptr[0].deviceNodeUpdateStatus @deviceNodeUpdateStatus.setter def deviceNodeUpdateStatus(self, int deviceNodeUpdateStatus): self._pvt_ptr[0].deviceNodeUpdateStatus = deviceNodeUpdateStatus - {{endif}} - {{if 'cudaFuncAttributes.reserved1' in found_struct}} + + @property def reserved1(self): return self._pvt_ptr[0].reserved1 @reserved1.setter def reserved1(self, int reserved1): self._pvt_ptr[0].reserved1 = reserved1 - {{endif}} - {{if 'cudaFuncAttributes.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaMemLocation' in found_struct}} + cdef class cudaMemLocation: """ @@ -11287,16 +10879,16 @@ cdef class cudaMemLocation: Attributes ---------- - {{if 'cudaMemLocation.type' in found_struct}} + type : cudaMemLocationType Specifies the location type, which modifies the meaning of id. - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + + id : int Identifier for cudaMemLocationType::cudaMemLocationTypeDevice, cudaMemLocationType::cudaMemLocationTypeHost, or cudaMemLocationType::cudaMemLocationTypeHostNuma. - {{endif}} + Methods ------- @@ -11319,39 +10911,37 @@ cdef class cudaMemLocation: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemLocation.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + + try: str_list += ['id : ' + str(self.id)] except ValueError: str_list += ['id : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemLocation.type' in found_struct}} + @property def type(self): return cudaMemLocationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaMemLocationType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaMemLocation.id' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def id(self): return self._pvt_ptr[0].id @id.setter def id(self, int id): self._pvt_ptr[0].id = id - {{endif}} -{{endif}} -{{if 'cudaMemAccessDesc' in found_struct}} + cdef class cudaMemAccessDesc: """ @@ -11359,14 +10949,14 @@ cdef class cudaMemAccessDesc: Attributes ---------- - {{if 'cudaMemAccessDesc.location' in found_struct}} + location : cudaMemLocation Location on which the request is to change it's accessibility - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + flags : cudaMemAccessFlags ::CUmemProt accessibility flags to set on the request - {{endif}} + Methods ------- @@ -11380,9 +10970,9 @@ cdef class cudaMemAccessDesc: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemAccessDesc.location' in found_struct}} + self._location = cudaMemLocation(_ptr=&self._pvt_ptr[0].location) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -11390,39 +10980,37 @@ cdef class cudaMemAccessDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemAccessDesc.location' in found_struct}} + try: str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] except ValueError: str_list += ['location : '] - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemAccessDesc.location' in found_struct}} + @property def location(self): return self._location @location.setter def location(self, location not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) - {{endif}} - {{if 'cudaMemAccessDesc.flags' in found_struct}} + + @property def flags(self): return cudaMemAccessFlags(self._pvt_ptr[0].flags) @flags.setter def flags(self, flags not None : cudaMemAccessFlags): - self._pvt_ptr[0].flags = int(flags) - {{endif}} -{{endif}} -{{if 'cudaMemPoolProps' in found_struct}} + self._pvt_ptr[0].flags = int(flags) + cdef class cudaMemPoolProps: """ @@ -11430,40 +11018,40 @@ cdef class cudaMemPoolProps: Attributes ---------- - {{if 'cudaMemPoolProps.allocType' in found_struct}} + allocType : cudaMemAllocationType Allocation type. Currently must be specified as cudaMemAllocationTypePinned - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + + handleTypes : cudaMemAllocationHandleType Handle types that will be supported by allocations from the pool. - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + + location : cudaMemLocation Location allocations should reside. - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + win32SecurityAttributes : Any Windows-specific LPSECURITYATTRIBUTES required when cudaMemHandleTypeWin32 is specified. This security attribute defines the scope of which exported allocations may be tranferred to other processes. In all other cases, this field is required to be zero. - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + maxSize : size_t Maximum pool size. When set to 0, defaults to a system dependent value. - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + usage : unsigned short Bitmask indicating intended usage for the pool. - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} + + reserved : bytes reserved for future use, must be 0 - {{endif}} + Methods ------- @@ -11477,9 +11065,9 @@ cdef class cudaMemPoolProps: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemPoolProps.location' in found_struct}} + self._location = cudaMemLocation(_ptr=&self._pvt_ptr[0].location) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -11487,76 +11075,76 @@ cdef class cudaMemPoolProps: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemPoolProps.allocType' in found_struct}} + try: str_list += ['allocType : ' + str(self.allocType)] except ValueError: str_list += ['allocType : '] - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + + try: str_list += ['handleTypes : ' + str(self.handleTypes)] except ValueError: str_list += ['handleTypes : '] - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + + try: str_list += ['location :\n' + '\n'.join([' ' + line for line in str(self.location).splitlines()])] except ValueError: str_list += ['location : '] - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + try: str_list += ['win32SecurityAttributes : ' + hex(self.win32SecurityAttributes)] except ValueError: str_list += ['win32SecurityAttributes : '] - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + try: str_list += ['maxSize : ' + str(self.maxSize)] except ValueError: str_list += ['maxSize : '] - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + try: str_list += ['usage : ' + str(self.usage)] except ValueError: str_list += ['usage : '] - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemPoolProps.allocType' in found_struct}} + @property def allocType(self): return cudaMemAllocationType(self._pvt_ptr[0].allocType) @allocType.setter def allocType(self, allocType not None : cudaMemAllocationType): - self._pvt_ptr[0].allocType = int(allocType) - {{endif}} - {{if 'cudaMemPoolProps.handleTypes' in found_struct}} + self._pvt_ptr[0].allocType = int(allocType) + + @property def handleTypes(self): return cudaMemAllocationHandleType(self._pvt_ptr[0].handleTypes) @handleTypes.setter def handleTypes(self, handleTypes not None : cudaMemAllocationHandleType): - self._pvt_ptr[0].handleTypes = int(handleTypes) - {{endif}} - {{if 'cudaMemPoolProps.location' in found_struct}} + self._pvt_ptr[0].handleTypes = int(handleTypes) + + @property def location(self): return self._location @location.setter def location(self, location not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].location, location.getPtr(), sizeof(self._pvt_ptr[0].location)) - {{endif}} - {{if 'cudaMemPoolProps.win32SecurityAttributes' in found_struct}} + + @property def win32SecurityAttributes(self): return self._pvt_ptr[0].win32SecurityAttributes @@ -11564,24 +11152,24 @@ cdef class cudaMemPoolProps: def win32SecurityAttributes(self, win32SecurityAttributes): self._cywin32SecurityAttributes = _HelperInputVoidPtr(win32SecurityAttributes) self._pvt_ptr[0].win32SecurityAttributes = self._cywin32SecurityAttributes.cptr - {{endif}} - {{if 'cudaMemPoolProps.maxSize' in found_struct}} + + @property def maxSize(self): return self._pvt_ptr[0].maxSize @maxSize.setter def maxSize(self, size_t maxSize): self._pvt_ptr[0].maxSize = maxSize - {{endif}} - {{if 'cudaMemPoolProps.usage' in found_struct}} + + @property def usage(self): return self._pvt_ptr[0].usage @usage.setter def usage(self, unsigned short usage): self._pvt_ptr[0].usage = usage - {{endif}} - {{if 'cudaMemPoolProps.reserved' in found_struct}} + + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 54) @@ -11591,9 +11179,7 @@ cdef class cudaMemPoolProps: raise ValueError("reserved length must be 54, is " + str(len(reserved))) for i, b in enumerate(reserved): self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaMemPoolPtrExportData' in found_struct}} + cdef class cudaMemPoolPtrExportData: """ @@ -11601,10 +11187,10 @@ cdef class cudaMemPoolPtrExportData: Attributes ---------- - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -11625,16 +11211,16 @@ cdef class cudaMemPoolPtrExportData: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemPoolPtrExportData.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) @@ -11644,9 +11230,7 @@ cdef class cudaMemPoolPtrExportData: raise ValueError("reserved length must be 64, is " + str(len(reserved))) for i, b in enumerate(reserved): self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaMemAllocNodeParams' in found_struct}} + cdef class cudaMemAllocNodeParams: """ @@ -11654,30 +11238,30 @@ cdef class cudaMemAllocNodeParams: Attributes ---------- - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -11691,63 +11275,63 @@ cdef class cudaMemAllocNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + self._poolProps = cudaMemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - {{endif}} + def __dealloc__(self): pass - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + if self._accessDescs is not NULL: free(self._accessDescs) self._pvt_ptr[0].accessDescs = NULL - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + try: str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] except ValueError: str_list += ['poolProps : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + try: str_list += ['accessDescs : ' + str(self.accessDescs)] except ValueError: str_list += ['accessDescs : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} + + try: str_list += ['accessDescCount : ' + str(self.accessDescCount)] except ValueError: str_list += ['accessDescCount : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + try: str_list += ['bytesize : ' + str(self.bytesize)] except ValueError: str_list += ['bytesize : '] - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + try: str_list += ['dptr : ' + hex(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemAllocNodeParams.poolProps' in found_struct}} + @property def poolProps(self): return self._poolProps @poolProps.setter def poolProps(self, poolProps not None : cudaMemPoolProps): string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescs' in found_struct}} + + @property def accessDescs(self): arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)] @@ -11770,24 +11354,24 @@ cdef class cudaMemAllocNodeParams: for idx in range(len(val)): string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) - {{endif}} - {{if 'cudaMemAllocNodeParams.accessDescCount' in found_struct}} + + @property def accessDescCount(self): return self._pvt_ptr[0].accessDescCount @accessDescCount.setter def accessDescCount(self, size_t accessDescCount): self._pvt_ptr[0].accessDescCount = accessDescCount - {{endif}} - {{if 'cudaMemAllocNodeParams.bytesize' in found_struct}} + + @property def bytesize(self): return self._pvt_ptr[0].bytesize @bytesize.setter def bytesize(self, size_t bytesize): self._pvt_ptr[0].bytesize = bytesize - {{endif}} - {{if 'cudaMemAllocNodeParams.dptr' in found_struct}} + + @property def dptr(self): return self._pvt_ptr[0].dptr @@ -11795,9 +11379,7 @@ cdef class cudaMemAllocNodeParams: def dptr(self, dptr): self._cydptr = _HelperInputVoidPtr(dptr) self._pvt_ptr[0].dptr = self._cydptr.cptr - {{endif}} -{{endif}} -{{if 'cudaMemAllocNodeParamsV2' in found_struct}} + cdef class cudaMemAllocNodeParamsV2: """ @@ -11805,30 +11387,30 @@ cdef class cudaMemAllocNodeParamsV2: Attributes ---------- - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + poolProps : cudaMemPoolProps in: location where the allocation should reside (specified in ::location). ::handleTypes must be cudaMemHandleTypeNone. IPC is not supported. in: array of memory access descriptors. Used to describe peer GPU access - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + accessDescs : cudaMemAccessDesc in: number of memory access descriptors. Must not exceed the number of GPUs. - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} + + accessDescCount : size_t in: Number of `accessDescs`s - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + bytesize : size_t in: size in bytes of the requested allocation - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + dptr : Any out: address of the allocation returned by CUDA - {{endif}} + Methods ------- @@ -11842,63 +11424,63 @@ cdef class cudaMemAllocNodeParamsV2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + self._poolProps = cudaMemPoolProps(_ptr=&self._pvt_ptr[0].poolProps) - {{endif}} + def __dealloc__(self): pass - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + if self._accessDescs is not NULL: free(self._accessDescs) self._pvt_ptr[0].accessDescs = NULL - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + try: str_list += ['poolProps :\n' + '\n'.join([' ' + line for line in str(self.poolProps).splitlines()])] except ValueError: str_list += ['poolProps : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + try: str_list += ['accessDescs : ' + str(self.accessDescs)] except ValueError: str_list += ['accessDescs : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} + + try: str_list += ['accessDescCount : ' + str(self.accessDescCount)] except ValueError: str_list += ['accessDescCount : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + try: str_list += ['bytesize : ' + str(self.bytesize)] except ValueError: str_list += ['bytesize : '] - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + try: str_list += ['dptr : ' + hex(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemAllocNodeParamsV2.poolProps' in found_struct}} + @property def poolProps(self): return self._poolProps @poolProps.setter def poolProps(self, poolProps not None : cudaMemPoolProps): string.memcpy(&self._pvt_ptr[0].poolProps, poolProps.getPtr(), sizeof(self._pvt_ptr[0].poolProps)) - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescs' in found_struct}} + + @property def accessDescs(self): arrs = [self._pvt_ptr[0].accessDescs + x*sizeof(cyruntime.cudaMemAccessDesc) for x in range(self._accessDescs_length)] @@ -11921,24 +11503,24 @@ cdef class cudaMemAllocNodeParamsV2: for idx in range(len(val)): string.memcpy(&self._accessDescs[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaMemAccessDesc)) - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.accessDescCount' in found_struct}} + + @property def accessDescCount(self): return self._pvt_ptr[0].accessDescCount @accessDescCount.setter def accessDescCount(self, size_t accessDescCount): self._pvt_ptr[0].accessDescCount = accessDescCount - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.bytesize' in found_struct}} + + @property def bytesize(self): return self._pvt_ptr[0].bytesize @bytesize.setter def bytesize(self, size_t bytesize): self._pvt_ptr[0].bytesize = bytesize - {{endif}} - {{if 'cudaMemAllocNodeParamsV2.dptr' in found_struct}} + + @property def dptr(self): return self._pvt_ptr[0].dptr @@ -11946,9 +11528,7 @@ cdef class cudaMemAllocNodeParamsV2: def dptr(self, dptr): self._cydptr = _HelperInputVoidPtr(dptr) self._pvt_ptr[0].dptr = self._cydptr.cptr - {{endif}} -{{endif}} -{{if 'cudaMemFreeNodeParams' in found_struct}} + cdef class cudaMemFreeNodeParams: """ @@ -11956,10 +11536,10 @@ cdef class cudaMemFreeNodeParams: Attributes ---------- - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + dptr : Any in: the pointer to free - {{endif}} + Methods ------- @@ -11980,16 +11560,16 @@ cdef class cudaMemFreeNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + try: str_list += ['dptr : ' + hex(self.dptr)] except ValueError: str_list += ['dptr : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemFreeNodeParams.dptr' in found_struct}} + @property def dptr(self): return self._pvt_ptr[0].dptr @@ -11997,9 +11577,7 @@ cdef class cudaMemFreeNodeParams: def dptr(self, dptr): self._cydptr = _HelperInputVoidPtr(dptr) self._pvt_ptr[0].dptr = self._cydptr.cptr - {{endif}} -{{endif}} -{{if 'cudaMemcpyAttributes' in found_struct}} + cdef class cudaMemcpyAttributes: """ @@ -12008,26 +11586,26 @@ cdef class cudaMemcpyAttributes: Attributes ---------- - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copies with this attribute. - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + + srcLocHint : cudaMemLocation Hint location for the source operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + dstLocHint : cudaMemLocation Hint location for the destination operand. Ignored when the pointers are not managed memory or memory allocated outside CUDA. - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + flags : unsigned int Additional flags for copies with this attribute. See cudaMemcpyFlags. - {{endif}} + Methods ------- @@ -12041,12 +11619,12 @@ cdef class cudaMemcpyAttributes: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + self._srcLocHint = cudaMemLocation(_ptr=&self._pvt_ptr[0].srcLocHint) - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + self._dstLocHint = cudaMemLocation(_ptr=&self._pvt_ptr[0].dstLocHint) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12054,67 +11632,65 @@ cdef class cudaMemcpyAttributes: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + try: str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)] except ValueError: str_list += ['srcAccessOrder : '] - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + + try: str_list += ['srcLocHint :\n' + '\n'.join([' ' + line for line in str(self.srcLocHint).splitlines()])] except ValueError: str_list += ['srcLocHint : '] - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + try: str_list += ['dstLocHint :\n' + '\n'.join([' ' + line for line in str(self.dstLocHint).splitlines()])] except ValueError: str_list += ['dstLocHint : '] - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpyAttributes.srcAccessOrder' in found_struct}} + @property def srcAccessOrder(self): return cudaMemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder): - self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) - {{endif}} - {{if 'cudaMemcpyAttributes.srcLocHint' in found_struct}} + self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) + + @property def srcLocHint(self): return self._srcLocHint @srcLocHint.setter def srcLocHint(self, srcLocHint not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].srcLocHint, srcLocHint.getPtr(), sizeof(self._pvt_ptr[0].srcLocHint)) - {{endif}} - {{if 'cudaMemcpyAttributes.dstLocHint' in found_struct}} + + @property def dstLocHint(self): return self._dstLocHint @dstLocHint.setter def dstLocHint(self, dstLocHint not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].dstLocHint, dstLocHint.getPtr(), sizeof(self._pvt_ptr[0].dstLocHint)) - {{endif}} - {{if 'cudaMemcpyAttributes.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'cudaOffset3D' in found_struct}} + cdef class cudaOffset3D: """ @@ -12122,18 +11698,18 @@ cdef class cudaOffset3D: Attributes ---------- - {{if 'cudaOffset3D.x' in found_struct}} + x : size_t - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + y : size_t - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + z : size_t - {{endif}} + Methods ------- @@ -12154,74 +11730,72 @@ cdef class cudaOffset3D: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaOffset3D.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaOffset3D.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].x @x.setter def x(self, size_t x): self._pvt_ptr[0].x = x - {{endif}} - {{if 'cudaOffset3D.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].y @y.setter def y(self, size_t y): self._pvt_ptr[0].y = y - {{endif}} - {{if 'cudaOffset3D.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].z @z.setter def z(self, size_t z): self._pvt_ptr[0].z = z - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + cdef class anon_struct6: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + ptr : Any - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + rowLength : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + layerHeight : size_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + locHint : cudaMemLocation - {{endif}} + Methods ------- @@ -12233,9 +11807,9 @@ cdef class anon_struct6: def __init__(self, void_ptr _ptr): pass - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + self._locHint = cudaMemLocation(_ptr=&self._pvt_ptr[0].op.ptr.locHint) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12243,34 +11817,34 @@ cdef class anon_struct6: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + try: str_list += ['ptr : ' + hex(self.ptr)] except ValueError: str_list += ['ptr : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + try: str_list += ['rowLength : ' + str(self.rowLength)] except ValueError: str_list += ['rowLength : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + try: str_list += ['layerHeight : ' + str(self.layerHeight)] except ValueError: str_list += ['layerHeight : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + try: str_list += ['locHint :\n' + '\n'.join([' ' + line for line in str(self.locHint).splitlines()])] except ValueError: str_list += ['locHint : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.op.ptr.ptr' in found_struct}} + @property def ptr(self): return self._pvt_ptr[0].op.ptr.ptr @@ -12278,46 +11852,44 @@ cdef class anon_struct6: def ptr(self, ptr): self._cyptr = _HelperInputVoidPtr(ptr) self._pvt_ptr[0].op.ptr.ptr = self._cyptr.cptr - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.rowLength' in found_struct}} + + @property def rowLength(self): return self._pvt_ptr[0].op.ptr.rowLength @rowLength.setter def rowLength(self, size_t rowLength): self._pvt_ptr[0].op.ptr.rowLength = rowLength - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.layerHeight' in found_struct}} + + @property def layerHeight(self): return self._pvt_ptr[0].op.ptr.layerHeight @layerHeight.setter def layerHeight(self, size_t layerHeight): self._pvt_ptr[0].op.ptr.layerHeight = layerHeight - {{endif}} - {{if 'cudaMemcpy3DOperand.op.ptr.locHint' in found_struct}} + + @property def locHint(self): return self._locHint @locHint.setter def locHint(self, locHint not None : cudaMemLocation): string.memcpy(&self._pvt_ptr[0].op.ptr.locHint, locHint.getPtr(), sizeof(self._pvt_ptr[0].op.ptr.locHint)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + cdef class anon_struct7: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + array : cudaArray_t - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + offset : cudaOffset3D - {{endif}} + Methods ------- @@ -12329,12 +11901,12 @@ cdef class anon_struct7: def __init__(self, void_ptr _ptr): pass - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + self._array = cudaArray_t(_ptr=&self._pvt_ptr[0].op.array.array) - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + self._offset = cudaOffset3D(_ptr=&self._pvt_ptr[0].op.array.offset) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12342,22 +11914,22 @@ cdef class anon_struct7: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + try: str_list += ['array : ' + str(self.array)] except ValueError: str_list += ['array : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + try: str_list += ['offset :\n' + '\n'.join([' ' + line for line in str(self.offset).splitlines()])] except ValueError: str_list += ['offset : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.op.array.array' in found_struct}} + @property def array(self): return self._array @@ -12373,30 +11945,28 @@ cdef class anon_struct7: parray = int(cudaArray_t(array)) cyarray = parray self._array._pvt_ptr[0] = cyarray - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array.offset' in found_struct}} + + @property def offset(self): return self._offset @offset.setter def offset(self, offset not None : cudaOffset3D): string.memcpy(&self._pvt_ptr[0].op.array.offset, offset.getPtr(), sizeof(self._pvt_ptr[0].op.array.offset)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand.op' in found_struct}} + cdef class anon_union2: """ Attributes ---------- - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + ptr : anon_struct6 - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + array : anon_struct7 - {{endif}} + Methods ------- @@ -12408,12 +11978,12 @@ cdef class anon_union2: def __init__(self, void_ptr _ptr): pass - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + self._ptr = anon_struct6(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + self._array = anon_struct7(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12421,39 +11991,37 @@ cdef class anon_union2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + try: str_list += ['ptr :\n' + '\n'.join([' ' + line for line in str(self.ptr).splitlines()])] except ValueError: str_list += ['ptr : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + try: str_list += ['array :\n' + '\n'.join([' ' + line for line in str(self.array).splitlines()])] except ValueError: str_list += ['array : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.op.ptr' in found_struct}} + @property def ptr(self): return self._ptr @ptr.setter def ptr(self, ptr not None : anon_struct6): string.memcpy(&self._pvt_ptr[0].op.ptr, ptr.getPtr(), sizeof(self._pvt_ptr[0].op.ptr)) - {{endif}} - {{if 'cudaMemcpy3DOperand.op.array' in found_struct}} + + @property def array(self): return self._array @array.setter def array(self, array not None : anon_struct7): string.memcpy(&self._pvt_ptr[0].op.array, array.getPtr(), sizeof(self._pvt_ptr[0].op.array)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DOperand' in found_struct}} + cdef class cudaMemcpy3DOperand: """ @@ -12461,14 +12029,14 @@ cdef class cudaMemcpy3DOperand: Attributes ---------- - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + type : cudaMemcpy3DOperandType - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + + op : anon_union2 - {{endif}} + Methods ------- @@ -12483,9 +12051,9 @@ cdef class cudaMemcpy3DOperand: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + self._op = anon_union2(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -12494,65 +12062,63 @@ cdef class cudaMemcpy3DOperand: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + + try: str_list += ['op :\n' + '\n'.join([' ' + line for line in str(self.op).splitlines()])] except ValueError: str_list += ['op : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DOperand.type' in found_struct}} + @property def type(self): return cudaMemcpy3DOperandType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaMemcpy3DOperandType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaMemcpy3DOperand.op' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def op(self): return self._op @op.setter def op(self, op not None : anon_union2): string.memcpy(&self._pvt_ptr[0].op, op.getPtr(), sizeof(self._pvt_ptr[0].op)) - {{endif}} -{{endif}} -{{if 'cudaMemcpy3DBatchOp' in found_struct}} + cdef class cudaMemcpy3DBatchOp: """ Attributes ---------- - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + src : cudaMemcpy3DOperand Source memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + dst : cudaMemcpy3DOperand Destination memcpy operand. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + extent : cudaExtent Extents of the memcpy between src and dst. The width, height and depth components must not be 0. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + srcAccessOrder : cudaMemcpySrcAccessOrder Source access ordering to be observed for copy from src to dst. - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + + flags : unsigned int Additional flags for copy from src to dst. See cudaMemcpyFlags. - {{endif}} + Methods ------- @@ -12566,15 +12132,15 @@ cdef class cudaMemcpy3DBatchOp: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + self._src = cudaMemcpy3DOperand(_ptr=&self._pvt_ptr[0].src) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + self._dst = cudaMemcpy3DOperand(_ptr=&self._pvt_ptr[0].dst) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -12582,90 +12148,88 @@ cdef class cudaMemcpy3DBatchOp: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + try: str_list += ['src :\n' + '\n'.join([' ' + line for line in str(self.src).splitlines()])] except ValueError: str_list += ['src : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + try: str_list += ['dst :\n' + '\n'.join([' ' + line for line in str(self.dst).splitlines()])] except ValueError: str_list += ['dst : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + try: str_list += ['srcAccessOrder : ' + str(self.srcAccessOrder)] except ValueError: str_list += ['srcAccessOrder : '] - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemcpy3DBatchOp.src' in found_struct}} + @property def src(self): return self._src @src.setter def src(self, src not None : cudaMemcpy3DOperand): string.memcpy(&self._pvt_ptr[0].src, src.getPtr(), sizeof(self._pvt_ptr[0].src)) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.dst' in found_struct}} + + @property def dst(self): return self._dst @dst.setter def dst(self, dst not None : cudaMemcpy3DOperand): string.memcpy(&self._pvt_ptr[0].dst, dst.getPtr(), sizeof(self._pvt_ptr[0].dst)) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.srcAccessOrder' in found_struct}} + + @property def srcAccessOrder(self): return cudaMemcpySrcAccessOrder(self._pvt_ptr[0].srcAccessOrder) @srcAccessOrder.setter def srcAccessOrder(self, srcAccessOrder not None : cudaMemcpySrcAccessOrder): - self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) - {{endif}} - {{if 'cudaMemcpy3DBatchOp.flags' in found_struct}} + self._pvt_ptr[0].srcAccessOrder = int(srcAccessOrder) + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'CUuuid_st' in found_struct}} + cdef class CUuuid_st: """ Attributes ---------- - {{if 'CUuuid_st.bytes' in found_struct}} + bytes : bytes < CUDA definition of UUID - {{endif}} + Methods ------- @@ -12686,22 +12250,20 @@ cdef class CUuuid_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'CUuuid_st.bytes' in found_struct}} + try: str_list += ['bytes : ' + str(self.bytes.hex())] except ValueError: str_list += ['bytes : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'CUuuid_st.bytes' in found_struct}} + @property def bytes(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].bytes, 16) - {{endif}} -{{endif}} -{{if 'cudaDeviceProp' in found_struct}} + cdef class cudaDeviceProp: """ @@ -12709,401 +12271,401 @@ cdef class cudaDeviceProp: Attributes ---------- - {{if 'cudaDeviceProp.name' in found_struct}} + name : bytes ASCII string identifying device - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + uuid : cudaUUID_t 16-byte unique identifier - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + luid : bytes 8-byte locally unique identifier. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + luidDeviceNodeMask : unsigned int LUID device node mask. Value is undefined on TCC and non-Windows platforms - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + totalGlobalMem : size_t Global memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + sharedMemPerBlock : size_t Shared memory available per block in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + regsPerBlock : int 32-bit registers available per block - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + warpSize : int Warp size in threads - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + memPitch : size_t Maximum pitch in bytes allowed by memory copies - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + maxThreadsPerBlock : int Maximum number of threads per block - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + maxThreadsDim : list[int] Maximum size of each dimension of a block - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + maxGridSize : list[int] Maximum size of each dimension of a grid - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + totalConstMem : size_t Constant memory available on device in bytes - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + major : int Major compute capability - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + minor : int Minor compute capability - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + textureAlignment : size_t Alignment requirement for textures - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + texturePitchAlignment : size_t Pitch alignment requirement for texture references bound to pitched memory - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + multiProcessorCount : int Number of multiprocessors on device - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + integrated : int Device is integrated as opposed to discrete - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + canMapHostMemory : int Device can map host memory with cudaHostAlloc/cudaHostGetDevicePointer - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + maxTexture1D : int Maximum 1D texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + maxTexture1DMipmap : int Maximum 1D mipmapped texture size - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + maxTexture2D : list[int] Maximum 2D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + maxTexture2DMipmap : list[int] Maximum 2D mipmapped texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + 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] Maximum 2D texture dimensions if texture gather operations have to be performed - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + maxTexture3D : list[int] Maximum 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + maxTexture3DAlt : list[int] Maximum alternate 3D texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + maxTextureCubemap : int Maximum Cubemap texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + maxTexture1DLayered : list[int] Maximum 1D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + maxTexture2DLayered : list[int] Maximum 2D layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + maxTextureCubemapLayered : list[int] Maximum Cubemap layered texture dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + maxSurface1D : int Maximum 1D surface size - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + maxSurface2D : list[int] Maximum 2D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + maxSurface3D : list[int] Maximum 3D surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + maxSurface1DLayered : list[int] Maximum 1D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + maxSurface2DLayered : list[int] Maximum 2D layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + maxSurfaceCubemap : int Maximum Cubemap surface dimensions - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + maxSurfaceCubemapLayered : list[int] Maximum Cubemap layered surface dimensions - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + surfaceAlignment : size_t Alignment requirements for surfaces - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + concurrentKernels : int Device can possibly execute multiple kernels concurrently - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + ECCEnabled : int Device has ECC support enabled - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + pciBusID : int PCI bus ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + pciDeviceID : int PCI device ID of the device - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + pciDomainID : int PCI domain ID of the device - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + tccDriver : int 1 if device is a Tesla device using TCC driver, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + asyncEngineCount : int Number of asynchronous engines - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + unifiedAddressing : int Device shares a unified address space with the host - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + memoryBusWidth : int Global memory bus width in bits - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + l2CacheSize : int Size of L2 cache in bytes - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + persistingL2CacheMaxSize : int Device's maximum l2 persisting lines capacity setting in bytes - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + maxThreadsPerMultiProcessor : int Maximum resident threads per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + streamPrioritiesSupported : int Device supports stream priorities - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + globalL1CacheSupported : int Device supports caching globals in L1 - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + localL1CacheSupported : int Device supports caching locals in L1 - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + sharedMemPerMultiprocessor : size_t Shared memory available per multiprocessor in bytes - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + regsPerMultiprocessor : int 32-bit registers available per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + managedMemory : int Device supports allocating managed memory on this system - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + isMultiGpuBoard : int Device is on a multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + multiGpuBoardGroupID : int Unique identifier for a group of devices on the same multi-GPU board - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + hostNativeAtomicSupported : int Link between the device and the host supports native atomic operations - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + pageableMemoryAccess : int Device supports coherently accessing pageable memory without calling cudaHostRegister on it - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + concurrentManagedAccess : int Device can coherently access managed memory concurrently with the CPU - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + computePreemptionSupported : int Device supports Compute Preemption - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + canUseHostPointerForRegisteredMem : int Device can access host registered memory at the same virtual address as the CPU - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + cooperativeLaunch : int Device supports launching cooperative kernels via cudaLaunchCooperativeKernel - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + sharedMemPerBlockOptin : size_t Per device maximum shared memory per block usable by special opt in - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + pageableMemoryAccessUsesHostPageTables : int Device accesses pageable memory via the host's page tables - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + directManagedMemAccessFromHost : int Host can directly access managed memory on the device without migration. - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + maxBlocksPerMultiProcessor : int Maximum number of resident blocks per multiprocessor - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + accessPolicyMaxWindowSize : int The maximum value of cudaAccessPolicyWindow::num_bytes. - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + reservedSharedMemPerBlock : size_t Shared memory reserved by CUDA driver per block in bytes - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + hostRegisterSupported : int Device supports host memory registration via cudaHostRegister. - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + sparseCudaArraySupported : int 1 if the device supports sparse CUDA arrays and sparse CUDA mipmapped arrays, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + hostRegisterReadOnlySupported : int Device supports using the cudaHostRegister flag cudaHostRegisterReadOnly to register memory that must be mapped as read-only to the GPU - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + timelineSemaphoreInteropSupported : int External timeline semaphore interop is supported on the device - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + memoryPoolsSupported : int 1 if the device supports using the cudaMallocAsync and cudaMemPool family of APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + gpuDirectRDMASupported : int 1 if the device supports GPUDirect RDMA APIs, 0 otherwise - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + gpuDirectRDMAFlushWritesOptions : unsigned int Bitmask to be interpreted according to the cudaFlushGPUDirectRDMAWritesOptions enum - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + gpuDirectRDMAWritesOrdering : int See the cudaGPUDirectRDMAWritesOrdering enum for numerical values - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + memoryPoolSupportedHandleTypes : unsigned int Bitmask of handle types supported with mempool-based IPC - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + deferredMappingCudaArraySupported : int 1 if the device supports deferred mapping CUDA arrays and CUDA mipmapped arrays - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + ipcEventSupported : int Device supports IPC Events. - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + clusterLaunch : int Indicates device supports cluster launch - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + unifiedFunctionPointers : int Indicates device supports unified pointers - {{endif}} - {{if 'cudaDeviceProp.deviceNumaConfig' in found_struct}} + + deviceNumaConfig : int NUMA configuration of a device: value is of type cudaDeviceNumaConfig enum - {{endif}} - {{if 'cudaDeviceProp.deviceNumaId' in found_struct}} + + deviceNumaId : int NUMA node ID of the GPU memory - {{endif}} - {{if 'cudaDeviceProp.mpsEnabled' in found_struct}} + + mpsEnabled : int Indicates if contexts created on this device will be shared via MPS - {{endif}} - {{if 'cudaDeviceProp.hostNumaId' in found_struct}} + + hostNumaId : int NUMA ID of the host node closest to the device or -1 when system does not support NUMA - {{endif}} - {{if 'cudaDeviceProp.gpuPciDeviceID' in found_struct}} + + gpuPciDeviceID : unsigned int The combined 16-bit PCI device ID and 16-bit PCI vendor ID - {{endif}} - {{if 'cudaDeviceProp.gpuPciSubsystemID' in found_struct}} + + gpuPciSubsystemID : unsigned int The combined 16-bit PCI subsystem ID and 16-bit PCI subsystem vendor ID - {{endif}} - {{if 'cudaDeviceProp.hostNumaMultinodeIpcSupported' in found_struct}} + + hostNumaMultinodeIpcSupported : int 1 if the device supports HostNuma location IPC between nodes in a multi-node system. - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} + + reserved : list[int] Reserved for future use - {{endif}} + Methods ------- @@ -13117,9 +12679,9 @@ cdef class cudaDeviceProp: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaDeviceProp.uuid' in found_struct}} + self._uuid = cudaUUID_t(_ptr=&self._pvt_ptr[0].uuid) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -13127,568 +12689,568 @@ cdef class cudaDeviceProp: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaDeviceProp.name' in found_struct}} + try: str_list += ['name : ' + self.name.decode('utf-8')] except ValueError: str_list += ['name : '] - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + try: str_list += ['uuid :\n' + '\n'.join([' ' + line for line in str(self.uuid).splitlines()])] except ValueError: str_list += ['uuid : '] - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + try: str_list += ['luid : ' + self.luid.hex()] except ValueError: str_list += ['luid : '] - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + try: str_list += ['luidDeviceNodeMask : ' + str(self.luidDeviceNodeMask)] except ValueError: str_list += ['luidDeviceNodeMask : '] - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + try: str_list += ['totalGlobalMem : ' + str(self.totalGlobalMem)] except ValueError: str_list += ['totalGlobalMem : '] - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + try: str_list += ['sharedMemPerBlock : ' + str(self.sharedMemPerBlock)] except ValueError: str_list += ['sharedMemPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + try: str_list += ['regsPerBlock : ' + str(self.regsPerBlock)] except ValueError: str_list += ['regsPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + try: str_list += ['warpSize : ' + str(self.warpSize)] except ValueError: str_list += ['warpSize : '] - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + try: str_list += ['memPitch : ' + str(self.memPitch)] except ValueError: str_list += ['memPitch : '] - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + try: str_list += ['maxThreadsPerBlock : ' + str(self.maxThreadsPerBlock)] except ValueError: str_list += ['maxThreadsPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + try: str_list += ['maxThreadsDim : ' + str(self.maxThreadsDim)] except ValueError: str_list += ['maxThreadsDim : '] - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + try: str_list += ['maxGridSize : ' + str(self.maxGridSize)] except ValueError: str_list += ['maxGridSize : '] - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + try: str_list += ['totalConstMem : ' + str(self.totalConstMem)] except ValueError: str_list += ['totalConstMem : '] - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + try: str_list += ['major : ' + str(self.major)] except ValueError: str_list += ['major : '] - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + try: str_list += ['minor : ' + str(self.minor)] except ValueError: str_list += ['minor : '] - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + try: str_list += ['textureAlignment : ' + str(self.textureAlignment)] except ValueError: str_list += ['textureAlignment : '] - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + try: str_list += ['texturePitchAlignment : ' + str(self.texturePitchAlignment)] except ValueError: str_list += ['texturePitchAlignment : '] - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + try: str_list += ['multiProcessorCount : ' + str(self.multiProcessorCount)] except ValueError: str_list += ['multiProcessorCount : '] - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + try: str_list += ['integrated : ' + str(self.integrated)] except ValueError: str_list += ['integrated : '] - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + try: str_list += ['canMapHostMemory : ' + str(self.canMapHostMemory)] except ValueError: str_list += ['canMapHostMemory : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + try: str_list += ['maxTexture1D : ' + str(self.maxTexture1D)] except ValueError: str_list += ['maxTexture1D : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + try: str_list += ['maxTexture1DMipmap : ' + str(self.maxTexture1DMipmap)] except ValueError: str_list += ['maxTexture1DMipmap : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + try: str_list += ['maxTexture2D : ' + str(self.maxTexture2D)] except ValueError: str_list += ['maxTexture2D : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + try: str_list += ['maxTexture2DMipmap : ' + str(self.maxTexture2DMipmap)] except ValueError: str_list += ['maxTexture2DMipmap : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + try: str_list += ['maxTexture2DLinear : ' + str(self.maxTexture2DLinear)] except ValueError: str_list += ['maxTexture2DLinear : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} + + try: str_list += ['maxTexture2DGather : ' + str(self.maxTexture2DGather)] except ValueError: str_list += ['maxTexture2DGather : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + try: str_list += ['maxTexture3D : ' + str(self.maxTexture3D)] except ValueError: str_list += ['maxTexture3D : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + try: str_list += ['maxTexture3DAlt : ' + str(self.maxTexture3DAlt)] except ValueError: str_list += ['maxTexture3DAlt : '] - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + try: str_list += ['maxTextureCubemap : ' + str(self.maxTextureCubemap)] except ValueError: str_list += ['maxTextureCubemap : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + try: str_list += ['maxTexture1DLayered : ' + str(self.maxTexture1DLayered)] except ValueError: str_list += ['maxTexture1DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + try: str_list += ['maxTexture2DLayered : ' + str(self.maxTexture2DLayered)] except ValueError: str_list += ['maxTexture2DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + try: str_list += ['maxTextureCubemapLayered : ' + str(self.maxTextureCubemapLayered)] except ValueError: str_list += ['maxTextureCubemapLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + try: str_list += ['maxSurface1D : ' + str(self.maxSurface1D)] except ValueError: str_list += ['maxSurface1D : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + try: str_list += ['maxSurface2D : ' + str(self.maxSurface2D)] except ValueError: str_list += ['maxSurface2D : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + try: str_list += ['maxSurface3D : ' + str(self.maxSurface3D)] except ValueError: str_list += ['maxSurface3D : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + try: str_list += ['maxSurface1DLayered : ' + str(self.maxSurface1DLayered)] except ValueError: str_list += ['maxSurface1DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + try: str_list += ['maxSurface2DLayered : ' + str(self.maxSurface2DLayered)] except ValueError: str_list += ['maxSurface2DLayered : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + try: str_list += ['maxSurfaceCubemap : ' + str(self.maxSurfaceCubemap)] except ValueError: str_list += ['maxSurfaceCubemap : '] - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + try: str_list += ['maxSurfaceCubemapLayered : ' + str(self.maxSurfaceCubemapLayered)] except ValueError: str_list += ['maxSurfaceCubemapLayered : '] - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + try: str_list += ['surfaceAlignment : ' + str(self.surfaceAlignment)] except ValueError: str_list += ['surfaceAlignment : '] - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + try: str_list += ['concurrentKernels : ' + str(self.concurrentKernels)] except ValueError: str_list += ['concurrentKernels : '] - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + try: str_list += ['ECCEnabled : ' + str(self.ECCEnabled)] except ValueError: str_list += ['ECCEnabled : '] - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + try: str_list += ['pciBusID : ' + str(self.pciBusID)] except ValueError: str_list += ['pciBusID : '] - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + try: str_list += ['pciDeviceID : ' + str(self.pciDeviceID)] except ValueError: str_list += ['pciDeviceID : '] - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + try: str_list += ['pciDomainID : ' + str(self.pciDomainID)] except ValueError: str_list += ['pciDomainID : '] - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + try: str_list += ['tccDriver : ' + str(self.tccDriver)] except ValueError: str_list += ['tccDriver : '] - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + try: str_list += ['asyncEngineCount : ' + str(self.asyncEngineCount)] except ValueError: str_list += ['asyncEngineCount : '] - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + try: str_list += ['unifiedAddressing : ' + str(self.unifiedAddressing)] except ValueError: str_list += ['unifiedAddressing : '] - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + try: str_list += ['memoryBusWidth : ' + str(self.memoryBusWidth)] except ValueError: str_list += ['memoryBusWidth : '] - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + try: str_list += ['l2CacheSize : ' + str(self.l2CacheSize)] except ValueError: str_list += ['l2CacheSize : '] - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + try: str_list += ['persistingL2CacheMaxSize : ' + str(self.persistingL2CacheMaxSize)] except ValueError: str_list += ['persistingL2CacheMaxSize : '] - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + try: str_list += ['maxThreadsPerMultiProcessor : ' + str(self.maxThreadsPerMultiProcessor)] except ValueError: str_list += ['maxThreadsPerMultiProcessor : '] - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + try: str_list += ['streamPrioritiesSupported : ' + str(self.streamPrioritiesSupported)] except ValueError: str_list += ['streamPrioritiesSupported : '] - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + try: str_list += ['globalL1CacheSupported : ' + str(self.globalL1CacheSupported)] except ValueError: str_list += ['globalL1CacheSupported : '] - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + try: str_list += ['localL1CacheSupported : ' + str(self.localL1CacheSupported)] except ValueError: str_list += ['localL1CacheSupported : '] - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + try: str_list += ['sharedMemPerMultiprocessor : ' + str(self.sharedMemPerMultiprocessor)] except ValueError: str_list += ['sharedMemPerMultiprocessor : '] - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + try: str_list += ['regsPerMultiprocessor : ' + str(self.regsPerMultiprocessor)] except ValueError: str_list += ['regsPerMultiprocessor : '] - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + try: str_list += ['managedMemory : ' + str(self.managedMemory)] except ValueError: str_list += ['managedMemory : '] - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + try: str_list += ['isMultiGpuBoard : ' + str(self.isMultiGpuBoard)] except ValueError: str_list += ['isMultiGpuBoard : '] - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + try: str_list += ['multiGpuBoardGroupID : ' + str(self.multiGpuBoardGroupID)] except ValueError: str_list += ['multiGpuBoardGroupID : '] - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + try: str_list += ['hostNativeAtomicSupported : ' + str(self.hostNativeAtomicSupported)] except ValueError: str_list += ['hostNativeAtomicSupported : '] - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + try: str_list += ['pageableMemoryAccess : ' + str(self.pageableMemoryAccess)] except ValueError: str_list += ['pageableMemoryAccess : '] - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + try: str_list += ['concurrentManagedAccess : ' + str(self.concurrentManagedAccess)] except ValueError: str_list += ['concurrentManagedAccess : '] - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + try: str_list += ['computePreemptionSupported : ' + str(self.computePreemptionSupported)] except ValueError: str_list += ['computePreemptionSupported : '] - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + try: str_list += ['canUseHostPointerForRegisteredMem : ' + str(self.canUseHostPointerForRegisteredMem)] except ValueError: str_list += ['canUseHostPointerForRegisteredMem : '] - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + try: str_list += ['cooperativeLaunch : ' + str(self.cooperativeLaunch)] except ValueError: str_list += ['cooperativeLaunch : '] - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + try: str_list += ['sharedMemPerBlockOptin : ' + str(self.sharedMemPerBlockOptin)] except ValueError: str_list += ['sharedMemPerBlockOptin : '] - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + try: str_list += ['pageableMemoryAccessUsesHostPageTables : ' + str(self.pageableMemoryAccessUsesHostPageTables)] except ValueError: str_list += ['pageableMemoryAccessUsesHostPageTables : '] - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + try: str_list += ['directManagedMemAccessFromHost : ' + str(self.directManagedMemAccessFromHost)] except ValueError: str_list += ['directManagedMemAccessFromHost : '] - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + try: str_list += ['maxBlocksPerMultiProcessor : ' + str(self.maxBlocksPerMultiProcessor)] except ValueError: str_list += ['maxBlocksPerMultiProcessor : '] - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + try: str_list += ['accessPolicyMaxWindowSize : ' + str(self.accessPolicyMaxWindowSize)] except ValueError: str_list += ['accessPolicyMaxWindowSize : '] - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + try: str_list += ['reservedSharedMemPerBlock : ' + str(self.reservedSharedMemPerBlock)] except ValueError: str_list += ['reservedSharedMemPerBlock : '] - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + try: str_list += ['hostRegisterSupported : ' + str(self.hostRegisterSupported)] except ValueError: str_list += ['hostRegisterSupported : '] - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + try: str_list += ['sparseCudaArraySupported : ' + str(self.sparseCudaArraySupported)] except ValueError: str_list += ['sparseCudaArraySupported : '] - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + try: str_list += ['hostRegisterReadOnlySupported : ' + str(self.hostRegisterReadOnlySupported)] except ValueError: str_list += ['hostRegisterReadOnlySupported : '] - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + try: str_list += ['timelineSemaphoreInteropSupported : ' + str(self.timelineSemaphoreInteropSupported)] except ValueError: str_list += ['timelineSemaphoreInteropSupported : '] - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + try: str_list += ['memoryPoolsSupported : ' + str(self.memoryPoolsSupported)] except ValueError: str_list += ['memoryPoolsSupported : '] - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + try: str_list += ['gpuDirectRDMASupported : ' + str(self.gpuDirectRDMASupported)] except ValueError: str_list += ['gpuDirectRDMASupported : '] - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + try: str_list += ['gpuDirectRDMAFlushWritesOptions : ' + str(self.gpuDirectRDMAFlushWritesOptions)] except ValueError: str_list += ['gpuDirectRDMAFlushWritesOptions : '] - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + try: str_list += ['gpuDirectRDMAWritesOrdering : ' + str(self.gpuDirectRDMAWritesOrdering)] except ValueError: str_list += ['gpuDirectRDMAWritesOrdering : '] - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + try: str_list += ['memoryPoolSupportedHandleTypes : ' + str(self.memoryPoolSupportedHandleTypes)] except ValueError: str_list += ['memoryPoolSupportedHandleTypes : '] - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + try: str_list += ['deferredMappingCudaArraySupported : ' + str(self.deferredMappingCudaArraySupported)] except ValueError: str_list += ['deferredMappingCudaArraySupported : '] - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + try: str_list += ['ipcEventSupported : ' + str(self.ipcEventSupported)] except ValueError: str_list += ['ipcEventSupported : '] - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + try: str_list += ['clusterLaunch : ' + str(self.clusterLaunch)] except ValueError: str_list += ['clusterLaunch : '] - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + try: str_list += ['unifiedFunctionPointers : ' + str(self.unifiedFunctionPointers)] except ValueError: str_list += ['unifiedFunctionPointers : '] - {{endif}} - {{if 'cudaDeviceProp.deviceNumaConfig' in found_struct}} + + try: str_list += ['deviceNumaConfig : ' + str(self.deviceNumaConfig)] except ValueError: str_list += ['deviceNumaConfig : '] - {{endif}} - {{if 'cudaDeviceProp.deviceNumaId' in found_struct}} + + try: str_list += ['deviceNumaId : ' + str(self.deviceNumaId)] except ValueError: str_list += ['deviceNumaId : '] - {{endif}} - {{if 'cudaDeviceProp.mpsEnabled' in found_struct}} + + try: str_list += ['mpsEnabled : ' + str(self.mpsEnabled)] except ValueError: str_list += ['mpsEnabled : '] - {{endif}} - {{if 'cudaDeviceProp.hostNumaId' in found_struct}} + + try: str_list += ['hostNumaId : ' + str(self.hostNumaId)] except ValueError: str_list += ['hostNumaId : '] - {{endif}} - {{if 'cudaDeviceProp.gpuPciDeviceID' in found_struct}} + + try: str_list += ['gpuPciDeviceID : ' + str(self.gpuPciDeviceID)] except ValueError: str_list += ['gpuPciDeviceID : '] - {{endif}} - {{if 'cudaDeviceProp.gpuPciSubsystemID' in found_struct}} + + try: str_list += ['gpuPciSubsystemID : ' + str(self.gpuPciSubsystemID)] except ValueError: str_list += ['gpuPciSubsystemID : '] - {{endif}} - {{if 'cudaDeviceProp.hostNumaMultinodeIpcSupported' in found_struct}} + + try: str_list += ['hostNumaMultinodeIpcSupported : ' + str(self.hostNumaMultinodeIpcSupported)] except ValueError: str_list += ['hostNumaMultinodeIpcSupported : '] - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaDeviceProp.name' in found_struct}} + @property def name(self): return self._pvt_ptr[0].name @@ -13696,16 +13258,16 @@ cdef class cudaDeviceProp: def name(self, name): pass self._pvt_ptr[0].name = name - {{endif}} - {{if 'cudaDeviceProp.uuid' in found_struct}} + + @property def uuid(self): return self._uuid @uuid.setter def uuid(self, uuid not None : cudaUUID_t): string.memcpy(&self._pvt_ptr[0].uuid, uuid.getPtr(), sizeof(self._pvt_ptr[0].uuid)) - {{endif}} - {{if 'cudaDeviceProp.luid' in found_struct}} + + @property def luid(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].luid, 8) @@ -13723,729 +13285,727 @@ cdef class cudaDeviceProp: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].luid[i] = b - {{endif}} - {{if 'cudaDeviceProp.luidDeviceNodeMask' in found_struct}} + + @property def luidDeviceNodeMask(self): return self._pvt_ptr[0].luidDeviceNodeMask @luidDeviceNodeMask.setter def luidDeviceNodeMask(self, unsigned int luidDeviceNodeMask): self._pvt_ptr[0].luidDeviceNodeMask = luidDeviceNodeMask - {{endif}} - {{if 'cudaDeviceProp.totalGlobalMem' in found_struct}} + + @property def totalGlobalMem(self): return self._pvt_ptr[0].totalGlobalMem @totalGlobalMem.setter def totalGlobalMem(self, size_t totalGlobalMem): self._pvt_ptr[0].totalGlobalMem = totalGlobalMem - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlock' in found_struct}} + + @property def sharedMemPerBlock(self): return self._pvt_ptr[0].sharedMemPerBlock @sharedMemPerBlock.setter def sharedMemPerBlock(self, size_t sharedMemPerBlock): self._pvt_ptr[0].sharedMemPerBlock = sharedMemPerBlock - {{endif}} - {{if 'cudaDeviceProp.regsPerBlock' in found_struct}} + + @property def regsPerBlock(self): return self._pvt_ptr[0].regsPerBlock @regsPerBlock.setter def regsPerBlock(self, int regsPerBlock): self._pvt_ptr[0].regsPerBlock = regsPerBlock - {{endif}} - {{if 'cudaDeviceProp.warpSize' in found_struct}} + + @property def warpSize(self): return self._pvt_ptr[0].warpSize @warpSize.setter def warpSize(self, int warpSize): self._pvt_ptr[0].warpSize = warpSize - {{endif}} - {{if 'cudaDeviceProp.memPitch' in found_struct}} + + @property def memPitch(self): return self._pvt_ptr[0].memPitch @memPitch.setter def memPitch(self, size_t memPitch): self._pvt_ptr[0].memPitch = memPitch - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerBlock' in found_struct}} + + @property def maxThreadsPerBlock(self): return self._pvt_ptr[0].maxThreadsPerBlock @maxThreadsPerBlock.setter def maxThreadsPerBlock(self, int maxThreadsPerBlock): self._pvt_ptr[0].maxThreadsPerBlock = maxThreadsPerBlock - {{endif}} - {{if 'cudaDeviceProp.maxThreadsDim' in found_struct}} + + @property def maxThreadsDim(self): return self._pvt_ptr[0].maxThreadsDim @maxThreadsDim.setter def maxThreadsDim(self, maxThreadsDim): self._pvt_ptr[0].maxThreadsDim = maxThreadsDim - {{endif}} - {{if 'cudaDeviceProp.maxGridSize' in found_struct}} + + @property def maxGridSize(self): return self._pvt_ptr[0].maxGridSize @maxGridSize.setter def maxGridSize(self, maxGridSize): self._pvt_ptr[0].maxGridSize = maxGridSize - {{endif}} - {{if 'cudaDeviceProp.totalConstMem' in found_struct}} + + @property def totalConstMem(self): return self._pvt_ptr[0].totalConstMem @totalConstMem.setter def totalConstMem(self, size_t totalConstMem): self._pvt_ptr[0].totalConstMem = totalConstMem - {{endif}} - {{if 'cudaDeviceProp.major' in found_struct}} + + @property def major(self): return self._pvt_ptr[0].major @major.setter def major(self, int major): self._pvt_ptr[0].major = major - {{endif}} - {{if 'cudaDeviceProp.minor' in found_struct}} + + @property def minor(self): return self._pvt_ptr[0].minor @minor.setter def minor(self, int minor): self._pvt_ptr[0].minor = minor - {{endif}} - {{if 'cudaDeviceProp.textureAlignment' in found_struct}} + + @property def textureAlignment(self): return self._pvt_ptr[0].textureAlignment @textureAlignment.setter def textureAlignment(self, size_t textureAlignment): self._pvt_ptr[0].textureAlignment = textureAlignment - {{endif}} - {{if 'cudaDeviceProp.texturePitchAlignment' in found_struct}} + + @property def texturePitchAlignment(self): return self._pvt_ptr[0].texturePitchAlignment @texturePitchAlignment.setter def texturePitchAlignment(self, size_t texturePitchAlignment): self._pvt_ptr[0].texturePitchAlignment = texturePitchAlignment - {{endif}} - {{if 'cudaDeviceProp.multiProcessorCount' in found_struct}} + + @property def multiProcessorCount(self): return self._pvt_ptr[0].multiProcessorCount @multiProcessorCount.setter def multiProcessorCount(self, int multiProcessorCount): self._pvt_ptr[0].multiProcessorCount = multiProcessorCount - {{endif}} - {{if 'cudaDeviceProp.integrated' in found_struct}} + + @property def integrated(self): return self._pvt_ptr[0].integrated @integrated.setter def integrated(self, int integrated): self._pvt_ptr[0].integrated = integrated - {{endif}} - {{if 'cudaDeviceProp.canMapHostMemory' in found_struct}} + + @property def canMapHostMemory(self): return self._pvt_ptr[0].canMapHostMemory @canMapHostMemory.setter def canMapHostMemory(self, int canMapHostMemory): self._pvt_ptr[0].canMapHostMemory = canMapHostMemory - {{endif}} - {{if 'cudaDeviceProp.maxTexture1D' in found_struct}} + + @property def maxTexture1D(self): return self._pvt_ptr[0].maxTexture1D @maxTexture1D.setter def maxTexture1D(self, int maxTexture1D): self._pvt_ptr[0].maxTexture1D = maxTexture1D - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DMipmap' in found_struct}} + + @property def maxTexture1DMipmap(self): return self._pvt_ptr[0].maxTexture1DMipmap @maxTexture1DMipmap.setter def maxTexture1DMipmap(self, int maxTexture1DMipmap): self._pvt_ptr[0].maxTexture1DMipmap = maxTexture1DMipmap - {{endif}} - {{if 'cudaDeviceProp.maxTexture2D' in found_struct}} + + @property def maxTexture2D(self): return self._pvt_ptr[0].maxTexture2D @maxTexture2D.setter def maxTexture2D(self, maxTexture2D): self._pvt_ptr[0].maxTexture2D = maxTexture2D - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DMipmap' in found_struct}} + + @property def maxTexture2DMipmap(self): return self._pvt_ptr[0].maxTexture2DMipmap @maxTexture2DMipmap.setter def maxTexture2DMipmap(self, maxTexture2DMipmap): self._pvt_ptr[0].maxTexture2DMipmap = maxTexture2DMipmap - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLinear' in found_struct}} + + @property def maxTexture2DLinear(self): return self._pvt_ptr[0].maxTexture2DLinear @maxTexture2DLinear.setter def maxTexture2DLinear(self, maxTexture2DLinear): self._pvt_ptr[0].maxTexture2DLinear = maxTexture2DLinear - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DGather' in found_struct}} + + @property def maxTexture2DGather(self): return self._pvt_ptr[0].maxTexture2DGather @maxTexture2DGather.setter def maxTexture2DGather(self, maxTexture2DGather): self._pvt_ptr[0].maxTexture2DGather = maxTexture2DGather - {{endif}} - {{if 'cudaDeviceProp.maxTexture3D' in found_struct}} + + @property def maxTexture3D(self): return self._pvt_ptr[0].maxTexture3D @maxTexture3D.setter def maxTexture3D(self, maxTexture3D): self._pvt_ptr[0].maxTexture3D = maxTexture3D - {{endif}} - {{if 'cudaDeviceProp.maxTexture3DAlt' in found_struct}} + + @property def maxTexture3DAlt(self): return self._pvt_ptr[0].maxTexture3DAlt @maxTexture3DAlt.setter def maxTexture3DAlt(self, maxTexture3DAlt): self._pvt_ptr[0].maxTexture3DAlt = maxTexture3DAlt - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemap' in found_struct}} + + @property def maxTextureCubemap(self): return self._pvt_ptr[0].maxTextureCubemap @maxTextureCubemap.setter def maxTextureCubemap(self, int maxTextureCubemap): self._pvt_ptr[0].maxTextureCubemap = maxTextureCubemap - {{endif}} - {{if 'cudaDeviceProp.maxTexture1DLayered' in found_struct}} + + @property def maxTexture1DLayered(self): return self._pvt_ptr[0].maxTexture1DLayered @maxTexture1DLayered.setter def maxTexture1DLayered(self, maxTexture1DLayered): self._pvt_ptr[0].maxTexture1DLayered = maxTexture1DLayered - {{endif}} - {{if 'cudaDeviceProp.maxTexture2DLayered' in found_struct}} + + @property def maxTexture2DLayered(self): return self._pvt_ptr[0].maxTexture2DLayered @maxTexture2DLayered.setter def maxTexture2DLayered(self, maxTexture2DLayered): self._pvt_ptr[0].maxTexture2DLayered = maxTexture2DLayered - {{endif}} - {{if 'cudaDeviceProp.maxTextureCubemapLayered' in found_struct}} + + @property def maxTextureCubemapLayered(self): return self._pvt_ptr[0].maxTextureCubemapLayered @maxTextureCubemapLayered.setter def maxTextureCubemapLayered(self, maxTextureCubemapLayered): self._pvt_ptr[0].maxTextureCubemapLayered = maxTextureCubemapLayered - {{endif}} - {{if 'cudaDeviceProp.maxSurface1D' in found_struct}} + + @property def maxSurface1D(self): return self._pvt_ptr[0].maxSurface1D @maxSurface1D.setter def maxSurface1D(self, int maxSurface1D): self._pvt_ptr[0].maxSurface1D = maxSurface1D - {{endif}} - {{if 'cudaDeviceProp.maxSurface2D' in found_struct}} + + @property def maxSurface2D(self): return self._pvt_ptr[0].maxSurface2D @maxSurface2D.setter def maxSurface2D(self, maxSurface2D): self._pvt_ptr[0].maxSurface2D = maxSurface2D - {{endif}} - {{if 'cudaDeviceProp.maxSurface3D' in found_struct}} + + @property def maxSurface3D(self): return self._pvt_ptr[0].maxSurface3D @maxSurface3D.setter def maxSurface3D(self, maxSurface3D): self._pvt_ptr[0].maxSurface3D = maxSurface3D - {{endif}} - {{if 'cudaDeviceProp.maxSurface1DLayered' in found_struct}} + + @property def maxSurface1DLayered(self): return self._pvt_ptr[0].maxSurface1DLayered @maxSurface1DLayered.setter def maxSurface1DLayered(self, maxSurface1DLayered): self._pvt_ptr[0].maxSurface1DLayered = maxSurface1DLayered - {{endif}} - {{if 'cudaDeviceProp.maxSurface2DLayered' in found_struct}} + + @property def maxSurface2DLayered(self): return self._pvt_ptr[0].maxSurface2DLayered @maxSurface2DLayered.setter def maxSurface2DLayered(self, maxSurface2DLayered): self._pvt_ptr[0].maxSurface2DLayered = maxSurface2DLayered - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemap' in found_struct}} + + @property def maxSurfaceCubemap(self): return self._pvt_ptr[0].maxSurfaceCubemap @maxSurfaceCubemap.setter def maxSurfaceCubemap(self, int maxSurfaceCubemap): self._pvt_ptr[0].maxSurfaceCubemap = maxSurfaceCubemap - {{endif}} - {{if 'cudaDeviceProp.maxSurfaceCubemapLayered' in found_struct}} + + @property def maxSurfaceCubemapLayered(self): return self._pvt_ptr[0].maxSurfaceCubemapLayered @maxSurfaceCubemapLayered.setter def maxSurfaceCubemapLayered(self, maxSurfaceCubemapLayered): self._pvt_ptr[0].maxSurfaceCubemapLayered = maxSurfaceCubemapLayered - {{endif}} - {{if 'cudaDeviceProp.surfaceAlignment' in found_struct}} + + @property def surfaceAlignment(self): return self._pvt_ptr[0].surfaceAlignment @surfaceAlignment.setter def surfaceAlignment(self, size_t surfaceAlignment): self._pvt_ptr[0].surfaceAlignment = surfaceAlignment - {{endif}} - {{if 'cudaDeviceProp.concurrentKernels' in found_struct}} + + @property def concurrentKernels(self): return self._pvt_ptr[0].concurrentKernels @concurrentKernels.setter def concurrentKernels(self, int concurrentKernels): self._pvt_ptr[0].concurrentKernels = concurrentKernels - {{endif}} - {{if 'cudaDeviceProp.ECCEnabled' in found_struct}} + + @property def ECCEnabled(self): return self._pvt_ptr[0].ECCEnabled @ECCEnabled.setter def ECCEnabled(self, int ECCEnabled): self._pvt_ptr[0].ECCEnabled = ECCEnabled - {{endif}} - {{if 'cudaDeviceProp.pciBusID' in found_struct}} + + @property def pciBusID(self): return self._pvt_ptr[0].pciBusID @pciBusID.setter def pciBusID(self, int pciBusID): self._pvt_ptr[0].pciBusID = pciBusID - {{endif}} - {{if 'cudaDeviceProp.pciDeviceID' in found_struct}} + + @property def pciDeviceID(self): return self._pvt_ptr[0].pciDeviceID @pciDeviceID.setter def pciDeviceID(self, int pciDeviceID): self._pvt_ptr[0].pciDeviceID = pciDeviceID - {{endif}} - {{if 'cudaDeviceProp.pciDomainID' in found_struct}} + + @property def pciDomainID(self): return self._pvt_ptr[0].pciDomainID @pciDomainID.setter def pciDomainID(self, int pciDomainID): self._pvt_ptr[0].pciDomainID = pciDomainID - {{endif}} - {{if 'cudaDeviceProp.tccDriver' in found_struct}} + + @property def tccDriver(self): return self._pvt_ptr[0].tccDriver @tccDriver.setter def tccDriver(self, int tccDriver): self._pvt_ptr[0].tccDriver = tccDriver - {{endif}} - {{if 'cudaDeviceProp.asyncEngineCount' in found_struct}} + + @property def asyncEngineCount(self): return self._pvt_ptr[0].asyncEngineCount @asyncEngineCount.setter def asyncEngineCount(self, int asyncEngineCount): self._pvt_ptr[0].asyncEngineCount = asyncEngineCount - {{endif}} - {{if 'cudaDeviceProp.unifiedAddressing' in found_struct}} + + @property def unifiedAddressing(self): return self._pvt_ptr[0].unifiedAddressing @unifiedAddressing.setter def unifiedAddressing(self, int unifiedAddressing): self._pvt_ptr[0].unifiedAddressing = unifiedAddressing - {{endif}} - {{if 'cudaDeviceProp.memoryBusWidth' in found_struct}} + + @property def memoryBusWidth(self): return self._pvt_ptr[0].memoryBusWidth @memoryBusWidth.setter def memoryBusWidth(self, int memoryBusWidth): self._pvt_ptr[0].memoryBusWidth = memoryBusWidth - {{endif}} - {{if 'cudaDeviceProp.l2CacheSize' in found_struct}} + + @property def l2CacheSize(self): return self._pvt_ptr[0].l2CacheSize @l2CacheSize.setter def l2CacheSize(self, int l2CacheSize): self._pvt_ptr[0].l2CacheSize = l2CacheSize - {{endif}} - {{if 'cudaDeviceProp.persistingL2CacheMaxSize' in found_struct}} + + @property def persistingL2CacheMaxSize(self): return self._pvt_ptr[0].persistingL2CacheMaxSize @persistingL2CacheMaxSize.setter def persistingL2CacheMaxSize(self, int persistingL2CacheMaxSize): self._pvt_ptr[0].persistingL2CacheMaxSize = persistingL2CacheMaxSize - {{endif}} - {{if 'cudaDeviceProp.maxThreadsPerMultiProcessor' in found_struct}} + + @property def maxThreadsPerMultiProcessor(self): return self._pvt_ptr[0].maxThreadsPerMultiProcessor @maxThreadsPerMultiProcessor.setter def maxThreadsPerMultiProcessor(self, int maxThreadsPerMultiProcessor): self._pvt_ptr[0].maxThreadsPerMultiProcessor = maxThreadsPerMultiProcessor - {{endif}} - {{if 'cudaDeviceProp.streamPrioritiesSupported' in found_struct}} + + @property def streamPrioritiesSupported(self): return self._pvt_ptr[0].streamPrioritiesSupported @streamPrioritiesSupported.setter def streamPrioritiesSupported(self, int streamPrioritiesSupported): self._pvt_ptr[0].streamPrioritiesSupported = streamPrioritiesSupported - {{endif}} - {{if 'cudaDeviceProp.globalL1CacheSupported' in found_struct}} + + @property def globalL1CacheSupported(self): return self._pvt_ptr[0].globalL1CacheSupported @globalL1CacheSupported.setter def globalL1CacheSupported(self, int globalL1CacheSupported): self._pvt_ptr[0].globalL1CacheSupported = globalL1CacheSupported - {{endif}} - {{if 'cudaDeviceProp.localL1CacheSupported' in found_struct}} + + @property def localL1CacheSupported(self): return self._pvt_ptr[0].localL1CacheSupported @localL1CacheSupported.setter def localL1CacheSupported(self, int localL1CacheSupported): self._pvt_ptr[0].localL1CacheSupported = localL1CacheSupported - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerMultiprocessor' in found_struct}} + + @property def sharedMemPerMultiprocessor(self): return self._pvt_ptr[0].sharedMemPerMultiprocessor @sharedMemPerMultiprocessor.setter def sharedMemPerMultiprocessor(self, size_t sharedMemPerMultiprocessor): self._pvt_ptr[0].sharedMemPerMultiprocessor = sharedMemPerMultiprocessor - {{endif}} - {{if 'cudaDeviceProp.regsPerMultiprocessor' in found_struct}} + + @property def regsPerMultiprocessor(self): return self._pvt_ptr[0].regsPerMultiprocessor @regsPerMultiprocessor.setter def regsPerMultiprocessor(self, int regsPerMultiprocessor): self._pvt_ptr[0].regsPerMultiprocessor = regsPerMultiprocessor - {{endif}} - {{if 'cudaDeviceProp.managedMemory' in found_struct}} + + @property def managedMemory(self): return self._pvt_ptr[0].managedMemory @managedMemory.setter def managedMemory(self, int managedMemory): self._pvt_ptr[0].managedMemory = managedMemory - {{endif}} - {{if 'cudaDeviceProp.isMultiGpuBoard' in found_struct}} + + @property def isMultiGpuBoard(self): return self._pvt_ptr[0].isMultiGpuBoard @isMultiGpuBoard.setter def isMultiGpuBoard(self, int isMultiGpuBoard): self._pvt_ptr[0].isMultiGpuBoard = isMultiGpuBoard - {{endif}} - {{if 'cudaDeviceProp.multiGpuBoardGroupID' in found_struct}} + + @property def multiGpuBoardGroupID(self): return self._pvt_ptr[0].multiGpuBoardGroupID @multiGpuBoardGroupID.setter def multiGpuBoardGroupID(self, int multiGpuBoardGroupID): self._pvt_ptr[0].multiGpuBoardGroupID = multiGpuBoardGroupID - {{endif}} - {{if 'cudaDeviceProp.hostNativeAtomicSupported' in found_struct}} + + @property def hostNativeAtomicSupported(self): return self._pvt_ptr[0].hostNativeAtomicSupported @hostNativeAtomicSupported.setter def hostNativeAtomicSupported(self, int hostNativeAtomicSupported): self._pvt_ptr[0].hostNativeAtomicSupported = hostNativeAtomicSupported - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccess' in found_struct}} + + @property def pageableMemoryAccess(self): return self._pvt_ptr[0].pageableMemoryAccess @pageableMemoryAccess.setter def pageableMemoryAccess(self, int pageableMemoryAccess): self._pvt_ptr[0].pageableMemoryAccess = pageableMemoryAccess - {{endif}} - {{if 'cudaDeviceProp.concurrentManagedAccess' in found_struct}} + + @property def concurrentManagedAccess(self): return self._pvt_ptr[0].concurrentManagedAccess @concurrentManagedAccess.setter def concurrentManagedAccess(self, int concurrentManagedAccess): self._pvt_ptr[0].concurrentManagedAccess = concurrentManagedAccess - {{endif}} - {{if 'cudaDeviceProp.computePreemptionSupported' in found_struct}} + + @property def computePreemptionSupported(self): return self._pvt_ptr[0].computePreemptionSupported @computePreemptionSupported.setter def computePreemptionSupported(self, int computePreemptionSupported): self._pvt_ptr[0].computePreemptionSupported = computePreemptionSupported - {{endif}} - {{if 'cudaDeviceProp.canUseHostPointerForRegisteredMem' in found_struct}} + + @property def canUseHostPointerForRegisteredMem(self): return self._pvt_ptr[0].canUseHostPointerForRegisteredMem @canUseHostPointerForRegisteredMem.setter def canUseHostPointerForRegisteredMem(self, int canUseHostPointerForRegisteredMem): self._pvt_ptr[0].canUseHostPointerForRegisteredMem = canUseHostPointerForRegisteredMem - {{endif}} - {{if 'cudaDeviceProp.cooperativeLaunch' in found_struct}} + + @property def cooperativeLaunch(self): return self._pvt_ptr[0].cooperativeLaunch @cooperativeLaunch.setter def cooperativeLaunch(self, int cooperativeLaunch): self._pvt_ptr[0].cooperativeLaunch = cooperativeLaunch - {{endif}} - {{if 'cudaDeviceProp.sharedMemPerBlockOptin' in found_struct}} + + @property def sharedMemPerBlockOptin(self): return self._pvt_ptr[0].sharedMemPerBlockOptin @sharedMemPerBlockOptin.setter def sharedMemPerBlockOptin(self, size_t sharedMemPerBlockOptin): self._pvt_ptr[0].sharedMemPerBlockOptin = sharedMemPerBlockOptin - {{endif}} - {{if 'cudaDeviceProp.pageableMemoryAccessUsesHostPageTables' in found_struct}} + + @property def pageableMemoryAccessUsesHostPageTables(self): return self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables @pageableMemoryAccessUsesHostPageTables.setter def pageableMemoryAccessUsesHostPageTables(self, int pageableMemoryAccessUsesHostPageTables): self._pvt_ptr[0].pageableMemoryAccessUsesHostPageTables = pageableMemoryAccessUsesHostPageTables - {{endif}} - {{if 'cudaDeviceProp.directManagedMemAccessFromHost' in found_struct}} + + @property def directManagedMemAccessFromHost(self): return self._pvt_ptr[0].directManagedMemAccessFromHost @directManagedMemAccessFromHost.setter def directManagedMemAccessFromHost(self, int directManagedMemAccessFromHost): self._pvt_ptr[0].directManagedMemAccessFromHost = directManagedMemAccessFromHost - {{endif}} - {{if 'cudaDeviceProp.maxBlocksPerMultiProcessor' in found_struct}} + + @property def maxBlocksPerMultiProcessor(self): return self._pvt_ptr[0].maxBlocksPerMultiProcessor @maxBlocksPerMultiProcessor.setter def maxBlocksPerMultiProcessor(self, int maxBlocksPerMultiProcessor): self._pvt_ptr[0].maxBlocksPerMultiProcessor = maxBlocksPerMultiProcessor - {{endif}} - {{if 'cudaDeviceProp.accessPolicyMaxWindowSize' in found_struct}} + + @property def accessPolicyMaxWindowSize(self): return self._pvt_ptr[0].accessPolicyMaxWindowSize @accessPolicyMaxWindowSize.setter def accessPolicyMaxWindowSize(self, int accessPolicyMaxWindowSize): self._pvt_ptr[0].accessPolicyMaxWindowSize = accessPolicyMaxWindowSize - {{endif}} - {{if 'cudaDeviceProp.reservedSharedMemPerBlock' in found_struct}} + + @property def reservedSharedMemPerBlock(self): return self._pvt_ptr[0].reservedSharedMemPerBlock @reservedSharedMemPerBlock.setter def reservedSharedMemPerBlock(self, size_t reservedSharedMemPerBlock): self._pvt_ptr[0].reservedSharedMemPerBlock = reservedSharedMemPerBlock - {{endif}} - {{if 'cudaDeviceProp.hostRegisterSupported' in found_struct}} + + @property def hostRegisterSupported(self): return self._pvt_ptr[0].hostRegisterSupported @hostRegisterSupported.setter def hostRegisterSupported(self, int hostRegisterSupported): self._pvt_ptr[0].hostRegisterSupported = hostRegisterSupported - {{endif}} - {{if 'cudaDeviceProp.sparseCudaArraySupported' in found_struct}} + + @property def sparseCudaArraySupported(self): return self._pvt_ptr[0].sparseCudaArraySupported @sparseCudaArraySupported.setter def sparseCudaArraySupported(self, int sparseCudaArraySupported): self._pvt_ptr[0].sparseCudaArraySupported = sparseCudaArraySupported - {{endif}} - {{if 'cudaDeviceProp.hostRegisterReadOnlySupported' in found_struct}} + + @property def hostRegisterReadOnlySupported(self): return self._pvt_ptr[0].hostRegisterReadOnlySupported @hostRegisterReadOnlySupported.setter def hostRegisterReadOnlySupported(self, int hostRegisterReadOnlySupported): self._pvt_ptr[0].hostRegisterReadOnlySupported = hostRegisterReadOnlySupported - {{endif}} - {{if 'cudaDeviceProp.timelineSemaphoreInteropSupported' in found_struct}} + + @property def timelineSemaphoreInteropSupported(self): return self._pvt_ptr[0].timelineSemaphoreInteropSupported @timelineSemaphoreInteropSupported.setter def timelineSemaphoreInteropSupported(self, int timelineSemaphoreInteropSupported): self._pvt_ptr[0].timelineSemaphoreInteropSupported = timelineSemaphoreInteropSupported - {{endif}} - {{if 'cudaDeviceProp.memoryPoolsSupported' in found_struct}} + + @property def memoryPoolsSupported(self): return self._pvt_ptr[0].memoryPoolsSupported @memoryPoolsSupported.setter def memoryPoolsSupported(self, int memoryPoolsSupported): self._pvt_ptr[0].memoryPoolsSupported = memoryPoolsSupported - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMASupported' in found_struct}} + + @property def gpuDirectRDMASupported(self): return self._pvt_ptr[0].gpuDirectRDMASupported @gpuDirectRDMASupported.setter def gpuDirectRDMASupported(self, int gpuDirectRDMASupported): self._pvt_ptr[0].gpuDirectRDMASupported = gpuDirectRDMASupported - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAFlushWritesOptions' in found_struct}} + + @property def gpuDirectRDMAFlushWritesOptions(self): return self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions @gpuDirectRDMAFlushWritesOptions.setter def gpuDirectRDMAFlushWritesOptions(self, unsigned int gpuDirectRDMAFlushWritesOptions): self._pvt_ptr[0].gpuDirectRDMAFlushWritesOptions = gpuDirectRDMAFlushWritesOptions - {{endif}} - {{if 'cudaDeviceProp.gpuDirectRDMAWritesOrdering' in found_struct}} + + @property def gpuDirectRDMAWritesOrdering(self): return self._pvt_ptr[0].gpuDirectRDMAWritesOrdering @gpuDirectRDMAWritesOrdering.setter def gpuDirectRDMAWritesOrdering(self, int gpuDirectRDMAWritesOrdering): self._pvt_ptr[0].gpuDirectRDMAWritesOrdering = gpuDirectRDMAWritesOrdering - {{endif}} - {{if 'cudaDeviceProp.memoryPoolSupportedHandleTypes' in found_struct}} + + @property def memoryPoolSupportedHandleTypes(self): return self._pvt_ptr[0].memoryPoolSupportedHandleTypes @memoryPoolSupportedHandleTypes.setter def memoryPoolSupportedHandleTypes(self, unsigned int memoryPoolSupportedHandleTypes): self._pvt_ptr[0].memoryPoolSupportedHandleTypes = memoryPoolSupportedHandleTypes - {{endif}} - {{if 'cudaDeviceProp.deferredMappingCudaArraySupported' in found_struct}} + + @property def deferredMappingCudaArraySupported(self): return self._pvt_ptr[0].deferredMappingCudaArraySupported @deferredMappingCudaArraySupported.setter def deferredMappingCudaArraySupported(self, int deferredMappingCudaArraySupported): self._pvt_ptr[0].deferredMappingCudaArraySupported = deferredMappingCudaArraySupported - {{endif}} - {{if 'cudaDeviceProp.ipcEventSupported' in found_struct}} + + @property def ipcEventSupported(self): return self._pvt_ptr[0].ipcEventSupported @ipcEventSupported.setter def ipcEventSupported(self, int ipcEventSupported): self._pvt_ptr[0].ipcEventSupported = ipcEventSupported - {{endif}} - {{if 'cudaDeviceProp.clusterLaunch' in found_struct}} + + @property def clusterLaunch(self): return self._pvt_ptr[0].clusterLaunch @clusterLaunch.setter def clusterLaunch(self, int clusterLaunch): self._pvt_ptr[0].clusterLaunch = clusterLaunch - {{endif}} - {{if 'cudaDeviceProp.unifiedFunctionPointers' in found_struct}} + + @property def unifiedFunctionPointers(self): return self._pvt_ptr[0].unifiedFunctionPointers @unifiedFunctionPointers.setter def unifiedFunctionPointers(self, int unifiedFunctionPointers): self._pvt_ptr[0].unifiedFunctionPointers = unifiedFunctionPointers - {{endif}} - {{if 'cudaDeviceProp.deviceNumaConfig' in found_struct}} + + @property def deviceNumaConfig(self): return self._pvt_ptr[0].deviceNumaConfig @deviceNumaConfig.setter def deviceNumaConfig(self, int deviceNumaConfig): self._pvt_ptr[0].deviceNumaConfig = deviceNumaConfig - {{endif}} - {{if 'cudaDeviceProp.deviceNumaId' in found_struct}} + + @property def deviceNumaId(self): return self._pvt_ptr[0].deviceNumaId @deviceNumaId.setter def deviceNumaId(self, int deviceNumaId): self._pvt_ptr[0].deviceNumaId = deviceNumaId - {{endif}} - {{if 'cudaDeviceProp.mpsEnabled' in found_struct}} + + @property def mpsEnabled(self): return self._pvt_ptr[0].mpsEnabled @mpsEnabled.setter def mpsEnabled(self, int mpsEnabled): self._pvt_ptr[0].mpsEnabled = mpsEnabled - {{endif}} - {{if 'cudaDeviceProp.hostNumaId' in found_struct}} + + @property def hostNumaId(self): return self._pvt_ptr[0].hostNumaId @hostNumaId.setter def hostNumaId(self, int hostNumaId): self._pvt_ptr[0].hostNumaId = hostNumaId - {{endif}} - {{if 'cudaDeviceProp.gpuPciDeviceID' in found_struct}} + + @property def gpuPciDeviceID(self): return self._pvt_ptr[0].gpuPciDeviceID @gpuPciDeviceID.setter def gpuPciDeviceID(self, unsigned int gpuPciDeviceID): self._pvt_ptr[0].gpuPciDeviceID = gpuPciDeviceID - {{endif}} - {{if 'cudaDeviceProp.gpuPciSubsystemID' in found_struct}} + + @property def gpuPciSubsystemID(self): return self._pvt_ptr[0].gpuPciSubsystemID @gpuPciSubsystemID.setter def gpuPciSubsystemID(self, unsigned int gpuPciSubsystemID): self._pvt_ptr[0].gpuPciSubsystemID = gpuPciSubsystemID - {{endif}} - {{if 'cudaDeviceProp.hostNumaMultinodeIpcSupported' in found_struct}} + + @property def hostNumaMultinodeIpcSupported(self): return self._pvt_ptr[0].hostNumaMultinodeIpcSupported @hostNumaMultinodeIpcSupported.setter def hostNumaMultinodeIpcSupported(self, int hostNumaMultinodeIpcSupported): self._pvt_ptr[0].hostNumaMultinodeIpcSupported = hostNumaMultinodeIpcSupported - {{endif}} - {{if 'cudaDeviceProp.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaIpcEventHandle_st' in found_struct}} + cdef class cudaIpcEventHandle_st: """ @@ -14453,10 +14013,10 @@ cdef class cudaIpcEventHandle_st: Attributes ---------- - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -14477,16 +14037,16 @@ cdef class cudaIpcEventHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaIpcEventHandle_st.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) @@ -14504,9 +14064,7 @@ cdef class cudaIpcEventHandle_st: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaIpcMemHandle_st' in found_struct}} + cdef class cudaIpcMemHandle_st: """ @@ -14514,10 +14072,10 @@ cdef class cudaIpcMemHandle_st: Attributes ---------- - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -14538,16 +14096,16 @@ cdef class cudaIpcMemHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaIpcMemHandle_st.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) @@ -14565,18 +14123,16 @@ cdef class cudaIpcMemHandle_st: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaMemFabricHandle_st' in found_struct}} + cdef class cudaMemFabricHandle_st: """ Attributes ---------- - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} + reserved : bytes - {{endif}} + Methods ------- @@ -14597,16 +14153,16 @@ cdef class cudaMemFabricHandle_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaMemFabricHandle_st.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 64) @@ -14624,22 +14180,20 @@ cdef class cudaMemFabricHandle_st: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + cdef class anon_struct8: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -14658,22 +14212,22 @@ cdef class anon_struct8: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + try: str_list += ['handle : ' + hex(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + try: str_list += ['name : ' + hex(self.name)] except ValueError: str_list += ['name : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryHandleDesc.handle.win32.handle' in found_struct}} + @property def handle(self): return self._pvt_ptr[0].handle.win32.handle @@ -14681,8 +14235,8 @@ cdef class anon_struct8: def handle(self, handle): self._cyhandle = _HelperInputVoidPtr(handle) self._pvt_ptr[0].handle.win32.handle = self._cyhandle.cptr - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32.name' in found_struct}} + + @property def name(self): return self._pvt_ptr[0].handle.win32.name @@ -14690,26 +14244,24 @@ cdef class anon_struct8: def name(self, name): self._cyname = _HelperInputVoidPtr(name) self._pvt_ptr[0].handle.win32.name = self._cyname.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + cdef class anon_union3: """ Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct8 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + nvSciBufObject : Any - {{endif}} + Methods ------- @@ -14721,9 +14273,9 @@ cdef class anon_union3: def __init__(self, void_ptr _ptr): pass - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + self._win32 = anon_struct8(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -14731,44 +14283,44 @@ cdef class anon_union3: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + try: str_list += ['fd : ' + str(self.fd)] except ValueError: str_list += ['fd : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + try: str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] except ValueError: str_list += ['win32 : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + try: str_list += ['nvSciBufObject : ' + hex(self.nvSciBufObject)] except ValueError: str_list += ['nvSciBufObject : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryHandleDesc.handle.fd' in found_struct}} + @property def fd(self): return self._pvt_ptr[0].handle.fd @fd.setter def fd(self, int fd): self._pvt_ptr[0].handle.fd = fd - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.win32' in found_struct}} + + @property def win32(self): return self._win32 @win32.setter def win32(self, win32 not None : anon_struct8): string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle.nvSciBufObject' in found_struct}} + + @property def nvSciBufObject(self): return self._pvt_ptr[0].handle.nvSciBufObject @@ -14776,9 +14328,7 @@ cdef class anon_union3: def nvSciBufObject(self, nvSciBufObject): self._cynvSciBufObject = _HelperInputVoidPtr(nvSciBufObject) self._pvt_ptr[0].handle.nvSciBufObject = self._cynvSciBufObject.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryHandleDesc' in found_struct}} + cdef class cudaExternalMemoryHandleDesc: """ @@ -14786,26 +14336,26 @@ cdef class cudaExternalMemoryHandleDesc: Attributes ---------- - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + type : cudaExternalMemoryHandleType Type of the handle - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + + handle : anon_union3 - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + size : unsigned long long Size of the memory allocation - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags must either be zero or cudaExternalMemoryDedicated - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -14820,9 +14370,9 @@ cdef class cudaExternalMemoryHandleDesc: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + self._handle = anon_union3(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -14831,81 +14381,79 @@ cdef class cudaExternalMemoryHandleDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + + try: str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryHandleDesc.type' in found_struct}} + @property def type(self): return cudaExternalMemoryHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaExternalMemoryHandleType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.handle' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def handle(self): return self._handle @handle.setter def handle(self, handle not None : anon_union3): string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.size' in found_struct}} + + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, unsigned long long size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalMemoryHandleDesc.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryBufferDesc' in found_struct}} + cdef class cudaExternalMemoryBufferDesc: """ @@ -14913,22 +14461,22 @@ cdef class cudaExternalMemoryBufferDesc: Attributes ---------- - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the buffer's base is - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + size : unsigned long long Size of the buffer - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for future use. Must be zero. - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -14949,67 +14497,65 @@ cdef class cudaExternalMemoryBufferDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryBufferDesc.offset' in found_struct}} + @property def offset(self): return self._pvt_ptr[0].offset @offset.setter def offset(self, unsigned long long offset): self._pvt_ptr[0].offset = offset - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.size' in found_struct}} + + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, unsigned long long size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalMemoryBufferDesc.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalMemoryMipmappedArrayDesc' in found_struct}} + cdef class cudaExternalMemoryMipmappedArrayDesc: """ @@ -15017,32 +14563,32 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: Attributes ---------- - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + offset : unsigned long long Offset into the memory object where the base level of the mipmap chain is. - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + formatDesc : cudaChannelFormatDesc Format of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + extent : cudaExtent Dimensions of base level of the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + flags : unsigned int Flags associated with CUDA mipmapped arrays. See cudaMallocMipmappedArray - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + numLevels : unsigned int Total number of levels in the mipmap chain - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -15056,12 +14602,12 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + self._formatDesc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].formatDesc) - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + self._extent = cudaExtent(_ptr=&self._pvt_ptr[0].extent) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -15069,108 +14615,106 @@ cdef class cudaExternalMemoryMipmappedArrayDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + try: str_list += ['formatDesc :\n' + '\n'.join([' ' + line for line in str(self.formatDesc).splitlines()])] except ValueError: str_list += ['formatDesc : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + try: str_list += ['extent :\n' + '\n'.join([' ' + line for line in str(self.extent).splitlines()])] except ValueError: str_list += ['extent : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + try: str_list += ['numLevels : ' + str(self.numLevels)] except ValueError: str_list += ['numLevels : '] - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalMemoryMipmappedArrayDesc.offset' in found_struct}} + @property def offset(self): return self._pvt_ptr[0].offset @offset.setter def offset(self, unsigned long long offset): self._pvt_ptr[0].offset = offset - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.formatDesc' in found_struct}} + + @property def formatDesc(self): return self._formatDesc @formatDesc.setter def formatDesc(self, formatDesc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].formatDesc, formatDesc.getPtr(), sizeof(self._pvt_ptr[0].formatDesc)) - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.extent' in found_struct}} + + @property def extent(self): return self._extent @extent.setter def extent(self, extent not None : cudaExtent): string.memcpy(&self._pvt_ptr[0].extent, extent.getPtr(), sizeof(self._pvt_ptr[0].extent)) - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.numLevels' in found_struct}} + + @property def numLevels(self): return self._pvt_ptr[0].numLevels @numLevels.setter def numLevels(self, unsigned int numLevels): self._pvt_ptr[0].numLevels = numLevels - {{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + cdef class anon_struct9: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + handle : Any - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + name : Any - {{endif}} + Methods ------- @@ -15189,22 +14733,22 @@ cdef class anon_struct9: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + try: str_list += ['handle : ' + hex(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + try: str_list += ['name : ' + hex(self.name)] except ValueError: str_list += ['name : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.handle' in found_struct}} + @property def handle(self): return self._pvt_ptr[0].handle.win32.handle @@ -15212,8 +14756,8 @@ cdef class anon_struct9: def handle(self, handle): self._cyhandle = _HelperInputVoidPtr(handle) self._pvt_ptr[0].handle.win32.handle = self._cyhandle.cptr - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32.name' in found_struct}} + + @property def name(self): return self._pvt_ptr[0].handle.win32.name @@ -15221,26 +14765,24 @@ cdef class anon_struct9: def name(self, name): self._cyname = _HelperInputVoidPtr(name) self._pvt_ptr[0].handle.win32.name = self._cyname.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + cdef class anon_union4: """ Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + fd : int - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + win32 : anon_struct9 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + nvSciSyncObj : Any - {{endif}} + Methods ------- @@ -15252,9 +14794,9 @@ cdef class anon_union4: def __init__(self, void_ptr _ptr): pass - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + self._win32 = anon_struct9(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -15262,44 +14804,44 @@ cdef class anon_union4: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + try: str_list += ['fd : ' + str(self.fd)] except ValueError: str_list += ['fd : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + try: str_list += ['win32 :\n' + '\n'.join([' ' + line for line in str(self.win32).splitlines()])] except ValueError: str_list += ['win32 : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + try: str_list += ['nvSciSyncObj : ' + hex(self.nvSciSyncObj)] except ValueError: str_list += ['nvSciSyncObj : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreHandleDesc.handle.fd' in found_struct}} + @property def fd(self): return self._pvt_ptr[0].handle.fd @fd.setter def fd(self, int fd): self._pvt_ptr[0].handle.fd = fd - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.win32' in found_struct}} + + @property def win32(self): return self._win32 @win32.setter def win32(self, win32 not None : anon_struct9): string.memcpy(&self._pvt_ptr[0].handle.win32, win32.getPtr(), sizeof(self._pvt_ptr[0].handle.win32)) - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle.nvSciSyncObj' in found_struct}} + + @property def nvSciSyncObj(self): return self._pvt_ptr[0].handle.nvSciSyncObj @@ -15307,9 +14849,7 @@ cdef class anon_union4: def nvSciSyncObj(self, nvSciSyncObj): self._cynvSciSyncObj = _HelperInputVoidPtr(nvSciSyncObj) self._pvt_ptr[0].handle.nvSciSyncObj = self._cynvSciSyncObj.cptr - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreHandleDesc' in found_struct}} + cdef class cudaExternalSemaphoreHandleDesc: """ @@ -15317,22 +14857,22 @@ cdef class cudaExternalSemaphoreHandleDesc: Attributes ---------- - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + type : cudaExternalSemaphoreHandleType Type of the handle - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + + handle : anon_union4 - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + flags : unsigned int Flags reserved for the future. Must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.reserved' in found_struct}} + + reserved : list[unsigned int] Must be zero - {{endif}} + Methods ------- @@ -15347,9 +14887,9 @@ cdef class cudaExternalSemaphoreHandleDesc: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + self._handle = anon_union4(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -15358,76 +14898,74 @@ cdef class cudaExternalSemaphoreHandleDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + + try: str_list += ['handle :\n' + '\n'.join([' ' + line for line in str(self.handle).splitlines()])] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreHandleDesc.type' in found_struct}} + @property def type(self): return cudaExternalSemaphoreHandleType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaExternalSemaphoreHandleType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.handle' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def handle(self): return self._handle @handle.setter def handle(self, handle not None : anon_union4): string.memcpy(&self._pvt_ptr[0].handle, handle.getPtr(), sizeof(self._pvt_ptr[0].handle)) - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalSemaphoreHandleDesc.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + cdef class anon_struct10: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -15446,38 +14984,36 @@ cdef class anon_struct10: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.fence.value' in found_struct}} + @property def value(self): return self._pvt_ptr[0].params.fence.value @value.setter def value(self, unsigned long long value): self._pvt_ptr[0].params.fence.value = value - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + cdef class anon_union5: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -15496,22 +15032,22 @@ cdef class anon_union5: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + try: str_list += ['fence : ' + hex(self.fence)] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.fence' in found_struct}} + @property def fence(self): return self._pvt_ptr[0].params.nvSciSync.fence @@ -15519,26 +15055,24 @@ cdef class anon_union5: def fence(self, fence): self._cyfence = _HelperInputVoidPtr(fence) self._pvt_ptr[0].params.nvSciSync.fence = self._cyfence.cptr - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].params.nvSciSync.reserved @reserved.setter def reserved(self, unsigned long long reserved): self._pvt_ptr[0].params.nvSciSync.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + cdef class anon_struct11: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} + Methods ------- @@ -15557,46 +15091,44 @@ cdef class anon_struct11: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + try: str_list += ['key : ' + str(self.key)] except ValueError: str_list += ['key : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex.key' in found_struct}} + @property def key(self): return self._pvt_ptr[0].params.keyedMutex.key @key.setter def key(self, unsigned long long key): self._pvt_ptr[0].params.keyedMutex.key = key - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + cdef class anon_struct12: """ Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + fence : anon_struct10 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union5 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct11 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -15608,15 +15140,15 @@ cdef class anon_struct12: def __init__(self, void_ptr _ptr): pass - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + self._fence = anon_struct10(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + self._nvSciSync = anon_union5(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + self._keyedMutex = anon_struct11(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -15624,67 +15156,65 @@ cdef class anon_struct12: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + try: str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + try: str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] except ValueError: str_list += ['nvSciSync : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + try: str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] except ValueError: str_list += ['keyedMutex : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params.fence' in found_struct}} + @property def fence(self): return self._fence @fence.setter def fence(self, fence not None : anon_struct10): string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.nvSciSync' in found_struct}} + + @property def nvSciSync(self): return self._nvSciSync @nvSciSync.setter def nvSciSync(self, nvSciSync not None : anon_union5): string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.keyedMutex' in found_struct}} + + @property def keyedMutex(self): return self._keyedMutex @keyedMutex.setter def keyedMutex(self, keyedMutex not None : anon_struct11): string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.params.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].params.reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].params.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalParams' in found_struct}} + cdef class cudaExternalSemaphoreSignalParams: """ @@ -15692,11 +15222,11 @@ cdef class cudaExternalSemaphoreSignalParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + params : anon_struct12 - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -15706,11 +15236,11 @@ cdef class cudaExternalSemaphoreSignalParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -15724,9 +15254,9 @@ cdef class cudaExternalSemaphoreSignalParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + self._params = anon_struct12(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -15734,62 +15264,60 @@ cdef class cudaExternalSemaphoreSignalParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + try: str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] except ValueError: str_list += ['params : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalParams.params' in found_struct}} + @property def params(self): return self._params @params.setter def params(self, params not None : anon_struct12): string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalSemaphoreSignalParams.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + cdef class anon_struct13: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + value : unsigned long long - {{endif}} + Methods ------- @@ -15808,38 +15336,36 @@ cdef class anon_struct13: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + try: str_list += ['value : ' + str(self.value)] except ValueError: str_list += ['value : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.fence.value' in found_struct}} + @property def value(self): return self._pvt_ptr[0].params.fence.value @value.setter def value(self, unsigned long long value): self._pvt_ptr[0].params.fence.value = value - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + cdef class anon_union6: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + fence : Any - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} + + reserved : unsigned long long - {{endif}} + Methods ------- @@ -15858,22 +15384,22 @@ cdef class anon_union6: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + try: str_list += ['fence : ' + hex(self.fence)] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.fence' in found_struct}} + @property def fence(self): return self._pvt_ptr[0].params.nvSciSync.fence @@ -15881,30 +15407,28 @@ cdef class anon_union6: def fence(self, fence): self._cyfence = _HelperInputVoidPtr(fence) self._pvt_ptr[0].params.nvSciSync.fence = self._cyfence.cptr - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].params.nvSciSync.reserved @reserved.setter def reserved(self, unsigned long long reserved): self._pvt_ptr[0].params.nvSciSync.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + cdef class anon_struct14: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + key : unsigned long long - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + timeoutMs : unsigned int - {{endif}} + Methods ------- @@ -15923,60 +15447,58 @@ cdef class anon_struct14: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + try: str_list += ['key : ' + str(self.key)] except ValueError: str_list += ['key : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + try: str_list += ['timeoutMs : ' + str(self.timeoutMs)] except ValueError: str_list += ['timeoutMs : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.key' in found_struct}} + @property def key(self): return self._pvt_ptr[0].params.keyedMutex.key @key.setter def key(self, unsigned long long key): self._pvt_ptr[0].params.keyedMutex.key = key - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex.timeoutMs' in found_struct}} + + @property def timeoutMs(self): return self._pvt_ptr[0].params.keyedMutex.timeoutMs @timeoutMs.setter def timeoutMs(self, unsigned int timeoutMs): self._pvt_ptr[0].params.keyedMutex.timeoutMs = timeoutMs - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + cdef class anon_struct15: """ Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + fence : anon_struct13 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + nvSciSync : anon_union6 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + keyedMutex : anon_struct14 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -15988,15 +15510,15 @@ cdef class anon_struct15: def __init__(self, void_ptr _ptr): pass - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + self._fence = anon_struct13(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + self._nvSciSync = anon_union6(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + self._keyedMutex = anon_struct14(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -16004,67 +15526,65 @@ cdef class anon_struct15: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + try: str_list += ['fence :\n' + '\n'.join([' ' + line for line in str(self.fence).splitlines()])] except ValueError: str_list += ['fence : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + try: str_list += ['nvSciSync :\n' + '\n'.join([' ' + line for line in str(self.nvSciSync).splitlines()])] except ValueError: str_list += ['nvSciSync : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + try: str_list += ['keyedMutex :\n' + '\n'.join([' ' + line for line in str(self.keyedMutex).splitlines()])] except ValueError: str_list += ['keyedMutex : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params.fence' in found_struct}} + @property def fence(self): return self._fence @fence.setter def fence(self, fence not None : anon_struct13): string.memcpy(&self._pvt_ptr[0].params.fence, fence.getPtr(), sizeof(self._pvt_ptr[0].params.fence)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.nvSciSync' in found_struct}} + + @property def nvSciSync(self): return self._nvSciSync @nvSciSync.setter def nvSciSync(self, nvSciSync not None : anon_union6): string.memcpy(&self._pvt_ptr[0].params.nvSciSync, nvSciSync.getPtr(), sizeof(self._pvt_ptr[0].params.nvSciSync)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.keyedMutex' in found_struct}} + + @property def keyedMutex(self): return self._keyedMutex @keyedMutex.setter def keyedMutex(self, keyedMutex not None : anon_struct14): string.memcpy(&self._pvt_ptr[0].params.keyedMutex, keyedMutex.getPtr(), sizeof(self._pvt_ptr[0].params.keyedMutex)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.params.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].params.reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].params.reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitParams: """ @@ -16072,11 +15592,11 @@ cdef class cudaExternalSemaphoreWaitParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + params : anon_struct15 - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + flags : unsigned int Only when cudaExternalSemaphoreSignalParams is used to signal a cudaExternalSemaphore_t of type @@ -16086,11 +15606,11 @@ cdef class cudaExternalSemaphoreWaitParams: synchronization operations should be performed for any external memory object imported as cudaExternalMemoryHandleTypeNvSciBuf. For all other types of cudaExternalSemaphore_t, flags must be zero. - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} + + reserved : list[unsigned int] - {{endif}} + Methods ------- @@ -16104,9 +15624,9 @@ cdef class cudaExternalSemaphoreWaitParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + self._params = anon_struct15(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -16114,53 +15634,51 @@ cdef class cudaExternalSemaphoreWaitParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + try: str_list += ['params :\n' + '\n'.join([' ' + line for line in str(self.params).splitlines()])] except ValueError: str_list += ['params : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitParams.params' in found_struct}} + @property def params(self): return self._params @params.setter def params(self, params not None : anon_struct15): string.memcpy(&self._pvt_ptr[0].params, params.getPtr(), sizeof(self._pvt_ptr[0].params)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaExternalSemaphoreWaitParams.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaDevSmResource' in found_struct}} + cdef class cudaDevSmResource: """ @@ -16169,27 +15687,27 @@ cdef class cudaDevSmResource: Attributes ---------- - {{if 'cudaDevSmResource.smCount' in found_struct}} + smCount : unsigned int The amount of streaming multiprocessors available in this resource. - {{endif}} - {{if 'cudaDevSmResource.minSmPartitionSize' in found_struct}} + + minSmPartitionSize : unsigned int The minimum number of streaming multiprocessors required to partition this resource. - {{endif}} - {{if 'cudaDevSmResource.smCoscheduledAlignment' in found_struct}} + + smCoscheduledAlignment : unsigned int The number of streaming multiprocessors in this resource that are guaranteed to be co-scheduled on the same GPU processing cluster. smCount will be a multiple of this value, unless the backfill flag is set. - {{endif}} - {{if 'cudaDevSmResource.flags' in found_struct}} + + flags : unsigned int The flags set on this SM resource. For available flags see cudaDevSmResourceGroup_flags. - {{endif}} + Methods ------- @@ -16210,67 +15728,65 @@ cdef class cudaDevSmResource: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaDevSmResource.smCount' in found_struct}} + try: str_list += ['smCount : ' + str(self.smCount)] except ValueError: str_list += ['smCount : '] - {{endif}} - {{if 'cudaDevSmResource.minSmPartitionSize' in found_struct}} + + try: str_list += ['minSmPartitionSize : ' + str(self.minSmPartitionSize)] except ValueError: str_list += ['minSmPartitionSize : '] - {{endif}} - {{if 'cudaDevSmResource.smCoscheduledAlignment' in found_struct}} + + try: str_list += ['smCoscheduledAlignment : ' + str(self.smCoscheduledAlignment)] except ValueError: str_list += ['smCoscheduledAlignment : '] - {{endif}} - {{if 'cudaDevSmResource.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaDevSmResource.smCount' in found_struct}} + @property def smCount(self): return self._pvt_ptr[0].smCount @smCount.setter def smCount(self, unsigned int smCount): self._pvt_ptr[0].smCount = smCount - {{endif}} - {{if 'cudaDevSmResource.minSmPartitionSize' in found_struct}} + + @property def minSmPartitionSize(self): return self._pvt_ptr[0].minSmPartitionSize @minSmPartitionSize.setter def minSmPartitionSize(self, unsigned int minSmPartitionSize): self._pvt_ptr[0].minSmPartitionSize = minSmPartitionSize - {{endif}} - {{if 'cudaDevSmResource.smCoscheduledAlignment' in found_struct}} + + @property def smCoscheduledAlignment(self): return self._pvt_ptr[0].smCoscheduledAlignment @smCoscheduledAlignment.setter def smCoscheduledAlignment(self, unsigned int smCoscheduledAlignment): self._pvt_ptr[0].smCoscheduledAlignment = smCoscheduledAlignment - {{endif}} - {{if 'cudaDevSmResource.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} -{{endif}} -{{if 'cudaDevWorkqueueConfigResource' in found_struct}} + cdef class cudaDevWorkqueueConfigResource: """ @@ -16278,18 +15794,18 @@ cdef class cudaDevWorkqueueConfigResource: Attributes ---------- - {{if 'cudaDevWorkqueueConfigResource.device' in found_struct}} + device : int The device on which the workqueue resources are available - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.wqConcurrencyLimit' in found_struct}} + + wqConcurrencyLimit : unsigned int The expected maximum number of concurrent stream-ordered workloads - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.sharingScope' in found_struct}} + + sharingScope : cudaDevWorkqueueConfigScope The sharing scope for the workqueue resources - {{endif}} + Methods ------- @@ -16310,53 +15826,51 @@ cdef class cudaDevWorkqueueConfigResource: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaDevWorkqueueConfigResource.device' in found_struct}} + try: str_list += ['device : ' + str(self.device)] except ValueError: str_list += ['device : '] - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.wqConcurrencyLimit' in found_struct}} + + try: str_list += ['wqConcurrencyLimit : ' + str(self.wqConcurrencyLimit)] except ValueError: str_list += ['wqConcurrencyLimit : '] - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.sharingScope' in found_struct}} + + try: str_list += ['sharingScope : ' + str(self.sharingScope)] except ValueError: str_list += ['sharingScope : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaDevWorkqueueConfigResource.device' in found_struct}} + @property def device(self): return self._pvt_ptr[0].device @device.setter def device(self, int device): self._pvt_ptr[0].device = device - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.wqConcurrencyLimit' in found_struct}} + + @property def wqConcurrencyLimit(self): return self._pvt_ptr[0].wqConcurrencyLimit @wqConcurrencyLimit.setter def wqConcurrencyLimit(self, unsigned int wqConcurrencyLimit): self._pvt_ptr[0].wqConcurrencyLimit = wqConcurrencyLimit - {{endif}} - {{if 'cudaDevWorkqueueConfigResource.sharingScope' in found_struct}} + + @property def sharingScope(self): return cudaDevWorkqueueConfigScope(self._pvt_ptr[0].sharingScope) @sharingScope.setter def sharingScope(self, sharingScope not None : cudaDevWorkqueueConfigScope): - self._pvt_ptr[0].sharingScope = int(sharingScope) - {{endif}} -{{endif}} -{{if 'cudaDevWorkqueueResource' in found_struct}} + self._pvt_ptr[0].sharingScope = int(sharingScope) + cdef class cudaDevWorkqueueResource: """ @@ -16364,10 +15878,10 @@ cdef class cudaDevWorkqueueResource: Attributes ---------- - {{if 'cudaDevWorkqueueResource.reserved' in found_struct}} + reserved : bytes Reserved for future use - {{endif}} + Methods ------- @@ -16388,16 +15902,16 @@ cdef class cudaDevWorkqueueResource: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaDevWorkqueueResource.reserved' in found_struct}} + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaDevWorkqueueResource.reserved' in found_struct}} + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 40) @@ -16407,9 +15921,7 @@ cdef class cudaDevWorkqueueResource: raise ValueError("reserved length must be 40, is " + str(len(reserved))) for i, b in enumerate(reserved): self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaDevSmResourceGroupParams_st' in found_struct}} + cdef class cudaDevSmResourceGroupParams_st: """ @@ -16417,29 +15929,29 @@ cdef class cudaDevSmResourceGroupParams_st: Attributes ---------- - {{if 'cudaDevSmResourceGroupParams_st.smCount' in found_struct}} + smCount : unsigned int The amount of SMs available in this resource. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.coscheduledSmCount' in found_struct}} + + coscheduledSmCount : unsigned int The amount of co-scheduled SMs grouped together for locality purposes. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.preferredCoscheduledSmCount' in found_struct}} + + preferredCoscheduledSmCount : unsigned int When possible, combine co-scheduled groups together into larger groups of this size. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.flags' in found_struct}} + + flags : unsigned int Combination of `cudaDevSmResourceGroup_flags` values to indicate this this group is created. - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.reserved' in found_struct}} + + reserved : list[unsigned int] Reserved for future use - ensure this is zero initialized. - {{endif}} + Methods ------- @@ -16460,81 +15972,79 @@ cdef class cudaDevSmResourceGroupParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaDevSmResourceGroupParams_st.smCount' in found_struct}} + try: str_list += ['smCount : ' + str(self.smCount)] except ValueError: str_list += ['smCount : '] - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.coscheduledSmCount' in found_struct}} + + try: str_list += ['coscheduledSmCount : ' + str(self.coscheduledSmCount)] except ValueError: str_list += ['coscheduledSmCount : '] - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.preferredCoscheduledSmCount' in found_struct}} + + try: str_list += ['preferredCoscheduledSmCount : ' + str(self.preferredCoscheduledSmCount)] except ValueError: str_list += ['preferredCoscheduledSmCount : '] - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaDevSmResourceGroupParams_st.smCount' in found_struct}} + @property def smCount(self): return self._pvt_ptr[0].smCount @smCount.setter def smCount(self, unsigned int smCount): self._pvt_ptr[0].smCount = smCount - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.coscheduledSmCount' in found_struct}} + + @property def coscheduledSmCount(self): return self._pvt_ptr[0].coscheduledSmCount @coscheduledSmCount.setter def coscheduledSmCount(self, unsigned int coscheduledSmCount): self._pvt_ptr[0].coscheduledSmCount = coscheduledSmCount - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.preferredCoscheduledSmCount' in found_struct}} + + @property def preferredCoscheduledSmCount(self): return self._pvt_ptr[0].preferredCoscheduledSmCount @preferredCoscheduledSmCount.setter def preferredCoscheduledSmCount(self, unsigned int preferredCoscheduledSmCount): self._pvt_ptr[0].preferredCoscheduledSmCount = preferredCoscheduledSmCount - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned int flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaDevSmResourceGroupParams_st.reserved' in found_struct}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if 'cudaDevResource_st' in found_struct}} + cdef class cudaDevResource_st: """ @@ -16556,35 +16066,35 @@ cdef class cudaDevResource_st: Attributes ---------- - {{if 'cudaDevResource_st.type' in found_struct}} + type : cudaDevResourceType Type of resource, dictates which union field was last set - {{endif}} - {{if 'cudaDevResource_st._internal_padding' in found_struct}} + + _internal_padding : bytes - {{endif}} - {{if 'cudaDevResource_st.sm' in found_struct}} + + sm : cudaDevSmResource Resource corresponding to cudaDevResourceTypeSm `typename`. - {{endif}} - {{if 'cudaDevResource_st.wqConfig' in found_struct}} + + wqConfig : cudaDevWorkqueueConfigResource Resource corresponding to cudaDevResourceTypeWorkqueueConfig `typename`. - {{endif}} - {{if 'cudaDevResource_st.wq' in found_struct}} + + wq : cudaDevWorkqueueResource Resource corresponding to cudaDevResourceTypeWorkqueue `typename`. - {{endif}} - {{if 'cudaDevResource_st._oversize' in found_struct}} + + _oversize : bytes - {{endif}} - {{if 'cudaDevResource_st.nextResource' in found_struct}} + + nextResource : cudaDevResource_st - {{endif}} + Methods ------- @@ -16599,82 +16109,82 @@ cdef class cudaDevResource_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaDevResource_st.sm' in found_struct}} + self._sm = cudaDevSmResource(_ptr=&self._pvt_ptr[0].sm) - {{endif}} - {{if 'cudaDevResource_st.wqConfig' in found_struct}} + + self._wqConfig = cudaDevWorkqueueConfigResource(_ptr=&self._pvt_ptr[0].wqConfig) - {{endif}} - {{if 'cudaDevResource_st.wq' in found_struct}} + + self._wq = cudaDevWorkqueueResource(_ptr=&self._pvt_ptr[0].wq) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) - {{if 'cudaDevResource_st.nextResource' in found_struct}} + if self._nextResource is not NULL: free(self._nextResource) self._pvt_ptr[0].nextResource = NULL - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaDevResource_st.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaDevResource_st._internal_padding' in found_struct}} + + try: str_list += ['_internal_padding : ' + str(self._internal_padding)] except ValueError: str_list += ['_internal_padding : '] - {{endif}} - {{if 'cudaDevResource_st.sm' in found_struct}} + + try: str_list += ['sm :\n' + '\n'.join([' ' + line for line in str(self.sm).splitlines()])] except ValueError: str_list += ['sm : '] - {{endif}} - {{if 'cudaDevResource_st.wqConfig' in found_struct}} + + try: str_list += ['wqConfig :\n' + '\n'.join([' ' + line for line in str(self.wqConfig).splitlines()])] except ValueError: str_list += ['wqConfig : '] - {{endif}} - {{if 'cudaDevResource_st.wq' in found_struct}} + + try: str_list += ['wq :\n' + '\n'.join([' ' + line for line in str(self.wq).splitlines()])] except ValueError: str_list += ['wq : '] - {{endif}} - {{if 'cudaDevResource_st._oversize' in found_struct}} + + try: str_list += ['_oversize : ' + str(self._oversize)] except ValueError: str_list += ['_oversize : '] - {{endif}} - {{if 'cudaDevResource_st.nextResource' in found_struct}} + + try: str_list += ['nextResource : ' + str(self.nextResource)] except ValueError: str_list += ['nextResource : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaDevResource_st.type' in found_struct}} + @property def type(self): return cudaDevResourceType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaDevResourceType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaDevResource_st._internal_padding' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def _internal_padding(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0]._internal_padding, 92) @@ -16684,32 +16194,32 @@ cdef class cudaDevResource_st: raise ValueError("_internal_padding length must be 92, is " + str(len(_internal_padding))) for i, b in enumerate(_internal_padding): self._pvt_ptr[0]._internal_padding[i] = b - {{endif}} - {{if 'cudaDevResource_st.sm' in found_struct}} + + @property def sm(self): return self._sm @sm.setter def sm(self, sm not None : cudaDevSmResource): string.memcpy(&self._pvt_ptr[0].sm, sm.getPtr(), sizeof(self._pvt_ptr[0].sm)) - {{endif}} - {{if 'cudaDevResource_st.wqConfig' in found_struct}} + + @property def wqConfig(self): return self._wqConfig @wqConfig.setter def wqConfig(self, wqConfig not None : cudaDevWorkqueueConfigResource): string.memcpy(&self._pvt_ptr[0].wqConfig, wqConfig.getPtr(), sizeof(self._pvt_ptr[0].wqConfig)) - {{endif}} - {{if 'cudaDevResource_st.wq' in found_struct}} + + @property def wq(self): return self._wq @wq.setter def wq(self, wq not None : cudaDevWorkqueueResource): string.memcpy(&self._pvt_ptr[0].wq, wq.getPtr(), sizeof(self._pvt_ptr[0].wq)) - {{endif}} - {{if 'cudaDevResource_st._oversize' in found_struct}} + + @property def _oversize(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0]._oversize, 40) @@ -16719,8 +16229,8 @@ cdef class cudaDevResource_st: raise ValueError("_oversize length must be 40, is " + str(len(_oversize))) for i, b in enumerate(_oversize): self._pvt_ptr[0]._oversize[i] = b - {{endif}} - {{if 'cudaDevResource_st.nextResource' in found_struct}} + + @property def nextResource(self): arrs = [self._pvt_ptr[0].nextResource + x*sizeof(cyruntime.cudaDevResource_st) for x in range(self._nextResource_length)] @@ -16743,30 +16253,28 @@ cdef class cudaDevResource_st: for idx in range(len(val)): string.memcpy(&self._nextResource[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaDevResource_st)) - {{endif}} -{{endif}} -{{if 'cudalibraryHostUniversalFunctionAndDataTable' in found_struct}} + cdef class cudalibraryHostUniversalFunctionAndDataTable: """ Attributes ---------- - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + functionTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + functionWindowSize : size_t - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + dataTable : Any - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + dataWindowSize : size_t - {{endif}} + Methods ------- @@ -16787,34 +16295,34 @@ cdef class cudalibraryHostUniversalFunctionAndDataTable: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + try: str_list += ['functionTable : ' + hex(self.functionTable)] except ValueError: str_list += ['functionTable : '] - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + try: str_list += ['functionWindowSize : ' + str(self.functionWindowSize)] except ValueError: str_list += ['functionWindowSize : '] - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + try: str_list += ['dataTable : ' + hex(self.dataTable)] except ValueError: str_list += ['dataTable : '] - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + try: str_list += ['dataWindowSize : ' + str(self.dataWindowSize)] except ValueError: str_list += ['dataWindowSize : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionTable' in found_struct}} + @property def functionTable(self): return self._pvt_ptr[0].functionTable @@ -16822,16 +16330,16 @@ cdef class cudalibraryHostUniversalFunctionAndDataTable: def functionTable(self, functionTable): self._cyfunctionTable = _HelperInputVoidPtr(functionTable) self._pvt_ptr[0].functionTable = self._cyfunctionTable.cptr - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.functionWindowSize' in found_struct}} + + @property def functionWindowSize(self): return self._pvt_ptr[0].functionWindowSize @functionWindowSize.setter def functionWindowSize(self, size_t functionWindowSize): self._pvt_ptr[0].functionWindowSize = functionWindowSize - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataTable' in found_struct}} + + @property def dataTable(self): return self._pvt_ptr[0].dataTable @@ -16839,17 +16347,15 @@ cdef class cudalibraryHostUniversalFunctionAndDataTable: def dataTable(self, dataTable): self._cydataTable = _HelperInputVoidPtr(dataTable) self._pvt_ptr[0].dataTable = self._cydataTable.cptr - {{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable.dataWindowSize' in found_struct}} + + @property def dataWindowSize(self): return self._pvt_ptr[0].dataWindowSize @dataWindowSize.setter def dataWindowSize(self, size_t dataWindowSize): self._pvt_ptr[0].dataWindowSize = dataWindowSize - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParams' in found_struct}} + cdef class cudaKernelNodeParams: """ @@ -16857,30 +16363,30 @@ cdef class cudaKernelNodeParams: Attributes ---------- - {{if 'cudaKernelNodeParams.func' in found_struct}} + func : Any Kernel to launch - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} + Methods ------- @@ -16894,12 +16400,12 @@ cdef class cudaKernelNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + self._gridDim = dim3(_ptr=&self._pvt_ptr[0].gridDim) - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + self._blockDim = dim3(_ptr=&self._pvt_ptr[0].blockDim) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -16907,46 +16413,46 @@ cdef class cudaKernelNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaKernelNodeParams.func' in found_struct}} + try: str_list += ['func : ' + hex(self.func)] except ValueError: str_list += ['func : '] - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + try: str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] except ValueError: str_list += ['gridDim : '] - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + try: str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] except ValueError: str_list += ['blockDim : '] - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + try: str_list += ['extra : ' + str(self.extra)] except ValueError: str_list += ['extra : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaKernelNodeParams.func' in found_struct}} + @property def func(self): return self._pvt_ptr[0].func @@ -16954,32 +16460,32 @@ cdef class cudaKernelNodeParams: def func(self, func): self._cyfunc = _HelperInputVoidPtr(func) self._pvt_ptr[0].func = self._cyfunc.cptr - {{endif}} - {{if 'cudaKernelNodeParams.gridDim' in found_struct}} + + @property def gridDim(self): return self._gridDim @gridDim.setter def gridDim(self, gridDim not None : dim3): string.memcpy(&self._pvt_ptr[0].gridDim, gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim)) - {{endif}} - {{if 'cudaKernelNodeParams.blockDim' in found_struct}} + + @property def blockDim(self): return self._blockDim @blockDim.setter def blockDim(self, blockDim not None : dim3): string.memcpy(&self._pvt_ptr[0].blockDim, blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim)) - {{endif}} - {{if 'cudaKernelNodeParams.sharedMemBytes' in found_struct}} + + @property def sharedMemBytes(self): return self._pvt_ptr[0].sharedMemBytes @sharedMemBytes.setter def sharedMemBytes(self, unsigned int sharedMemBytes): self._pvt_ptr[0].sharedMemBytes = sharedMemBytes - {{endif}} - {{if 'cudaKernelNodeParams.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -16987,17 +16493,15 @@ cdef class cudaKernelNodeParams: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} - {{if 'cudaKernelNodeParams.extra' in found_struct}} + + @property def extra(self): return self._pvt_ptr[0].extra @extra.setter def extra(self, void_ptr extra): self._pvt_ptr[0].extra = extra - {{endif}} -{{endif}} -{{if 'cudaKernelNodeParamsV2' in found_struct}} + cdef class cudaKernelNodeParamsV2: """ @@ -17005,47 +16509,47 @@ cdef class cudaKernelNodeParamsV2: Attributes ---------- - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + func : Any functionType = cudaKernelFucntionTypeDevice - {{endif}} - {{if 'cudaKernelNodeParamsV2.kern' in found_struct}} + + kern : cudaKernel_t functionType = cudaKernelFucntionTypeKernel - {{endif}} - {{if 'cudaKernelNodeParamsV2.cuFunc' in found_struct}} + + cuFunc : cudaFunction_t functionType = cudaKernelFucntionTypeFunction - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + gridDim : dim3 Grid dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + blockDim : dim3 Block dimensions - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + sharedMemBytes : unsigned int Dynamic shared-memory size per thread block in bytes - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + kernelParams : Any Array of pointers to individual kernel arguments - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + extra : Any Pointer to kernel arguments in the "extra" format - {{endif}} - {{if 'cudaKernelNodeParamsV2.ctx' in found_struct}} + + ctx : cudaExecutionContext_t Context in which to run the kernel. If NULL will try to use the current context. - {{endif}} - {{if 'cudaKernelNodeParamsV2.functionType' in found_struct}} + + functionType : cudaKernelFunctionType Type of handle passed in the func/kern/cuFunc union above - {{endif}} + Methods ------- @@ -17060,21 +16564,21 @@ cdef class cudaKernelNodeParamsV2: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaKernelNodeParamsV2.kern' in found_struct}} + self._kern = cudaKernel_t(_ptr=&self._pvt_ptr[0].kern) - {{endif}} - {{if 'cudaKernelNodeParamsV2.cuFunc' in found_struct}} + + self._cuFunc = cudaFunction_t(_ptr=&self._pvt_ptr[0].cuFunc) - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + self._gridDim = dim3(_ptr=&self._pvt_ptr[0].gridDim) - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + self._blockDim = dim3(_ptr=&self._pvt_ptr[0].blockDim) - {{endif}} - {{if 'cudaKernelNodeParamsV2.ctx' in found_struct}} + + self._ctx = cudaExecutionContext_t(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -17083,70 +16587,70 @@ cdef class cudaKernelNodeParamsV2: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + try: str_list += ['func : ' + hex(self.func)] except ValueError: str_list += ['func : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.kern' in found_struct}} + + try: str_list += ['kern : ' + str(self.kern)] except ValueError: str_list += ['kern : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.cuFunc' in found_struct}} + + try: str_list += ['cuFunc : ' + str(self.cuFunc)] except ValueError: str_list += ['cuFunc : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + try: str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] except ValueError: str_list += ['gridDim : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + try: str_list += ['blockDim :\n' + '\n'.join([' ' + line for line in str(self.blockDim).splitlines()])] except ValueError: str_list += ['blockDim : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + try: str_list += ['sharedMemBytes : ' + str(self.sharedMemBytes)] except ValueError: str_list += ['sharedMemBytes : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + try: str_list += ['kernelParams : ' + str(self.kernelParams)] except ValueError: str_list += ['kernelParams : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + try: str_list += ['extra : ' + str(self.extra)] except ValueError: str_list += ['extra : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.ctx' in found_struct}} + + try: str_list += ['ctx : ' + str(self.ctx)] except ValueError: str_list += ['ctx : '] - {{endif}} - {{if 'cudaKernelNodeParamsV2.functionType' in found_struct}} + + try: str_list += ['functionType : ' + str(self.functionType)] except ValueError: str_list += ['functionType : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaKernelNodeParamsV2.func' in found_struct}} + @property def func(self): return self._pvt_ptr[0].func @@ -17154,8 +16658,8 @@ cdef class cudaKernelNodeParamsV2: def func(self, func): self._cyfunc = _HelperInputVoidPtr(func) self._pvt_ptr[0].func = self._cyfunc.cptr - {{endif}} - {{if 'cudaKernelNodeParamsV2.kern' in found_struct}} + + @property def kern(self): return self._kern @@ -17171,8 +16675,8 @@ cdef class cudaKernelNodeParamsV2: pkern = int(cudaKernel_t(kern)) cykern = pkern self._kern._pvt_ptr[0] = cykern - {{endif}} - {{if 'cudaKernelNodeParamsV2.cuFunc' in found_struct}} + + @property def cuFunc(self): return self._cuFunc @@ -17188,32 +16692,32 @@ cdef class cudaKernelNodeParamsV2: pcuFunc = int(cudaFunction_t(cuFunc)) cycuFunc = pcuFunc self._cuFunc._pvt_ptr[0] = cycuFunc - {{endif}} - {{if 'cudaKernelNodeParamsV2.gridDim' in found_struct}} + + @property def gridDim(self): return self._gridDim @gridDim.setter def gridDim(self, gridDim not None : dim3): string.memcpy(&self._pvt_ptr[0].gridDim, gridDim.getPtr(), sizeof(self._pvt_ptr[0].gridDim)) - {{endif}} - {{if 'cudaKernelNodeParamsV2.blockDim' in found_struct}} + + @property def blockDim(self): return self._blockDim @blockDim.setter def blockDim(self, blockDim not None : dim3): string.memcpy(&self._pvt_ptr[0].blockDim, blockDim.getPtr(), sizeof(self._pvt_ptr[0].blockDim)) - {{endif}} - {{if 'cudaKernelNodeParamsV2.sharedMemBytes' in found_struct}} + + @property def sharedMemBytes(self): return self._pvt_ptr[0].sharedMemBytes @sharedMemBytes.setter def sharedMemBytes(self, unsigned int sharedMemBytes): self._pvt_ptr[0].sharedMemBytes = sharedMemBytes - {{endif}} - {{if 'cudaKernelNodeParamsV2.kernelParams' in found_struct}} + + @property def kernelParams(self): return self._pvt_ptr[0].kernelParams @@ -17221,16 +16725,16 @@ cdef class cudaKernelNodeParamsV2: def kernelParams(self, kernelParams): self._cykernelParams = _HelperKernelParams(kernelParams) self._pvt_ptr[0].kernelParams = self._cykernelParams.ckernelParams - {{endif}} - {{if 'cudaKernelNodeParamsV2.extra' in found_struct}} + + @property def extra(self): return self._pvt_ptr[0].extra @extra.setter def extra(self, void_ptr extra): self._pvt_ptr[0].extra = extra - {{endif}} - {{if 'cudaKernelNodeParamsV2.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -17246,17 +16750,15 @@ cdef class cudaKernelNodeParamsV2: pctx = int(cudaExecutionContext_t(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} - {{if 'cudaKernelNodeParamsV2.functionType' in found_struct}} + + @property def functionType(self): return cudaKernelFunctionType(self._pvt_ptr[0].functionType) @functionType.setter def functionType(self, functionType not None : cudaKernelFunctionType): - self._pvt_ptr[0].functionType = int(functionType) - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParams' in found_struct}} + self._pvt_ptr[0].functionType = int(functionType) + cdef class cudaExternalSemaphoreSignalNodeParams: """ @@ -17264,19 +16766,19 @@ cdef class cudaExternalSemaphoreSignalNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -17292,43 +16794,43 @@ cdef class cudaExternalSemaphoreSignalNodeParams: pass def __dealloc__(self): pass - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalNodeParams.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -17351,8 +16853,8 @@ cdef class cudaExternalSemaphoreSignalNodeParams: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)] @@ -17375,17 +16877,15 @@ cdef class cudaExternalSemaphoreSignalNodeParams: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams.numExtSems' in found_struct}} + + @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreSignalNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreSignalNodeParamsV2: """ @@ -17393,19 +16893,19 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreSignalParams Array of external semaphore signal parameters. - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -17421,43 +16921,43 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: pass def __dealloc__(self): pass - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -17480,8 +16980,8 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreSignalParams) for x in range(self._paramsArray_length)] @@ -17504,17 +17004,15 @@ cdef class cudaExternalSemaphoreSignalNodeParamsV2: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreSignalParams)) - {{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2.numExtSems' in found_struct}} + + @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParams' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParams: """ @@ -17522,19 +17020,19 @@ cdef class cudaExternalSemaphoreWaitNodeParams: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -17550,43 +17048,43 @@ cdef class cudaExternalSemaphoreWaitNodeParams: pass def __dealloc__(self): pass - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitNodeParams.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -17609,8 +17107,8 @@ cdef class cudaExternalSemaphoreWaitNodeParams: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)] @@ -17633,17 +17131,15 @@ cdef class cudaExternalSemaphoreWaitNodeParams: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams.numExtSems' in found_struct}} + + @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaExternalSemaphoreWaitNodeParamsV2' in found_struct}} + cdef class cudaExternalSemaphoreWaitNodeParamsV2: """ @@ -17651,19 +17147,19 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: Attributes ---------- - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + extSemArray : cudaExternalSemaphore_t Array of external semaphore handles. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + paramsArray : cudaExternalSemaphoreWaitParams Array of external semaphore wait parameters. - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} + + numExtSems : unsigned int Number of handles and parameters supplied in extSemArray and paramsArray. - {{endif}} + Methods ------- @@ -17679,43 +17175,43 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: pass def __dealloc__(self): pass - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + if self._extSemArray is not NULL: free(self._extSemArray) self._pvt_ptr[0].extSemArray = NULL - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + if self._paramsArray is not NULL: free(self._paramsArray) self._pvt_ptr[0].paramsArray = NULL - {{endif}} + def getPtr(self): return self._pvt_ptr def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + try: str_list += ['extSemArray : ' + str(self.extSemArray)] except ValueError: str_list += ['extSemArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + try: str_list += ['paramsArray : ' + str(self.paramsArray)] except ValueError: str_list += ['paramsArray : '] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} + + try: str_list += ['numExtSems : ' + str(self.numExtSems)] except ValueError: str_list += ['numExtSems : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.extSemArray' in found_struct}} + @property def extSemArray(self): arrs = [self._pvt_ptr[0].extSemArray + x*sizeof(cyruntime.cudaExternalSemaphore_t) for x in range(self._extSemArray_length)] @@ -17738,8 +17234,8 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: for idx in range(len(val)): self._extSemArray[idx] = (val[idx])._pvt_ptr[0] - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.paramsArray' in found_struct}} + + @property def paramsArray(self): arrs = [self._pvt_ptr[0].paramsArray + x*sizeof(cyruntime.cudaExternalSemaphoreWaitParams) for x in range(self._paramsArray_length)] @@ -17762,17 +17258,15 @@ cdef class cudaExternalSemaphoreWaitNodeParamsV2: for idx in range(len(val)): string.memcpy(&self._paramsArray[idx], (val[idx])._pvt_ptr, sizeof(cyruntime.cudaExternalSemaphoreWaitParams)) - {{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2.numExtSems' in found_struct}} + + @property def numExtSems(self): return self._pvt_ptr[0].numExtSems @numExtSems.setter def numExtSems(self, unsigned int numExtSems): self._pvt_ptr[0].numExtSems = numExtSems - {{endif}} -{{endif}} -{{if 'cudaConditionalNodeParams' in found_struct}} + cdef class cudaConditionalNodeParams: """ @@ -17780,22 +17274,22 @@ cdef class cudaConditionalNodeParams: Attributes ---------- - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + handle : cudaGraphConditionalHandle Conditional node handle. Handles must be created in advance of creating the node using cudaGraphConditionalHandleCreate. - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + type : cudaGraphConditionalNodeType Type of conditional node. - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + + size : unsigned int Size of graph output array. Allowed values are 1 for cudaGraphCondTypeWhile, 1 or 2 for cudaGraphCondTypeIf, or any value greater than zero for cudaGraphCondTypeSwitch. - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + phGraph_out : cudaGraph_t CUDA-owned array populated with conditional node child graphs during creation of the node. Valid for the lifetime of the @@ -17813,11 +17307,11 @@ cdef class cudaConditionalNodeParams: condition is non-zero. cudaGraphCondTypeSwitch: phGraph_out[n] is executed when the condition is equal to n. If the condition >= `size`, no body graph is executed. - {{endif}} - {{if 'cudaConditionalNodeParams.ctx' in found_struct}} + + ctx : cudaExecutionContext_t CUDA Execution Context - {{endif}} + Methods ------- @@ -17831,12 +17325,12 @@ cdef class cudaConditionalNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + self._handle = cudaGraphConditionalHandle(_ptr=&self._pvt_ptr[0].handle) - {{endif}} - {{if 'cudaConditionalNodeParams.ctx' in found_struct}} + + self._ctx = cudaExecutionContext_t(_ptr=&self._pvt_ptr[0].ctx) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -17844,40 +17338,40 @@ cdef class cudaConditionalNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + try: str_list += ['handle : ' + str(self.handle)] except ValueError: str_list += ['handle : '] - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + try: str_list += ['phGraph_out : ' + str(self.phGraph_out)] except ValueError: str_list += ['phGraph_out : '] - {{endif}} - {{if 'cudaConditionalNodeParams.ctx' in found_struct}} + + try: str_list += ['ctx : ' + str(self.ctx)] except ValueError: str_list += ['ctx : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaConditionalNodeParams.handle' in found_struct}} + @property def handle(self): return self._handle @@ -17894,30 +17388,30 @@ cdef class cudaConditionalNodeParams: cyhandle = phandle self._handle._pvt_ptr[0] = cyhandle - {{endif}} - {{if 'cudaConditionalNodeParams.type' in found_struct}} + + @property def type(self): return cudaGraphConditionalNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaGraphConditionalNodeType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaConditionalNodeParams.size' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def size(self): return self._pvt_ptr[0].size @size.setter def size(self, unsigned int size): self._pvt_ptr[0].size = size - {{endif}} - {{if 'cudaConditionalNodeParams.phGraph_out' in found_struct}} + + @property def phGraph_out(self): arrs = [self._pvt_ptr[0].phGraph_out + x*sizeof(cyruntime.cudaGraph_t) for x in range(self.size)] return [cudaGraph_t(_ptr=arr) for arr in arrs] - {{endif}} - {{if 'cudaConditionalNodeParams.ctx' in found_struct}} + + @property def ctx(self): return self._ctx @@ -17933,9 +17427,7 @@ cdef class cudaConditionalNodeParams: pctx = int(cudaExecutionContext_t(ctx)) cyctx = pctx self._ctx._pvt_ptr[0] = cyctx - {{endif}} -{{endif}} -{{if 'cudaChildGraphNodeParams' in found_struct}} + cdef class cudaChildGraphNodeParams: """ @@ -17943,18 +17435,18 @@ cdef class cudaChildGraphNodeParams: Attributes ---------- - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + graph : cudaGraph_t The child graph to clone into the node for node creation, or a handle to the graph owned by the node for node query. The graph must not contain conditional nodes. Graphs containing memory allocation or memory free nodes must set the ownership to be moved to the parent. - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + ownership : cudaGraphChildGraphNodeOwnership The ownership relationship of the child graph node. - {{endif}} + Methods ------- @@ -17968,9 +17460,9 @@ cdef class cudaChildGraphNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + self._graph = cudaGraph_t(_ptr=&self._pvt_ptr[0].graph) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -17978,22 +17470,22 @@ cdef class cudaChildGraphNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + try: str_list += ['graph : ' + str(self.graph)] except ValueError: str_list += ['graph : '] - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + try: str_list += ['ownership : ' + str(self.ownership)] except ValueError: str_list += ['ownership : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaChildGraphNodeParams.graph' in found_struct}} + @property def graph(self): return self._graph @@ -18009,17 +17501,15 @@ cdef class cudaChildGraphNodeParams: pgraph = int(cudaGraph_t(graph)) cygraph = pgraph self._graph._pvt_ptr[0] = cygraph - {{endif}} - {{if 'cudaChildGraphNodeParams.ownership' in found_struct}} + + @property def ownership(self): return cudaGraphChildGraphNodeOwnership(self._pvt_ptr[0].ownership) @ownership.setter def ownership(self, ownership not None : cudaGraphChildGraphNodeOwnership): - self._pvt_ptr[0].ownership = int(ownership) - {{endif}} -{{endif}} -{{if 'cudaEventRecordNodeParams' in found_struct}} + self._pvt_ptr[0].ownership = int(ownership) + cdef class cudaEventRecordNodeParams: """ @@ -18027,10 +17517,10 @@ cdef class cudaEventRecordNodeParams: Attributes ---------- - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + event : cudaEvent_t The event to record when the node executes - {{endif}} + Methods ------- @@ -18044,9 +17534,9 @@ cdef class cudaEventRecordNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -18054,16 +17544,16 @@ cdef class cudaEventRecordNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaEventRecordNodeParams.event' in found_struct}} + @property def event(self): return self._event @@ -18079,9 +17569,7 @@ cdef class cudaEventRecordNodeParams: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} -{{endif}} -{{if 'cudaEventWaitNodeParams' in found_struct}} + cdef class cudaEventWaitNodeParams: """ @@ -18089,10 +17577,10 @@ cdef class cudaEventWaitNodeParams: Attributes ---------- - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + event : cudaEvent_t The event to wait on from the node - {{endif}} + Methods ------- @@ -18106,9 +17594,9 @@ cdef class cudaEventWaitNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -18116,16 +17604,16 @@ cdef class cudaEventWaitNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaEventWaitNodeParams.event' in found_struct}} + @property def event(self): return self._event @@ -18141,9 +17629,7 @@ cdef class cudaEventWaitNodeParams: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} -{{endif}} -{{if 'cudaGraphNodeParams' in found_struct}} + cdef class cudaGraphNodeParams: """ @@ -18151,70 +17637,70 @@ cdef class cudaGraphNodeParams: Attributes ---------- - {{if 'cudaGraphNodeParams.type' in found_struct}} + type : cudaGraphNodeType Type of the node - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} + + reserved0 : list[int] Reserved. Must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} + + reserved1 : list[long long] Padding. Unused bytes must be zero. - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + + kernel : cudaKernelNodeParamsV2 Kernel node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + memcpy : cudaMemcpyNodeParams Memcpy node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + memset : cudaMemsetParamsV2 Memset node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + host : cudaHostNodeParamsV2 Host node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + graph : cudaChildGraphNodeParams Child graph node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + eventWait : cudaEventWaitNodeParams Event wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + eventRecord : cudaEventRecordNodeParams Event record node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + extSemSignal : cudaExternalSemaphoreSignalNodeParamsV2 External semaphore signal node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + extSemWait : cudaExternalSemaphoreWaitNodeParamsV2 External semaphore wait node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + alloc : cudaMemAllocNodeParamsV2 Memory allocation node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + free : cudaMemFreeNodeParams Memory free node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + conditional : cudaConditionalNodeParams Conditional node parameters. - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} + + reserved2 : long long Reserved bytes. Must be zero. - {{endif}} + Methods ------- @@ -18229,42 +17715,42 @@ cdef class cudaGraphNodeParams: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + self._kernel = cudaKernelNodeParamsV2(_ptr=&self._pvt_ptr[0].kernel) - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + self._memcpy = cudaMemcpyNodeParams(_ptr=&self._pvt_ptr[0].memcpy) - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + self._memset = cudaMemsetParamsV2(_ptr=&self._pvt_ptr[0].memset) - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + self._host = cudaHostNodeParamsV2(_ptr=&self._pvt_ptr[0].host) - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + self._graph = cudaChildGraphNodeParams(_ptr=&self._pvt_ptr[0].graph) - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + self._eventWait = cudaEventWaitNodeParams(_ptr=&self._pvt_ptr[0].eventWait) - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + self._eventRecord = cudaEventRecordNodeParams(_ptr=&self._pvt_ptr[0].eventRecord) - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + self._extSemSignal = cudaExternalSemaphoreSignalNodeParamsV2(_ptr=&self._pvt_ptr[0].extSemSignal) - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + self._extSemWait = cudaExternalSemaphoreWaitNodeParamsV2(_ptr=&self._pvt_ptr[0].extSemWait) - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + self._alloc = cudaMemAllocNodeParamsV2(_ptr=&self._pvt_ptr[0].alloc) - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + self._free = cudaMemFreeNodeParams(_ptr=&self._pvt_ptr[0].free) - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + self._conditional = cudaConditionalNodeParams(_ptr=&self._pvt_ptr[0].conditional) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -18273,235 +17759,233 @@ cdef class cudaGraphNodeParams: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphNodeParams.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} + + try: str_list += ['reserved0 : ' + str(self.reserved0)] except ValueError: str_list += ['reserved0 : '] - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} + + try: str_list += ['reserved1 : ' + str(self.reserved1)] except ValueError: str_list += ['reserved1 : '] - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + + try: str_list += ['kernel :\n' + '\n'.join([' ' + line for line in str(self.kernel).splitlines()])] except ValueError: str_list += ['kernel : '] - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + try: str_list += ['memcpy :\n' + '\n'.join([' ' + line for line in str(self.memcpy).splitlines()])] except ValueError: str_list += ['memcpy : '] - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + try: str_list += ['memset :\n' + '\n'.join([' ' + line for line in str(self.memset).splitlines()])] except ValueError: str_list += ['memset : '] - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + try: str_list += ['host :\n' + '\n'.join([' ' + line for line in str(self.host).splitlines()])] except ValueError: str_list += ['host : '] - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + try: str_list += ['graph :\n' + '\n'.join([' ' + line for line in str(self.graph).splitlines()])] except ValueError: str_list += ['graph : '] - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + try: str_list += ['eventWait :\n' + '\n'.join([' ' + line for line in str(self.eventWait).splitlines()])] except ValueError: str_list += ['eventWait : '] - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + try: str_list += ['eventRecord :\n' + '\n'.join([' ' + line for line in str(self.eventRecord).splitlines()])] except ValueError: str_list += ['eventRecord : '] - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + try: str_list += ['extSemSignal :\n' + '\n'.join([' ' + line for line in str(self.extSemSignal).splitlines()])] except ValueError: str_list += ['extSemSignal : '] - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + try: str_list += ['extSemWait :\n' + '\n'.join([' ' + line for line in str(self.extSemWait).splitlines()])] except ValueError: str_list += ['extSemWait : '] - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + try: str_list += ['alloc :\n' + '\n'.join([' ' + line for line in str(self.alloc).splitlines()])] except ValueError: str_list += ['alloc : '] - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + try: str_list += ['free :\n' + '\n'.join([' ' + line for line in str(self.free).splitlines()])] except ValueError: str_list += ['free : '] - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + try: str_list += ['conditional :\n' + '\n'.join([' ' + line for line in str(self.conditional).splitlines()])] except ValueError: str_list += ['conditional : '] - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} + + try: str_list += ['reserved2 : ' + str(self.reserved2)] except ValueError: str_list += ['reserved2 : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphNodeParams.type' in found_struct}} + @property def type(self): return cudaGraphNodeType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaGraphNodeType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaGraphNodeParams.reserved0' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def reserved0(self): return self._pvt_ptr[0].reserved0 @reserved0.setter def reserved0(self, reserved0): self._pvt_ptr[0].reserved0 = reserved0 - {{endif}} - {{if 'cudaGraphNodeParams.reserved1' in found_struct}} + + @property def reserved1(self): return self._pvt_ptr[0].reserved1 @reserved1.setter def reserved1(self, reserved1): self._pvt_ptr[0].reserved1 = reserved1 - {{endif}} - {{if 'cudaGraphNodeParams.kernel' in found_struct}} + + @property def kernel(self): return self._kernel @kernel.setter def kernel(self, kernel not None : cudaKernelNodeParamsV2): string.memcpy(&self._pvt_ptr[0].kernel, kernel.getPtr(), sizeof(self._pvt_ptr[0].kernel)) - {{endif}} - {{if 'cudaGraphNodeParams.memcpy' in found_struct}} + + @property def memcpy(self): return self._memcpy @memcpy.setter def memcpy(self, memcpy not None : cudaMemcpyNodeParams): string.memcpy(&self._pvt_ptr[0].memcpy, memcpy.getPtr(), sizeof(self._pvt_ptr[0].memcpy)) - {{endif}} - {{if 'cudaGraphNodeParams.memset' in found_struct}} + + @property def memset(self): return self._memset @memset.setter def memset(self, memset not None : cudaMemsetParamsV2): string.memcpy(&self._pvt_ptr[0].memset, memset.getPtr(), sizeof(self._pvt_ptr[0].memset)) - {{endif}} - {{if 'cudaGraphNodeParams.host' in found_struct}} + + @property def host(self): return self._host @host.setter def host(self, host not None : cudaHostNodeParamsV2): string.memcpy(&self._pvt_ptr[0].host, host.getPtr(), sizeof(self._pvt_ptr[0].host)) - {{endif}} - {{if 'cudaGraphNodeParams.graph' in found_struct}} + + @property def graph(self): return self._graph @graph.setter def graph(self, graph not None : cudaChildGraphNodeParams): string.memcpy(&self._pvt_ptr[0].graph, graph.getPtr(), sizeof(self._pvt_ptr[0].graph)) - {{endif}} - {{if 'cudaGraphNodeParams.eventWait' in found_struct}} + + @property def eventWait(self): return self._eventWait @eventWait.setter def eventWait(self, eventWait not None : cudaEventWaitNodeParams): string.memcpy(&self._pvt_ptr[0].eventWait, eventWait.getPtr(), sizeof(self._pvt_ptr[0].eventWait)) - {{endif}} - {{if 'cudaGraphNodeParams.eventRecord' in found_struct}} + + @property def eventRecord(self): return self._eventRecord @eventRecord.setter def eventRecord(self, eventRecord not None : cudaEventRecordNodeParams): string.memcpy(&self._pvt_ptr[0].eventRecord, eventRecord.getPtr(), sizeof(self._pvt_ptr[0].eventRecord)) - {{endif}} - {{if 'cudaGraphNodeParams.extSemSignal' in found_struct}} + + @property def extSemSignal(self): return self._extSemSignal @extSemSignal.setter def extSemSignal(self, extSemSignal not None : cudaExternalSemaphoreSignalNodeParamsV2): string.memcpy(&self._pvt_ptr[0].extSemSignal, extSemSignal.getPtr(), sizeof(self._pvt_ptr[0].extSemSignal)) - {{endif}} - {{if 'cudaGraphNodeParams.extSemWait' in found_struct}} + + @property def extSemWait(self): return self._extSemWait @extSemWait.setter def extSemWait(self, extSemWait not None : cudaExternalSemaphoreWaitNodeParamsV2): string.memcpy(&self._pvt_ptr[0].extSemWait, extSemWait.getPtr(), sizeof(self._pvt_ptr[0].extSemWait)) - {{endif}} - {{if 'cudaGraphNodeParams.alloc' in found_struct}} + + @property def alloc(self): return self._alloc @alloc.setter def alloc(self, alloc not None : cudaMemAllocNodeParamsV2): string.memcpy(&self._pvt_ptr[0].alloc, alloc.getPtr(), sizeof(self._pvt_ptr[0].alloc)) - {{endif}} - {{if 'cudaGraphNodeParams.free' in found_struct}} + + @property def free(self): return self._free @free.setter def free(self, free not None : cudaMemFreeNodeParams): string.memcpy(&self._pvt_ptr[0].free, free.getPtr(), sizeof(self._pvt_ptr[0].free)) - {{endif}} - {{if 'cudaGraphNodeParams.conditional' in found_struct}} + + @property def conditional(self): return self._conditional @conditional.setter def conditional(self, conditional not None : cudaConditionalNodeParams): string.memcpy(&self._pvt_ptr[0].conditional, conditional.getPtr(), sizeof(self._pvt_ptr[0].conditional)) - {{endif}} - {{if 'cudaGraphNodeParams.reserved2' in found_struct}} + + @property def reserved2(self): return self._pvt_ptr[0].reserved2 @reserved2.setter def reserved2(self, long long reserved2): self._pvt_ptr[0].reserved2 = reserved2 - {{endif}} -{{endif}} -{{if 'cudaGraphEdgeData_st' in found_struct}} + cdef class cudaGraphEdgeData_st: """ @@ -18512,7 +17996,7 @@ cdef class cudaGraphEdgeData_st: Attributes ---------- - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + from_port : bytes This indicates when the dependency is triggered from the upstream node on the edge. The meaning is specfic to the node type. A value @@ -18523,8 +18007,8 @@ cdef class cudaGraphEdgeData_st: cudaGraphKernelNodePortDefault, cudaGraphKernelNodePortProgrammatic, or cudaGraphKernelNodePortLaunchCompletion. - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + to_port : bytes This indicates what portion of the downstream node is dependent on the upstream node or portion thereof (indicated by `from_port`). @@ -18532,18 +18016,18 @@ cdef class cudaGraphEdgeData_st: means the entirety of the downstream node is dependent on the upstream work. Currently no node types define non-zero ports. Accordingly, this field must be set to zero. - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + type : bytes This should be populated with a value from cudaGraphDependencyType. (It is typed as char due to compiler-specific layout of bitfields.) See cudaGraphDependencyType. - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} + + reserved : bytes These bytes are unused and must be zeroed. This ensures compatibility if additional fields are added in the future. - {{endif}} + Methods ------- @@ -18564,58 +18048,58 @@ cdef class cudaGraphEdgeData_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + try: str_list += ['from_port : ' + str(self.from_port)] except ValueError: str_list += ['from_port : '] - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + try: str_list += ['to_port : ' + str(self.to_port)] except ValueError: str_list += ['to_port : '] - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphEdgeData_st.from_port' in found_struct}} + @property def from_port(self): return self._pvt_ptr[0].from_port @from_port.setter def from_port(self, unsigned char from_port): self._pvt_ptr[0].from_port = from_port - {{endif}} - {{if 'cudaGraphEdgeData_st.to_port' in found_struct}} + + @property def to_port(self): return self._pvt_ptr[0].to_port @to_port.setter def to_port(self, unsigned char to_port): self._pvt_ptr[0].to_port = to_port - {{endif}} - {{if 'cudaGraphEdgeData_st.type' in found_struct}} + + @property def type(self): return self._pvt_ptr[0].type @type.setter def type(self, unsigned char type): self._pvt_ptr[0].type = type - {{endif}} - {{if 'cudaGraphEdgeData_st.reserved' in found_struct}} + + @property def reserved(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].reserved, 5) @@ -18625,9 +18109,7 @@ cdef class cudaGraphEdgeData_st: raise ValueError("reserved length must be 5, is " + str(len(reserved))) for i, b in enumerate(reserved): self._pvt_ptr[0].reserved[i] = b - {{endif}} -{{endif}} -{{if 'cudaGraphInstantiateParams_st' in found_struct}} + cdef class cudaGraphInstantiateParams_st: """ @@ -18635,22 +18117,22 @@ cdef class cudaGraphInstantiateParams_st: Attributes ---------- - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + flags : unsigned long long Instantiation flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + uploadStream : cudaStream_t Upload stream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + errNode_out : cudaGraphNode_t The node which caused instantiation to fail, if any - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + result_out : cudaGraphInstantiateResult Whether instantiation was successful. If it failed, the reason why - {{endif}} + Methods ------- @@ -18664,12 +18146,12 @@ cdef class cudaGraphInstantiateParams_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + self._uploadStream = cudaStream_t(_ptr=&self._pvt_ptr[0].uploadStream) - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + self._errNode_out = cudaGraphNode_t(_ptr=&self._pvt_ptr[0].errNode_out) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -18677,42 +18159,42 @@ cdef class cudaGraphInstantiateParams_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + try: str_list += ['uploadStream : ' + str(self.uploadStream)] except ValueError: str_list += ['uploadStream : '] - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + try: str_list += ['errNode_out : ' + str(self.errNode_out)] except ValueError: str_list += ['errNode_out : '] - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + try: str_list += ['result_out : ' + str(self.result_out)] except ValueError: str_list += ['result_out : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphInstantiateParams_st.flags' in found_struct}} + @property def flags(self): return self._pvt_ptr[0].flags @flags.setter def flags(self, unsigned long long flags): self._pvt_ptr[0].flags = flags - {{endif}} - {{if 'cudaGraphInstantiateParams_st.uploadStream' in found_struct}} + + @property def uploadStream(self): return self._uploadStream @@ -18728,8 +18210,8 @@ cdef class cudaGraphInstantiateParams_st: puploadStream = int(cudaStream_t(uploadStream)) cyuploadStream = puploadStream self._uploadStream._pvt_ptr[0] = cyuploadStream - {{endif}} - {{if 'cudaGraphInstantiateParams_st.errNode_out' in found_struct}} + + @property def errNode_out(self): return self._errNode_out @@ -18745,17 +18227,15 @@ cdef class cudaGraphInstantiateParams_st: perrNode_out = int(cudaGraphNode_t(errNode_out)) cyerrNode_out = perrNode_out self._errNode_out._pvt_ptr[0] = cyerrNode_out - {{endif}} - {{if 'cudaGraphInstantiateParams_st.result_out' in found_struct}} + + @property def result_out(self): return cudaGraphInstantiateResult(self._pvt_ptr[0].result_out) @result_out.setter def result_out(self, result_out not None : cudaGraphInstantiateResult): - self._pvt_ptr[0].result_out = int(result_out) - {{endif}} -{{endif}} -{{if 'cudaGraphExecUpdateResultInfo_st' in found_struct}} + self._pvt_ptr[0].result_out = int(result_out) + cdef class cudaGraphExecUpdateResultInfo_st: """ @@ -18763,21 +18243,21 @@ cdef class cudaGraphExecUpdateResultInfo_st: Attributes ---------- - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + result : cudaGraphExecUpdateResult Gives more specific detail when a cuda graph update fails. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + errorNode : cudaGraphNode_t The "to node" of the error edge when the topologies do not match. The error node when the error is associated with a specific node. NULL when the error is generic. - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + errorFromNode : cudaGraphNode_t The from node of error edge when the topologies do not match. Otherwise NULL. - {{endif}} + Methods ------- @@ -18791,12 +18271,12 @@ cdef class cudaGraphExecUpdateResultInfo_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + self._errorNode = cudaGraphNode_t(_ptr=&self._pvt_ptr[0].errorNode) - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + self._errorFromNode = cudaGraphNode_t(_ptr=&self._pvt_ptr[0].errorFromNode) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -18804,36 +18284,36 @@ cdef class cudaGraphExecUpdateResultInfo_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + try: str_list += ['result : ' + str(self.result)] except ValueError: str_list += ['result : '] - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + + try: str_list += ['errorNode : ' + str(self.errorNode)] except ValueError: str_list += ['errorNode : '] - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + try: str_list += ['errorFromNode : ' + str(self.errorFromNode)] except ValueError: str_list += ['errorFromNode : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphExecUpdateResultInfo_st.result' in found_struct}} + @property def result(self): return cudaGraphExecUpdateResult(self._pvt_ptr[0].result) @result.setter def result(self, result not None : cudaGraphExecUpdateResult): - self._pvt_ptr[0].result = int(result) - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorNode' in found_struct}} + self._pvt_ptr[0].result = int(result) + + @property def errorNode(self): return self._errorNode @@ -18849,8 +18329,8 @@ cdef class cudaGraphExecUpdateResultInfo_st: perrorNode = int(cudaGraphNode_t(errorNode)) cyerrorNode = perrorNode self._errorNode._pvt_ptr[0] = cyerrorNode - {{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st.errorFromNode' in found_struct}} + + @property def errorFromNode(self): return self._errorFromNode @@ -18866,26 +18346,24 @@ cdef class cudaGraphExecUpdateResultInfo_st: perrorFromNode = int(cudaGraphNode_t(errorFromNode)) cyerrorFromNode = perrorFromNode self._errorFromNode._pvt_ptr[0] = cyerrorFromNode - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + cdef class anon_struct16: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + pValue : Any - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + offset : size_t - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + size : size_t - {{endif}} + Methods ------- @@ -18904,28 +18382,28 @@ cdef class anon_struct16: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + try: str_list += ['pValue : ' + hex(self.pValue)] except ValueError: str_list += ['pValue : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + try: str_list += ['offset : ' + str(self.offset)] except ValueError: str_list += ['offset : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + try: str_list += ['size : ' + str(self.size)] except ValueError: str_list += ['size : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphKernelNodeUpdate.updateData.param.pValue' in found_struct}} + @property def pValue(self): return self._pvt_ptr[0].updateData.param.pValue @@ -18933,42 +18411,40 @@ cdef class anon_struct16: def pValue(self, pValue): self._cypValue = _HelperInputVoidPtr(pValue) self._pvt_ptr[0].updateData.param.pValue = self._cypValue.cptr - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.offset' in found_struct}} + + @property def offset(self): return self._pvt_ptr[0].updateData.param.offset @offset.setter def offset(self, size_t offset): self._pvt_ptr[0].updateData.param.offset = offset - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param.size' in found_struct}} + + @property def size(self): return self._pvt_ptr[0].updateData.param.size @size.setter def size(self, size_t size): self._pvt_ptr[0].updateData.param.size = size - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + cdef class anon_union10: """ Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + gridDim : dim3 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} - param : anon_struct16 - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + param : anon_struct16 + + + isEnabled : unsigned int - {{endif}} + Methods ------- @@ -18980,12 +18456,12 @@ cdef class anon_union10: def __init__(self, void_ptr _ptr): pass - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + self._gridDim = dim3(_ptr=&self._pvt_ptr[0].updateData.gridDim) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + self._param = anon_struct16(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -18993,53 +18469,51 @@ cdef class anon_union10: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + try: str_list += ['gridDim :\n' + '\n'.join([' ' + line for line in str(self.gridDim).splitlines()])] except ValueError: str_list += ['gridDim : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + try: str_list += ['param :\n' + '\n'.join([' ' + line for line in str(self.param).splitlines()])] except ValueError: str_list += ['param : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + try: str_list += ['isEnabled : ' + str(self.isEnabled)] except ValueError: str_list += ['isEnabled : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphKernelNodeUpdate.updateData.gridDim' in found_struct}} + @property def gridDim(self): return self._gridDim @gridDim.setter def gridDim(self, gridDim not None : dim3): string.memcpy(&self._pvt_ptr[0].updateData.gridDim, gridDim.getPtr(), sizeof(self._pvt_ptr[0].updateData.gridDim)) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.param' in found_struct}} + + @property def param(self): return self._param @param.setter def param(self, param not None : anon_struct16): string.memcpy(&self._pvt_ptr[0].updateData.param, param.getPtr(), sizeof(self._pvt_ptr[0].updateData.param)) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData.isEnabled' in found_struct}} + + @property def isEnabled(self): return self._pvt_ptr[0].updateData.isEnabled @isEnabled.setter def isEnabled(self, unsigned int isEnabled): self._pvt_ptr[0].updateData.isEnabled = isEnabled - {{endif}} -{{endif}} -{{if 'cudaGraphKernelNodeUpdate' in found_struct}} + cdef class cudaGraphKernelNodeUpdate: """ @@ -19048,19 +18522,19 @@ cdef class cudaGraphKernelNodeUpdate: Attributes ---------- - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + node : cudaGraphDeviceNode_t Node to update - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + field : cudaGraphKernelNodeField Which type of update to apply. Determines how updateData is interpreted - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + updateData : anon_union10 Update data to apply. Which field is used depends on field's value - {{endif}} + Methods ------- @@ -19075,12 +18549,12 @@ cdef class cudaGraphKernelNodeUpdate: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + self._node = cudaGraphDeviceNode_t(_ptr=&self._pvt_ptr[0].node) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + self._updateData = anon_union10(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -19089,28 +18563,28 @@ cdef class cudaGraphKernelNodeUpdate: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + try: str_list += ['node : ' + str(self.node)] except ValueError: str_list += ['node : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + try: str_list += ['field : ' + str(self.field)] except ValueError: str_list += ['field : '] - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + + try: str_list += ['updateData :\n' + '\n'.join([' ' + line for line in str(self.updateData).splitlines()])] except ValueError: str_list += ['updateData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphKernelNodeUpdate.node' in found_struct}} + @property def node(self): return self._node @@ -19126,25 +18600,23 @@ cdef class cudaGraphKernelNodeUpdate: pnode = int(cudaGraphDeviceNode_t(node)) cynode = pnode self._node._pvt_ptr[0] = cynode - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.field' in found_struct}} + + @property def field(self): return cudaGraphKernelNodeField(self._pvt_ptr[0].field) @field.setter def field(self, field not None : cudaGraphKernelNodeField): - self._pvt_ptr[0].field = int(field) - {{endif}} - {{if 'cudaGraphKernelNodeUpdate.updateData' in found_struct}} + self._pvt_ptr[0].field = int(field) + + @property def updateData(self): return self._updateData @updateData.setter def updateData(self, updateData not None : anon_union10): string.memcpy(&self._pvt_ptr[0].updateData, updateData.getPtr(), sizeof(self._pvt_ptr[0].updateData)) - {{endif}} -{{endif}} -{{if 'cudaLaunchMemSyncDomainMap_st' in found_struct}} + cdef class cudaLaunchMemSyncDomainMap_st: """ @@ -19158,14 +18630,14 @@ cdef class cudaLaunchMemSyncDomainMap_st: Attributes ---------- - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + default_ : bytes The default domain ID to use for designated kernels - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + remote : bytes The remote domain ID to use for designated kernels - {{endif}} + Methods ------- @@ -19186,56 +18658,54 @@ cdef class cudaLaunchMemSyncDomainMap_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + try: str_list += ['default_ : ' + str(self.default_)] except ValueError: str_list += ['default_ : '] - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + try: str_list += ['remote : ' + str(self.remote)] except ValueError: str_list += ['remote : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchMemSyncDomainMap_st.default_' in found_struct}} + @property def default_(self): return self._pvt_ptr[0].default_ @default_.setter def default_(self, unsigned char default_): self._pvt_ptr[0].default_ = default_ - {{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st.remote' in found_struct}} + + @property def remote(self): return self._pvt_ptr[0].remote @remote.setter def remote(self, unsigned char remote): self._pvt_ptr[0].remote = remote - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + cdef class anon_struct17: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -19254,70 +18724,68 @@ cdef class anon_struct17: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.clusterDim.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].clusterDim.x @x.setter def x(self, unsigned int x): self._pvt_ptr[0].clusterDim.x = x - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].clusterDim.y @y.setter def y(self, unsigned int y): self._pvt_ptr[0].clusterDim.y = y - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].clusterDim.z @z.setter def z(self, unsigned int z): self._pvt_ptr[0].clusterDim.z = z - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + cdef class anon_struct18: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + flags : int - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + triggerAtBlockStart : int - {{endif}} + Methods ------- @@ -19329,9 +18797,9 @@ cdef class anon_struct18: def __init__(self, void_ptr _ptr): pass - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].programmaticEvent.event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19339,28 +18807,28 @@ cdef class anon_struct18: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + try: str_list += ['triggerAtBlockStart : ' + str(self.triggerAtBlockStart)] except ValueError: str_list += ['triggerAtBlockStart : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.programmaticEvent.event' in found_struct}} + @property def event(self): return self._event @@ -19376,42 +18844,40 @@ cdef class anon_struct18: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].programmaticEvent.flags @flags.setter def flags(self, int flags): self._pvt_ptr[0].programmaticEvent.flags = flags - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent.triggerAtBlockStart' in found_struct}} + + @property def triggerAtBlockStart(self): return self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart @triggerAtBlockStart.setter def triggerAtBlockStart(self, int triggerAtBlockStart): self._pvt_ptr[0].programmaticEvent.triggerAtBlockStart = triggerAtBlockStart - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + cdef class anon_struct19: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + x : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + y : unsigned int - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + z : unsigned int - {{endif}} + Methods ------- @@ -19430,66 +18896,64 @@ cdef class anon_struct19: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + try: str_list += ['x : ' + str(self.x)] except ValueError: str_list += ['x : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + try: str_list += ['y : ' + str(self.y)] except ValueError: str_list += ['y : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + try: str_list += ['z : ' + str(self.z)] except ValueError: str_list += ['z : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.preferredClusterDim.x' in found_struct}} + @property def x(self): return self._pvt_ptr[0].preferredClusterDim.x @x.setter def x(self, unsigned int x): self._pvt_ptr[0].preferredClusterDim.x = x - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.y' in found_struct}} + + @property def y(self): return self._pvt_ptr[0].preferredClusterDim.y @y.setter def y(self, unsigned int y): self._pvt_ptr[0].preferredClusterDim.y = y - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim.z' in found_struct}} + + @property def z(self): return self._pvt_ptr[0].preferredClusterDim.z @z.setter def z(self, unsigned int z): self._pvt_ptr[0].preferredClusterDim.z = z - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + cdef class anon_struct20: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + event : cudaEvent_t - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + flags : int - {{endif}} + Methods ------- @@ -19501,9 +18965,9 @@ cdef class anon_struct20: def __init__(self, void_ptr _ptr): pass - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + self._event = cudaEvent_t(_ptr=&self._pvt_ptr[0].launchCompletionEvent.event) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19511,22 +18975,22 @@ cdef class anon_struct20: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + try: str_list += ['event : ' + str(self.event)] except ValueError: str_list += ['event : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + try: str_list += ['flags : ' + str(self.flags)] except ValueError: str_list += ['flags : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.event' in found_struct}} + @property def event(self): return self._event @@ -19542,30 +19006,28 @@ cdef class anon_struct20: pevent = int(cudaEvent_t(event)) cyevent = pevent self._event._pvt_ptr[0] = cyevent - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent.flags' in found_struct}} + + @property def flags(self): return self._pvt_ptr[0].launchCompletionEvent.flags @flags.setter def flags(self, int flags): self._pvt_ptr[0].launchCompletionEvent.flags = flags - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + cdef class anon_struct21: """ Attributes ---------- - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + deviceUpdatable : int - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + devNode : cudaGraphDeviceNode_t - {{endif}} + Methods ------- @@ -19577,9 +19039,9 @@ cdef class anon_struct21: def __init__(self, void_ptr _ptr): pass - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + self._devNode = cudaGraphDeviceNode_t(_ptr=&self._pvt_ptr[0].deviceUpdatableKernelNode.devNode) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19587,30 +19049,30 @@ cdef class anon_struct21: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + try: str_list += ['deviceUpdatable : ' + str(self.deviceUpdatable)] except ValueError: str_list += ['deviceUpdatable : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + try: str_list += ['devNode : ' + str(self.devNode)] except ValueError: str_list += ['devNode : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.deviceUpdatable' in found_struct}} + @property def deviceUpdatable(self): return self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable @deviceUpdatable.setter def deviceUpdatable(self, int deviceUpdatable): self._pvt_ptr[0].deviceUpdatableKernelNode.deviceUpdatable = deviceUpdatable - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode.devNode' in found_struct}} + + @property def devNode(self): return self._devNode @@ -19626,9 +19088,7 @@ cdef class anon_struct21: pdevNode = int(cudaGraphDeviceNode_t(devNode)) cydevNode = pdevNode self._devNode._pvt_ptr[0] = cydevNode - {{endif}} -{{endif}} -{{if 'cudaLaunchAttributeValue' in found_struct}} + cdef class cudaLaunchAttributeValue: """ @@ -19636,25 +19096,25 @@ cdef class cudaLaunchAttributeValue: Attributes ---------- - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + pad : bytes - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + accessPolicyWindow : cudaAccessPolicyWindow Value of launch attribute cudaLaunchAttributeAccessPolicyWindow. - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + cooperative : int Value of launch attribute cudaLaunchAttributeCooperative. Nonzero indicates a cooperative kernel (see cudaLaunchCooperativeKernel). - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + syncPolicy : cudaSynchronizationPolicy Value of launch attribute cudaLaunchAttributeSynchronizationPolicy. cudaSynchronizationPolicy for work queued up in this stream. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + clusterDim : anon_struct17 Value of launch attribute cudaLaunchAttributeClusterDimension that represents the desired cluster dimensions for the kernel. Opaque @@ -19663,19 +19123,19 @@ cdef class cudaLaunchAttributeValue: `y` - The Y dimension of the cluster, in blocks. Must be a divisor of the grid Y dimension. - `z` - The Z dimension of the cluster, in blocks. Must be a divisor of the grid Z dimension. - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + clusterSchedulingPolicyPreference : cudaClusterSchedulingPolicy Value of launch attribute cudaLaunchAttributeClusterSchedulingPolicyPreference. Cluster scheduling policy preference for the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + programmaticStreamSerializationAllowed : int Value of launch attribute cudaLaunchAttributeProgrammaticStreamSerialization. - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + programmaticEvent : anon_struct18 Value of launch attribute cudaLaunchAttributeProgrammaticEvent with the following fields: - `cudaEvent_t` event - Event to fire when @@ -19683,23 +19143,23 @@ cdef class cudaLaunchAttributeValue: cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - `int` triggerAtBlockStart - If this is set to non-0, each block launch will automatically trigger the event. - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + priority : int Value of launch attribute cudaLaunchAttributePriority. Execution priority of the kernel. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + memSyncDomainMap : cudaLaunchMemSyncDomainMap Value of launch attribute cudaLaunchAttributeMemSyncDomainMap. See cudaLaunchMemSyncDomainMap. - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + memSyncDomain : cudaLaunchMemSyncDomain Value of launch attribute cudaLaunchAttributeMemSyncDomain. See cudaLaunchMemSyncDomain. - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + preferredClusterDim : anon_struct19 Value of launch attribute cudaLaunchAttributePreferredClusterDimension that represents the @@ -19713,16 +19173,16 @@ cdef class cudaLaunchAttributeValue: ::cudaLaunchAttributeValue::clusterDim. - `z` - The Z dimension of the preferred cluster, in blocks. Must be equal to the `z` field of ::cudaLaunchAttributeValue::clusterDim. - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + launchCompletionEvent : anon_struct20 Value of launch attribute cudaLaunchAttributeLaunchCompletionEvent with the following fields: - `cudaEvent_t` event - Event to fire when the last block launches. - `int` flags - Event record flags, see cudaEventRecordWithFlags. Does not accept cudaEventRecordExternal. - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + deviceUpdatableKernelNode : anon_struct21 Value of launch attribute cudaLaunchAttributeDeviceUpdatableKernelNode with the following @@ -19730,27 +19190,27 @@ cdef class cudaLaunchAttributeValue: kernel node should be device-updatable. - `cudaGraphDeviceNode_t` devNode - Returns a handle to pass to the various device-side update functions. - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + sharedMemCarveout : unsigned int Value of launch attribute cudaLaunchAttributePreferredSharedMemoryCarveout. - {{endif}} - {{if 'cudaLaunchAttributeValue.nvlinkUtilCentricScheduling' in found_struct}} + + nvlinkUtilCentricScheduling : unsigned int Value of launch attribute cudaLaunchAttributeNvlinkUtilCentricScheduling. - {{endif}} - {{if 'cudaLaunchAttributeValue.portableClusterSizeMode' in found_struct}} + + portableClusterSizeMode : cudaLaunchAttributePortableClusterMode Value of launch attribute cudaLaunchAttributePortableClusterSizeMode - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemoryMode' in found_struct}} + + sharedMemoryMode : cudaSharedMemoryMode Value of launch attribute cudaLaunchAttributeSharedMemoryMode. See cudaSharedMemoryMode for acceptable values. - {{endif}} + Methods ------- @@ -19764,27 +19224,27 @@ cdef class cudaLaunchAttributeValue: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + self._accessPolicyWindow = cudaAccessPolicyWindow(_ptr=&self._pvt_ptr[0].accessPolicyWindow) - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + self._clusterDim = anon_struct17(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + self._programmaticEvent = anon_struct18(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + self._memSyncDomainMap = cudaLaunchMemSyncDomainMap(_ptr=&self._pvt_ptr[0].memSyncDomainMap) - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + self._preferredClusterDim = anon_struct19(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + self._launchCompletionEvent = anon_struct20(_ptr=self._pvt_ptr) - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + self._deviceUpdatableKernelNode = anon_struct21(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -19792,118 +19252,118 @@ cdef class cudaLaunchAttributeValue: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + try: str_list += ['pad : ' + str(self.pad)] except ValueError: str_list += ['pad : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + try: str_list += ['accessPolicyWindow :\n' + '\n'.join([' ' + line for line in str(self.accessPolicyWindow).splitlines()])] except ValueError: str_list += ['accessPolicyWindow : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + try: str_list += ['cooperative : ' + str(self.cooperative)] except ValueError: str_list += ['cooperative : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + try: str_list += ['syncPolicy : ' + str(self.syncPolicy)] except ValueError: str_list += ['syncPolicy : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + + try: str_list += ['clusterDim :\n' + '\n'.join([' ' + line for line in str(self.clusterDim).splitlines()])] except ValueError: str_list += ['clusterDim : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + try: str_list += ['clusterSchedulingPolicyPreference : ' + str(self.clusterSchedulingPolicyPreference)] except ValueError: str_list += ['clusterSchedulingPolicyPreference : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + + try: str_list += ['programmaticStreamSerializationAllowed : ' + str(self.programmaticStreamSerializationAllowed)] except ValueError: str_list += ['programmaticStreamSerializationAllowed : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + try: str_list += ['programmaticEvent :\n' + '\n'.join([' ' + line for line in str(self.programmaticEvent).splitlines()])] except ValueError: str_list += ['programmaticEvent : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + try: str_list += ['priority : ' + str(self.priority)] except ValueError: str_list += ['priority : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + try: str_list += ['memSyncDomainMap :\n' + '\n'.join([' ' + line for line in str(self.memSyncDomainMap).splitlines()])] except ValueError: str_list += ['memSyncDomainMap : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + try: str_list += ['memSyncDomain : ' + str(self.memSyncDomain)] except ValueError: str_list += ['memSyncDomain : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + + try: str_list += ['preferredClusterDim :\n' + '\n'.join([' ' + line for line in str(self.preferredClusterDim).splitlines()])] except ValueError: str_list += ['preferredClusterDim : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + try: str_list += ['launchCompletionEvent :\n' + '\n'.join([' ' + line for line in str(self.launchCompletionEvent).splitlines()])] except ValueError: str_list += ['launchCompletionEvent : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + try: str_list += ['deviceUpdatableKernelNode :\n' + '\n'.join([' ' + line for line in str(self.deviceUpdatableKernelNode).splitlines()])] except ValueError: str_list += ['deviceUpdatableKernelNode : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + try: str_list += ['sharedMemCarveout : ' + str(self.sharedMemCarveout)] except ValueError: str_list += ['sharedMemCarveout : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.nvlinkUtilCentricScheduling' in found_struct}} + + try: str_list += ['nvlinkUtilCentricScheduling : ' + str(self.nvlinkUtilCentricScheduling)] except ValueError: str_list += ['nvlinkUtilCentricScheduling : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.portableClusterSizeMode' in found_struct}} + + try: str_list += ['portableClusterSizeMode : ' + str(self.portableClusterSizeMode)] except ValueError: str_list += ['portableClusterSizeMode : '] - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemoryMode' in found_struct}} + + try: str_list += ['sharedMemoryMode : ' + str(self.sharedMemoryMode)] except ValueError: str_list += ['sharedMemoryMode : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttributeValue.pad' in found_struct}} + @property def pad(self): return PyBytes_FromStringAndSize(self._pvt_ptr[0].pad, 64) @@ -19921,145 +19381,143 @@ cdef class cudaLaunchAttributeValue: if b > 127 and b < 256: b = b - 256 self._pvt_ptr[0].pad[i] = b - {{endif}} - {{if 'cudaLaunchAttributeValue.accessPolicyWindow' in found_struct}} + + @property def accessPolicyWindow(self): return self._accessPolicyWindow @accessPolicyWindow.setter def accessPolicyWindow(self, accessPolicyWindow not None : cudaAccessPolicyWindow): string.memcpy(&self._pvt_ptr[0].accessPolicyWindow, accessPolicyWindow.getPtr(), sizeof(self._pvt_ptr[0].accessPolicyWindow)) - {{endif}} - {{if 'cudaLaunchAttributeValue.cooperative' in found_struct}} + + @property def cooperative(self): return self._pvt_ptr[0].cooperative @cooperative.setter def cooperative(self, int cooperative): self._pvt_ptr[0].cooperative = cooperative - {{endif}} - {{if 'cudaLaunchAttributeValue.syncPolicy' in found_struct}} + + @property def syncPolicy(self): return cudaSynchronizationPolicy(self._pvt_ptr[0].syncPolicy) @syncPolicy.setter def syncPolicy(self, syncPolicy not None : cudaSynchronizationPolicy): - self._pvt_ptr[0].syncPolicy = int(syncPolicy) - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterDim' in found_struct}} + self._pvt_ptr[0].syncPolicy = int(syncPolicy) + + @property def clusterDim(self): return self._clusterDim @clusterDim.setter def clusterDim(self, clusterDim not None : anon_struct17): string.memcpy(&self._pvt_ptr[0].clusterDim, clusterDim.getPtr(), sizeof(self._pvt_ptr[0].clusterDim)) - {{endif}} - {{if 'cudaLaunchAttributeValue.clusterSchedulingPolicyPreference' in found_struct}} + + @property def clusterSchedulingPolicyPreference(self): return cudaClusterSchedulingPolicy(self._pvt_ptr[0].clusterSchedulingPolicyPreference) @clusterSchedulingPolicyPreference.setter def clusterSchedulingPolicyPreference(self, clusterSchedulingPolicyPreference not None : cudaClusterSchedulingPolicy): - self._pvt_ptr[0].clusterSchedulingPolicyPreference = int(clusterSchedulingPolicyPreference) - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticStreamSerializationAllowed' in found_struct}} + self._pvt_ptr[0].clusterSchedulingPolicyPreference = int(clusterSchedulingPolicyPreference) + + @property def programmaticStreamSerializationAllowed(self): return self._pvt_ptr[0].programmaticStreamSerializationAllowed @programmaticStreamSerializationAllowed.setter def programmaticStreamSerializationAllowed(self, int programmaticStreamSerializationAllowed): self._pvt_ptr[0].programmaticStreamSerializationAllowed = programmaticStreamSerializationAllowed - {{endif}} - {{if 'cudaLaunchAttributeValue.programmaticEvent' in found_struct}} + + @property def programmaticEvent(self): return self._programmaticEvent @programmaticEvent.setter def programmaticEvent(self, programmaticEvent not None : anon_struct18): string.memcpy(&self._pvt_ptr[0].programmaticEvent, programmaticEvent.getPtr(), sizeof(self._pvt_ptr[0].programmaticEvent)) - {{endif}} - {{if 'cudaLaunchAttributeValue.priority' in found_struct}} + + @property def priority(self): return self._pvt_ptr[0].priority @priority.setter def priority(self, int priority): self._pvt_ptr[0].priority = priority - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomainMap' in found_struct}} + + @property def memSyncDomainMap(self): return self._memSyncDomainMap @memSyncDomainMap.setter def memSyncDomainMap(self, memSyncDomainMap not None : cudaLaunchMemSyncDomainMap): string.memcpy(&self._pvt_ptr[0].memSyncDomainMap, memSyncDomainMap.getPtr(), sizeof(self._pvt_ptr[0].memSyncDomainMap)) - {{endif}} - {{if 'cudaLaunchAttributeValue.memSyncDomain' in found_struct}} + + @property def memSyncDomain(self): return cudaLaunchMemSyncDomain(self._pvt_ptr[0].memSyncDomain) @memSyncDomain.setter def memSyncDomain(self, memSyncDomain not None : cudaLaunchMemSyncDomain): - self._pvt_ptr[0].memSyncDomain = int(memSyncDomain) - {{endif}} - {{if 'cudaLaunchAttributeValue.preferredClusterDim' in found_struct}} + self._pvt_ptr[0].memSyncDomain = int(memSyncDomain) + + @property def preferredClusterDim(self): return self._preferredClusterDim @preferredClusterDim.setter def preferredClusterDim(self, preferredClusterDim not None : anon_struct19): string.memcpy(&self._pvt_ptr[0].preferredClusterDim, preferredClusterDim.getPtr(), sizeof(self._pvt_ptr[0].preferredClusterDim)) - {{endif}} - {{if 'cudaLaunchAttributeValue.launchCompletionEvent' in found_struct}} + + @property def launchCompletionEvent(self): return self._launchCompletionEvent @launchCompletionEvent.setter def launchCompletionEvent(self, launchCompletionEvent not None : anon_struct20): string.memcpy(&self._pvt_ptr[0].launchCompletionEvent, launchCompletionEvent.getPtr(), sizeof(self._pvt_ptr[0].launchCompletionEvent)) - {{endif}} - {{if 'cudaLaunchAttributeValue.deviceUpdatableKernelNode' in found_struct}} + + @property def deviceUpdatableKernelNode(self): return self._deviceUpdatableKernelNode @deviceUpdatableKernelNode.setter def deviceUpdatableKernelNode(self, deviceUpdatableKernelNode not None : anon_struct21): string.memcpy(&self._pvt_ptr[0].deviceUpdatableKernelNode, deviceUpdatableKernelNode.getPtr(), sizeof(self._pvt_ptr[0].deviceUpdatableKernelNode)) - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemCarveout' in found_struct}} + + @property def sharedMemCarveout(self): return self._pvt_ptr[0].sharedMemCarveout @sharedMemCarveout.setter def sharedMemCarveout(self, unsigned int sharedMemCarveout): self._pvt_ptr[0].sharedMemCarveout = sharedMemCarveout - {{endif}} - {{if 'cudaLaunchAttributeValue.nvlinkUtilCentricScheduling' in found_struct}} + + @property def nvlinkUtilCentricScheduling(self): return self._pvt_ptr[0].nvlinkUtilCentricScheduling @nvlinkUtilCentricScheduling.setter def nvlinkUtilCentricScheduling(self, unsigned int nvlinkUtilCentricScheduling): self._pvt_ptr[0].nvlinkUtilCentricScheduling = nvlinkUtilCentricScheduling - {{endif}} - {{if 'cudaLaunchAttributeValue.portableClusterSizeMode' in found_struct}} + + @property def portableClusterSizeMode(self): return cudaLaunchAttributePortableClusterMode(self._pvt_ptr[0].portableClusterSizeMode) @portableClusterSizeMode.setter def portableClusterSizeMode(self, portableClusterSizeMode not None : cudaLaunchAttributePortableClusterMode): - self._pvt_ptr[0].portableClusterSizeMode = int(portableClusterSizeMode) - {{endif}} - {{if 'cudaLaunchAttributeValue.sharedMemoryMode' in found_struct}} + self._pvt_ptr[0].portableClusterSizeMode = int(portableClusterSizeMode) + + @property def sharedMemoryMode(self): return cudaSharedMemoryMode(self._pvt_ptr[0].sharedMemoryMode) @sharedMemoryMode.setter def sharedMemoryMode(self, sharedMemoryMode not None : cudaSharedMemoryMode): - self._pvt_ptr[0].sharedMemoryMode = int(sharedMemoryMode) - {{endif}} -{{endif}} -{{if 'cudaLaunchAttribute_st' in found_struct}} + self._pvt_ptr[0].sharedMemoryMode = int(sharedMemoryMode) + cdef class cudaLaunchAttribute_st: """ @@ -20067,14 +19525,14 @@ cdef class cudaLaunchAttribute_st: Attributes ---------- - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + id : cudaLaunchAttributeID Attribute to set - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + val : cudaLaunchAttributeValue Value of the attribute - {{endif}} + Methods ------- @@ -20088,9 +19546,9 @@ cdef class cudaLaunchAttribute_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + self._val = cudaLaunchAttributeValue(_ptr=&self._pvt_ptr[0].val) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20098,48 +19556,46 @@ cdef class cudaLaunchAttribute_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + try: str_list += ['id : ' + str(self.id)] except ValueError: str_list += ['id : '] - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + + try: str_list += ['val :\n' + '\n'.join([' ' + line for line in str(self.val).splitlines()])] except ValueError: str_list += ['val : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaLaunchAttribute_st.id' in found_struct}} + @property def id(self): return cudaLaunchAttributeID(self._pvt_ptr[0].id) @id.setter def id(self, id not None : cudaLaunchAttributeID): - self._pvt_ptr[0].id = int(id) - {{endif}} - {{if 'cudaLaunchAttribute_st.val' in found_struct}} + self._pvt_ptr[0].id = int(id) + + @property def val(self): return self._val @val.setter def val(self, val not None : cudaLaunchAttributeValue): string.memcpy(&self._pvt_ptr[0].val, val.getPtr(), sizeof(self._pvt_ptr[0].val)) - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + cdef class anon_struct22: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + bytesOverBudget : unsigned long long - {{endif}} + Methods ------- @@ -20158,34 +19614,32 @@ cdef class anon_struct22: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + try: str_list += ['bytesOverBudget : ' + str(self.bytesOverBudget)] except ValueError: str_list += ['bytesOverBudget : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAsyncNotificationInfo.info.overBudget.bytesOverBudget' in found_struct}} + @property def bytesOverBudget(self): return self._pvt_ptr[0].info.overBudget.bytesOverBudget @bytesOverBudget.setter def bytesOverBudget(self, unsigned long long bytesOverBudget): self._pvt_ptr[0].info.overBudget.bytesOverBudget = bytesOverBudget - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo.info' in found_struct}} + cdef class anon_union11: """ Attributes ---------- - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + overBudget : anon_struct22 - {{endif}} + Methods ------- @@ -20197,9 +19651,9 @@ cdef class anon_union11: def __init__(self, void_ptr _ptr): pass - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + self._overBudget = anon_struct22(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20207,25 +19661,23 @@ cdef class anon_union11: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + try: str_list += ['overBudget :\n' + '\n'.join([' ' + line for line in str(self.overBudget).splitlines()])] except ValueError: str_list += ['overBudget : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAsyncNotificationInfo.info.overBudget' in found_struct}} + @property def overBudget(self): return self._overBudget @overBudget.setter def overBudget(self, overBudget not None : anon_struct22): string.memcpy(&self._pvt_ptr[0].info.overBudget, overBudget.getPtr(), sizeof(self._pvt_ptr[0].info.overBudget)) - {{endif}} -{{endif}} -{{if 'cudaAsyncNotificationInfo' in found_struct}} + cdef class cudaAsyncNotificationInfo: """ @@ -20233,15 +19685,15 @@ cdef class cudaAsyncNotificationInfo: Attributes ---------- - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + type : cudaAsyncNotificationType The type of notification being sent - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + info : anon_union11 Information about the notification. `typename` must be checked in order to interpret this field. - {{endif}} + Methods ------- @@ -20256,9 +19708,9 @@ cdef class cudaAsyncNotificationInfo: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + self._info = anon_union11(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -20267,39 +19719,37 @@ cdef class cudaAsyncNotificationInfo: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + try: str_list += ['type : ' + str(self.type)] except ValueError: str_list += ['type : '] - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + + try: str_list += ['info :\n' + '\n'.join([' ' + line for line in str(self.info).splitlines()])] except ValueError: str_list += ['info : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaAsyncNotificationInfo.type' in found_struct}} + @property def type(self): return cudaAsyncNotificationType(self._pvt_ptr[0].type) @type.setter def type(self, type not None : cudaAsyncNotificationType): - self._pvt_ptr[0].type = int(type) - {{endif}} - {{if 'cudaAsyncNotificationInfo.info' in found_struct}} + self._pvt_ptr[0].type = int(type) + + @property def info(self): return self._info @info.setter def info(self, info not None : anon_union11): string.memcpy(&self._pvt_ptr[0].info, info.getPtr(), sizeof(self._pvt_ptr[0].info)) - {{endif}} -{{endif}} -{{if 'cudaTextureDesc' in found_struct}} + cdef class cudaTextureDesc: """ @@ -20307,58 +19757,58 @@ cdef class cudaTextureDesc: Attributes ---------- - {{if 'cudaTextureDesc.addressMode' in found_struct}} + addressMode : list[cudaTextureAddressMode] Texture address mode for up to 3 dimensions - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + filterMode : cudaTextureFilterMode Texture filter mode - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + + readMode : cudaTextureReadMode Texture read mode - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + + sRGB : int Perform sRGB->linear conversion during texture read - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + borderColor : list[float] Texture Border Color - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + normalizedCoords : int Indicates whether texture reads are normalized or not - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + maxAnisotropy : unsigned int Limit to the anisotropy ratio - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + mipmapFilterMode : cudaTextureFilterMode Mipmap filter mode - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + + mipmapLevelBias : float Offset applied to the supplied mipmap level - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + minMipmapLevelClamp : float Lower end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + maxMipmapLevelClamp : float Upper end of the mipmap level range to clamp access to - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + disableTrilinearOptimization : int Disable any trilinear filtering optimizations. - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + seamlessCubemap : int Enable seamless cube map filtering. - {{endif}} + Methods ------- @@ -20379,193 +19829,191 @@ cdef class cudaTextureDesc: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaTextureDesc.addressMode' in found_struct}} + try: str_list += ['addressMode : ' + str(self.addressMode)] except ValueError: str_list += ['addressMode : '] - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + try: str_list += ['filterMode : ' + str(self.filterMode)] except ValueError: str_list += ['filterMode : '] - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + + try: str_list += ['readMode : ' + str(self.readMode)] except ValueError: str_list += ['readMode : '] - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + + try: str_list += ['sRGB : ' + str(self.sRGB)] except ValueError: str_list += ['sRGB : '] - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + try: str_list += ['borderColor : ' + str(self.borderColor)] except ValueError: str_list += ['borderColor : '] - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + try: str_list += ['normalizedCoords : ' + str(self.normalizedCoords)] except ValueError: str_list += ['normalizedCoords : '] - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + try: str_list += ['maxAnisotropy : ' + str(self.maxAnisotropy)] except ValueError: str_list += ['maxAnisotropy : '] - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + try: str_list += ['mipmapFilterMode : ' + str(self.mipmapFilterMode)] except ValueError: str_list += ['mipmapFilterMode : '] - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + + try: str_list += ['mipmapLevelBias : ' + str(self.mipmapLevelBias)] except ValueError: str_list += ['mipmapLevelBias : '] - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + try: str_list += ['minMipmapLevelClamp : ' + str(self.minMipmapLevelClamp)] except ValueError: str_list += ['minMipmapLevelClamp : '] - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + try: str_list += ['maxMipmapLevelClamp : ' + str(self.maxMipmapLevelClamp)] except ValueError: str_list += ['maxMipmapLevelClamp : '] - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + try: str_list += ['disableTrilinearOptimization : ' + str(self.disableTrilinearOptimization)] except ValueError: str_list += ['disableTrilinearOptimization : '] - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + try: str_list += ['seamlessCubemap : ' + str(self.seamlessCubemap)] except ValueError: str_list += ['seamlessCubemap : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaTextureDesc.addressMode' in found_struct}} + @property def addressMode(self): return [cudaTextureAddressMode(_x) for _x in list(self._pvt_ptr[0].addressMode)] @addressMode.setter def addressMode(self, addressMode): self._pvt_ptr[0].addressMode = [int(_x) for _x in addressMode] - {{endif}} - {{if 'cudaTextureDesc.filterMode' in found_struct}} + + @property def filterMode(self): return cudaTextureFilterMode(self._pvt_ptr[0].filterMode) @filterMode.setter def filterMode(self, filterMode not None : cudaTextureFilterMode): - self._pvt_ptr[0].filterMode = int(filterMode) - {{endif}} - {{if 'cudaTextureDesc.readMode' in found_struct}} + self._pvt_ptr[0].filterMode = int(filterMode) + + @property def readMode(self): return cudaTextureReadMode(self._pvt_ptr[0].readMode) @readMode.setter def readMode(self, readMode not None : cudaTextureReadMode): - self._pvt_ptr[0].readMode = int(readMode) - {{endif}} - {{if 'cudaTextureDesc.sRGB' in found_struct}} + self._pvt_ptr[0].readMode = int(readMode) + + @property def sRGB(self): return self._pvt_ptr[0].sRGB @sRGB.setter def sRGB(self, int sRGB): self._pvt_ptr[0].sRGB = sRGB - {{endif}} - {{if 'cudaTextureDesc.borderColor' in found_struct}} + + @property def borderColor(self): return self._pvt_ptr[0].borderColor @borderColor.setter def borderColor(self, borderColor): self._pvt_ptr[0].borderColor = borderColor - {{endif}} - {{if 'cudaTextureDesc.normalizedCoords' in found_struct}} + + @property def normalizedCoords(self): return self._pvt_ptr[0].normalizedCoords @normalizedCoords.setter def normalizedCoords(self, int normalizedCoords): self._pvt_ptr[0].normalizedCoords = normalizedCoords - {{endif}} - {{if 'cudaTextureDesc.maxAnisotropy' in found_struct}} + + @property def maxAnisotropy(self): return self._pvt_ptr[0].maxAnisotropy @maxAnisotropy.setter def maxAnisotropy(self, unsigned int maxAnisotropy): self._pvt_ptr[0].maxAnisotropy = maxAnisotropy - {{endif}} - {{if 'cudaTextureDesc.mipmapFilterMode' in found_struct}} + + @property def mipmapFilterMode(self): return cudaTextureFilterMode(self._pvt_ptr[0].mipmapFilterMode) @mipmapFilterMode.setter def mipmapFilterMode(self, mipmapFilterMode not None : cudaTextureFilterMode): - self._pvt_ptr[0].mipmapFilterMode = int(mipmapFilterMode) - {{endif}} - {{if 'cudaTextureDesc.mipmapLevelBias' in found_struct}} + self._pvt_ptr[0].mipmapFilterMode = int(mipmapFilterMode) + + @property def mipmapLevelBias(self): return self._pvt_ptr[0].mipmapLevelBias @mipmapLevelBias.setter def mipmapLevelBias(self, float mipmapLevelBias): self._pvt_ptr[0].mipmapLevelBias = mipmapLevelBias - {{endif}} - {{if 'cudaTextureDesc.minMipmapLevelClamp' in found_struct}} + + @property def minMipmapLevelClamp(self): return self._pvt_ptr[0].minMipmapLevelClamp @minMipmapLevelClamp.setter def minMipmapLevelClamp(self, float minMipmapLevelClamp): self._pvt_ptr[0].minMipmapLevelClamp = minMipmapLevelClamp - {{endif}} - {{if 'cudaTextureDesc.maxMipmapLevelClamp' in found_struct}} + + @property def maxMipmapLevelClamp(self): return self._pvt_ptr[0].maxMipmapLevelClamp @maxMipmapLevelClamp.setter def maxMipmapLevelClamp(self, float maxMipmapLevelClamp): self._pvt_ptr[0].maxMipmapLevelClamp = maxMipmapLevelClamp - {{endif}} - {{if 'cudaTextureDesc.disableTrilinearOptimization' in found_struct}} + + @property def disableTrilinearOptimization(self): return self._pvt_ptr[0].disableTrilinearOptimization @disableTrilinearOptimization.setter def disableTrilinearOptimization(self, int disableTrilinearOptimization): self._pvt_ptr[0].disableTrilinearOptimization = disableTrilinearOptimization - {{endif}} - {{if 'cudaTextureDesc.seamlessCubemap' in found_struct}} + + @property def seamlessCubemap(self): return self._pvt_ptr[0].seamlessCubemap @seamlessCubemap.setter def seamlessCubemap(self, int seamlessCubemap): self._pvt_ptr[0].seamlessCubemap = seamlessCubemap - {{endif}} -{{endif}} -{{if 'cudaGraphRecaptureCallbackData' in found_struct}} + cdef class cudaGraphRecaptureCallbackData: """ @@ -20574,14 +20022,14 @@ cdef class cudaGraphRecaptureCallbackData: Attributes ---------- - {{if 'cudaGraphRecaptureCallbackData.callbackFunc' in found_struct}} + callbackFunc : cudaGraphRecaptureCallback_t Callback function that will be invoked - {{endif}} - {{if 'cudaGraphRecaptureCallbackData.userData' in found_struct}} + + userData : Any Generic pointer that is passed to the callback function - {{endif}} + Methods ------- @@ -20595,9 +20043,9 @@ cdef class cudaGraphRecaptureCallbackData: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if 'cudaGraphRecaptureCallbackData.callbackFunc' in found_struct}} + self._callbackFunc = cudaGraphRecaptureCallback_t(_ptr=&self._pvt_ptr[0].callbackFunc) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20605,22 +20053,22 @@ cdef class cudaGraphRecaptureCallbackData: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if 'cudaGraphRecaptureCallbackData.callbackFunc' in found_struct}} + try: str_list += ['callbackFunc : ' + str(self.callbackFunc)] except ValueError: str_list += ['callbackFunc : '] - {{endif}} - {{if 'cudaGraphRecaptureCallbackData.userData' in found_struct}} + + try: str_list += ['userData : ' + hex(self.userData)] except ValueError: str_list += ['userData : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if 'cudaGraphRecaptureCallbackData.callbackFunc' in found_struct}} + @property def callbackFunc(self): return self._callbackFunc @@ -20636,8 +20084,8 @@ cdef class cudaGraphRecaptureCallbackData: pcallbackFunc = int(cudaGraphRecaptureCallback_t(callbackFunc)) cycallbackFunc = pcallbackFunc self._callbackFunc._pvt_ptr[0] = cycallbackFunc - {{endif}} - {{if 'cudaGraphRecaptureCallbackData.userData' in found_struct}} + + @property def userData(self): return self._pvt_ptr[0].userData @@ -20645,9 +20093,7 @@ cdef class cudaGraphRecaptureCallbackData: def userData(self, userData): self._cyuserData = _HelperInputVoidPtr(userData) self._pvt_ptr[0].userData = self._cyuserData.cptr - {{endif}} -{{endif}} -{{if True}} + cdef class cudaEglPlaneDesc_st: """ @@ -20656,34 +20102,34 @@ cdef class cudaEglPlaneDesc_st: Attributes ---------- - {{if True}} + width : unsigned int Width of plane - {{endif}} - {{if True}} + + height : unsigned int Height of plane - {{endif}} - {{if True}} + + depth : unsigned int Depth of plane - {{endif}} - {{if True}} + + pitch : unsigned int Pitch of plane - {{endif}} - {{if True}} + + numChannels : unsigned int Number of channels for the plane - {{endif}} - {{if True}} + + channelDesc : cudaChannelFormatDesc Channel Format Descriptor - {{endif}} - {{if True}} + + reserved : list[unsigned int] Reserved for future use - {{endif}} + Methods ------- @@ -20697,9 +20143,9 @@ cdef class cudaEglPlaneDesc_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if True}} + self._channelDesc = cudaChannelFormatDesc(_ptr=&self._pvt_ptr[0].channelDesc) - {{endif}} + def __dealloc__(self): pass def getPtr(self): @@ -20707,122 +20153,120 @@ cdef class cudaEglPlaneDesc_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if True}} + try: str_list += ['width : ' + str(self.width)] except ValueError: str_list += ['width : '] - {{endif}} - {{if True}} + + try: str_list += ['height : ' + str(self.height)] except ValueError: str_list += ['height : '] - {{endif}} - {{if True}} + + try: str_list += ['depth : ' + str(self.depth)] except ValueError: str_list += ['depth : '] - {{endif}} - {{if True}} + + try: str_list += ['pitch : ' + str(self.pitch)] except ValueError: str_list += ['pitch : '] - {{endif}} - {{if True}} + + try: str_list += ['numChannels : ' + str(self.numChannels)] except ValueError: str_list += ['numChannels : '] - {{endif}} - {{if True}} + + try: str_list += ['channelDesc :\n' + '\n'.join([' ' + line for line in str(self.channelDesc).splitlines()])] except ValueError: str_list += ['channelDesc : '] - {{endif}} - {{if True}} + + try: str_list += ['reserved : ' + str(self.reserved)] except ValueError: str_list += ['reserved : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if True}} + @property def width(self): return self._pvt_ptr[0].width @width.setter def width(self, unsigned int width): self._pvt_ptr[0].width = width - {{endif}} - {{if True}} + + @property def height(self): return self._pvt_ptr[0].height @height.setter def height(self, unsigned int height): self._pvt_ptr[0].height = height - {{endif}} - {{if True}} + + @property def depth(self): return self._pvt_ptr[0].depth @depth.setter def depth(self, unsigned int depth): self._pvt_ptr[0].depth = depth - {{endif}} - {{if True}} + + @property def pitch(self): return self._pvt_ptr[0].pitch @pitch.setter def pitch(self, unsigned int pitch): self._pvt_ptr[0].pitch = pitch - {{endif}} - {{if True}} + + @property def numChannels(self): return self._pvt_ptr[0].numChannels @numChannels.setter def numChannels(self, unsigned int numChannels): self._pvt_ptr[0].numChannels = numChannels - {{endif}} - {{if True}} + + @property def channelDesc(self): return self._channelDesc @channelDesc.setter def channelDesc(self, channelDesc not None : cudaChannelFormatDesc): string.memcpy(&self._pvt_ptr[0].channelDesc, channelDesc.getPtr(), sizeof(self._pvt_ptr[0].channelDesc)) - {{endif}} - {{if True}} + + @property def reserved(self): return self._pvt_ptr[0].reserved @reserved.setter def reserved(self, reserved): self._pvt_ptr[0].reserved = reserved - {{endif}} -{{endif}} -{{if True}} + cdef class anon_union12: """ Attributes ---------- - {{if True}} + pArray : list[cudaArray_t] - {{endif}} - {{if True}} + + pPitch : list[cudaPitchedPtr] - {{endif}} + Methods ------- @@ -20841,22 +20285,22 @@ cdef class anon_union12: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if True}} + try: str_list += ['pArray : ' + str(self.pArray)] except ValueError: str_list += ['pArray : '] - {{endif}} - {{if True}} + + try: str_list += ['pPitch :\n' + '\n'.join([' ' + line for line in str(self.pPitch).splitlines()])] except ValueError: str_list += ['pPitch : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if True}} + @property def pArray(self): return [cudaArray_t(init_value=_pArray) for _pArray in self._pvt_ptr[0].frame.pArray] @@ -20868,8 +20312,8 @@ cdef class anon_union12: for _idx, _pArray in enumerate(pArray): self._pvt_ptr[0].frame.pArray[_idx] = _pArray - {{endif}} - {{if True}} + + @property def pPitch(self): out_pPitch = [cudaPitchedPtr() for _pPitch in self._pvt_ptr[0].frame.pPitch] @@ -20883,9 +20327,7 @@ cdef class anon_union12: for _idx in range(len(pPitch)): string.memcpy(&self._pvt_ptr[0].frame.pPitch[_idx], pPitch[_idx].getPtr(), sizeof(cyruntime.cudaPitchedPtr)) - {{endif}} -{{endif}} -{{if True}} + cdef class cudaEglFrame_st: """ @@ -20900,26 +20342,26 @@ cdef class cudaEglFrame_st: Attributes ---------- - {{if True}} + frame : anon_union12 - {{endif}} - {{if True}} + + planeDesc : list[cudaEglPlaneDesc] CUDA EGL Plane Descriptor cudaEglPlaneDesc - {{endif}} - {{if True}} + + planeCount : unsigned int Number of planes - {{endif}} - {{if True}} + + frameType : cudaEglFrameType Array or Pitch - {{endif}} - {{if True}} + + eglColorFormat : cudaEglColorFormat CUDA EGL Color Format - {{endif}} + Methods ------- @@ -20934,9 +20376,9 @@ cdef class cudaEglFrame_st: self._pvt_ptr = _ptr def __init__(self, void_ptr _ptr = 0): pass - {{if True}} + self._frame = anon_union12(_ptr=self._pvt_ptr) - {{endif}} + def __dealloc__(self): if self._val_ptr is not NULL: free(self._val_ptr) @@ -20945,48 +20387,48 @@ cdef class cudaEglFrame_st: def __repr__(self): if self._pvt_ptr is not NULL: str_list = [] - {{if True}} + try: str_list += ['frame :\n' + '\n'.join([' ' + line for line in str(self.frame).splitlines()])] except ValueError: str_list += ['frame : '] - {{endif}} - {{if True}} + + try: str_list += ['planeDesc :\n' + '\n'.join([' ' + line for line in str(self.planeDesc).splitlines()])] except ValueError: str_list += ['planeDesc : '] - {{endif}} - {{if True}} + + try: str_list += ['planeCount : ' + str(self.planeCount)] except ValueError: str_list += ['planeCount : '] - {{endif}} - {{if True}} + + try: str_list += ['frameType : ' + str(self.frameType)] except ValueError: str_list += ['frameType : '] - {{endif}} - {{if True}} + + try: str_list += ['eglColorFormat : ' + str(self.eglColorFormat)] except ValueError: str_list += ['eglColorFormat : '] - {{endif}} + return '\n'.join(str_list) else: return '' - {{if True}} + @property def frame(self): return self._frame @frame.setter def frame(self, frame not None : anon_union12): string.memcpy(&self._pvt_ptr[0].frame, frame.getPtr(), sizeof(self._pvt_ptr[0].frame)) - {{endif}} - {{if True}} + + @property def planeDesc(self): out_planeDesc = [cudaEglPlaneDesc() for _planeDesc in self._pvt_ptr[0].planeDesc] @@ -21000,33 +20442,31 @@ cdef class cudaEglFrame_st: for _idx in range(len(planeDesc)): string.memcpy(&self._pvt_ptr[0].planeDesc[_idx], planeDesc[_idx].getPtr(), sizeof(cyruntime.cudaEglPlaneDesc)) - {{endif}} - {{if True}} + + @property def planeCount(self): return self._pvt_ptr[0].planeCount @planeCount.setter def planeCount(self, unsigned int planeCount): self._pvt_ptr[0].planeCount = planeCount - {{endif}} - {{if True}} + + @property def frameType(self): return cudaEglFrameType(self._pvt_ptr[0].frameType) @frameType.setter def frameType(self, frameType not None : cudaEglFrameType): - self._pvt_ptr[0].frameType = int(frameType) - {{endif}} - {{if True}} + self._pvt_ptr[0].frameType = int(frameType) + + @property def eglColorFormat(self): return cudaEglColorFormat(self._pvt_ptr[0].eglColorFormat) @eglColorFormat.setter def eglColorFormat(self, eglColorFormat not None : cudaEglColorFormat): - self._pvt_ptr[0].eglColorFormat = int(eglColorFormat) - {{endif}} -{{endif}} -{{if 'cudaGraphConditionalHandle' in found_types}} + self._pvt_ptr[0].eglColorFormat = int(eglColorFormat) + cdef class cudaGraphConditionalHandle: """ @@ -21054,9 +20494,6 @@ cdef class cudaGraphConditionalHandle: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaLogIterator' in found_types}} cdef class cudaLogIterator: """ @@ -21082,9 +20519,6 @@ cdef class cudaLogIterator: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaSurfaceObject_t' in found_types}} cdef class cudaSurfaceObject_t: """ @@ -21112,9 +20546,6 @@ cdef class cudaSurfaceObject_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaTextureObject_t' in found_types}} cdef class cudaTextureObject_t: """ @@ -21142,9 +20573,6 @@ cdef class cudaTextureObject_t: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class GLenum: """ @@ -21170,9 +20598,6 @@ cdef class GLenum: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class GLuint: """ @@ -21198,9 +20623,6 @@ cdef class GLuint: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class EGLint: """ @@ -21226,9 +20648,6 @@ cdef class EGLint: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpDevice: """ @@ -21254,9 +20673,6 @@ cdef class VdpDevice: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpGetProcAddress: """ @@ -21282,9 +20698,6 @@ cdef class VdpGetProcAddress: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpVideoSurface: """ @@ -21310,9 +20723,6 @@ cdef class VdpVideoSurface: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if True}} cdef class VdpOutputSurface: """ @@ -21338,9 +20748,6 @@ cdef class VdpOutputSurface: return self._pvt_ptr[0] def getPtr(self): return self._pvt_ptr -{{endif}} - -{{if 'cudaDeviceReset' in found_functions}} @cython.embedsignature(True) def cudaDeviceReset(): @@ -21385,9 +20792,6 @@ def cudaDeviceReset(): with nogil: err = cyruntime.cudaDeviceReset() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceSynchronize' in found_functions}} @cython.embedsignature(True) def cudaDeviceSynchronize(): @@ -21412,9 +20816,6 @@ def cudaDeviceSynchronize(): with nogil: err = cyruntime.cudaDeviceSynchronize() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceSetLimit' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value): @@ -21515,9 +20916,6 @@ def cudaDeviceSetLimit(limit not None : cudaLimit, size_t value): with nogil: err = cyruntime.cudaDeviceSetLimit(cylimit, value) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetLimit' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetLimit(limit not None : cudaLimit): @@ -21575,9 +20973,6 @@ def cudaDeviceGetLimit(limit not None : cudaLimit): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pValue) -{{endif}} - -{{if 'cudaDeviceGetTexture1DLinearMaxWidth' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetTexture1DLinearMaxWidth(fmtDesc : Optional[cudaChannelFormatDesc], int device): @@ -21613,9 +21008,6 @@ def cudaDeviceGetTexture1DLinearMaxWidth(fmtDesc : Optional[cudaChannelFormatDes if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, maxWidthInElements) -{{endif}} - -{{if 'cudaDeviceGetCacheConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetCacheConfig(): @@ -21663,9 +21055,6 @@ def cudaDeviceGetCacheConfig(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaFuncCache(pCacheConfig)) -{{endif}} - -{{if 'cudaDeviceGetStreamPriorityRange' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetStreamPriorityRange(): @@ -21710,9 +21099,6 @@ def cudaDeviceGetStreamPriorityRange(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, leastPriority, greatestPriority) -{{endif}} - -{{if 'cudaDeviceSetCacheConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache): @@ -21768,9 +21154,6 @@ def cudaDeviceSetCacheConfig(cacheConfig not None : cudaFuncCache): with nogil: err = cyruntime.cudaDeviceSetCacheConfig(cycacheConfig) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetByPCIBusId' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetByPCIBusId(char* pciBusId): @@ -21803,9 +21186,6 @@ def cudaDeviceGetByPCIBusId(char* pciBusId): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaDeviceGetPCIBusId' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetPCIBusId(int length, int device): @@ -21844,9 +21224,6 @@ def cudaDeviceGetPCIBusId(int length, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pypciBusId) -{{endif}} - -{{if 'cudaIpcGetEventHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcGetEventHandle(event): @@ -21905,9 +21282,6 @@ def cudaIpcGetEventHandle(event): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, handle) -{{endif}} - -{{if 'cudaIpcOpenEventHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcOpenEventHandle(handle not None : cudaIpcEventHandle_t): @@ -21952,9 +21326,6 @@ def cudaIpcOpenEventHandle(handle not None : cudaIpcEventHandle_t): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event) -{{endif}} - -{{if 'cudaIpcGetMemHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcGetMemHandle(devPtr): @@ -22003,9 +21374,6 @@ def cudaIpcGetMemHandle(devPtr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, handle) -{{endif}} - -{{if 'cudaIpcOpenMemHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flags): @@ -22067,7 +21435,7 @@ def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flag Notes ----- - No guarantees are made about the address returned in `*devPtr`. + No guarantees are made about the address returned in `*devPtr`. In particular, multiple processes may not receive the same address for the same `handle`. """ cdef void_ptr devPtr = 0 @@ -22076,9 +21444,6 @@ def cudaIpcOpenMemHandle(handle not None : cudaIpcMemHandle_t, unsigned int flag if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaIpcCloseMemHandle' in found_functions}} @cython.embedsignature(True) def cudaIpcCloseMemHandle(devPtr): @@ -22120,9 +21485,6 @@ def cudaIpcCloseMemHandle(devPtr): err = cyruntime.cudaIpcCloseMemHandle(cydevPtr) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceFlushGPUDirectRDMAWrites' in found_functions}} @cython.embedsignature(True) def cudaDeviceFlushGPUDirectRDMAWrites(target not None : cudaFlushGPUDirectRDMAWritesTarget, scope not None : cudaFlushGPUDirectRDMAWritesScope): @@ -22165,9 +21527,6 @@ def cudaDeviceFlushGPUDirectRDMAWrites(target not None : cudaFlushGPUDirectRDMAW with nogil: err = cyruntime.cudaDeviceFlushGPUDirectRDMAWrites(cytarget, cyscope) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceRegisterAsyncNotification' in found_functions}} ctypedef struct cudaAsyncCallbackData_st: cyruntime.cudaAsyncCallback callback @@ -22254,9 +21613,6 @@ def cudaDeviceRegisterAsyncNotification(int device, callbackFunc, userData): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, callback) -{{endif}} - -{{if 'cudaDeviceUnregisterAsyncNotification' in found_functions}} @cython.embedsignature(True) def cudaDeviceUnregisterAsyncNotification(int device, callback): @@ -22296,9 +21652,6 @@ def cudaDeviceUnregisterAsyncNotification(int device, callback): free(m_global._allocated[pcallback]) m_global._allocated.erase(pcallback) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetSharedMemConfig(): @@ -22340,9 +21693,6 @@ def cudaDeviceGetSharedMemConfig(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaSharedMemConfig(pConfig)) -{{endif}} - -{{if 'cudaDeviceSetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig): @@ -22397,9 +21747,6 @@ def cudaDeviceSetSharedMemConfig(config not None : cudaSharedMemConfig): with nogil: err = cyruntime.cudaDeviceSetSharedMemConfig(cyconfig) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetLastError' in found_functions}} @cython.embedsignature(True) def cudaGetLastError(): @@ -22425,9 +21772,6 @@ def cudaGetLastError(): with nogil: err = cyruntime.cudaGetLastError() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaPeekAtLastError' in found_functions}} @cython.embedsignature(True) def cudaPeekAtLastError(): @@ -22454,9 +21798,6 @@ def cudaPeekAtLastError(): with nogil: err = cyruntime.cudaPeekAtLastError() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetErrorName' in found_functions}} @cython.embedsignature(True) def cudaGetErrorName(error not None : cudaError_t): @@ -22486,9 +21827,6 @@ def cudaGetErrorName(error not None : cudaError_t): with nogil: err = cyruntime.cudaGetErrorName(cyerror) return (cudaError_t.cudaSuccess, err) -{{endif}} - -{{if 'cudaGetErrorString' in found_functions}} @cython.embedsignature(True) def cudaGetErrorString(error not None : cudaError_t): @@ -22517,9 +21855,6 @@ def cudaGetErrorString(error not None : cudaError_t): with nogil: err = cyruntime.cudaGetErrorString(cyerror) return (cudaError_t.cudaSuccess, err) -{{endif}} - -{{if 'cudaGetDeviceCount' in found_functions}} @cython.embedsignature(True) def cudaGetDeviceCount(): @@ -22546,9 +21881,6 @@ def cudaGetDeviceCount(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, count) -{{endif}} - -{{if 'cudaGetDeviceProperties' in found_functions}} @cython.embedsignature(True) def cudaGetDeviceProperties(int device): @@ -22578,9 +21910,6 @@ def cudaGetDeviceProperties(int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, prop) -{{endif}} - -{{if 'cudaDeviceGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device): @@ -22614,9 +21943,6 @@ def cudaDeviceGetAttribute(attr not None : cudaDeviceAttr, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value) -{{endif}} - -{{if 'cudaDeviceGetHostAtomicCapabilities' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetHostAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int device): @@ -22677,9 +22003,6 @@ def cudaDeviceGetHostAtomicCapabilities(operations : Optional[tuple[cudaAtomicOp if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pycapabilities) -{{endif}} - -{{if 'cudaDeviceGetDefaultMemPool' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetDefaultMemPool(int device): @@ -22710,9 +22033,6 @@ def cudaDeviceGetDefaultMemPool(int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaDeviceSetMemPool' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetMemPool(int device, memPool): @@ -22755,9 +22075,6 @@ def cudaDeviceSetMemPool(int device, memPool): with nogil: err = cyruntime.cudaDeviceSetMemPool(device, cymemPool) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetMemPool' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetMemPool(int device): @@ -22792,9 +22109,6 @@ def cudaDeviceGetMemPool(int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaDeviceGetNvSciSyncAttributes' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags): @@ -22868,7 +22182,6 @@ def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags): ------- cudaError_t - See Also -------- :py:obj:`~.cudaImportExternalSemaphore`, :py:obj:`~.cudaDestroyExternalSemaphore`, :py:obj:`~.cudaSignalExternalSemaphoresAsync`, :py:obj:`~.cudaWaitExternalSemaphoresAsync` @@ -22879,9 +22192,6 @@ def cudaDeviceGetNvSciSyncAttributes(nvSciSyncAttrList, int device, int flags): err = cyruntime.cudaDeviceGetNvSciSyncAttributes(cynvSciSyncAttrList, device, flags) _helper_input_void_ptr_free(&cynvSciSyncAttrListHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetP2PAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, int dstDevice): @@ -22944,9 +22254,6 @@ def cudaDeviceGetP2PAttribute(attr not None : cudaDeviceP2PAttr, int srcDevice, if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value) -{{endif}} - -{{if 'cudaDeviceGetP2PAtomicCapabilities' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[cudaAtomicOperation] | list[cudaAtomicOperation]], unsigned int count, int srcDevice, int dstDevice): @@ -23011,9 +22318,6 @@ def cudaDeviceGetP2PAtomicCapabilities(operations : Optional[tuple[cudaAtomicOpe if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pycapabilities) -{{endif}} - -{{if 'cudaChooseDevice' in found_functions}} @cython.embedsignature(True) def cudaChooseDevice(prop : Optional[cudaDeviceProp]): @@ -23045,9 +22349,6 @@ def cudaChooseDevice(prop : Optional[cudaDeviceProp]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaInitDevice' in found_functions}} @cython.embedsignature(True) def cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags): @@ -23088,9 +22389,6 @@ def cudaInitDevice(int device, unsigned int deviceFlags, unsigned int flags): with nogil: err = cyruntime.cudaInitDevice(device, deviceFlags, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaSetDevice' in found_functions}} @cython.embedsignature(True) def cudaSetDevice(int device): @@ -23144,9 +22442,6 @@ def cudaSetDevice(int device): with nogil: err = cyruntime.cudaSetDevice(device) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetDevice' in found_functions}} @cython.embedsignature(True) def cudaGetDevice(): @@ -23172,9 +22467,6 @@ def cudaGetDevice(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaSetDeviceFlags' in found_functions}} @cython.embedsignature(True) def cudaSetDeviceFlags(unsigned int flags): @@ -23259,9 +22551,6 @@ def cudaSetDeviceFlags(unsigned int flags): with nogil: err = cyruntime.cudaSetDeviceFlags(flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetDeviceFlags' in found_functions}} @cython.embedsignature(True) def cudaGetDeviceFlags(): @@ -23309,9 +22598,6 @@ def cudaGetDeviceFlags(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, flags) -{{endif}} - -{{if 'cudaStreamCreate' in found_functions}} @cython.embedsignature(True) def cudaStreamCreate(): @@ -23339,9 +22625,6 @@ def cudaStreamCreate(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pStream) -{{endif}} - -{{if 'cudaStreamCreateWithFlags' in found_functions}} @cython.embedsignature(True) def cudaStreamCreateWithFlags(unsigned int flags): @@ -23383,9 +22666,6 @@ def cudaStreamCreateWithFlags(unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pStream) -{{endif}} - -{{if 'cudaStreamCreateWithPriority' in found_functions}} @cython.embedsignature(True) def cudaStreamCreateWithPriority(unsigned int flags, int priority): @@ -23444,9 +22724,6 @@ def cudaStreamCreateWithPriority(unsigned int flags, int priority): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pStream) -{{endif}} - -{{if 'cudaStreamGetPriority' in found_functions}} @cython.embedsignature(True) def cudaStreamGetPriority(hStream): @@ -23490,9 +22767,6 @@ def cudaStreamGetPriority(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, priority) -{{endif}} - -{{if 'cudaStreamGetFlags' in found_functions}} @cython.embedsignature(True) def cudaStreamGetFlags(hStream): @@ -23532,9 +22806,6 @@ def cudaStreamGetFlags(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, flags) -{{endif}} - -{{if 'cudaStreamGetId' in found_functions}} @cython.embedsignature(True) def cudaStreamGetId(hStream): @@ -23588,9 +22859,6 @@ def cudaStreamGetId(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, streamId) -{{endif}} - -{{if 'cudaStreamGetDevice' in found_functions}} @cython.embedsignature(True) def cudaStreamGetDevice(hStream): @@ -23628,9 +22896,6 @@ def cudaStreamGetDevice(hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaCtxResetPersistingL2Cache' in found_functions}} @cython.embedsignature(True) def cudaCtxResetPersistingL2Cache(): @@ -23651,9 +22916,6 @@ def cudaCtxResetPersistingL2Cache(): with nogil: err = cyruntime.cudaCtxResetPersistingL2Cache() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamCopyAttributes' in found_functions}} @cython.embedsignature(True) def cudaStreamCopyAttributes(dst, src): @@ -23697,9 +22959,6 @@ def cudaStreamCopyAttributes(dst, src): with nogil: err = cyruntime.cudaStreamCopyAttributes(cydst, cysrc) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): @@ -23714,14 +22973,12 @@ def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): attr : :py:obj:`~.cudaStreamAttrID` - Returns ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle` value_out : :py:obj:`~.cudaStreamAttrValue` - See Also -------- :py:obj:`~.cudaAccessPolicyWindow` @@ -23741,9 +22998,6 @@ def cudaStreamGetAttribute(hStream, attr not None : cudaStreamAttrID): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value_out) -{{endif}} - -{{if 'cudaStreamSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Optional[cudaStreamAttrValue]): @@ -23761,7 +23015,6 @@ def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Op value : :py:obj:`~.cudaStreamAttrValue` - Returns ------- cudaError_t @@ -23784,9 +23037,6 @@ def cudaStreamSetAttribute(hStream, attr not None : cudaStreamAttrID, value : Op with nogil: err = cyruntime.cudaStreamSetAttribute(cyhStream, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamDestroy' in found_functions}} @cython.embedsignature(True) def cudaStreamDestroy(stream): @@ -23824,9 +23074,6 @@ def cudaStreamDestroy(stream): with nogil: err = cyruntime.cudaStreamDestroy(cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamWaitEvent' in found_functions}} @cython.embedsignature(True) def cudaStreamWaitEvent(stream, event, unsigned int flags): @@ -23882,9 +23129,6 @@ def cudaStreamWaitEvent(stream, event, unsigned int flags): with nogil: err = cyruntime.cudaStreamWaitEvent(cystream, cyevent, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamAddCallback' in found_functions}} ctypedef struct cudaStreamCallbackData_st: cyruntime.cudaStreamCallback_t callback @@ -24001,9 +23245,6 @@ def cudaStreamAddCallback(stream, callback, userData, unsigned int flags): _helper_input_void_ptr_free(&cyuserDataHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamSynchronize' in found_functions}} @cython.embedsignature(True) def cudaStreamSynchronize(stream): @@ -24039,9 +23280,6 @@ def cudaStreamSynchronize(stream): with nogil: err = cyruntime.cudaStreamSynchronize(cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamQuery' in found_functions}} @cython.embedsignature(True) def cudaStreamQuery(stream): @@ -24079,9 +23317,6 @@ def cudaStreamQuery(stream): with nogil: err = cyruntime.cudaStreamQuery(cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamAttachMemAsync' in found_functions}} @cython.embedsignature(True) def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags): @@ -24191,9 +23426,6 @@ def cudaStreamAttachMemAsync(stream, devPtr, size_t length, unsigned int flags): err = cyruntime.cudaStreamAttachMemAsync(cystream, cydevPtr, length, flags) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamBeginCapture' in found_functions}} @cython.embedsignature(True) def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode): @@ -24248,9 +23480,6 @@ def cudaStreamBeginCapture(stream, mode not None : cudaStreamCaptureMode): with nogil: err = cyruntime.cudaStreamBeginCapture(cystream, cymode) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamBeginRecaptureToGraph' in found_functions}} @cython.embedsignature(True) def cudaStreamBeginRecaptureToGraph(stream, mode not None : cudaStreamCaptureMode, graph, callbackData : Optional[cudaGraphRecaptureCallbackData]): @@ -24324,9 +23553,6 @@ def cudaStreamBeginRecaptureToGraph(stream, mode not None : cudaStreamCaptureMod with nogil: err = cyruntime.cudaStreamBeginRecaptureToGraph(cystream, cymode, cygraph, cycallbackData_ptr) return (_cudaError_t(err),) -{{endif}} - -{{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): @@ -24429,9 +23655,6 @@ def cudaStreamBeginCaptureToGraph(stream, graph, dependencies : Optional[tuple[c if len(dependencyData) > 1 and cydependencyData is not NULL: free(cydependencyData) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaThreadExchangeStreamCaptureMode' in found_functions}} @cython.embedsignature(True) def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode): @@ -24503,9 +23726,6 @@ def cudaThreadExchangeStreamCaptureMode(mode not None : cudaStreamCaptureMode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaStreamCaptureMode(cymode)) -{{endif}} - -{{if 'cudaStreamEndCapture' in found_functions}} @cython.embedsignature(True) def cudaStreamEndCapture(stream): @@ -24551,9 +23771,6 @@ def cudaStreamEndCapture(stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraph) -{{endif}} - -{{if 'cudaStreamIsCapturing' in found_functions}} @cython.embedsignature(True) def cudaStreamIsCapturing(stream): @@ -24613,9 +23830,6 @@ def cudaStreamIsCapturing(stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaStreamCaptureStatus(pCaptureStatus)) -{{endif}} - -{{if 'cudaStreamGetCaptureInfo' in found_functions}} @cython.embedsignature(True) def cudaStreamGetCaptureInfo(stream): @@ -24717,9 +23931,6 @@ def cudaStreamGetCaptureInfo(stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None, None, None, None) return (_cudaError_t_SUCCESS, cudaStreamCaptureStatus(captureStatus_out), id_out, graph_out, pydependencies_out, pyedgeData_out, numDependencies_out) -{{endif}} - -{{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): @@ -24804,9 +24015,6 @@ def cudaStreamUpdateCaptureDependencies(stream, dependencies : Optional[tuple[cu if len(dependencyData) > 1 and cydependencyData is not NULL: free(cydependencyData) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventCreate' in found_functions}} @cython.embedsignature(True) def cudaEventCreate(): @@ -24832,9 +24040,6 @@ def cudaEventCreate(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event) -{{endif}} - -{{if 'cudaEventCreateWithFlags' in found_functions}} @cython.embedsignature(True) def cudaEventCreateWithFlags(unsigned int flags): @@ -24884,9 +24089,6 @@ def cudaEventCreateWithFlags(unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event) -{{endif}} - -{{if 'cudaEventRecord' in found_functions}} @cython.embedsignature(True) def cudaEventRecord(event, stream): @@ -24943,9 +24145,6 @@ def cudaEventRecord(event, stream): with nogil: err = cyruntime.cudaEventRecord(cyevent, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventRecordWithFlags' in found_functions}} @cython.embedsignature(True) def cudaEventRecordWithFlags(event, stream, unsigned int flags): @@ -25011,9 +24210,6 @@ def cudaEventRecordWithFlags(event, stream, unsigned int flags): with nogil: err = cyruntime.cudaEventRecordWithFlags(cyevent, cystream, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventQuery' in found_functions}} @cython.embedsignature(True) def cudaEventQuery(event): @@ -25056,9 +24252,6 @@ def cudaEventQuery(event): with nogil: err = cyruntime.cudaEventQuery(cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventSynchronize' in found_functions}} @cython.embedsignature(True) def cudaEventSynchronize(event): @@ -25100,9 +24293,6 @@ def cudaEventSynchronize(event): with nogil: err = cyruntime.cudaEventSynchronize(cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventDestroy' in found_functions}} @cython.embedsignature(True) def cudaEventDestroy(event): @@ -25141,9 +24331,6 @@ def cudaEventDestroy(event): with nogil: err = cyruntime.cudaEventDestroy(cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaEventElapsedTime' in found_functions}} @cython.embedsignature(True) def cudaEventElapsedTime(start, end): @@ -25214,9 +24401,6 @@ def cudaEventElapsedTime(start, end): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ms) -{{endif}} - -{{if 'cudaImportExternalMemory' in found_functions}} @cython.embedsignature(True) def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDesc]): @@ -25363,9 +24547,6 @@ def cudaImportExternalMemory(memHandleDesc : Optional[cudaExternalMemoryHandleDe if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, extMem_out) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedBuffer' in found_functions}} @cython.embedsignature(True) def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternalMemoryBufferDesc]): @@ -25431,9 +24612,6 @@ def cudaExternalMemoryGetMappedBuffer(extMem, bufferDesc : Optional[cudaExternal if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaExternalMemoryGetMappedMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cudaExternalMemoryMipmappedArrayDesc]): @@ -25503,9 +24681,6 @@ def cudaExternalMemoryGetMappedMipmappedArray(extMem, mipmapDesc : Optional[cuda if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, mipmap) -{{endif}} - -{{if 'cudaDestroyExternalMemory' in found_functions}} @cython.embedsignature(True) def cudaDestroyExternalMemory(extMem): @@ -25541,9 +24716,6 @@ def cudaDestroyExternalMemory(extMem): with nogil: err = cyruntime.cudaDestroyExternalMemory(cyextMem) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaImportExternalSemaphore' in found_functions}} @cython.embedsignature(True) def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHandleDesc]): @@ -25688,9 +24860,6 @@ def cudaImportExternalSemaphore(semHandleDesc : Optional[cudaExternalSemaphoreHa if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, extSem_out) -{{endif}} - -{{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): @@ -25844,9 +25013,6 @@ def cudaSignalExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalS if len(paramsArray) > 1 and cyparamsArray is not NULL: free(cyparamsArray) return (_cudaError_t(err),) -{{endif}} - -{{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): @@ -25972,9 +25138,6 @@ def cudaWaitExternalSemaphoresAsync(extSemArray : Optional[tuple[cudaExternalSem if len(paramsArray) > 1 and cyparamsArray is not NULL: free(cyparamsArray) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDestroyExternalSemaphore' in found_functions}} @cython.embedsignature(True) def cudaDestroyExternalSemaphore(extSem): @@ -26009,9 +25172,6 @@ def cudaDestroyExternalSemaphore(extSem): with nogil: err = cyruntime.cudaDestroyExternalSemaphore(cyextSem) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFuncSetCacheConfig' in found_functions}} @cython.embedsignature(True) def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache): @@ -26077,9 +25237,6 @@ def cudaFuncSetCacheConfig(func, cacheConfig not None : cudaFuncCache): err = cyruntime.cudaFuncSetCacheConfig(cyfunc, cycacheConfig) _helper_input_void_ptr_free(&cyfuncHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFuncGetAttributes' in found_functions}} @cython.embedsignature(True) def cudaFuncGetAttributes(func): @@ -26122,9 +25279,6 @@ def cudaFuncGetAttributes(func): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, attr) -{{endif}} - -{{if 'cudaFuncSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value): @@ -26209,9 +25363,6 @@ def cudaFuncSetAttribute(func, attr not None : cudaFuncAttribute, int value): err = cyruntime.cudaFuncSetAttribute(cyfunc, cyattr, value) _helper_input_void_ptr_free(&cyfuncHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFuncGetParamCount' in found_functions}} @cython.embedsignature(True) def cudaFuncGetParamCount(func): @@ -26241,9 +25392,6 @@ def cudaFuncGetParamCount(func): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, paramCount) -{{endif}} - -{{if 'cudaLaunchHostFunc' in found_functions}} ctypedef struct cudaStreamHostCallbackData_st: cyruntime.cudaHostFn_t callback @@ -26353,9 +25501,6 @@ def cudaLaunchHostFunc(stream, fn, userData): _helper_input_void_ptr_free(&cyuserDataHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaLaunchHostFunc_v2' in found_functions}} @cython.embedsignature(True) def cudaLaunchHostFunc_v2(stream, fn, userData, unsigned int syncMode): @@ -26443,9 +25588,6 @@ def cudaLaunchHostFunc_v2(stream, fn, userData, unsigned int syncMode): err = cyruntime.cudaLaunchHostFunc_v2(cystream, cyfn, cyuserData, syncMode) _helper_input_void_ptr_free(&cyuserDataHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFuncSetSharedMemConfig' in found_functions}} @cython.embedsignature(True) def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig): @@ -26512,9 +25654,6 @@ def cudaFuncSetSharedMemConfig(func, config not None : cudaSharedMemConfig): err = cyruntime.cudaFuncSetSharedMemConfig(cyfunc, cyconfig) _helper_input_void_ptr_free(&cyfuncHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessor' in found_functions}} @cython.embedsignature(True) def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dynamicSMemSize): @@ -26552,9 +25691,6 @@ def cudaOccupancyMaxActiveBlocksPerMultiprocessor(func, int blockSize, size_t dy if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, numBlocks) -{{endif}} - -{{if 'cudaOccupancyAvailableDynamicSMemPerBlock' in found_functions}} @cython.embedsignature(True) def cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize): @@ -26592,9 +25728,6 @@ def cudaOccupancyAvailableDynamicSMemPerBlock(func, int numBlocks, int blockSize if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, dynamicSmemSize) -{{endif}} - -{{if 'cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags' in found_functions}} @cython.embedsignature(True) def cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, size_t dynamicSMemSize, unsigned int flags): @@ -26649,9 +25782,6 @@ def cudaOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(func, int blockSize, if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, numBlocks) -{{endif}} - -{{if 'cudaMallocManaged' in found_functions}} @cython.embedsignature(True) def cudaMallocManaged(size_t size, unsigned int flags): @@ -26783,9 +25913,6 @@ def cudaMallocManaged(size_t size, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaMalloc' in found_functions}} @cython.embedsignature(True) def cudaMalloc(size_t size): @@ -26822,9 +25949,6 @@ def cudaMalloc(size_t size): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaMallocHost' in found_functions}} @cython.embedsignature(True) def cudaMallocHost(size_t size): @@ -26870,9 +25994,6 @@ def cudaMallocHost(size_t size): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ptr) -{{endif}} - -{{if 'cudaMallocPitch' in found_functions}} @cython.embedsignature(True) def cudaMallocPitch(size_t width, size_t height): @@ -26926,9 +26047,6 @@ def cudaMallocPitch(size_t width, size_t height): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, devPtr, pitch) -{{endif}} - -{{if 'cudaMallocArray' in found_functions}} @cython.embedsignature(True) def cudaMallocArray(desc : Optional[cudaChannelFormatDesc], size_t width, size_t height, unsigned int flags): @@ -27003,9 +26121,6 @@ def cudaMallocArray(desc : Optional[cudaChannelFormatDesc], size_t width, size_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, array) -{{endif}} - -{{if 'cudaFree' in found_functions}} @cython.embedsignature(True) def cudaFree(devPtr): @@ -27054,9 +26169,6 @@ def cudaFree(devPtr): err = cyruntime.cudaFree(cydevPtr) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFreeHost' in found_functions}} @cython.embedsignature(True) def cudaFreeHost(ptr): @@ -27086,9 +26198,6 @@ def cudaFreeHost(ptr): err = cyruntime.cudaFreeHost(cyptr) _helper_input_void_ptr_free(&cyptrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFreeArray' in found_functions}} @cython.embedsignature(True) def cudaFreeArray(array): @@ -27123,9 +26232,6 @@ def cudaFreeArray(array): with nogil: err = cyruntime.cudaFreeArray(cyarray) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaFreeMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaFreeMipmappedArray(mipmappedArray): @@ -27160,9 +26266,6 @@ def cudaFreeMipmappedArray(mipmappedArray): with nogil: err = cyruntime.cudaFreeMipmappedArray(cymipmappedArray) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaHostAlloc' in found_functions}} @cython.embedsignature(True) def cudaHostAlloc(size_t size, unsigned int flags): @@ -27245,9 +26348,6 @@ def cudaHostAlloc(size_t size, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pHost) -{{endif}} - -{{if 'cudaHostRegister' in found_functions}} @cython.embedsignature(True) def cudaHostRegister(ptr, size_t size, unsigned int flags): @@ -27363,9 +26463,6 @@ def cudaHostRegister(ptr, size_t size, unsigned int flags): err = cyruntime.cudaHostRegister(cyptr, size, flags) _helper_input_void_ptr_free(&cyptrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaHostUnregister' in found_functions}} @cython.embedsignature(True) def cudaHostUnregister(ptr): @@ -27397,9 +26494,6 @@ def cudaHostUnregister(ptr): err = cyruntime.cudaHostUnregister(cyptr) _helper_input_void_ptr_free(&cyptrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaHostGetDevicePointer' in found_functions}} @cython.embedsignature(True) def cudaHostGetDevicePointer(pHost, unsigned int flags): @@ -27460,9 +26554,6 @@ def cudaHostGetDevicePointer(pHost, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pDevice) -{{endif}} - -{{if 'cudaHostGetFlags' in found_functions}} @cython.embedsignature(True) def cudaHostGetFlags(pHost): @@ -27496,9 +26587,6 @@ def cudaHostGetFlags(pHost): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pFlags) -{{endif}} - -{{if 'cudaMalloc3D' in found_functions}} @cython.embedsignature(True) def cudaMalloc3D(extent not None : cudaExtent): @@ -27545,9 +26633,6 @@ def cudaMalloc3D(extent not None : cudaExtent): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pitchedDevPtr) -{{endif}} - -{{if 'cudaMalloc3DArray' in found_functions}} @cython.embedsignature(True) def cudaMalloc3DArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int flags): @@ -27668,9 +26753,6 @@ def cudaMalloc3DArray(desc : Optional[cudaChannelFormatDesc], extent not None : if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, array) -{{endif}} - -{{if 'cudaMallocMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaMallocMipmappedArray(desc : Optional[cudaChannelFormatDesc], extent not None : cudaExtent, unsigned int numLevels, unsigned int flags): @@ -27794,9 +26876,6 @@ def cudaMallocMipmappedArray(desc : Optional[cudaChannelFormatDesc], extent not if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, mipmappedArray) -{{endif}} - -{{if 'cudaGetMipmappedArrayLevel' in found_functions}} @cython.embedsignature(True) def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level): @@ -27843,9 +26922,6 @@ def cudaGetMipmappedArrayLevel(mipmappedArray, unsigned int level): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, levelArray) -{{endif}} - -{{if 'cudaMemcpy3D' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]): @@ -27927,9 +27003,6 @@ def cudaMemcpy3D(p : Optional[cudaMemcpy3DParms]): with nogil: err = cyruntime.cudaMemcpy3D(cyp_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DPeer' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]): @@ -27964,9 +27037,6 @@ def cudaMemcpy3DPeer(p : Optional[cudaMemcpy3DPeerParms]): with nogil: err = cyruntime.cudaMemcpy3DPeer(cyp_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream): @@ -28069,9 +27139,6 @@ def cudaMemcpy3DAsync(p : Optional[cudaMemcpy3DParms], stream): with nogil: err = cyruntime.cudaMemcpy3DAsync(cyp_ptr, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DPeerAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream): @@ -28109,9 +27176,6 @@ def cudaMemcpy3DPeerAsync(p : Optional[cudaMemcpy3DPeerParms], stream): with nogil: err = cyruntime.cudaMemcpy3DPeerAsync(cyp_ptr, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemGetInfo' in found_functions}} @cython.embedsignature(True) def cudaMemGetInfo(): @@ -28154,9 +27218,6 @@ def cudaMemGetInfo(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, free, total) -{{endif}} - -{{if 'cudaArrayGetInfo' in found_functions}} @cython.embedsignature(True) def cudaArrayGetInfo(array): @@ -28203,9 +27264,6 @@ def cudaArrayGetInfo(array): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, desc, extent, flags) -{{endif}} - -{{if 'cudaArrayGetPlane' in found_functions}} @cython.embedsignature(True) def cudaArrayGetPlane(hArray, unsigned int planeIdx): @@ -28259,9 +27317,6 @@ def cudaArrayGetPlane(hArray, unsigned int planeIdx): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pPlaneArray) -{{endif}} - -{{if 'cudaArrayGetMemoryRequirements' in found_functions}} @cython.embedsignature(True) def cudaArrayGetMemoryRequirements(array, int device): @@ -28309,9 +27364,6 @@ def cudaArrayGetMemoryRequirements(array, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memoryRequirements) -{{endif}} - -{{if 'cudaMipmappedArrayGetMemoryRequirements' in found_functions}} @cython.embedsignature(True) def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device): @@ -28359,9 +27411,6 @@ def cudaMipmappedArrayGetMemoryRequirements(mipmap, int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memoryRequirements) -{{endif}} - -{{if 'cudaArrayGetSparseProperties' in found_functions}} @cython.embedsignature(True) def cudaArrayGetSparseProperties(array): @@ -28415,9 +27464,6 @@ def cudaArrayGetSparseProperties(array): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, sparseProperties) -{{endif}} - -{{if 'cudaMipmappedArrayGetSparseProperties' in found_functions}} @cython.embedsignature(True) def cudaMipmappedArrayGetSparseProperties(mipmap): @@ -28471,9 +27517,6 @@ def cudaMipmappedArrayGetSparseProperties(mipmap): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, sparseProperties) -{{endif}} - -{{if 'cudaMemcpy' in found_functions}} @cython.embedsignature(True) def cudaMemcpy(dst, src, size_t count, kind not None : cudaMemcpyKind): @@ -28523,9 +27566,6 @@ def cudaMemcpy(dst, src, size_t count, kind not None : cudaMemcpyKind): _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyPeer' in found_functions}} @cython.embedsignature(True) def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count): @@ -28573,9 +27613,6 @@ def cudaMemcpyPeer(dst, int dstDevice, src, int srcDevice, size_t count): _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2D' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -28635,9 +27672,6 @@ def cudaMemcpy2D(dst, size_t dpitch, src, size_t spitch, size_t width, size_t he _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -28703,9 +27737,6 @@ def cudaMemcpy2DToArray(dst, size_t wOffset, size_t hOffset, src, size_t spitch, err = cyruntime.cudaMemcpy2DToArray(cydst, wOffset, hOffset, cysrc, spitch, width, height, cykind) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DFromArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -28771,9 +27802,6 @@ def cudaMemcpy2DFromArray(dst, size_t dpitch, src, size_t wOffset, size_t hOffse err = cyruntime.cudaMemcpy2DFromArray(cydst, dpitch, cysrc, wOffset, hOffset, width, height, cykind) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DArrayToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, kind not None : cudaMemcpyKind): @@ -28844,9 +27872,6 @@ def cudaMemcpy2DArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, siz with nogil: err = cyruntime.cudaMemcpy2DArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, width, height, cykind) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyAsync(dst, src, size_t count, kind not None : cudaMemcpyKind, stream): @@ -28916,9 +27941,6 @@ def cudaMemcpyAsync(dst, src, size_t count, kind not None : cudaMemcpyKind, stre _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyPeerAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, stream): @@ -28974,9 +27996,6 @@ def cudaMemcpyPeerAsync(dst, int dstDevice, src, int srcDevice, size_t count, st _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{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): @@ -29099,7 +28118,7 @@ def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optiona dsts = [] if dsts is None else dsts pylist = [_HelperInputVoidPtr(pydsts) for pydsts in dsts] cdef _InputVoidPtrPtrHelper voidStarHelperdsts = _InputVoidPtrPtrHelper(pylist) - cdef const void** cydsts_ptr = voidStarHelperdsts.cptr + cdef void** cydsts_ptr = voidStarHelperdsts.cptr pylist = [_HelperInputVoidPtr(pysrcs) for pysrcs in srcs] cdef _InputVoidPtrPtrHelper voidStarHelpersrcs = _InputVoidPtrPtrHelper(pylist) cdef const void** cysrcs_ptr = voidStarHelpersrcs.cptr @@ -29124,9 +28143,6 @@ def cudaMemcpyBatchAsync(dsts : Optional[tuple[Any] | list[Any]], srcs : Optiona if len(attrs) > 1 and cyattrs is not NULL: free(cyattrs) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DBatchAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBatchOp] | list[cudaMemcpy3DBatchOp]], unsigned long long flags, stream): @@ -29254,13 +28270,10 @@ def cudaMemcpy3DBatchAsync(size_t numOps, opList : Optional[tuple[cudaMemcpy3DBa if len(opList) > 1 and cyopList is not NULL: free(cyopList) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyWithAttributesAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyWithAttributesAsync(dst, src, size_t size, attr : Optional[cudaMemcpyAttributes], stream): - """ + """ Performs asynchronous memory copy operation with the specified attributes. @@ -29314,13 +28327,10 @@ def cudaMemcpyWithAttributesAsync(dst, src, size_t size, attr : Optional[cudaMem _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy3DWithAttributesAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy3DWithAttributesAsync(op : Optional[cudaMemcpy3DBatchOp], unsigned long long flags, stream): - """ + """ Performs 3D asynchronous memory copy with the specified attributes. @@ -29362,9 +28372,6 @@ def cudaMemcpy3DWithAttributesAsync(op : Optional[cudaMemcpy3DBatchOp], unsigned with nogil: err = cyruntime.cudaMemcpy3DWithAttributesAsync(cyop_ptr, flags, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream): @@ -29445,9 +28452,6 @@ def cudaMemcpy2DAsync(dst, size_t dpitch, src, size_t spitch, size_t width, size _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DToArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t spitch, size_t width, size_t height, kind not None : cudaMemcpyKind, stream): @@ -29534,9 +28538,6 @@ def cudaMemcpy2DToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t sp err = cyruntime.cudaMemcpy2DToArrayAsync(cydst, wOffset, hOffset, cysrc, spitch, width, height, cykind, cystream) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpy2DFromArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t hOffset, size_t width, size_t height, kind not None : cudaMemcpyKind, stream): @@ -29622,9 +28623,6 @@ def cudaMemcpy2DFromArrayAsync(dst, size_t dpitch, src, size_t wOffset, size_t h err = cyruntime.cudaMemcpy2DFromArrayAsync(cydst, dpitch, cysrc, wOffset, hOffset, width, height, cykind, cystream) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset' in found_functions}} @cython.embedsignature(True) def cudaMemset(devPtr, int value, size_t count): @@ -29660,9 +28658,6 @@ def cudaMemset(devPtr, int value, size_t count): err = cyruntime.cudaMemset(cydevPtr, value, count) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset2D' in found_functions}} @cython.embedsignature(True) def cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height): @@ -29705,9 +28700,6 @@ def cudaMemset2D(devPtr, size_t pitch, int value, size_t width, size_t height): err = cyruntime.cudaMemset2D(cydevPtr, pitch, value, width, height) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset3D' in found_functions}} @cython.embedsignature(True) def cudaMemset3D(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent): @@ -29759,9 +28751,6 @@ def cudaMemset3D(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not with nogil: err = cyruntime.cudaMemset3D(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0]) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemsetAsync' in found_functions}} @cython.embedsignature(True) def cudaMemsetAsync(devPtr, int value, size_t count, stream): @@ -29813,9 +28802,6 @@ def cudaMemsetAsync(devPtr, int value, size_t count, stream): err = cyruntime.cudaMemsetAsync(cydevPtr, value, count, cystream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset2DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t height, stream): @@ -29874,9 +28860,6 @@ def cudaMemset2DAsync(devPtr, size_t pitch, int value, size_t width, size_t heig err = cyruntime.cudaMemset2DAsync(cydevPtr, pitch, value, width, height, cystream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemset3DAsync' in found_functions}} @cython.embedsignature(True) def cudaMemset3DAsync(pitchedDevPtr not None : cudaPitchedPtr, int value, extent not None : cudaExtent, stream): @@ -29944,9 +28927,6 @@ def cudaMemset3DAsync(pitchedDevPtr not None : cudaPitchedPtr, int value, extent with nogil: err = cyruntime.cudaMemset3DAsync(pitchedDevPtr._pvt_ptr[0], value, extent._pvt_ptr[0], cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPrefetchAsync' in found_functions}} @cython.embedsignature(True) def cudaMemPrefetchAsync(devPtr, size_t count, location not None : cudaMemLocation, unsigned int flags, stream): @@ -30063,9 +29043,6 @@ def cudaMemPrefetchAsync(devPtr, size_t count, location not None : cudaMemLocati err = cyruntime.cudaMemPrefetchAsync(cydevPtr, count, location._pvt_ptr[0], flags, cystream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{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): @@ -30172,9 +29149,6 @@ def cudaMemPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL: free(cyprefetchLocs) return (_cudaError_t(err),) -{{endif}} - -{{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): @@ -30246,9 +29220,6 @@ def cudaMemDiscardBatchAsync(dptrs : Optional[tuple[Any] | list[Any]], sizes : t with nogil: err = cyruntime.cudaMemDiscardBatchAsync(cydptrs_ptr, cysizes.data(), count, flags, cystream) return (_cudaError_t(err),) -{{endif}} - -{{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): @@ -30363,9 +29334,6 @@ def cudaMemDiscardAndPrefetchBatchAsync(dptrs : Optional[tuple[Any] | list[Any]] if len(prefetchLocs) > 1 and cyprefetchLocs is not NULL: free(cyprefetchLocs) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemAdvise' in found_functions}} @cython.embedsignature(True) def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, location not None : cudaMemLocation): @@ -30561,9 +29529,6 @@ def cudaMemAdvise(devPtr, size_t count, advice not None : cudaMemoryAdvise, loca err = cyruntime.cudaMemAdvise(cydevPtr, count, cyadvice, location._pvt_ptr[0]) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemRangeGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeAttribute, devPtr, size_t count): @@ -30712,9 +29677,6 @@ def cudaMemRangeGetAttribute(size_t dataSize, attribute not None : cudaMemRangeA if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cydata.pyObj()) -{{endif}} - -{{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): @@ -30794,9 +29756,6 @@ def cudaMemRangeGetAttributes(dataSizes : tuple[int] | list[int], attributes : O if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, [obj.pyObj() for obj in pylist]) -{{endif}} - -{{if 'cudaMemcpyToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind): @@ -30854,9 +29813,6 @@ def cudaMemcpyToArray(dst, size_t wOffset, size_t hOffset, src, size_t count, ki err = cyruntime.cudaMemcpyToArray(cydst, wOffset, hOffset, cysrc, count, cykind) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyFromArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind): @@ -30914,9 +29870,6 @@ def cudaMemcpyFromArray(dst, src, size_t wOffset, size_t hOffset, size_t count, err = cyruntime.cudaMemcpyFromArray(cydst, cysrc, wOffset, hOffset, count, cykind) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyArrayToArray' in found_functions}} @cython.embedsignature(True) def cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_t wOffsetSrc, size_t hOffsetSrc, size_t count, kind not None : cudaMemcpyKind): @@ -30984,9 +29937,6 @@ def cudaMemcpyArrayToArray(dst, size_t wOffsetDst, size_t hOffsetDst, src, size_ with nogil: err = cyruntime.cudaMemcpyArrayToArray(cydst, wOffsetDst, hOffsetDst, cysrc, wOffsetSrc, hOffsetSrc, count, cykind) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyToArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t count, kind not None : cudaMemcpyKind, stream): @@ -31061,9 +30011,6 @@ def cudaMemcpyToArrayAsync(dst, size_t wOffset, size_t hOffset, src, size_t coun err = cyruntime.cudaMemcpyToArrayAsync(cydst, wOffset, hOffset, cysrc, count, cykind, cystream) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemcpyFromArrayAsync' in found_functions}} @cython.embedsignature(True) def cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t count, kind not None : cudaMemcpyKind, stream): @@ -31138,9 +30085,6 @@ def cudaMemcpyFromArrayAsync(dst, src, size_t wOffset, size_t hOffset, size_t co err = cyruntime.cudaMemcpyFromArrayAsync(cydst, cysrc, wOffset, hOffset, count, cykind, cystream) _helper_input_void_ptr_free(&cydstHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMallocAsync' in found_functions}} @cython.embedsignature(True) def cudaMallocAsync(size_t size, hStream): @@ -31193,9 +30137,6 @@ def cudaMallocAsync(size_t size, hStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, devPtr) -{{endif}} - -{{if 'cudaFreeAsync' in found_functions}} @cython.embedsignature(True) def cudaFreeAsync(devPtr, hStream): @@ -31240,9 +30181,6 @@ def cudaFreeAsync(devPtr, hStream): err = cyruntime.cudaFreeAsync(cydevPtr, cyhStream) _helper_input_void_ptr_free(&cydevPtrHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolTrimTo' in found_functions}} @cython.embedsignature(True) def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep): @@ -31290,9 +30228,6 @@ def cudaMemPoolTrimTo(memPool, size_t minBytesToKeep): with nogil: err = cyruntime.cudaMemPoolTrimTo(cymemPool, minBytesToKeep) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value): @@ -31366,9 +30301,6 @@ def cudaMemPoolSetAttribute(memPool, attr not None : cudaMemPoolAttr, value): with nogil: err = cyruntime.cudaMemPoolSetAttribute(cymemPool, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr): @@ -31481,9 +30413,6 @@ def cudaMemPoolGetAttribute(memPool, attr not None : cudaMemPoolAttr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cudaMemPoolSetAccess' in found_functions}} @cython.embedsignature(True) def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | list[cudaMemAccessDesc]], size_t count): @@ -31534,9 +30463,6 @@ def cudaMemPoolSetAccess(memPool, descList : Optional[tuple[cudaMemAccessDesc] | if len(descList) > 1 and cydescList is not NULL: free(cydescList) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemPoolGetAccess' in found_functions}} @cython.embedsignature(True) def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]): @@ -31578,9 +30504,6 @@ def cudaMemPoolGetAccess(memPool, location : Optional[cudaMemLocation]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaMemAccessFlags(flags)) -{{endif}} - -{{if 'cudaMemPoolCreate' in found_functions}} @cython.embedsignature(True) def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]): @@ -31678,9 +30601,6 @@ def cudaMemPoolCreate(poolProps : Optional[cudaMemPoolProps]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaMemPoolDestroy' in found_functions}} @cython.embedsignature(True) def cudaMemPoolDestroy(memPool): @@ -31724,9 +30644,6 @@ def cudaMemPoolDestroy(memPool): with nogil: err = cyruntime.cudaMemPoolDestroy(cymemPool) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMemGetDefaultMemPool' in found_functions}} @cython.embedsignature(True) def cudaMemGetDefaultMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType): @@ -31769,9 +30686,6 @@ def cudaMemGetDefaultMemPool(location : Optional[cudaMemLocation], typename not if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaMemGetMemPool' in found_functions}} @cython.embedsignature(True) def cudaMemGetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType): @@ -31823,9 +30737,6 @@ def cudaMemGetMemPool(location : Optional[cudaMemLocation], typename not None : if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaMemSetMemPool' in found_functions}} @cython.embedsignature(True) def cudaMemSetMemPool(location : Optional[cudaMemLocation], typename not None : cudaMemAllocationType, memPool): @@ -31890,9 +30801,6 @@ def cudaMemSetMemPool(location : Optional[cudaMemLocation], typename not None : with nogil: err = cyruntime.cudaMemSetMemPool(cylocation_ptr, cytypename, cymemPool) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaMallocFromPoolAsync' in found_functions}} @cython.embedsignature(True) def cudaMallocFromPoolAsync(size_t size, memPool, stream): @@ -31949,9 +30857,6 @@ def cudaMallocFromPoolAsync(size_t size, memPool, stream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ptr) -{{endif}} - -{{if 'cudaMemPoolExportToShareableHandle' in found_functions}} @cython.embedsignature(True) def cudaMemPoolExportToShareableHandle(memPool, handleType not None : cudaMemAllocationHandleType, unsigned int flags): @@ -32006,9 +30911,6 @@ def cudaMemPoolExportToShareableHandle(memPool, handleType not None : cudaMemAll if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cyshareableHandle.pyObj()) -{{endif}} - -{{if 'cudaMemPoolImportFromShareableHandle' in found_functions}} @cython.embedsignature(True) def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : cudaMemAllocationHandleType, unsigned int flags): @@ -32051,9 +30953,6 @@ def cudaMemPoolImportFromShareableHandle(shareableHandle, handleType not None : if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, memPool) -{{endif}} - -{{if 'cudaMemPoolExportPointer' in found_functions}} @cython.embedsignature(True) def cudaMemPoolExportPointer(ptr): @@ -32089,9 +30988,6 @@ def cudaMemPoolExportPointer(ptr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, exportData) -{{endif}} - -{{if 'cudaMemPoolImportPointer' in found_functions}} @cython.embedsignature(True) def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExportData]): @@ -32142,9 +31038,6 @@ def cudaMemPoolImportPointer(memPool, exportData : Optional[cudaMemPoolPtrExport if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ptr) -{{endif}} - -{{if 'cudaPointerGetAttributes' in found_functions}} @cython.embedsignature(True) def cudaPointerGetAttributes(ptr): @@ -32215,9 +31108,6 @@ def cudaPointerGetAttributes(ptr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, attributes) -{{endif}} - -{{if 'cudaDeviceCanAccessPeer' in found_functions}} @cython.embedsignature(True) def cudaDeviceCanAccessPeer(int device, int peerDevice): @@ -32254,9 +31144,6 @@ def cudaDeviceCanAccessPeer(int device, int peerDevice): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, canAccessPeer) -{{endif}} - -{{if 'cudaDeviceEnablePeerAccess' in found_functions}} @cython.embedsignature(True) def cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags): @@ -32305,9 +31192,6 @@ def cudaDeviceEnablePeerAccess(int peerDevice, unsigned int flags): with nogil: err = cyruntime.cudaDeviceEnablePeerAccess(peerDevice, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceDisablePeerAccess' in found_functions}} @cython.embedsignature(True) def cudaDeviceDisablePeerAccess(int peerDevice): @@ -32334,9 +31218,6 @@ def cudaDeviceDisablePeerAccess(int peerDevice): with nogil: err = cyruntime.cudaDeviceDisablePeerAccess(peerDevice) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsUnregisterResource' in found_functions}} @cython.embedsignature(True) def cudaGraphicsUnregisterResource(resource): @@ -32373,9 +31254,6 @@ def cudaGraphicsUnregisterResource(resource): with nogil: err = cyruntime.cudaGraphicsUnregisterResource(cyresource) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsResourceSetMapFlags' in found_functions}} @cython.embedsignature(True) def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags): @@ -32429,9 +31307,6 @@ def cudaGraphicsResourceSetMapFlags(resource, unsigned int flags): with nogil: err = cyruntime.cudaGraphicsResourceSetMapFlags(cyresource, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsMapResources' in found_functions}} @cython.embedsignature(True) def cudaGraphicsMapResources(int count, resources, stream): @@ -32492,9 +31367,6 @@ def cudaGraphicsMapResources(int count, resources, stream): with nogil: err = cyruntime.cudaGraphicsMapResources(count, cyresources, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsUnmapResources' in found_functions}} @cython.embedsignature(True) def cudaGraphicsUnmapResources(int count, resources, stream): @@ -32553,9 +31425,6 @@ def cudaGraphicsUnmapResources(int count, resources, stream): with nogil: err = cyruntime.cudaGraphicsUnmapResources(count, cyresources, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedPointer' in found_functions}} @cython.embedsignature(True) def cudaGraphicsResourceGetMappedPointer(resource): @@ -32599,9 +31468,6 @@ def cudaGraphicsResourceGetMappedPointer(resource): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, devPtr, size) -{{endif}} - -{{if 'cudaGraphicsSubResourceGetMappedArray' in found_functions}} @cython.embedsignature(True) def cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, unsigned int mipLevel): @@ -32656,9 +31522,6 @@ def cudaGraphicsSubResourceGetMappedArray(resource, unsigned int arrayIndex, uns if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, array) -{{endif}} - -{{if 'cudaGraphicsResourceGetMappedMipmappedArray' in found_functions}} @cython.embedsignature(True) def cudaGraphicsResourceGetMappedMipmappedArray(resource): @@ -32702,9 +31565,6 @@ def cudaGraphicsResourceGetMappedMipmappedArray(resource): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, mipmappedArray) -{{endif}} - -{{if 'cudaGetChannelDesc' in found_functions}} @cython.embedsignature(True) def cudaGetChannelDesc(array): @@ -32742,9 +31602,6 @@ def cudaGetChannelDesc(array): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, desc) -{{endif}} - -{{if 'cudaCreateChannelDesc' in found_functions}} @cython.embedsignature(True) def cudaCreateChannelDesc(int x, int y, int z, int w, f not None : cudaChannelFormatKind): @@ -32791,9 +31648,6 @@ def cudaCreateChannelDesc(int x, int y, int z, int w, f not None : cudaChannelFo cdef cudaChannelFormatDesc wrapper = cudaChannelFormatDesc() wrapper._pvt_ptr[0] = err return (cudaError_t.cudaSuccess, wrapper) -{{endif}} - -{{if 'cudaCreateTextureObject' in found_functions}} @cython.embedsignature(True) def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Optional[cudaTextureDesc], pResViewDesc : Optional[cudaResourceViewDesc]): @@ -33036,9 +31890,6 @@ def cudaCreateTextureObject(pResDesc : Optional[cudaResourceDesc], pTexDesc : Op if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pTexObject) -{{endif}} - -{{if 'cudaDestroyTextureObject' in found_functions}} @cython.embedsignature(True) def cudaDestroyTextureObject(texObject): @@ -33071,9 +31922,6 @@ def cudaDestroyTextureObject(texObject): with nogil: err = cyruntime.cudaDestroyTextureObject(cytexObject) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetTextureObjectResourceDesc' in found_functions}} @cython.embedsignature(True) def cudaGetTextureObjectResourceDesc(texObject): @@ -33112,9 +31960,6 @@ def cudaGetTextureObjectResourceDesc(texObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pResDesc) -{{endif}} - -{{if 'cudaGetTextureObjectTextureDesc' in found_functions}} @cython.embedsignature(True) def cudaGetTextureObjectTextureDesc(texObject): @@ -33153,9 +31998,6 @@ def cudaGetTextureObjectTextureDesc(texObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pTexDesc) -{{endif}} - -{{if 'cudaGetTextureObjectResourceViewDesc' in found_functions}} @cython.embedsignature(True) def cudaGetTextureObjectResourceViewDesc(texObject): @@ -33195,9 +32037,6 @@ def cudaGetTextureObjectResourceViewDesc(texObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pResViewDesc) -{{endif}} - -{{if 'cudaCreateSurfaceObject' in found_functions}} @cython.embedsignature(True) def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]): @@ -33237,9 +32076,6 @@ def cudaCreateSurfaceObject(pResDesc : Optional[cudaResourceDesc]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pSurfObject) -{{endif}} - -{{if 'cudaDestroySurfaceObject' in found_functions}} @cython.embedsignature(True) def cudaDestroySurfaceObject(surfObject): @@ -33272,9 +32108,6 @@ def cudaDestroySurfaceObject(surfObject): with nogil: err = cyruntime.cudaDestroySurfaceObject(cysurfObject) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGetSurfaceObjectResourceDesc' in found_functions}} @cython.embedsignature(True) def cudaGetSurfaceObjectResourceDesc(surfObject): @@ -33310,9 +32143,6 @@ def cudaGetSurfaceObjectResourceDesc(surfObject): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pResDesc) -{{endif}} - -{{if 'cudaDriverGetVersion' in found_functions}} @cython.embedsignature(True) def cudaDriverGetVersion(): @@ -33343,9 +32173,6 @@ def cudaDriverGetVersion(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, driverVersion) -{{endif}} - -{{if 'cudaRuntimeGetVersion' in found_functions}} @cython.embedsignature(True) def cudaRuntimeGetVersion(): @@ -33379,9 +32206,6 @@ def cudaRuntimeGetVersion(): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, runtimeVersion) -{{endif}} - -{{if 'cudaLogsRegisterCallback' in found_functions}} @cython.embedsignature(True) def cudaLogsRegisterCallback(callbackFunc, userData): @@ -33420,9 +32244,6 @@ def cudaLogsRegisterCallback(callbackFunc, userData): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, callback_out) -{{endif}} - -{{if 'cudaLogsUnregisterCallback' in found_functions}} @cython.embedsignature(True) def cudaLogsUnregisterCallback(callback): @@ -33449,9 +32270,6 @@ def cudaLogsUnregisterCallback(callback): with nogil: err = cyruntime.cudaLogsUnregisterCallback(cycallback) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaLogsCurrent' in found_functions}} @cython.embedsignature(True) def cudaLogsCurrent(unsigned int flags): @@ -33475,9 +32293,6 @@ def cudaLogsCurrent(unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, iterator_out) -{{endif}} - -{{if 'cudaLogsDumpToFile' in found_functions}} @cython.embedsignature(True) def cudaLogsDumpToFile(iterator : Optional[cudaLogIterator], char* pathToFile, unsigned int flags): @@ -33519,9 +32334,6 @@ def cudaLogsDumpToFile(iterator : Optional[cudaLogIterator], char* pathToFile, u if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, iterator) -{{endif}} - -{{if 'cudaLogsDumpToMemory' in found_functions}} @cython.embedsignature(True) def cudaLogsDumpToMemory(iterator : Optional[cudaLogIterator], char* buffer, size_t size, unsigned int flags): @@ -33577,9 +32389,6 @@ def cudaLogsDumpToMemory(iterator : Optional[cudaLogIterator], char* buffer, siz if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, iterator, size) -{{endif}} - -{{if 'cudaGraphCreate' in found_functions}} @cython.embedsignature(True) def cudaGraphCreate(unsigned int flags): @@ -33609,9 +32418,6 @@ def cudaGraphCreate(unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraph) -{{endif}} - -{{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]): @@ -33731,9 +32537,6 @@ def cudaGraphAddKernelNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphKernelNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeGetParams(node): @@ -33780,9 +32583,6 @@ def cudaGraphKernelNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphKernelNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodeParams]): @@ -33818,9 +32618,6 @@ def cudaGraphKernelNodeSetParams(node, pNodeParams : Optional[cudaKernelNodePara with nogil: err = cyruntime.cudaGraphKernelNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphKernelNodeCopyAttributes' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeCopyAttributes(hDst, hSrc): @@ -33865,9 +32662,6 @@ def cudaGraphKernelNodeCopyAttributes(hDst, hSrc): with nogil: err = cyruntime.cudaGraphKernelNodeCopyAttributes(cyhDst, cyhSrc) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphKernelNodeGetAttribute' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID): @@ -33882,14 +32676,12 @@ def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID) attr : :py:obj:`~.cudaKernelNodeAttrID` - Returns ------- cudaError_t :py:obj:`~.cudaSuccess`, :py:obj:`~.cudaErrorInvalidValue`, :py:obj:`~.cudaErrorInvalidResourceHandle` value_out : :py:obj:`~.cudaKernelNodeAttrValue` - See Also -------- :py:obj:`~.cudaAccessPolicyWindow` @@ -33909,9 +32701,6 @@ def cudaGraphKernelNodeGetAttribute(hNode, attr not None : cudaKernelNodeAttrID) if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, value_out) -{{endif}} - -{{if 'cudaGraphKernelNodeSetAttribute' in found_functions}} @cython.embedsignature(True) def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : Optional[cudaKernelNodeAttrValue]): @@ -33928,7 +32717,6 @@ def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, value : :py:obj:`~.cudaKernelNodeAttrValue` - Returns ------- cudaError_t @@ -33951,9 +32739,6 @@ def cudaGraphKernelNodeSetAttribute(hNode, attr not None : cudaKernelNodeAttrID, with nogil: err = cyruntime.cudaGraphKernelNodeSetAttribute(cyhNode, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{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]): @@ -34027,9 +32812,6 @@ def cudaGraphAddMemcpyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{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): @@ -34124,9 +32906,6 @@ def cudaGraphAddMemcpyNode1D(graph, pDependencies : Optional[tuple[cudaGraphNode if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemcpyNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemcpyNodeGetParams(node): @@ -34164,9 +32943,6 @@ def cudaGraphMemcpyNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms]): @@ -34202,9 +32978,6 @@ def cudaGraphMemcpyNodeSetParams(node, pNodeParams : Optional[cudaMemcpy3DParms] with nogil: err = cyruntime.cudaGraphMemcpyNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphMemcpyNodeSetParams1D' in found_functions}} @cython.embedsignature(True) def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : cudaMemcpyKind): @@ -34266,9 +33039,6 @@ def cudaGraphMemcpyNodeSetParams1D(node, dst, src, size_t count, kind not None : _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{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]): @@ -34336,9 +33106,6 @@ def cudaGraphAddMemsetNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemsetNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemsetNodeGetParams(node): @@ -34376,9 +33143,6 @@ def cudaGraphMemsetNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphMemsetNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]): @@ -34414,9 +33178,6 @@ def cudaGraphMemsetNodeSetParams(node, pNodeParams : Optional[cudaMemsetParams]) with nogil: err = cyruntime.cudaGraphMemsetNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{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]): @@ -34485,9 +33246,6 @@ def cudaGraphAddHostNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphHostNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphHostNodeGetParams(node): @@ -34525,9 +33283,6 @@ def cudaGraphHostNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNodeParams) -{{endif}} - -{{if 'cudaGraphHostNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]): @@ -34563,9 +33318,6 @@ def cudaGraphHostNodeSetParams(node, pNodeParams : Optional[cudaHostNodeParams]) with nogil: err = cyruntime.cudaGraphHostNodeSetParams(cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddChildGraphNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, childGraph): @@ -34644,9 +33396,6 @@ def cudaGraphAddChildGraphNode(graph, pDependencies : Optional[tuple[cudaGraphNo if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphChildGraphNodeGetGraph' in found_functions}} @cython.embedsignature(True) def cudaGraphChildGraphNodeGetGraph(node): @@ -34689,9 +33438,6 @@ def cudaGraphChildGraphNodeGetGraph(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraph) -{{endif}} - -{{if 'cudaGraphAddEmptyNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies): @@ -34760,9 +33506,6 @@ def cudaGraphAddEmptyNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphAddEventRecordNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event): @@ -34840,9 +33583,6 @@ def cudaGraphAddEventRecordNode(graph, pDependencies : Optional[tuple[cudaGraphN if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphEventRecordNodeGetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventRecordNodeGetEvent(node): @@ -34880,9 +33620,6 @@ def cudaGraphEventRecordNodeGetEvent(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event_out) -{{endif}} - -{{if 'cudaGraphEventRecordNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventRecordNodeSetEvent(node, event): @@ -34925,9 +33662,6 @@ def cudaGraphEventRecordNodeSetEvent(node, event): with nogil: err = cyruntime.cudaGraphEventRecordNodeSetEvent(cynode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphAddEventWaitNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, event): @@ -35008,9 +33742,6 @@ def cudaGraphAddEventWaitNode(graph, pDependencies : Optional[tuple[cudaGraphNod if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphEventWaitNodeGetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventWaitNodeGetEvent(node): @@ -35048,9 +33779,6 @@ def cudaGraphEventWaitNodeGetEvent(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, event_out) -{{endif}} - -{{if 'cudaGraphEventWaitNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphEventWaitNodeSetEvent(node, event): @@ -35093,9 +33821,6 @@ def cudaGraphEventWaitNodeSetEvent(node, event): with nogil: err = cyruntime.cudaGraphEventWaitNodeSetEvent(cynode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{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]): @@ -35165,9 +33890,6 @@ def cudaGraphAddExternalSemaphoresSignalNode(graph, pDependencies : Optional[tup if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode): @@ -35211,9 +33933,6 @@ def cudaGraphExternalSemaphoresSignalNodeGetParams(hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresSignalNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): @@ -35250,9 +33969,6 @@ def cudaGraphExternalSemaphoresSignalNodeSetParams(hNode, nodeParams : Optional[ with nogil: err = cyruntime.cudaGraphExternalSemaphoresSignalNodeSetParams(cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{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]): @@ -35322,9 +34038,6 @@ def cudaGraphAddExternalSemaphoresWaitNode(graph, pDependencies : Optional[tuple if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode): @@ -35368,9 +34081,6 @@ def cudaGraphExternalSemaphoresWaitNodeGetParams(hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, params_out) -{{endif}} - -{{if 'cudaGraphExternalSemaphoresWaitNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): @@ -35407,9 +34117,6 @@ def cudaGraphExternalSemaphoresWaitNodeSetParams(hNode, nodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExternalSemaphoresWaitNodeSetParams(cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{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]): @@ -35518,9 +34225,6 @@ def cudaGraphAddMemAllocNode(graph, pDependencies : Optional[tuple[cudaGraphNode if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemAllocNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemAllocNodeGetParams(node): @@ -35561,9 +34265,6 @@ def cudaGraphMemAllocNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, params_out) -{{endif}} - -{{if 'cudaGraphAddMemFreeNode' in found_functions}} @cython.embedsignature(True) def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | list[cudaGraphNode_t]], size_t numDependencies, dptr): @@ -35652,9 +34353,6 @@ def cudaGraphAddMemFreeNode(graph, pDependencies : Optional[tuple[cudaGraphNode_ if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphMemFreeNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphMemFreeNodeGetParams(node): @@ -35693,9 +34391,6 @@ def cudaGraphMemFreeNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, dptr_out) -{{endif}} - -{{if 'cudaDeviceGraphMemTrim' in found_functions}} @cython.embedsignature(True) def cudaDeviceGraphMemTrim(int device): @@ -35722,9 +34417,6 @@ def cudaDeviceGraphMemTrim(int device): with nogil: err = cyruntime.cudaDeviceGraphMemTrim(device) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetGraphMemAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType): @@ -35773,9 +34465,6 @@ def cudaDeviceGetGraphMemAttribute(int device, attr not None : cudaGraphMemAttri if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cyvalue.pyObj()) -{{endif}} - -{{if 'cudaDeviceSetGraphMemAttribute' in found_functions}} @cython.embedsignature(True) def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttributeType, value): @@ -35815,9 +34504,6 @@ def cudaDeviceSetGraphMemAttribute(int device, attr not None : cudaGraphMemAttri with nogil: err = cyruntime.cudaDeviceSetGraphMemAttribute(device, cyattr, cyvalue_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphClone' in found_functions}} @cython.embedsignature(True) def cudaGraphClone(originalGraph): @@ -35865,9 +34551,6 @@ def cudaGraphClone(originalGraph): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphClone) -{{endif}} - -{{if 'cudaGraphNodeFindInClone' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeFindInClone(originalNode, clonedGraph): @@ -35922,9 +34605,6 @@ def cudaGraphNodeFindInClone(originalNode, clonedGraph): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pNode) -{{endif}} - -{{if 'cudaGraphNodeGetType' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetType(node): @@ -35962,9 +34642,6 @@ def cudaGraphNodeGetType(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, cudaGraphNodeType(pType)) -{{endif}} - -{{if 'cudaGraphNodeGetContainingGraph' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetContainingGraph(hNode): @@ -36003,9 +34680,6 @@ def cudaGraphNodeGetContainingGraph(hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, phGraph) -{{endif}} - -{{if 'cudaGraphNodeGetLocalId' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetLocalId(hNode): @@ -36045,9 +34719,6 @@ def cudaGraphNodeGetLocalId(hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, nodeId) -{{endif}} - -{{if 'cudaGraphNodeGetToolsId' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetToolsId(hNode): @@ -36083,9 +34754,6 @@ def cudaGraphNodeGetToolsId(hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, toolsNodeId) -{{endif}} - -{{if 'cudaGraphGetId' in found_functions}} @cython.embedsignature(True) def cudaGraphGetId(hGraph): @@ -36124,9 +34792,6 @@ def cudaGraphGetId(hGraph): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, graphID) -{{endif}} - -{{if 'cudaGraphExecGetId' in found_functions}} @cython.embedsignature(True) def cudaGraphExecGetId(hGraphExec): @@ -36165,9 +34830,6 @@ def cudaGraphExecGetId(hGraphExec): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, graphID) -{{endif}} - -{{if 'cudaGraphGetNodes' in found_functions}} @cython.embedsignature(True) def cudaGraphGetNodes(graph, size_t numNodes = 0): @@ -36226,9 +34888,6 @@ def cudaGraphGetNodes(graph, size_t numNodes = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pynodes, numNodes) -{{endif}} - -{{if 'cudaGraphGetRootNodes' in found_functions}} @cython.embedsignature(True) def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): @@ -36287,9 +34946,6 @@ def cudaGraphGetRootNodes(graph, size_t pNumRootNodes = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pypRootNodes, pNumRootNodes) -{{endif}} - -{{if 'cudaGraphGetEdges' in found_functions}} @cython.embedsignature(True) def cudaGraphGetEdges(graph, size_t numEdges = 0): @@ -36383,9 +35039,6 @@ def cudaGraphGetEdges(graph, size_t numEdges = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None, None) return (_cudaError_t_SUCCESS, pyfrom_, pyto, pyedgeData, numEdges) -{{endif}} - -{{if 'cudaGraphNodeGetDependencies' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): @@ -36464,9 +35117,6 @@ def cudaGraphNodeGetDependencies(node, size_t pNumDependencies = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, pypDependencies, pyedgeData, pNumDependencies) -{{endif}} - -{{if 'cudaGraphNodeGetDependentNodes' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): @@ -36545,9 +35195,6 @@ def cudaGraphNodeGetDependentNodes(node, size_t pNumDependentNodes = 0): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, pypDependentNodes, pyedgeData, pNumDependentNodes) -{{endif}} - -{{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): @@ -36638,9 +35285,6 @@ def cudaGraphAddDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | li if len(edgeData) > 1 and cyedgeData is not NULL: free(cyedgeData) return (_cudaError_t(err),) -{{endif}} - -{{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): @@ -36734,9 +35378,6 @@ def cudaGraphRemoveDependencies(graph, from_ : Optional[tuple[cudaGraphNode_t] | if len(edgeData) > 1 and cyedgeData is not NULL: free(cyedgeData) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphDestroyNode' in found_functions}} @cython.embedsignature(True) def cudaGraphDestroyNode(node): @@ -36773,9 +35414,6 @@ def cudaGraphDestroyNode(node): with nogil: err = cyruntime.cudaGraphDestroyNode(cynode) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphInstantiate' in found_functions}} @cython.embedsignature(True) def cudaGraphInstantiate(graph, unsigned long long flags): @@ -36877,9 +35515,6 @@ def cudaGraphInstantiate(graph, unsigned long long flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphExec) -{{endif}} - -{{if 'cudaGraphInstantiateWithFlags' in found_functions}} @cython.embedsignature(True) def cudaGraphInstantiateWithFlags(graph, unsigned long long flags): @@ -36983,9 +35618,6 @@ def cudaGraphInstantiateWithFlags(graph, unsigned long long flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphExec) -{{endif}} - -{{if 'cudaGraphInstantiateWithParams' in found_functions}} @cython.embedsignature(True) def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraphInstantiateParams]): @@ -37130,9 +35762,6 @@ def cudaGraphInstantiateWithParams(graph, instantiateParams : Optional[cudaGraph if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphExec) -{{endif}} - -{{if 'cudaGraphExecGetFlags' in found_functions}} @cython.embedsignature(True) def cudaGraphExecGetFlags(graphExec): @@ -37173,9 +35802,6 @@ def cudaGraphExecGetFlags(graphExec): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, flags) -{{endif}} - -{{if 'cudaGraphExecKernelNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaKernelNodeParams]): @@ -37255,9 +35881,6 @@ def cudaGraphExecKernelNodeSetParams(hGraphExec, node, pNodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExecKernelNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemcpy3DParms]): @@ -37320,9 +35943,6 @@ def cudaGraphExecMemcpyNodeSetParams(hGraphExec, node, pNodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExecMemcpyNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecMemcpyNodeSetParams1D' in found_functions}} @cython.embedsignature(True) def cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, kind not None : cudaMemcpyKind): @@ -37395,9 +36015,6 @@ def cudaGraphExecMemcpyNodeSetParams1D(hGraphExec, node, dst, src, size_t count, _helper_input_void_ptr_free(&cydstHelper) _helper_input_void_ptr_free(&cysrcHelper) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecMemsetNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaMemsetParams]): @@ -37465,9 +36082,6 @@ def cudaGraphExecMemsetNodeSetParams(hGraphExec, node, pNodeParams : Optional[cu with nogil: err = cyruntime.cudaGraphExecMemsetNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecHostNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams : Optional[cudaHostNodeParams]): @@ -37520,9 +36134,6 @@ def cudaGraphExecHostNodeSetParams(hGraphExec, node, pNodeParams : Optional[cuda with nogil: err = cyruntime.cudaGraphExecHostNodeSetParams(cyhGraphExec, cynode, cypNodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecChildGraphNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph): @@ -37590,9 +36201,6 @@ def cudaGraphExecChildGraphNodeSetParams(hGraphExec, node, childGraph): with nogil: err = cyruntime.cudaGraphExecChildGraphNodeSetParams(cyhGraphExec, cynode, cychildGraph) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecEventRecordNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event): @@ -37653,9 +36261,6 @@ def cudaGraphExecEventRecordNodeSetEvent(hGraphExec, hNode, event): with nogil: err = cyruntime.cudaGraphExecEventRecordNodeSetEvent(cyhGraphExec, cyhNode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecEventWaitNodeSetEvent' in found_functions}} @cython.embedsignature(True) def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event): @@ -37716,9 +36321,6 @@ def cudaGraphExecEventWaitNodeSetEvent(hGraphExec, hNode, event): with nogil: err = cyruntime.cudaGraphExecEventWaitNodeSetEvent(cyhGraphExec, cyhNode, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresSignalNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreSignalNodeParams]): @@ -37776,9 +36378,6 @@ def cudaGraphExecExternalSemaphoresSignalNodeSetParams(hGraphExec, hNode, nodePa with nogil: err = cyruntime.cudaGraphExecExternalSemaphoresSignalNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecExternalSemaphoresWaitNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodeParams : Optional[cudaExternalSemaphoreWaitNodeParams]): @@ -37836,9 +36435,6 @@ def cudaGraphExecExternalSemaphoresWaitNodeSetParams(hGraphExec, hNode, nodePara with nogil: err = cyruntime.cudaGraphExecExternalSemaphoresWaitNodeSetParams(cyhGraphExec, cyhNode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphNodeSetEnabled' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled): @@ -37899,9 +36495,6 @@ def cudaGraphNodeSetEnabled(hGraphExec, hNode, unsigned int isEnabled): with nogil: err = cyruntime.cudaGraphNodeSetEnabled(cyhGraphExec, cyhNode, isEnabled) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphNodeGetEnabled' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetEnabled(hGraphExec, hNode): @@ -37958,9 +36551,6 @@ def cudaGraphNodeGetEnabled(hGraphExec, hNode): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, isEnabled) -{{endif}} - -{{if 'cudaGraphExecUpdate' in found_functions}} @cython.embedsignature(True) def cudaGraphExecUpdate(hGraphExec, hGraph): @@ -38134,9 +36724,6 @@ def cudaGraphExecUpdate(hGraphExec, hGraph): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resultInfo) -{{endif}} - -{{if 'cudaGraphUpload' in found_functions}} @cython.embedsignature(True) def cudaGraphUpload(graphExec, stream): @@ -38183,9 +36770,6 @@ def cudaGraphUpload(graphExec, stream): with nogil: err = cyruntime.cudaGraphUpload(cygraphExec, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphLaunch' in found_functions}} @cython.embedsignature(True) def cudaGraphLaunch(graphExec, stream): @@ -38237,9 +36821,6 @@ def cudaGraphLaunch(graphExec, stream): with nogil: err = cyruntime.cudaGraphLaunch(cygraphExec, cystream) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphExecDestroy' in found_functions}} @cython.embedsignature(True) def cudaGraphExecDestroy(graphExec): @@ -38272,9 +36853,6 @@ def cudaGraphExecDestroy(graphExec): with nogil: err = cyruntime.cudaGraphExecDestroy(cygraphExec) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphDestroy' in found_functions}} @cython.embedsignature(True) def cudaGraphDestroy(graph): @@ -38307,9 +36885,6 @@ def cudaGraphDestroy(graph): with nogil: err = cyruntime.cudaGraphDestroy(cygraph) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphDebugDotPrint' in found_functions}} @cython.embedsignature(True) def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags): @@ -38347,9 +36922,6 @@ def cudaGraphDebugDotPrint(graph, char* path, unsigned int flags): with nogil: err = cyruntime.cudaGraphDebugDotPrint(cygraph, path, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaUserObjectCreate' in found_functions}} @cython.embedsignature(True) def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned int flags): @@ -38410,9 +36982,6 @@ def cudaUserObjectCreate(ptr, destroy, unsigned int initialRefcount, unsigned in if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, object_out) -{{endif}} - -{{if 'cudaUserObjectRetain' in found_functions}} @cython.embedsignature(True) def cudaUserObjectRetain(object, unsigned int count): @@ -38452,9 +37021,6 @@ def cudaUserObjectRetain(object, unsigned int count): with nogil: err = cyruntime.cudaUserObjectRetain(cyobject, count) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaUserObjectRelease' in found_functions}} @cython.embedsignature(True) def cudaUserObjectRelease(object, unsigned int count): @@ -38497,9 +37063,6 @@ def cudaUserObjectRelease(object, unsigned int count): with nogil: err = cyruntime.cudaUserObjectRelease(cyobject, count) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphRetainUserObject' in found_functions}} @cython.embedsignature(True) def cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int flags): @@ -38553,9 +37116,6 @@ def cudaGraphRetainUserObject(graph, object, unsigned int count, unsigned int fl with nogil: err = cyruntime.cudaGraphRetainUserObject(cygraph, cyobject, count, flags) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphReleaseUserObject' in found_functions}} @cython.embedsignature(True) def cudaGraphReleaseUserObject(graph, object, unsigned int count): @@ -38604,9 +37164,6 @@ def cudaGraphReleaseUserObject(graph, object, unsigned int count): with nogil: err = cyruntime.cudaGraphReleaseUserObject(cygraph, cyobject, count) return (_cudaError_t(err),) -{{endif}} - -{{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]): @@ -38700,9 +37257,6 @@ def cudaGraphAddNode(graph, pDependencies : Optional[tuple[cudaGraphNode_t] | li if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pGraphNode) -{{endif}} - -{{if 'cudaGraphNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]): @@ -38744,9 +37298,6 @@ def cudaGraphNodeSetParams(node, nodeParams : Optional[cudaGraphNodeParams]): with nogil: err = cyruntime.cudaGraphNodeSetParams(cynode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphNodeGetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphNodeGetParams(node): @@ -38797,9 +37348,6 @@ def cudaGraphNodeGetParams(node): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, nodeParams) -{{endif}} - -{{if 'cudaGraphExecNodeSetParams' in found_functions}} @cython.embedsignature(True) def cudaGraphExecNodeSetParams(graphExec, node, nodeParams : Optional[cudaGraphNodeParams]): @@ -38857,9 +37405,6 @@ def cudaGraphExecNodeSetParams(graphExec, node, nodeParams : Optional[cudaGraphN with nogil: err = cyruntime.cudaGraphExecNodeSetParams(cygraphExec, cynode, cynodeParams_ptr) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate' in found_functions}} @cython.embedsignature(True) def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, unsigned int flags): @@ -38909,9 +37454,6 @@ def cudaGraphConditionalHandleCreate(graph, unsigned int defaultLaunchValue, uns if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pHandle_out) -{{endif}} - -{{if 'cudaGraphConditionalHandleCreate_v2' in found_functions}} @cython.embedsignature(True) def cudaGraphConditionalHandleCreate_v2(graph, ctx, unsigned int defaultLaunchValue, unsigned int flags): @@ -38972,9 +37514,6 @@ def cudaGraphConditionalHandleCreate_v2(graph, ctx, unsigned int defaultLaunchVa if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pHandle_out) -{{endif}} - -{{if 'cudaGetDriverEntryPoint' in found_functions}} @cython.embedsignature(True) def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags): @@ -39076,9 +37615,6 @@ def cudaGetDriverEntryPoint(char* symbol, unsigned long long flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) -{{endif}} - -{{if 'cudaGetDriverEntryPointByVersion' in found_functions}} @cython.embedsignature(True) def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, unsigned long long flags): @@ -39184,9 +37720,6 @@ def cudaGetDriverEntryPointByVersion(char* symbol, unsigned int cudaVersion, uns if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, funcPtr, cudaDriverEntryPointQueryResult(driverStatus)) -{{endif}} - -{{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): @@ -39284,9 +37817,6 @@ def cudaLibraryLoadData(code, jitOptions : Optional[tuple[cudaJitOption] | list[ if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, library) -{{endif}} - -{{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): @@ -39382,9 +37912,6 @@ def cudaLibraryLoadFromFile(char* fileName, jitOptions : Optional[tuple[cudaJitO if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, library) -{{endif}} - -{{if 'cudaLibraryUnload' in found_functions}} @cython.embedsignature(True) def cudaLibraryUnload(library): @@ -39417,9 +37944,6 @@ def cudaLibraryUnload(library): with nogil: err = cyruntime.cudaLibraryUnload(cylibrary) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaLibraryGetKernel' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetKernel(library, char* name): @@ -39461,9 +37985,6 @@ def cudaLibraryGetKernel(library, char* name): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pKernel) -{{endif}} - -{{if 'cudaLibraryGetGlobal' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetGlobal(library, char* name): @@ -39513,9 +38034,6 @@ def cudaLibraryGetGlobal(library, char* name): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, dptr, numbytes) -{{endif}} - -{{if 'cudaLibraryGetManaged' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetManaged(library, char* name): @@ -39567,9 +38085,6 @@ def cudaLibraryGetManaged(library, char* name): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, dptr, numbytes) -{{endif}} - -{{if 'cudaLibraryGetUnifiedFunction' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetUnifiedFunction(library, char* symbol): @@ -39613,9 +38128,6 @@ def cudaLibraryGetUnifiedFunction(library, char* symbol): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, fptr) -{{endif}} - -{{if 'cudaLibraryGetKernelCount' in found_functions}} @cython.embedsignature(True) def cudaLibraryGetKernelCount(lib): @@ -39653,9 +38165,6 @@ def cudaLibraryGetKernelCount(lib): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, count) -{{endif}} - -{{if 'cudaLibraryEnumerateKernels' in found_functions}} @cython.embedsignature(True) def cudaLibraryEnumerateKernels(unsigned int numKernels, lib): @@ -39706,9 +38215,6 @@ def cudaLibraryEnumerateKernels(unsigned int numKernels, lib): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pykernels) -{{endif}} - -{{if 'cudaKernelSetAttributeForDevice' in found_functions}} @cython.embedsignature(True) def cudaKernelSetAttributeForDevice(kernel, attr not None : cudaFuncAttribute, int value, int device): @@ -39812,9 +38318,6 @@ def cudaKernelSetAttributeForDevice(kernel, attr not None : cudaFuncAttribute, i with nogil: err = cyruntime.cudaKernelSetAttributeForDevice(cykernel, cyattr, value, device) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetDevResource' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetDevResource(int device, typename not None : cudaDevResourceType): @@ -39851,9 +38354,6 @@ def cudaDeviceGetDevResource(int device, typename not None : cudaDevResourceType if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if 'cudaDevSmResourceSplitByCount' in found_functions}} @cython.embedsignature(True) def cudaDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, unsigned int minCount): @@ -39972,9 +38472,6 @@ def cudaDevSmResourceSplitByCount(unsigned int nbGroups, input_ : Optional[cudaD if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None, None) return (_cudaError_t_SUCCESS, pyresult, cynbGroups, remaining) -{{endif}} - -{{if 'cudaDevSmResourceSplit' in found_functions}} @cython.embedsignature(True) def cudaDevSmResourceSplit(unsigned int nbGroups, input_ : Optional[cudaDevResource], unsigned int flags, groupParams : Optional[tuple[cudaDevSmResourceGroupParams] | list[cudaDevSmResourceGroupParams]]): @@ -40145,9 +38642,6 @@ def cudaDevSmResourceSplit(unsigned int nbGroups, input_ : Optional[cudaDevResou if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pyresult, remainder) -{{endif}} - -{{if 'cudaDevResourceGenerateDesc' in found_functions}} @cython.embedsignature(True) def cudaDevResourceGenerateDesc(resources : Optional[tuple[cudaDevResource] | list[cudaDevResource]], unsigned int nbResources): @@ -40212,9 +38706,6 @@ def cudaDevResourceGenerateDesc(resources : Optional[tuple[cudaDevResource] | li if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, phDesc) -{{endif}} - -{{if 'cudaGreenCtxCreate' in found_functions}} @cython.embedsignature(True) def cudaGreenCtxCreate(desc, int device, unsigned int flags): @@ -40275,9 +38766,6 @@ def cudaGreenCtxCreate(desc, int device, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, phCtx) -{{endif}} - -{{if 'cudaExecutionCtxDestroy' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxDestroy(ctx): @@ -40334,9 +38822,6 @@ def cudaExecutionCtxDestroy(ctx): with nogil: err = cyruntime.cudaExecutionCtxDestroy(cyctx) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaExecutionCtxGetDevResource' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxGetDevResource(ctx, typename not None : cudaDevResourceType): @@ -40380,9 +38865,6 @@ def cudaExecutionCtxGetDevResource(ctx, typename not None : cudaDevResourceType) if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if 'cudaExecutionCtxGetDevice' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxGetDevice(ctx): @@ -40422,9 +38904,6 @@ def cudaExecutionCtxGetDevice(ctx): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if 'cudaExecutionCtxGetId' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxGetId(ctx): @@ -40465,9 +38944,6 @@ def cudaExecutionCtxGetId(ctx): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ctxId) -{{endif}} - -{{if 'cudaExecutionCtxStreamCreate' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxStreamCreate(ctx, unsigned int flags, int priority): @@ -40540,9 +39016,6 @@ def cudaExecutionCtxStreamCreate(ctx, unsigned int flags, int priority): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, phStream) -{{endif}} - -{{if 'cudaExecutionCtxSynchronize' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxSynchronize(ctx): @@ -40582,9 +39055,6 @@ def cudaExecutionCtxSynchronize(ctx): with nogil: err = cyruntime.cudaExecutionCtxSynchronize(cyctx) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaStreamGetDevResource' in found_functions}} @cython.embedsignature(True) def cudaStreamGetDevResource(hStream, typename not None : cudaDevResourceType): @@ -40630,9 +39100,6 @@ def cudaStreamGetDevResource(hStream, typename not None : cudaDevResourceType): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if 'cudaExecutionCtxRecordEvent' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxRecordEvent(ctx, event): @@ -40689,9 +39156,6 @@ def cudaExecutionCtxRecordEvent(ctx, event): with nogil: err = cyruntime.cudaExecutionCtxRecordEvent(cyctx, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaExecutionCtxWaitEvent' in found_functions}} @cython.embedsignature(True) def cudaExecutionCtxWaitEvent(ctx, event): @@ -40747,9 +39211,6 @@ def cudaExecutionCtxWaitEvent(ctx, event): with nogil: err = cyruntime.cudaExecutionCtxWaitEvent(cyctx, cyevent) return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaDeviceGetExecutionCtx' in found_functions}} @cython.embedsignature(True) def cudaDeviceGetExecutionCtx(int device): @@ -40787,9 +39248,6 @@ def cudaDeviceGetExecutionCtx(int device): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ctx) -{{endif}} - -{{if 'cudaGetExportTable' in found_functions}} @cython.embedsignature(True) def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): @@ -40801,9 +39259,6 @@ def cudaGetExportTable(pExportTableId : Optional[cudaUUID_t]): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, ppExportTable) -{{endif}} - -{{if 'cudaGetKernel' in found_functions}} @cython.embedsignature(True) def cudaGetKernel(entryFuncAddr): @@ -40846,9 +39301,6 @@ def cudaGetKernel(entryFuncAddr): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, kernelPtr) -{{endif}} - -{{if 'make_cudaPitchedPtr' in found_functions}} @cython.embedsignature(True) def make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz): @@ -40887,9 +39339,6 @@ def make_cudaPitchedPtr(d, size_t p, size_t xsz, size_t ysz): cdef cudaPitchedPtr wrapper = cudaPitchedPtr() wrapper._pvt_ptr[0] = err return wrapper -{{endif}} - -{{if 'make_cudaPos' in found_functions}} @cython.embedsignature(True) def make_cudaPos(size_t x, size_t y, size_t z): @@ -40923,9 +39372,6 @@ def make_cudaPos(size_t x, size_t y, size_t z): cdef cudaPos wrapper = cudaPos() wrapper._pvt_ptr[0] = err return wrapper -{{endif}} - -{{if 'make_cudaExtent' in found_functions}} @cython.embedsignature(True) def make_cudaExtent(size_t w, size_t h, size_t d): @@ -40960,19 +39406,17 @@ def make_cudaExtent(size_t w, size_t h, size_t d): cdef cudaExtent wrapper = cudaExtent() wrapper._pvt_ptr[0] = err return wrapper -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsEGLRegisterImage(image, unsigned int flags): """ Registers an EGL image. - Registers the EGLImageKHR specified by `image` for access by CUDA. A - handle to the registered object is returned as `pCudaResource`. - Additional Mapping/Unmapping is not required for the registered - resource and :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be - directly called on the `pCudaResource`. + Registers the :py:obj:`~.EGLImageKHR` specified by `image` for access + by CUDA. A handle to the registered object is returned as + `pCudaResource`. Additional Mapping/Unmapping is not required for the + registered resource and + :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be directly + called on the `pCudaResource`. The application will be responsible for synchronizing access to shared objects. The application must ensure that any pending operation which @@ -41000,14 +39444,15 @@ def cudaGraphicsEGLRegisterImage(image, unsigned int flags): contents of the resource, so none of the data previously stored in the resource will be preserved. - The EGLImageKHR is an object which can be used to create EGLImage - target resource. It is defined as a void pointer. typedef void* - EGLImageKHR + The :py:obj:`~.EGLImageKHR` is an object which can be used to create + EGLImage target resource. It is defined as a void pointer. typedef + void* :py:obj:`~.EGLImageKHR` Parameters ---------- image : :py:obj:`~.EGLImageKHR` - An EGLImageKHR image which can be used to create target resource. + An :py:obj:`~.EGLImageKHR` image which can be used to create target + resource. flags : unsigned int Map flags @@ -41036,23 +39481,21 @@ def cudaGraphicsEGLRegisterImage(image, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, pCudaResource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerConnect(eglStream): """ Connect CUDA to EGLStream as a consumer. - Connect CUDA as a consumer to EGLStreamKHR specified by `eglStream`. + Connect CUDA as a consumer to :py:obj:`~.EGLStreamKHR` specified by + `eglStream`. - The EGLStreamKHR is an EGL object that transfers a sequence of image - frames from one API to another. + The :py:obj:`~.EGLStreamKHR` is an EGL object that transfers a sequence + of image frames from one API to another. Parameters ---------- eglStream : :py:obj:`~.EGLStreamKHR` - EGLStreamKHR handle + :py:obj:`~.EGLStreamKHR` handle Returns ------- @@ -41079,16 +39522,14 @@ def cudaEGLStreamConsumerConnect(eglStream): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags): """ Connect CUDA to EGLStream as a consumer with given flags. - Connect CUDA as a consumer to EGLStreamKHR specified by `stream` with - specified `flags` defined by :py:obj:`~.cudaEglResourceLocationFlags`. + Connect CUDA as a consumer to :py:obj:`~.EGLStreamKHR` specified by + `stream` with specified `flags` defined by + :py:obj:`~.cudaEglResourceLocationFlags`. The flags specify whether the consumer wants to access frames from system memory or video memory. Default is @@ -41097,7 +39538,7 @@ def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags): Parameters ---------- eglStream : :py:obj:`~.EGLStreamKHR` - EGLStreamKHR handle + :py:obj:`~.EGLStreamKHR` handle flags : unsigned int Flags denote intended location - system or video. @@ -41126,15 +39567,12 @@ def cudaEGLStreamConsumerConnectWithFlags(eglStream, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerDisconnect(conn): """ Disconnect CUDA as a consumer to EGLStream . - Disconnect CUDA as a consumer to EGLStreamKHR. + Disconnect CUDA as a consumer to :py:obj:`~.EGLStreamKHR`. Parameters ---------- @@ -41163,15 +39601,12 @@ def cudaEGLStreamConsumerDisconnect(conn): with nogil: err = cyruntime.cudaEGLStreamConsumerDisconnect(cyconn) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int timeout): """ Acquire an image frame from the EGLStream with CUDA as a consumer. - Acquire an image frame from EGLStreamKHR. + Acquire an image frame from :py:obj:`~.EGLStreamKHR`. :py:obj:`~.cudaGraphicsResourceGetMappedEglFrame` can be called on `pCudaResource` to get :py:obj:`~.cudaEglFrame`. @@ -41229,16 +39664,13 @@ def cudaEGLStreamConsumerAcquireFrame(conn, pCudaResource, pStream, unsigned int with nogil: err = cyruntime.cudaEGLStreamConsumerAcquireFrame(cyconn, cypCudaResource, cypStream, timeout) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): """ Releases the last frame acquired from the EGLStream. Release the acquired image frame specified by `pCudaResource` to - EGLStreamKHR. + :py:obj:`~.EGLStreamKHR`. Parameters ---------- @@ -41289,23 +39721,21 @@ def cudaEGLStreamConsumerReleaseFrame(conn, pCudaResource, pStream): with nogil: err = cyruntime.cudaEGLStreamConsumerReleaseFrame(cyconn, cypCudaResource, cypStream) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerConnect(eglStream, width, height): """ Connect CUDA to EGLStream as a producer. - Connect CUDA as a producer to EGLStreamKHR specified by `stream`. + Connect CUDA as a producer to :py:obj:`~.EGLStreamKHR` specified by + `stream`. - The EGLStreamKHR is an EGL object that transfers a sequence of image - frames from one API to another. + The :py:obj:`~.EGLStreamKHR` is an EGL object that transfers a sequence + of image frames from one API to another. Parameters ---------- eglStream : :py:obj:`~.EGLStreamKHR` - EGLStreamKHR handle + :py:obj:`~.EGLStreamKHR` handle width : :py:obj:`~.EGLint` width of the image to be submitted to the stream height : :py:obj:`~.EGLint` @@ -41352,15 +39782,12 @@ def cudaEGLStreamProducerConnect(eglStream, width, height): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, conn) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerDisconnect(conn): """ Disconnect CUDA as a producer to EGLStream . - Disconnect CUDA as a producer to EGLStreamKHR. + Disconnect CUDA as a producer to :py:obj:`~.EGLStreamKHR`. Parameters ---------- @@ -41389,9 +39816,6 @@ def cudaEGLStreamProducerDisconnect(conn): with nogil: err = cyruntime.cudaEGLStreamProducerDisconnect(cyconn) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerPresentFrame(conn, eglframe not None : cudaEglFrame, pStream): @@ -41449,9 +39873,6 @@ def cudaEGLStreamProducerPresentFrame(conn, eglframe not None : cudaEglFrame, pS with nogil: err = cyruntime.cudaEGLStreamProducerPresentFrame(cyconn, eglframe._pvt_ptr[0], cypStream) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEGLStreamProducerReturnFrame(conn, eglframe : Optional[cudaEglFrame], pStream): @@ -41504,9 +39925,6 @@ def cudaEGLStreamProducerReturnFrame(conn, eglframe : Optional[cudaEglFrame], pS with nogil: err = cyruntime.cudaEGLStreamProducerReturnFrame(cyconn, cyeglframe_ptr, cypStream) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned int mipLevel): @@ -41558,16 +39976,13 @@ def cudaGraphicsResourceGetMappedEglFrame(resource, unsigned int index, unsigned if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, eglFrame) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): """ Creates an event from EGLSync object. - Creates an event *phEvent from an EGLSyncKHR eglSync with the flages - specified via `flags`. Valid flags include: + Creates an event *phEvent from an :py:obj:`~.EGLSyncKHR` eglSync with + the flages specified via `flags`. Valid flags include: - :py:obj:`~.cudaEventDefault`: Default event creation flag. @@ -41579,8 +39994,8 @@ def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): :py:obj:`~.cudaEventRecord` and TimingData are not supported for events created from EGLSync. - The EGLSyncKHR is an opaque handle to an EGL sync object. typedef void* - EGLSyncKHR + The :py:obj:`~.EGLSyncKHR` is an opaque handle to an EGL sync object. + typedef void* :py:obj:`~.EGLSyncKHR` Parameters ---------- @@ -41614,9 +40029,6 @@ def cudaEventCreateFromEGLSync(eglSync, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, phEvent) -{{endif}} - -{{if 'cudaProfilerStart' in found_functions}} @cython.embedsignature(True) def cudaProfilerStart(): @@ -41642,9 +40054,6 @@ def cudaProfilerStart(): with nogil: err = cyruntime.cudaProfilerStart() return (_cudaError_t(err),) -{{endif}} - -{{if 'cudaProfilerStop' in found_functions}} @cython.embedsignature(True) def cudaProfilerStop(): @@ -41670,9 +40079,6 @@ def cudaProfilerStop(): with nogil: err = cyruntime.cudaProfilerStop() return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLDeviceList): @@ -41738,9 +40144,6 @@ def cudaGLGetDevices(unsigned int cudaDeviceCount, deviceList not None : cudaGLD if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None, None) return (_cudaError_t_SUCCESS, pCudaDeviceCount, pypCudaDevices) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsGLRegisterImage(image, target, unsigned int flags): @@ -41838,9 +40241,6 @@ def cudaGraphicsGLRegisterImage(image, target, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags): @@ -41895,22 +40295,20 @@ def cudaGraphicsGLRegisterBuffer(buffer, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress): - """ Gets the CUDA device associated with a VdpDevice. + """ Gets the CUDA device associated with a :py:obj:`~.VdpDevice`. - Returns the CUDA device associated with a VdpDevice, if applicable. + Returns the CUDA device associated with a :py:obj:`~.VdpDevice`, if + applicable. Parameters ---------- vdpDevice : :py:obj:`~.VdpDevice` - A VdpDevice handle + A :py:obj:`~.VdpDevice` handle vdpGetProcAddress : :py:obj:`~.VdpGetProcAddress` - VDPAU's VdpGetProcAddress function pointer + VDPAU's :py:obj:`~.VdpGetProcAddress` function pointer Returns ------- @@ -41948,17 +40346,14 @@ def cudaVDPAUGetDevice(vdpDevice, vdpGetProcAddress): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, device) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): """ Sets a CUDA device to use VDPAU interoperability. - Records `vdpDevice` as the VdpDevice for VDPAU interoperability with - the CUDA device `device` and sets `device` as the current device for - the calling host thread. + Records `vdpDevice` as the :py:obj:`~.VdpDevice` for VDPAU + interoperability with the CUDA device `device` and sets `device` as the + current device for the calling host thread. This function will immediately initialize the primary context on `device` if needed. @@ -41973,9 +40368,9 @@ def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): device : int Device to use for VDPAU interoperability vdpDevice : :py:obj:`~.VdpDevice` - The VdpDevice to interoperate with + The :py:obj:`~.VdpDevice` to interoperate with vdpGetProcAddress : :py:obj:`~.VdpGetProcAddress` - VDPAU's VdpGetProcAddress function pointer + VDPAU's :py:obj:`~.VdpGetProcAddress` function pointer Returns ------- @@ -42007,17 +40402,15 @@ def cudaVDPAUSetVDPAUDevice(int device, vdpDevice, vdpGetProcAddress): with nogil: err = cyruntime.cudaVDPAUSetVDPAUDevice(device, cyvdpDevice, cyvdpGetProcAddress) return (_cudaError_t(err),) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): - """ Register a VdpVideoSurface object. + """ Register a :py:obj:`~.VdpVideoSurface` object. - Registers the VdpVideoSurface specified by `vdpSurface` for access by - CUDA. A handle to the registered object is returned as `resource`. The - surface's intended usage is specified using `flags`, as follows: + Registers the :py:obj:`~.VdpVideoSurface` specified by `vdpSurface` for + access by CUDA. A handle to the registered object is returned as + `resource`. The surface's intended usage is specified using `flags`, as + follows: - :py:obj:`~.cudaGraphicsMapFlagsNone`: Specifies no hints about how this resource will be used. It is therefore assumed that this @@ -42064,17 +40457,15 @@ def cudaGraphicsVDPAURegisterVideoSurface(vdpSurface, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - -{{if True}} @cython.embedsignature(True) def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): - """ Register a VdpOutputSurface object. + """ Register a :py:obj:`~.VdpOutputSurface` object. - Registers the VdpOutputSurface specified by `vdpSurface` for access by - CUDA. A handle to the registered object is returned as `resource`. The - surface's intended usage is specified using `flags`, as follows: + Registers the :py:obj:`~.VdpOutputSurface` specified by `vdpSurface` + for access by CUDA. A handle to the registered object is returned as + `resource`. The surface's intended usage is specified using `flags`, as + follows: - :py:obj:`~.cudaGraphicsMapFlagsNone`: Specifies no hints about how this resource will be used. It is therefore assumed that this @@ -42121,8 +40512,6 @@ def cudaGraphicsVDPAURegisterOutputSurface(vdpSurface, unsigned int flags): if err != cyruntime.cudaSuccess: return (_cudaError_t(err), None) return (_cudaError_t_SUCCESS, resource) -{{endif}} - @cython.embedsignature(True) def getLocalRuntimeVersion(): @@ -42154,7 +40543,6 @@ def getLocalRuntimeVersion(): err = cyruntime.getLocalRuntimeVersion(&runtimeVersion) return (cudaError_t(err), runtimeVersion) - cdef class cudaBindingsRuntimeGlobal: cdef map[void_ptr, void*] _allocated @@ -42165,7 +40553,6 @@ cdef class cudaBindingsRuntimeGlobal: cdef cudaBindingsRuntimeGlobal m_global = cudaBindingsRuntimeGlobal() - @cython.embedsignature(True) def sizeof(objType): """ Returns the size of provided CUDA Python structure in bytes @@ -42180,501 +40567,500 @@ def sizeof(objType): lowered_name : int The size of `objType` in bytes """ - {{if 'dim3' in found_struct}} + if objType == dim3: - return sizeof(cyruntime.dim3){{endif}} - {{if 'cudaDevResourceDesc_t' in found_types}} + return sizeof(cyruntime.dim3) + if objType == cudaDevResourceDesc_t: - return sizeof(cyruntime.cudaDevResourceDesc_t){{endif}} - {{if 'cudaExecutionContext_t' in found_types}} + return sizeof(cyruntime.cudaDevResourceDesc_t) + if objType == cudaExecutionContext_t: - return sizeof(cyruntime.cudaExecutionContext_t){{endif}} - {{if 'cudaChannelFormatDesc' in found_struct}} + return sizeof(cyruntime.cudaExecutionContext_t) + if objType == cudaChannelFormatDesc: - return sizeof(cyruntime.cudaChannelFormatDesc){{endif}} - {{if 'cudaArray_t' in found_types}} + return sizeof(cyruntime.cudaChannelFormatDesc) + if objType == cudaArray_t: - return sizeof(cyruntime.cudaArray_t){{endif}} - {{if 'cudaArray_const_t' in found_types}} + return sizeof(cyruntime.cudaArray_t) + if objType == cudaArray_const_t: - return sizeof(cyruntime.cudaArray_const_t){{endif}} - {{if 'cudaMipmappedArray_t' in found_types}} + return sizeof(cyruntime.cudaArray_const_t) + if objType == cudaMipmappedArray_t: - return sizeof(cyruntime.cudaMipmappedArray_t){{endif}} - {{if 'cudaMipmappedArray_const_t' in found_types}} + return sizeof(cyruntime.cudaMipmappedArray_t) + if objType == cudaMipmappedArray_const_t: - return sizeof(cyruntime.cudaMipmappedArray_const_t){{endif}} - {{if 'cudaArraySparseProperties' in found_struct}} + return sizeof(cyruntime.cudaMipmappedArray_const_t) + if objType == cudaArraySparseProperties: - return sizeof(cyruntime.cudaArraySparseProperties){{endif}} - {{if 'cudaArrayMemoryRequirements' in found_struct}} + return sizeof(cyruntime.cudaArraySparseProperties) + if objType == cudaArrayMemoryRequirements: - return sizeof(cyruntime.cudaArrayMemoryRequirements){{endif}} - {{if 'cudaPitchedPtr' in found_struct}} + return sizeof(cyruntime.cudaArrayMemoryRequirements) + if objType == cudaPitchedPtr: - return sizeof(cyruntime.cudaPitchedPtr){{endif}} - {{if 'cudaExtent' in found_struct}} + return sizeof(cyruntime.cudaPitchedPtr) + if objType == cudaExtent: - return sizeof(cyruntime.cudaExtent){{endif}} - {{if 'cudaPos' in found_struct}} + return sizeof(cyruntime.cudaExtent) + if objType == cudaPos: - return sizeof(cyruntime.cudaPos){{endif}} - {{if 'cudaMemcpy3DParms' in found_struct}} + return sizeof(cyruntime.cudaPos) + if objType == cudaMemcpy3DParms: - return sizeof(cyruntime.cudaMemcpy3DParms){{endif}} - {{if 'cudaMemcpyNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DParms) + if objType == cudaMemcpyNodeParams: - return sizeof(cyruntime.cudaMemcpyNodeParams){{endif}} - {{if 'cudaMemcpy3DPeerParms' in found_struct}} + return sizeof(cyruntime.cudaMemcpyNodeParams) + if objType == cudaMemcpy3DPeerParms: - return sizeof(cyruntime.cudaMemcpy3DPeerParms){{endif}} - {{if 'cudaMemsetParams' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DPeerParms) + if objType == cudaMemsetParams: - return sizeof(cyruntime.cudaMemsetParams){{endif}} - {{if 'cudaMemsetParamsV2' in found_struct}} + return sizeof(cyruntime.cudaMemsetParams) + if objType == cudaMemsetParamsV2: - return sizeof(cyruntime.cudaMemsetParamsV2){{endif}} - {{if 'cudaAccessPolicyWindow' in found_struct}} + return sizeof(cyruntime.cudaMemsetParamsV2) + if objType == cudaAccessPolicyWindow: - return sizeof(cyruntime.cudaAccessPolicyWindow){{endif}} - {{if 'cudaHostFn_t' in found_types}} + return sizeof(cyruntime.cudaAccessPolicyWindow) + if objType == cudaHostFn_t: - return sizeof(cyruntime.cudaHostFn_t){{endif}} - {{if 'cudaHostNodeParams' in found_struct}} + return sizeof(cyruntime.cudaHostFn_t) + if objType == cudaHostNodeParams: - return sizeof(cyruntime.cudaHostNodeParams){{endif}} - {{if 'cudaHostNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaHostNodeParams) + if objType == cudaHostNodeParamsV2: - return sizeof(cyruntime.cudaHostNodeParamsV2){{endif}} - {{if 'cudaResourceDesc' in found_struct}} + return sizeof(cyruntime.cudaHostNodeParamsV2) + if objType == cudaResourceDesc: - return sizeof(cyruntime.cudaResourceDesc){{endif}} - {{if 'cudaResourceViewDesc' in found_struct}} + return sizeof(cyruntime.cudaResourceDesc) + if objType == cudaResourceViewDesc: - return sizeof(cyruntime.cudaResourceViewDesc){{endif}} - {{if 'cudaPointerAttributes' in found_struct}} + return sizeof(cyruntime.cudaResourceViewDesc) + if objType == cudaPointerAttributes: - return sizeof(cyruntime.cudaPointerAttributes){{endif}} - {{if 'cudaFuncAttributes' in found_struct}} + return sizeof(cyruntime.cudaPointerAttributes) + if objType == cudaFuncAttributes: - return sizeof(cyruntime.cudaFuncAttributes){{endif}} - {{if 'cudaMemLocation' in found_struct}} + return sizeof(cyruntime.cudaFuncAttributes) + if objType == cudaMemLocation: - return sizeof(cyruntime.cudaMemLocation){{endif}} - {{if 'cudaMemAccessDesc' in found_struct}} + return sizeof(cyruntime.cudaMemLocation) + if objType == cudaMemAccessDesc: - return sizeof(cyruntime.cudaMemAccessDesc){{endif}} - {{if 'cudaMemPoolProps' in found_struct}} + return sizeof(cyruntime.cudaMemAccessDesc) + if objType == cudaMemPoolProps: - return sizeof(cyruntime.cudaMemPoolProps){{endif}} - {{if 'cudaMemPoolPtrExportData' in found_struct}} + return sizeof(cyruntime.cudaMemPoolProps) + if objType == cudaMemPoolPtrExportData: - return sizeof(cyruntime.cudaMemPoolPtrExportData){{endif}} - {{if 'cudaMemAllocNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemPoolPtrExportData) + if objType == cudaMemAllocNodeParams: - return sizeof(cyruntime.cudaMemAllocNodeParams){{endif}} - {{if 'cudaMemAllocNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaMemAllocNodeParams) + if objType == cudaMemAllocNodeParamsV2: - return sizeof(cyruntime.cudaMemAllocNodeParamsV2){{endif}} - {{if 'cudaMemFreeNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemAllocNodeParamsV2) + if objType == cudaMemFreeNodeParams: - return sizeof(cyruntime.cudaMemFreeNodeParams){{endif}} - {{if 'cudaMemcpyAttributes' in found_struct}} + return sizeof(cyruntime.cudaMemFreeNodeParams) + if objType == cudaMemcpyAttributes: - return sizeof(cyruntime.cudaMemcpyAttributes){{endif}} - {{if 'cudaOffset3D' in found_struct}} + return sizeof(cyruntime.cudaMemcpyAttributes) + if objType == cudaOffset3D: - return sizeof(cyruntime.cudaOffset3D){{endif}} - {{if 'cudaMemcpy3DOperand' in found_struct}} + return sizeof(cyruntime.cudaOffset3D) + if objType == cudaMemcpy3DOperand: - return sizeof(cyruntime.cudaMemcpy3DOperand){{endif}} - {{if 'cudaMemcpy3DBatchOp' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DOperand) + if objType == cudaMemcpy3DBatchOp: - return sizeof(cyruntime.cudaMemcpy3DBatchOp){{endif}} - {{if 'CUuuid_st' in found_struct}} + return sizeof(cyruntime.cudaMemcpy3DBatchOp) + if objType == CUuuid_st: - return sizeof(cyruntime.CUuuid_st){{endif}} - {{if 'CUuuid' in found_types}} + return sizeof(cyruntime.CUuuid_st) + if objType == CUuuid: - return sizeof(cyruntime.CUuuid){{endif}} - {{if 'cudaUUID_t' in found_types}} + return sizeof(cyruntime.CUuuid) + if objType == cudaUUID_t: - return sizeof(cyruntime.cudaUUID_t){{endif}} - {{if 'cudaDeviceProp' in found_struct}} + return sizeof(cyruntime.cudaUUID_t) + if objType == cudaDeviceProp: - return sizeof(cyruntime.cudaDeviceProp){{endif}} - {{if 'cudaIpcEventHandle_st' in found_struct}} + return sizeof(cyruntime.cudaDeviceProp) + if objType == cudaIpcEventHandle_st: - return sizeof(cyruntime.cudaIpcEventHandle_st){{endif}} - {{if 'cudaIpcEventHandle_t' in found_types}} + return sizeof(cyruntime.cudaIpcEventHandle_st) + if objType == cudaIpcEventHandle_t: - return sizeof(cyruntime.cudaIpcEventHandle_t){{endif}} - {{if 'cudaIpcMemHandle_st' in found_struct}} + return sizeof(cyruntime.cudaIpcEventHandle_t) + if objType == cudaIpcMemHandle_st: - return sizeof(cyruntime.cudaIpcMemHandle_st){{endif}} - {{if 'cudaIpcMemHandle_t' in found_types}} + return sizeof(cyruntime.cudaIpcMemHandle_st) + if objType == cudaIpcMemHandle_t: - return sizeof(cyruntime.cudaIpcMemHandle_t){{endif}} - {{if 'cudaMemFabricHandle_st' in found_struct}} + return sizeof(cyruntime.cudaIpcMemHandle_t) + if objType == cudaMemFabricHandle_st: - return sizeof(cyruntime.cudaMemFabricHandle_st){{endif}} - {{if 'cudaMemFabricHandle_t' in found_types}} + return sizeof(cyruntime.cudaMemFabricHandle_st) + if objType == cudaMemFabricHandle_t: - return sizeof(cyruntime.cudaMemFabricHandle_t){{endif}} - {{if 'cudaExternalMemoryHandleDesc' in found_struct}} + return sizeof(cyruntime.cudaMemFabricHandle_t) + if objType == cudaExternalMemoryHandleDesc: - return sizeof(cyruntime.cudaExternalMemoryHandleDesc){{endif}} - {{if 'cudaExternalMemoryBufferDesc' in found_struct}} + return sizeof(cyruntime.cudaExternalMemoryHandleDesc) + if objType == cudaExternalMemoryBufferDesc: - return sizeof(cyruntime.cudaExternalMemoryBufferDesc){{endif}} - {{if 'cudaExternalMemoryMipmappedArrayDesc' in found_struct}} + return sizeof(cyruntime.cudaExternalMemoryBufferDesc) + if objType == cudaExternalMemoryMipmappedArrayDesc: - return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc){{endif}} - {{if 'cudaExternalSemaphoreHandleDesc' in found_struct}} + return sizeof(cyruntime.cudaExternalMemoryMipmappedArrayDesc) + if objType == cudaExternalSemaphoreHandleDesc: - return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc){{endif}} - {{if 'cudaExternalSemaphoreSignalParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreHandleDesc) + if objType == cudaExternalSemaphoreSignalParams: - return sizeof(cyruntime.cudaExternalSemaphoreSignalParams){{endif}} - {{if 'cudaExternalSemaphoreWaitParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreSignalParams) + if objType == cudaExternalSemaphoreWaitParams: - return sizeof(cyruntime.cudaExternalSemaphoreWaitParams){{endif}} - {{if 'cudaDevSmResource' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreWaitParams) + if objType == cudaDevSmResource: - return sizeof(cyruntime.cudaDevSmResource){{endif}} - {{if 'cudaDevWorkqueueConfigResource' in found_struct}} + return sizeof(cyruntime.cudaDevSmResource) + if objType == cudaDevWorkqueueConfigResource: - return sizeof(cyruntime.cudaDevWorkqueueConfigResource){{endif}} - {{if 'cudaDevWorkqueueResource' in found_struct}} + return sizeof(cyruntime.cudaDevWorkqueueConfigResource) + if objType == cudaDevWorkqueueResource: - return sizeof(cyruntime.cudaDevWorkqueueResource){{endif}} - {{if 'cudaDevSmResourceGroupParams_st' in found_struct}} + return sizeof(cyruntime.cudaDevWorkqueueResource) + if objType == cudaDevSmResourceGroupParams_st: - return sizeof(cyruntime.cudaDevSmResourceGroupParams_st){{endif}} - {{if 'cudaDevSmResourceGroupParams' in found_types}} + return sizeof(cyruntime.cudaDevSmResourceGroupParams_st) + if objType == cudaDevSmResourceGroupParams: - return sizeof(cyruntime.cudaDevSmResourceGroupParams){{endif}} - {{if 'cudaDevResource_st' in found_struct}} + return sizeof(cyruntime.cudaDevSmResourceGroupParams) + if objType == cudaDevResource_st: - return sizeof(cyruntime.cudaDevResource_st){{endif}} - {{if 'cudaDevResource' in found_types}} + return sizeof(cyruntime.cudaDevResource_st) + if objType == cudaDevResource: - return sizeof(cyruntime.cudaDevResource){{endif}} - {{if 'cudaStream_t' in found_types}} + return sizeof(cyruntime.cudaDevResource) + if objType == cudaStream_t: - return sizeof(cyruntime.cudaStream_t){{endif}} - {{if 'cudaEvent_t' in found_types}} + return sizeof(cyruntime.cudaStream_t) + if objType == cudaEvent_t: - return sizeof(cyruntime.cudaEvent_t){{endif}} - {{if 'cudaGraphicsResource_t' in found_types}} + return sizeof(cyruntime.cudaEvent_t) + if objType == cudaGraphicsResource_t: - return sizeof(cyruntime.cudaGraphicsResource_t){{endif}} - {{if 'cudaExternalMemory_t' in found_types}} + return sizeof(cyruntime.cudaGraphicsResource_t) + if objType == cudaExternalMemory_t: - return sizeof(cyruntime.cudaExternalMemory_t){{endif}} - {{if 'cudaExternalSemaphore_t' in found_types}} + return sizeof(cyruntime.cudaExternalMemory_t) + if objType == cudaExternalSemaphore_t: - return sizeof(cyruntime.cudaExternalSemaphore_t){{endif}} - {{if 'cudaGraph_t' in found_types}} + return sizeof(cyruntime.cudaExternalSemaphore_t) + if objType == cudaGraph_t: - return sizeof(cyruntime.cudaGraph_t){{endif}} - {{if 'cudaGraphNode_t' in found_types}} + return sizeof(cyruntime.cudaGraph_t) + if objType == cudaGraphNode_t: - return sizeof(cyruntime.cudaGraphNode_t){{endif}} - {{if 'cudaUserObject_t' in found_types}} + return sizeof(cyruntime.cudaGraphNode_t) + if objType == cudaUserObject_t: - return sizeof(cyruntime.cudaUserObject_t){{endif}} - {{if 'cudaGraphConditionalHandle' in found_types}} + return sizeof(cyruntime.cudaUserObject_t) + if objType == cudaGraphConditionalHandle: - return sizeof(cyruntime.cudaGraphConditionalHandle){{endif}} - {{if 'cudaFunction_t' in found_types}} + return sizeof(cyruntime.cudaGraphConditionalHandle) + if objType == cudaFunction_t: - return sizeof(cyruntime.cudaFunction_t){{endif}} - {{if 'cudaKernel_t' in found_types}} + return sizeof(cyruntime.cudaFunction_t) + if objType == cudaKernel_t: - return sizeof(cyruntime.cudaKernel_t){{endif}} - {{if 'cudalibraryHostUniversalFunctionAndDataTable' in found_struct}} + return sizeof(cyruntime.cudaKernel_t) + if objType == cudalibraryHostUniversalFunctionAndDataTable: - return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable){{endif}} - {{if 'cudaLibrary_t' in found_types}} + return sizeof(cyruntime.cudalibraryHostUniversalFunctionAndDataTable) + if objType == cudaLibrary_t: - return sizeof(cyruntime.cudaLibrary_t){{endif}} - {{if 'cudaMemPool_t' in found_types}} + return sizeof(cyruntime.cudaLibrary_t) + if objType == cudaMemPool_t: - return sizeof(cyruntime.cudaMemPool_t){{endif}} - {{if 'cudaKernelNodeParams' in found_struct}} + return sizeof(cyruntime.cudaMemPool_t) + if objType == cudaKernelNodeParams: - return sizeof(cyruntime.cudaKernelNodeParams){{endif}} - {{if 'cudaKernelNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaKernelNodeParams) + if objType == cudaKernelNodeParamsV2: - return sizeof(cyruntime.cudaKernelNodeParamsV2){{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParams' in found_struct}} + return sizeof(cyruntime.cudaKernelNodeParamsV2) + if objType == cudaExternalSemaphoreSignalNodeParams: - return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams){{endif}} - {{if 'cudaExternalSemaphoreSignalNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParams) + if objType == cudaExternalSemaphoreSignalNodeParamsV2: - return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2){{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreSignalNodeParamsV2) + if objType == cudaExternalSemaphoreWaitNodeParams: - return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams){{endif}} - {{if 'cudaExternalSemaphoreWaitNodeParamsV2' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParams) + if objType == cudaExternalSemaphoreWaitNodeParamsV2: - return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2){{endif}} - {{if 'cudaConditionalNodeParams' in found_struct}} + return sizeof(cyruntime.cudaExternalSemaphoreWaitNodeParamsV2) + if objType == cudaConditionalNodeParams: - return sizeof(cyruntime.cudaConditionalNodeParams){{endif}} - {{if 'cudaChildGraphNodeParams' in found_struct}} + return sizeof(cyruntime.cudaConditionalNodeParams) + if objType == cudaChildGraphNodeParams: - return sizeof(cyruntime.cudaChildGraphNodeParams){{endif}} - {{if 'cudaEventRecordNodeParams' in found_struct}} + return sizeof(cyruntime.cudaChildGraphNodeParams) + if objType == cudaEventRecordNodeParams: - return sizeof(cyruntime.cudaEventRecordNodeParams){{endif}} - {{if 'cudaEventWaitNodeParams' in found_struct}} + return sizeof(cyruntime.cudaEventRecordNodeParams) + if objType == cudaEventWaitNodeParams: - return sizeof(cyruntime.cudaEventWaitNodeParams){{endif}} - {{if 'cudaGraphNodeParams' in found_struct}} + return sizeof(cyruntime.cudaEventWaitNodeParams) + if objType == cudaGraphNodeParams: - return sizeof(cyruntime.cudaGraphNodeParams){{endif}} - {{if 'cudaGraphEdgeData_st' in found_struct}} + return sizeof(cyruntime.cudaGraphNodeParams) + if objType == cudaGraphEdgeData_st: - return sizeof(cyruntime.cudaGraphEdgeData_st){{endif}} - {{if 'cudaGraphEdgeData' in found_types}} + return sizeof(cyruntime.cudaGraphEdgeData_st) + if objType == cudaGraphEdgeData: - return sizeof(cyruntime.cudaGraphEdgeData){{endif}} - {{if 'cudaGraphExec_t' in found_types}} + return sizeof(cyruntime.cudaGraphEdgeData) + if objType == cudaGraphExec_t: - return sizeof(cyruntime.cudaGraphExec_t){{endif}} - {{if 'cudaGraphInstantiateParams_st' in found_struct}} + return sizeof(cyruntime.cudaGraphExec_t) + if objType == cudaGraphInstantiateParams_st: - return sizeof(cyruntime.cudaGraphInstantiateParams_st){{endif}} - {{if 'cudaGraphInstantiateParams' in found_types}} + return sizeof(cyruntime.cudaGraphInstantiateParams_st) + if objType == cudaGraphInstantiateParams: - return sizeof(cyruntime.cudaGraphInstantiateParams){{endif}} - {{if 'cudaGraphExecUpdateResultInfo_st' in found_struct}} + return sizeof(cyruntime.cudaGraphInstantiateParams) + if objType == cudaGraphExecUpdateResultInfo_st: - return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st){{endif}} - {{if 'cudaGraphExecUpdateResultInfo' in found_types}} + return sizeof(cyruntime.cudaGraphExecUpdateResultInfo_st) + if objType == cudaGraphExecUpdateResultInfo: - return sizeof(cyruntime.cudaGraphExecUpdateResultInfo){{endif}} - {{if 'cudaGraphDeviceNode_t' in found_types}} + return sizeof(cyruntime.cudaGraphExecUpdateResultInfo) + if objType == cudaGraphDeviceNode_t: - return sizeof(cyruntime.cudaGraphDeviceNode_t){{endif}} - {{if 'cudaGraphKernelNodeUpdate' in found_struct}} + return sizeof(cyruntime.cudaGraphDeviceNode_t) + if objType == cudaGraphKernelNodeUpdate: - return sizeof(cyruntime.cudaGraphKernelNodeUpdate){{endif}} - {{if 'cudaLaunchMemSyncDomainMap_st' in found_struct}} + return sizeof(cyruntime.cudaGraphKernelNodeUpdate) + if objType == cudaLaunchMemSyncDomainMap_st: - return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st){{endif}} - {{if 'cudaLaunchMemSyncDomainMap' in found_types}} + return sizeof(cyruntime.cudaLaunchMemSyncDomainMap_st) + if objType == cudaLaunchMemSyncDomainMap: - return sizeof(cyruntime.cudaLaunchMemSyncDomainMap){{endif}} - {{if 'cudaLaunchAttributeValue' in found_struct}} + return sizeof(cyruntime.cudaLaunchMemSyncDomainMap) + if objType == cudaLaunchAttributeValue: - return sizeof(cyruntime.cudaLaunchAttributeValue){{endif}} - {{if 'cudaLaunchAttribute_st' in found_struct}} + return sizeof(cyruntime.cudaLaunchAttributeValue) + if objType == cudaLaunchAttribute_st: - return sizeof(cyruntime.cudaLaunchAttribute_st){{endif}} - {{if 'cudaLaunchAttribute' in found_types}} + return sizeof(cyruntime.cudaLaunchAttribute_st) + if objType == cudaLaunchAttribute: - return sizeof(cyruntime.cudaLaunchAttribute){{endif}} - {{if 'cudaAsyncCallbackHandle_t' in found_types}} + return sizeof(cyruntime.cudaLaunchAttribute) + if objType == cudaAsyncCallbackHandle_t: - return sizeof(cyruntime.cudaAsyncCallbackHandle_t){{endif}} - {{if 'cudaAsyncNotificationInfo' in found_struct}} + return sizeof(cyruntime.cudaAsyncCallbackHandle_t) + if objType == cudaAsyncNotificationInfo: - return sizeof(cyruntime.cudaAsyncNotificationInfo){{endif}} - {{if 'cudaAsyncNotificationInfo_t' in found_types}} + return sizeof(cyruntime.cudaAsyncNotificationInfo) + if objType == cudaAsyncNotificationInfo_t: - return sizeof(cyruntime.cudaAsyncNotificationInfo_t){{endif}} - {{if 'cudaAsyncCallback' in found_types}} + return sizeof(cyruntime.cudaAsyncNotificationInfo_t) + if objType == cudaAsyncCallback: - return sizeof(cyruntime.cudaAsyncCallback){{endif}} - {{if 'cudaLogsCallbackHandle' in found_types}} + return sizeof(cyruntime.cudaAsyncCallback) + if objType == cudaLogsCallbackHandle: - return sizeof(cyruntime.cudaLogsCallbackHandle){{endif}} - {{if 'cudaLogIterator' in found_types}} + return sizeof(cyruntime.cudaLogsCallbackHandle) + if objType == cudaLogIterator: - return sizeof(cyruntime.cudaLogIterator){{endif}} - {{if 'cudaSurfaceObject_t' in found_types}} + return sizeof(cyruntime.cudaLogIterator) + if objType == cudaSurfaceObject_t: - return sizeof(cyruntime.cudaSurfaceObject_t){{endif}} - {{if 'cudaTextureDesc' in found_struct}} + return sizeof(cyruntime.cudaSurfaceObject_t) + if objType == cudaTextureDesc: - return sizeof(cyruntime.cudaTextureDesc){{endif}} - {{if 'cudaTextureObject_t' in found_types}} + return sizeof(cyruntime.cudaTextureDesc) + if objType == cudaTextureObject_t: - return sizeof(cyruntime.cudaTextureObject_t){{endif}} - {{if 'cudaStreamCallback_t' in found_types}} + return sizeof(cyruntime.cudaTextureObject_t) + if objType == cudaStreamCallback_t: - return sizeof(cyruntime.cudaStreamCallback_t){{endif}} - {{if 'cudaGraphRecaptureCallback_t' in found_types}} + return sizeof(cyruntime.cudaStreamCallback_t) + if objType == cudaGraphRecaptureCallback_t: - return sizeof(cyruntime.cudaGraphRecaptureCallback_t){{endif}} - {{if 'cudaGraphRecaptureCallbackData' in found_struct}} + return sizeof(cyruntime.cudaGraphRecaptureCallback_t) + if objType == cudaGraphRecaptureCallbackData: - return sizeof(cyruntime.cudaGraphRecaptureCallbackData){{endif}} - {{if 'cudaLogsCallback_t' in found_types}} + return sizeof(cyruntime.cudaGraphRecaptureCallbackData) + if objType == cudaLogsCallback_t: - return sizeof(cyruntime.cudaLogsCallback_t){{endif}} - {{if True}} + return sizeof(cyruntime.cudaLogsCallback_t) + if objType == GLenum: - return sizeof(cyruntime.GLenum){{endif}} - {{if True}} + return sizeof(cyruntime.GLenum) + if objType == GLuint: - return sizeof(cyruntime.GLuint){{endif}} - {{if True}} + return sizeof(cyruntime.GLuint) + if objType == EGLImageKHR: - return sizeof(cyruntime.EGLImageKHR){{endif}} - {{if True}} + return sizeof(cyruntime.EGLImageKHR) + if objType == EGLStreamKHR: - return sizeof(cyruntime.EGLStreamKHR){{endif}} - {{if True}} + return sizeof(cyruntime.EGLStreamKHR) + if objType == EGLint: - return sizeof(cyruntime.EGLint){{endif}} - {{if True}} + return sizeof(cyruntime.EGLint) + if objType == EGLSyncKHR: - return sizeof(cyruntime.EGLSyncKHR){{endif}} - {{if True}} + return sizeof(cyruntime.EGLSyncKHR) + if objType == VdpDevice: - return sizeof(cyruntime.VdpDevice){{endif}} - {{if True}} + return sizeof(cyruntime.VdpDevice) + if objType == VdpGetProcAddress: - return sizeof(cyruntime.VdpGetProcAddress){{endif}} - {{if True}} + return sizeof(cyruntime.VdpGetProcAddress) + if objType == VdpVideoSurface: - return sizeof(cyruntime.VdpVideoSurface){{endif}} - {{if True}} + return sizeof(cyruntime.VdpVideoSurface) + if objType == VdpOutputSurface: - return sizeof(cyruntime.VdpOutputSurface){{endif}} - {{if True}} + return sizeof(cyruntime.VdpOutputSurface) + if objType == cudaStreamAttrValue: - return sizeof(cyruntime.cudaStreamAttrValue){{endif}} - {{if True}} + return sizeof(cyruntime.cudaStreamAttrValue) + if objType == cudaKernelNodeAttrValue: - return sizeof(cyruntime.cudaKernelNodeAttrValue){{endif}} - {{if True}} + return sizeof(cyruntime.cudaKernelNodeAttrValue) + if objType == cudaEglPlaneDesc_st: - return sizeof(cyruntime.cudaEglPlaneDesc_st){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglPlaneDesc_st) + if objType == cudaEglPlaneDesc: - return sizeof(cyruntime.cudaEglPlaneDesc){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglPlaneDesc) + if objType == cudaEglFrame_st: - return sizeof(cyruntime.cudaEglFrame_st){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglFrame_st) + if objType == cudaEglFrame: - return sizeof(cyruntime.cudaEglFrame){{endif}} - {{if True}} + return sizeof(cyruntime.cudaEglFrame) + if objType == cudaEglStreamConnection: - return sizeof(cyruntime.cudaEglStreamConnection){{endif}} + return sizeof(cyruntime.cudaEglStreamConnection) raise TypeError("Unknown type: " + str(objType)) cdef int _add_native_handle_getters() except?-1: from cuda.bindings.utils import _add_cuda_native_handle_getter - {{if 'cudaDevResourceDesc_t' in found_types}} + def cudaDevResourceDesc_t_getter(cudaDevResourceDesc_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaDevResourceDesc_t, cudaDevResourceDesc_t_getter) - {{endif}} - {{if 'cudaExecutionContext_t' in found_types}} + + def cudaExecutionContext_t_getter(cudaExecutionContext_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaExecutionContext_t, cudaExecutionContext_t_getter) - {{endif}} - {{if 'cudaArray_t' in found_types}} + + def cudaArray_t_getter(cudaArray_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaArray_t, cudaArray_t_getter) - {{endif}} - {{if 'cudaArray_const_t' in found_types}} + + def cudaArray_const_t_getter(cudaArray_const_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaArray_const_t, cudaArray_const_t_getter) - {{endif}} - {{if 'cudaMipmappedArray_t' in found_types}} + + def cudaMipmappedArray_t_getter(cudaMipmappedArray_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaMipmappedArray_t, cudaMipmappedArray_t_getter) - {{endif}} - {{if 'cudaMipmappedArray_const_t' in found_types}} + + def cudaMipmappedArray_const_t_getter(cudaMipmappedArray_const_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaMipmappedArray_const_t, cudaMipmappedArray_const_t_getter) - {{endif}} - {{if 'cudaStream_t' in found_types}} + + def cudaStream_t_getter(cudaStream_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaStream_t, cudaStream_t_getter) - {{endif}} - {{if 'cudaEvent_t' in found_types}} + + def cudaEvent_t_getter(cudaEvent_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaEvent_t, cudaEvent_t_getter) - {{endif}} - {{if 'cudaGraphicsResource_t' in found_types}} + + def cudaGraphicsResource_t_getter(cudaGraphicsResource_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphicsResource_t, cudaGraphicsResource_t_getter) - {{endif}} - {{if 'cudaExternalMemory_t' in found_types}} + + def cudaExternalMemory_t_getter(cudaExternalMemory_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaExternalMemory_t, cudaExternalMemory_t_getter) - {{endif}} - {{if 'cudaExternalSemaphore_t' in found_types}} + + def cudaExternalSemaphore_t_getter(cudaExternalSemaphore_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaExternalSemaphore_t, cudaExternalSemaphore_t_getter) - {{endif}} - {{if 'cudaGraph_t' in found_types}} + + def cudaGraph_t_getter(cudaGraph_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraph_t, cudaGraph_t_getter) - {{endif}} - {{if 'cudaGraphNode_t' in found_types}} + + def cudaGraphNode_t_getter(cudaGraphNode_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphNode_t, cudaGraphNode_t_getter) - {{endif}} - {{if 'cudaUserObject_t' in found_types}} + + def cudaUserObject_t_getter(cudaUserObject_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaUserObject_t, cudaUserObject_t_getter) - {{endif}} - {{if 'cudaFunction_t' in found_types}} + + def cudaFunction_t_getter(cudaFunction_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaFunction_t, cudaFunction_t_getter) - {{endif}} - {{if 'cudaKernel_t' in found_types}} + + def cudaKernel_t_getter(cudaKernel_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaKernel_t, cudaKernel_t_getter) - {{endif}} - {{if 'cudaLibrary_t' in found_types}} + + def cudaLibrary_t_getter(cudaLibrary_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaLibrary_t, cudaLibrary_t_getter) - {{endif}} - {{if 'cudaMemPool_t' in found_types}} + + def cudaMemPool_t_getter(cudaMemPool_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaMemPool_t, cudaMemPool_t_getter) - {{endif}} - {{if 'cudaGraphExec_t' in found_types}} + + def cudaGraphExec_t_getter(cudaGraphExec_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphExec_t, cudaGraphExec_t_getter) - {{endif}} - {{if 'cudaGraphDeviceNode_t' in found_types}} + + def cudaGraphDeviceNode_t_getter(cudaGraphDeviceNode_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaGraphDeviceNode_t, cudaGraphDeviceNode_t_getter) - {{endif}} - {{if 'cudaAsyncCallbackHandle_t' in found_types}} + + def cudaAsyncCallbackHandle_t_getter(cudaAsyncCallbackHandle_t x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaAsyncCallbackHandle_t, cudaAsyncCallbackHandle_t_getter) - {{endif}} - {{if 'cudaLogsCallbackHandle' in found_types}} + + def cudaLogsCallbackHandle_getter(cudaLogsCallbackHandle x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaLogsCallbackHandle, cudaLogsCallbackHandle_getter) - {{endif}} - {{if True}} + + def EGLImageKHR_getter(EGLImageKHR x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(EGLImageKHR, EGLImageKHR_getter) - {{endif}} - {{if True}} + + def EGLStreamKHR_getter(EGLStreamKHR x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(EGLStreamKHR, EGLStreamKHR_getter) - {{endif}} - {{if True}} + + def EGLSyncKHR_getter(EGLSyncKHR x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(EGLSyncKHR, EGLSyncKHR_getter) - {{endif}} - {{if True}} + + def cudaEglStreamConnection_getter(cudaEglStreamConnection x): return (x._pvt_ptr[0]) _add_cuda_native_handle_getter(cudaEglStreamConnection, cudaEglStreamConnection_getter) - {{endif}} + return 0 _add_native_handle_getters() - diff --git a/cuda_bindings/docs/source/environment_variables.rst b/cuda_bindings/docs/source/environment_variables.rst index f38916549a3..bfc4dd27495 100644 --- a/cuda_bindings/docs/source/environment_variables.rst +++ b/cuda_bindings/docs/source/environment_variables.rst @@ -1,4 +1,4 @@ -.. SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. .. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE Environment Variables @@ -24,6 +24,4 @@ Build-Time Environment Variables `cuda-pathfinder 1.5.0 release notes `_ for details and migration guidance. -- ``CUDA_PYTHON_PARSER_CACHING`` : bool, toggles the caching of parsed header files during the cuda-bindings build process. If caching is enabled (``CUDA_PYTHON_PARSER_CACHING`` is True), the cache path is set to ./cache_, where is derived from the cuda toolkit libraries used to build cuda-bindings. - - ``CUDA_PYTHON_PARALLEL_LEVEL`` (previously ``PARALLEL_LEVEL``) : int, sets the number of threads used in the compilation of extension modules. Not setting it or setting it to 0 would disable parallel builds. diff --git a/cuda_bindings/docs/source/module/driver.rst b/cuda_bindings/docs/source/module/driver.rst index 49c633aa074..ba9ed20e4ba 100644 --- a/cuda_bindings/docs/source/module/driver.rst +++ b/cuda_bindings/docs/source/module/driver.rst @@ -1,4 +1,4 @@ -.. SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. .. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE ------ @@ -146,7 +146,11 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUctx_flags.CU_CTX_BLOCKING_SYNC - Set blocking synchronization as default scheduling [Deprecated] + Set blocking synchronization as default scheduling + + + + [Deprecated] .. autoattribute:: cuda.bindings.driver.CUctx_flags.CU_CTX_SCHED_MASK @@ -406,25 +410,25 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUstreamWaitValue_flags.CU_STREAM_WAIT_VALUE_GEQ - Wait until (int32_t)(*addr - value) >= 0 (or int64_t for 64 bit values). Note this is a cyclic comparison which ignores wraparound. (Default behavior.) + Wait until (int32_t)(\*addr - value) >= 0 (or int64_t for 64 bit values). Note this is a cyclic comparison which ignores wraparound. (Default behavior.) .. autoattribute:: cuda.bindings.driver.CUstreamWaitValue_flags.CU_STREAM_WAIT_VALUE_EQ - Wait until *addr == value. + Wait until \*addr == value. .. autoattribute:: cuda.bindings.driver.CUstreamWaitValue_flags.CU_STREAM_WAIT_VALUE_AND - Wait until (*addr & value) != 0. + Wait until (\*addr & value) != 0. .. autoattribute:: cuda.bindings.driver.CUstreamWaitValue_flags.CU_STREAM_WAIT_VALUE_NOR - Wait until ~(*addr | value) != 0. Support for this operation can be queried with :py:obj:`~.cuDeviceGetAttribute()` and :py:obj:`~.CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR`. + Wait until ~(\*addr | value) != 0. Support for this operation can be queried with :py:obj:`~.cuDeviceGetAttribute()` and :py:obj:`~.CU_DEVICE_ATTRIBUTE_CAN_USE_STREAM_WAIT_VALUE_NOR`. .. autoattribute:: cuda.bindings.driver.CUstreamWaitValue_flags.CU_STREAM_WAIT_VALUE_FLUSH @@ -506,19 +510,19 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUstreamAtomicReductionOpType.CU_STREAM_ATOMIC_REDUCTION_OP_OR - Performs an atomic OR: *(address) = *(address) | value + Performs an atomic OR: \*(address) = \*(address) | value .. autoattribute:: cuda.bindings.driver.CUstreamAtomicReductionOpType.CU_STREAM_ATOMIC_REDUCTION_OP_AND - Performs an atomic AND: *(address) = *(address) & value + Performs an atomic AND: \*(address) = \*(address) & value .. autoattribute:: cuda.bindings.driver.CUstreamAtomicReductionOpType.CU_STREAM_ATOMIC_REDUCTION_OP_ADD - Performs an atomic ADD: *(address) = *(address) + value + Performs an atomic ADD: \*(address) = \*(address) + value .. autoclass:: cuda.bindings.driver.CUstreamAtomicReductionDataType @@ -2081,7 +2085,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUpointer_attribute.CU_POINTER_ATTRIBUTE_IS_HW_DECOMPRESS_CAPABLE - Returns in `*data` a boolean that indicates whether the pointer points to memory that is capable to be used for hardware accelerated decompression. + Returns in ``*data`` a boolean that indicates whether the pointer points to memory that is capable to be used for hardware accelerated decompression. .. autoclass:: cuda.bindings.driver.CUfunction_attribute @@ -2118,13 +2122,13 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUfunction_attribute.CU_FUNC_ATTRIBUTE_PTX_VERSION - The PTX virtual architecture version for which the function was compiled. This value is the major PTX version * 10 + the minor PTX version, so a PTX version 1.3 function would return the value 13. Note that this may return the undefined value of 0 for cubins compiled prior to CUDA 3.0. + The PTX virtual architecture version for which the function was compiled. This value is the major PTX version \* 10 + the minor PTX version, so a PTX version 1.3 function would return the value 13. Note that this may return the undefined value of 0 for cubins compiled prior to CUDA 3.0. .. autoattribute:: cuda.bindings.driver.CUfunction_attribute.CU_FUNC_ATTRIBUTE_BINARY_VERSION - The binary architecture version for which the function was compiled. This value is the major binary version * 10 + the minor binary version, so a binary version 1.3 function would return the value 13. Note that this will return a value of 10 for legacy cubins that do not have a properly-encoded binary architecture version. + The binary architecture version for which the function was compiled. This value is the major binary version \* 10 + the minor binary version, so a binary version 1.3 function would return the value 13. Note that this will return a value of 10 for legacy cubins that do not have a properly-encoded binary architecture version. .. autoattribute:: cuda.bindings.driver.CUfunction_attribute.CU_FUNC_ATTRIBUTE_CACHE_MODE_CA @@ -2206,7 +2210,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUfunction_attribute.CU_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE - The block scheduling policy of a function. The value type is CUclusterSchedulingPolicy / cudaClusterSchedulingPolicy. See :py:obj:`~.cuFuncSetAttribute`, :py:obj:`~.cuKernelSetAttribute` + The block scheduling policy of a function. The value type is :py:obj:`~.CUclusterSchedulingPolicy` / cudaClusterSchedulingPolicy. See :py:obj:`~.cuFuncSetAttribute`, :py:obj:`~.cuKernelSetAttribute` .. autoattribute:: cuda.bindings.driver.CUfunction_attribute.CU_FUNC_ATTRIBUTE_DEVICE_NODE_UPDATE_SUPPORTED @@ -2451,7 +2455,7 @@ Data types used by CUDA driver Pointer to a buffer in which to print any log messages that are informational in nature (the buffer size is specified via option :py:obj:`~.CU_JIT_INFO_LOG_BUFFER_SIZE_BYTES`) - Option type: char * + Option type: char \* Applies to: compiler and linker @@ -2473,7 +2477,7 @@ Data types used by CUDA driver Pointer to a buffer in which to print any log messages that reflect errors (the buffer size is specified via option :py:obj:`~.CU_JIT_ERROR_LOG_BUFFER_SIZE_BYTES`) - Option type: char * + Option type: char \* Applies to: compiler and linker @@ -2523,7 +2527,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUjit_option.CU_JIT_FALLBACK_STRATEGY - Specifies choice of fallback strategy if matching cubin is not found. Choice is based on supplied :py:obj:`~.CUjit_fallback`. This option cannot be used with cuLink* APIs as the linker requires exact matches. + Specifies choice of fallback strategy if matching cubin is not found. Choice is based on supplied :py:obj:`~.CUjit_fallback`. This option cannot be used with cuLink\* APIs as the linker requires exact matches. Option type: unsigned int for enumerated type :py:obj:`~.CUjit_fallback` @@ -2597,7 +2601,7 @@ Data types used by CUDA driver It is illegal to register the same device symbol at multiple addresses. - Option type: const char ** + Option type: const char \*\* Applies to: dynamic linker only @@ -2609,7 +2613,7 @@ Data types used by CUDA driver Must contain :py:obj:`~.CU_JIT_GLOBAL_SYMBOL_COUNT` entries. - Option type: void ** + Option type: void \*\* Applies to: dynamic linker only @@ -3240,7 +3244,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUgraphConditionalNodeType.CU_GRAPH_COND_TYPE_IF - Conditional 'if/else' Node. Body[0] executed if condition is non-zero. If `size` == 2, an optional ELSE graph is created and this is executed if the condition is zero. + Conditional 'if/else' Node. Body[0] executed if condition is non-zero. If ``size`` == 2, an optional ELSE graph is created and this is executed if the condition is zero. .. autoattribute:: cuda.bindings.driver.CUgraphConditionalNodeType.CU_GRAPH_COND_TYPE_WHILE @@ -3384,7 +3388,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUgraphDependencyType.CU_GRAPH_DEPENDENCY_TYPE_PROGRAMMATIC - This dependency type allows the downstream node to use `cudaGridDependencySynchronize()`. It may only be used between kernel nodes, and must be used with either the :py:obj:`~.CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC` or :py:obj:`~.CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER` outgoing port. + This dependency type allows the downstream node to use ``cudaGridDependencySynchronize()``. It may only be used between kernel nodes, and must be used with either the :py:obj:`~.CU_GRAPH_KERNEL_NODE_PORT_PROGRAMMATIC` or :py:obj:`~.CU_GRAPH_KERNEL_NODE_PORT_LAUNCH_ORDER` outgoing port. .. autoclass:: cuda.bindings.driver.CUgraphInstantiateResult @@ -3583,7 +3587,7 @@ Data types used by CUDA driver Each type of cluster will have its enumeration / coordinate setup as if the grid consists solely of its type of cluster. For example, if the preferred substitute cluster dimensions double the regular cluster dimensions, there might be simultaneously a regular cluster indexed at (1,0,0), and a preferred cluster indexed at (1,0,0). In this example, the preferred substitute cluster (1,0,0) replaces regular clusters (2,0,0) and (3,0,0) and groups their blocks. - This attribute will only take effect when a regular cluster dimension has been specified. The preferred substitute cluster dimension must be an integer multiple greater than zero of the regular cluster dimension and must divide the grid. It must also be no more than `maxBlocksPerCluster`, if it is set in the kernel's `__launch_bounds__`. Otherwise it must be less than the maximum value the driver can support. Otherwise, setting this attribute to a value physically unable to fit on any particular device is permitted. + This attribute will only take effect when a regular cluster dimension has been specified. The preferred substitute cluster dimension must be an integer multiple greater than zero of the regular cluster dimension and must divide the grid. It must also be no more than ``maxBlocksPerCluster``, if it is set in the kernel's ``__launch_bounds__``. Otherwise it must be less than the maximum value the driver can support. Otherwise, setting this attribute to a value physically unable to fit on any particular device is permitted. .. autoattribute:: cuda.bindings.driver.CUlaunchAttributeID.CU_LAUNCH_ATTRIBUTE_LAUNCH_COMPLETION_EVENT @@ -3593,7 +3597,7 @@ Data types used by CUDA driver Nominally, the event is triggered once all blocks of the kernel have begun execution. Currently this is a best effort. If a kernel B has a launch completion dependency on a kernel A, B may wait until A is complete. Alternatively, blocks of B may begin before all blocks of A have begun, for example if B can claim execution resources unavailable to A (e.g. they run on different GPUs) or if B is a higher priority than A. Exercise caution if such an ordering inversion could lead to deadlock. - A launch completion event is nominally similar to a programmatic event with `triggerAtBlockStart` set except that it is not visible to `cudaGridDependencySynchronize()` and can be used with compute capability less than 9.0. + A launch completion event is nominally similar to a programmatic event with ``triggerAtBlockStart`` set except that it is not visible to ``cudaGridDependencySynchronize()`` and can be used with compute capability less than 9.0. The event supplied must not be an interprocess or interop event. The event must disable timing (i.e. must be created with the :py:obj:`~.CU_EVENT_DISABLE_TIMING` flag set). @@ -3746,7 +3750,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUlibraryOption.CU_LIBRARY_BINARY_IS_PRESERVED - Specifes that the argument `code` passed to :py:obj:`~.cuLibraryLoadData()` will be preserved. Specifying this option will let the driver know that `code` can be accessed at any point until :py:obj:`~.cuLibraryUnload()`. The default behavior is for the driver to allocate and maintain its own copy of `code`. Note that this is only a memory usage optimization hint and the driver can choose to ignore it if required. Specifying this option with :py:obj:`~.cuLibraryLoadFromFile()` is invalid and will return :py:obj:`~.CUDA_ERROR_INVALID_VALUE`. + Specifes that the argument ``code`` passed to :py:obj:`~.cuLibraryLoadData()` will be preserved. Specifying this option will let the driver know that ``code`` can be accessed at any point until :py:obj:`~.cuLibraryUnload()`. The default behavior is for the driver to allocate and maintain its own copy of ``code``. Note that this is only a memory usage optimization hint and the driver can choose to ignore it if required. Specifying this option with :py:obj:`~.cuLibraryLoadFromFile()` is invalid and will return :py:obj:`~.CUDA_ERROR_INVALID_VALUE`. .. autoattribute:: cuda.bindings.driver.CUlibraryOption.CU_LIBRARY_NUM_OPTIONS @@ -3858,7 +3862,11 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUresult.CUDA_ERROR_CONTEXT_ALREADY_CURRENT - This indicated that the context being supplied as a parameter to the API call was already the active context. [Deprecated] + This indicated that the context being supplied as a parameter to the API call was already the active context. + + + + [Deprecated] .. autoattribute:: cuda.bindings.driver.CUresult.CUDA_ERROR_MAP_FAILED @@ -4890,7 +4898,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_FABRIC - Allows a fabric handle to be used for exporting. (CUmemFabricHandle) + Allows a fabric handle to be used for exporting. (:py:obj:`~.CUmemFabricHandle`) .. autoattribute:: cuda.bindings.driver.CUmemAllocationHandleType.CU_MEM_HANDLE_TYPE_MAX @@ -5128,43 +5136,43 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_RELEASE_THRESHOLD - (value type = cuuint64_t) Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0) + (value type = :py:obj:`~.cuuint64_t`) Amount of reserved memory in bytes to hold onto before trying to release memory back to the OS. When more than the release threshold bytes of memory are held by the memory pool, the allocator will try to release memory back to the OS on the next call to stream, event or context synchronize. (default 0) .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_RESERVED_MEM_CURRENT - (value type = cuuint64_t) Amount of backing memory currently allocated for the mempool. + (value type = :py:obj:`~.cuuint64_t`) Amount of backing memory currently allocated for the mempool. .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_RESERVED_MEM_HIGH - (value type = cuuint64_t) High watermark of backing memory allocated for the mempool since the last time it was reset. High watermark can only be reset to zero. + (value type = :py:obj:`~.cuuint64_t`) High watermark of backing memory allocated for the mempool since the last time it was reset. High watermark can only be reset to zero. .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_USED_MEM_CURRENT - (value type = cuuint64_t) Amount of memory from the pool that is currently in use by the application. + (value type = :py:obj:`~.cuuint64_t`) Amount of memory from the pool that is currently in use by the application. .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_USED_MEM_HIGH - (value type = cuuint64_t) High watermark of the amount of memory from the pool that was in use by the application since the last time it was reset. High watermark can only be reset to zero. + (value type = :py:obj:`~.cuuint64_t`) High watermark of the amount of memory from the pool that was in use by the application since the last time it was reset. High watermark can only be reset to zero. .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_ALLOCATION_TYPE - (value type = CUmemAllocationType) The allocation type of the mempool + (value type = :py:obj:`~.CUmemAllocationType`) The allocation type of the mempool .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_EXPORT_HANDLE_TYPES - (value type = CUmemAllocationHandleType) Available export handle types for the mempool. For imported pools this value is always CU_MEM_HANDLE_TYPE_NONE as an imported pool cannot be re-exported + (value type = :py:obj:`~.CUmemAllocationHandleType`) Available export handle types for the mempool. For imported pools this value is always CU_MEM_HANDLE_TYPE_NONE as an imported pool cannot be re-exported .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_LOCATION_ID @@ -5176,13 +5184,13 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_LOCATION_TYPE - (value type = CUmemLocationType) The location type for the mempool. For imported memory pools where the device is not directly visible to the importing process or pools imported via fabric handles across nodes this will be CU_MEM_LOCATION_TYPE_INVISIBLE. + (value type = :py:obj:`~.CUmemLocationType`) The location type for the mempool. For imported memory pools where the device is not directly visible to the importing process or pools imported via fabric handles across nodes this will be CU_MEM_LOCATION_TYPE_INVISIBLE. .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_MAX_POOL_SIZE - (value type = cuuint64_t) Maximum size of the pool in bytes, this value may be higher than what was initially passed to cuMemPoolCreate due to alignment requirements. A value of 0 indicates no maximum size. For CU_MEM_ALLOCATION_TYPE_MANAGED and IPC imported pools this value will be system dependent. + (value type = :py:obj:`~.cuuint64_t`) Maximum size of the pool in bytes, this value may be higher than what was initially passed to cuMemPoolCreate due to alignment requirements. A value of 0 indicates no maximum size. For CU_MEM_ALLOCATION_TYPE_MANAGED and IPC imported pools this value will be system dependent. .. autoattribute:: cuda.bindings.driver.CUmemPool_attribute.CU_MEMPOOL_ATTR_HW_DECOMPRESS_ENABLED @@ -5239,7 +5247,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUmemcpy3DOperandType.CU_MEMCPY_OPERAND_TYPE_ARRAY - Memcpy operand is a CUarray. + Memcpy operand is a :py:obj:`~.CUarray`. .. autoattribute:: cuda.bindings.driver.CUmemcpy3DOperandType.CU_MEMCPY_OPERAND_TYPE_MAX @@ -5249,25 +5257,25 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUgraphMem_attribute.CU_GRAPH_MEM_ATTR_USED_MEM_CURRENT - (value type = cuuint64_t) Amount of memory, in bytes, currently associated with graphs + (value type = :py:obj:`~.cuuint64_t`) Amount of memory, in bytes, currently associated with graphs .. autoattribute:: cuda.bindings.driver.CUgraphMem_attribute.CU_GRAPH_MEM_ATTR_USED_MEM_HIGH - (value type = cuuint64_t) High watermark of memory, in bytes, associated with graphs since the last time it was reset. High watermark can only be reset to zero. + (value type = :py:obj:`~.cuuint64_t`) High watermark of memory, in bytes, associated with graphs since the last time it was reset. High watermark can only be reset to zero. .. autoattribute:: cuda.bindings.driver.CUgraphMem_attribute.CU_GRAPH_MEM_ATTR_RESERVED_MEM_CURRENT - (value type = cuuint64_t) Amount of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator. + (value type = :py:obj:`~.cuuint64_t`) Amount of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator. .. autoattribute:: cuda.bindings.driver.CUgraphMem_attribute.CU_GRAPH_MEM_ATTR_RESERVED_MEM_HIGH - (value type = cuuint64_t) High watermark of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator. + (value type = :py:obj:`~.cuuint64_t`) High watermark of memory, in bytes, currently allocated for use by the CUDA graphs asynchronous allocator. .. autoclass:: cuda.bindings.driver.CUgraphChildGraphNodeOwnership @@ -5361,49 +5369,49 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_PARAMS - Adds CUDA_KERNEL_NODE_PARAMS values to output + Adds :py:obj:`~.CUDA_KERNEL_NODE_PARAMS` values to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_MEMCPY_NODE_PARAMS - Adds CUDA_MEMCPY3D values to output + Adds :py:obj:`~.CUDA_MEMCPY3D` values to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_MEMSET_NODE_PARAMS - Adds CUDA_MEMSET_NODE_PARAMS values to output + Adds :py:obj:`~.CUDA_MEMSET_NODE_PARAMS` values to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_HOST_NODE_PARAMS - Adds CUDA_HOST_NODE_PARAMS values to output + Adds :py:obj:`~.CUDA_HOST_NODE_PARAMS` values to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_EVENT_NODE_PARAMS - Adds CUevent handle from record and wait nodes to output + Adds :py:obj:`~.CUevent` handle from record and wait nodes to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_SIGNAL_NODE_PARAMS - Adds CUDA_EXT_SEM_SIGNAL_NODE_PARAMS values to output + Adds :py:obj:`~.CUDA_EXT_SEM_SIGNAL_NODE_PARAMS` values to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_EXT_SEMAS_WAIT_NODE_PARAMS - Adds CUDA_EXT_SEM_WAIT_NODE_PARAMS values to output + Adds :py:obj:`~.CUDA_EXT_SEM_WAIT_NODE_PARAMS` values to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_KERNEL_NODE_ATTRIBUTES - Adds CUkernelNodeAttrValue values to output + Adds :py:obj:`~.CUkernelNodeAttrValue` values to output .. autoattribute:: cuda.bindings.driver.CUgraphDebugDot_flags.CU_GRAPH_DEBUG_DOT_FLAGS_HANDLES @@ -5466,7 +5474,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUgraphInstantiate_flags.CUDA_GRAPH_INSTANTIATE_FLAG_UPLOAD - Automatically upload the graph after instantiation. Only supported by :py:obj:`~.cuGraphInstantiateWithParams`. The upload will be performed using the stream provided in `instantiateParams`. + Automatically upload the graph after instantiation. Only supported by :py:obj:`~.cuGraphInstantiateWithParams`. The upload will be performed using the stream provided in ``instantiateParams``. .. autoattribute:: cuda.bindings.driver.CUgraphInstantiate_flags.CUDA_GRAPH_INSTANTIATE_FLAG_DEVICE_LAUNCH @@ -6441,7 +6449,7 @@ Data types used by CUDA driver - Stream handle that can be passed as a CUstream to use an implicit stream with legacy synchronization behavior. + Stream handle that can be passed as a :py:obj:`~.CUstream` to use an implicit stream with legacy synchronization behavior. @@ -6453,7 +6461,7 @@ Data types used by CUDA driver - Stream handle that can be passed as a CUstream to use an implicit stream with per-thread synchronization behavior. + Stream handle that can be passed as a :py:obj:`~.CUstream` to use an implicit stream with per-thread synchronization behavior. @@ -6535,19 +6543,19 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_SKIP_NVSCIBUF_MEMSYNC - When the `flags` parameter of :py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS` contains this flag, it indicates that signaling an external semaphore object should skip performing appropriate memory synchronization operations over all the external memory objects that are imported as :py:obj:`~.CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF`, which otherwise are performed by default to ensure data coherency with other importers of the same NvSciBuf memory objects. + When the ``flags`` parameter of :py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_SIGNAL_PARAMS` contains this flag, it indicates that signaling an external semaphore object should skip performing appropriate memory synchronization operations over all the external memory objects that are imported as :py:obj:`~.CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF`, which otherwise are performed by default to ensure data coherency with other importers of the same NvSciBuf memory objects. .. autoattribute:: cuda.bindings.driver.CUDA_EXTERNAL_SEMAPHORE_WAIT_SKIP_NVSCIBUF_MEMSYNC - When the `flags` parameter of :py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS` contains this flag, it indicates that waiting on an external semaphore object should skip performing appropriate memory synchronization operations over all the external memory objects that are imported as :py:obj:`~.CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF`, which otherwise are performed by default to ensure data coherency with other importers of the same NvSciBuf memory objects. + When the ``flags`` parameter of :py:obj:`~.CUDA_EXTERNAL_SEMAPHORE_WAIT_PARAMS` contains this flag, it indicates that waiting on an external semaphore object should skip performing appropriate memory synchronization operations over all the external memory objects that are imported as :py:obj:`~.CU_EXTERNAL_MEMORY_HANDLE_TYPE_NVSCIBUF`, which otherwise are performed by default to ensure data coherency with other importers of the same NvSciBuf memory objects. .. autoattribute:: cuda.bindings.driver.CUDA_NVSCISYNC_ATTR_SIGNAL - When `flags` of :py:obj:`~.cuDeviceGetNvSciSyncAttributes` is set to this, it indicates that application needs signaler specific NvSciSyncAttr to be filled by :py:obj:`~.cuDeviceGetNvSciSyncAttributes`. + When ``flags`` of :py:obj:`~.cuDeviceGetNvSciSyncAttributes` is set to this, it indicates that application needs signaler specific NvSciSyncAttr to be filled by :py:obj:`~.cuDeviceGetNvSciSyncAttributes`. .. autoattribute:: cuda.bindings.driver.CUDA_NVSCISYNC_ATTR_WAIT - When `flags` of :py:obj:`~.cuDeviceGetNvSciSyncAttributes` is set to this, it indicates that application needs waiter specific NvSciSyncAttr to be filled by :py:obj:`~.cuDeviceGetNvSciSyncAttributes`. + When ``flags`` of :py:obj:`~.cuDeviceGetNvSciSyncAttributes` is set to this, it indicates that application needs waiter specific NvSciSyncAttr to be filled by :py:obj:`~.cuDeviceGetNvSciSyncAttributes`. .. autoattribute:: cuda.bindings.driver.CU_MEM_CREATE_USAGE_TILE_POOL @@ -6571,7 +6579,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CUDA_ARRAY3D_LAYERED - If set, the CUDA array is a collection of layers, where each layer is either a 1D or a 2D array and the Depth member of CUDA_ARRAY3D_DESCRIPTOR specifies the number of layers, not the depth of a 3D array. + If set, the CUDA array is a collection of layers, where each layer is either a 1D or a 2D array and the Depth member of :py:obj:`~.CUDA_ARRAY3D_DESCRIPTOR` specifies the number of layers, not the depth of a 3D array. .. autoattribute:: cuda.bindings.driver.CUDA_ARRAY3D_2DARRAY @@ -6643,7 +6651,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CU_LAUNCH_PARAM_END - End of array terminator for the `extra` parameter to :py:obj:`~.cuLaunchKernel` + End of array terminator for the ``extra`` parameter to :py:obj:`~.cuLaunchKernel` .. autoattribute:: cuda.bindings.driver.CU_LAUNCH_PARAM_BUFFER_POINTER_AS_INT @@ -6651,7 +6659,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CU_LAUNCH_PARAM_BUFFER_POINTER - Indicator that the next value in the `extra` parameter to :py:obj:`~.cuLaunchKernel` will be a pointer to a buffer containing all kernel parameters used for launching kernel `f`. This buffer needs to honor all alignment/padding requirements of the individual parameters. If :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_SIZE` is not also specified in the `extra` array, then :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER` will have no effect. + Indicator that the next value in the ``extra`` parameter to :py:obj:`~.cuLaunchKernel` will be a pointer to a buffer containing all kernel parameters used for launching kernel ``f``. This buffer needs to honor all alignment/padding requirements of the individual parameters. If :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_SIZE` is not also specified in the ``extra`` array, then :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER` will have no effect. .. autoattribute:: cuda.bindings.driver.CU_LAUNCH_PARAM_BUFFER_SIZE_AS_INT @@ -6659,7 +6667,7 @@ Data types used by CUDA driver .. autoattribute:: cuda.bindings.driver.CU_LAUNCH_PARAM_BUFFER_SIZE - Indicator that the next value in the `extra` parameter to :py:obj:`~.cuLaunchKernel` will be a pointer to a size_t which contains the size of the buffer specified with :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER`. It is required that :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER` also be specified in the `extra` array if the value associated with :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_SIZE` is not zero. + Indicator that the next value in the ``extra`` parameter to :py:obj:`~.cuLaunchKernel` will be a pointer to a size_t which contains the size of the buffer specified with :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER`. It is required that :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_POINTER` also be specified in the ``extra`` array if the value associated with :py:obj:`~.CU_LAUNCH_PARAM_BUFFER_SIZE` is not zero. .. autoattribute:: cuda.bindings.driver.CU_PARAM_TR_DEFAULT @@ -6685,6 +6693,10 @@ Data types used by CUDA driver Error Handling -------------- +MANBRIEF error handling functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the error handling functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuGetErrorString @@ -6693,6 +6705,10 @@ This section describes the error handling functions of the low-level CUDA driver Initialization -------------- +MANBRIEF initialization functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the initialization functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuInit @@ -6700,6 +6716,10 @@ This section describes the initialization functions of the low-level CUDA driver Version Management ------------------ +MANBRIEF version management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the version management functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuDriverGetVersion @@ -6707,6 +6727,10 @@ This section describes the version management functions of the low-level CUDA dr Device Management ----------------- +MANBRIEF device management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the device management functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuDeviceGet @@ -6728,6 +6752,10 @@ This section describes the device management functions of the low-level CUDA dri Primary Context Management -------------------------- +MANBRIEF primary context management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the primary context management functions of the low-level CUDA driver application programming interface. @@ -6743,6 +6771,10 @@ The primary context is unique per device and shared with the CUDA runtime API. T Context Management ------------------ +MANBRIEF context management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the context management functions of the low-level CUDA driver application programming interface. @@ -6776,6 +6808,10 @@ Please note that some functions are described in Primary Context Management sect Module Management ----------------- +MANBRIEF module management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the module management functions of the low-level CUDA driver application programming interface. .. autoclass:: cuda.bindings.driver.CUmoduleLoadingMode @@ -6810,6 +6846,10 @@ This section describes the module management functions of the low-level CUDA dri Library Management ------------------ +MANBRIEF library management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the library management functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuLibraryLoadData @@ -6834,6 +6874,10 @@ This section describes the library management functions of the low-level CUDA dr Memory Management ----------------- +MANBRIEF memory management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the memory management functions of the low-level CUDA driver application programming interface. .. autoclass:: cuda.bindings.driver.CUmemDecompressParams_st @@ -6944,6 +6988,10 @@ This section describes the memory management functions of the low-level CUDA dri Virtual Memory Management ------------------------- +MANBRIEF virtual memory management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the virtual memory management functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuMemAddressReserve @@ -6964,16 +7012,18 @@ This section describes the virtual memory management functions of the low-level Stream Ordered Memory Allocator ------------------------------- -This section describes the stream ordered memory allocator exposed by the low-level CUDA driver application programming interface. +MANBRIEF Functions for performing allocation and free operations in stream order. Functions for controlling the behavior of the underlying allocator. (CURRENT_FILE) ENDMANBRIEF +This section describes the stream ordered memory allocator exposed by the low-level CUDA driver application programming interface. -**overview** +**overview** + The asynchronous allocator allows the user to allocate and free in stream order. All asynchronous accesses of the allocation must happen between the stream executions of the allocation and the free. If the memory is accessed outside of the promised stream order, a use before allocation / use after free error will cause undefined behavior. The allocator is free to reallocate the memory as long as it can guarantee that compliant memory accesses will not overlap temporally. The allocator may refer to internal stream ordering as well as inter-stream dependencies (such as CUDA events and null stream dependencies) when establishing the temporal guarantee. The allocator may also insert inter-stream dependencies to establish the temporal guarantee. @@ -6984,8 +7034,6 @@ The allocator is free to reallocate the memory as long as it can guarantee that **Supported Platforms** - - Whether or not a device supports the integrated stream ordered memory allocator may be queried by calling cuDeviceGetAttribute() with the device attribute CU_DEVICE_ATTRIBUTE_MEMORY_POOLS_SUPPORTED .. autofunction:: cuda.bindings.driver.cuMemFreeAsync @@ -7009,16 +7057,18 @@ Whether or not a device supports the integrated stream ordered memory allocator Multicast Object Management --------------------------- -This section describes the CUDA multicast object operations exposed by the low-level CUDA driver application programming interface. +MANBRIEF Functions for creating multicast objects, adding devices to them and binding/unbinding memory (CURRENT_FILE) ENDMANBRIEF +This section describes the CUDA multicast object operations exposed by the low-level CUDA driver application programming interface. -**overview** +**overview** + A multicast object created via cuMulticastCreate enables certain memory operations to be broadcast to a team of devices. Devices can be added to a multicast object via cuMulticastAddDevice. Memory can be bound on each participating device via cuMulticastBindMem, cuMulticastBindMem_v2, cuMulticastBindAddr, or cuMulticastBindAddr_v2. Multicast objects can be mapped into a device's virtual address space using the virtual memmory management APIs (see cuMemMap and cuMemSetAccess). @@ -7027,8 +7077,6 @@ A multicast object created via cuMulticastCreate enables certain memory operatio **Supported Platforms** - - Support for multicast on a specific device can be queried using the device attribute CU_DEVICE_ATTRIBUTE_MULTICAST_SUPPORTED .. autofunction:: cuda.bindings.driver.cuMulticastCreate @@ -7043,6 +7091,10 @@ Support for multicast on a specific device can be queried using the device attri Logical Endpoint ---------------- +MANBRIEF logical endpoint functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the logical endpoint functions of the low-level CUDA driver application programming interface. .. autoclass:: cuda.bindings.driver.CUlogicalEndpointFabricHandle_st @@ -7096,15 +7148,17 @@ This section describes the logical endpoint functions of the low-level CUDA driv Unified Addressing ------------------ -This section describes the unified addressing functions of the low-level CUDA driver application programming interface. +MANBRIEF unified addressing functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + +This section describes the unified addressing functions of the low-level CUDA driver application programming interface. -**Overview** +**Overview** CUDA devices can share a unified address space with the host. For these devices there is no distinction between a device pointer and a host pointer -- the same pointer value may be used to access memory from the host program and from a kernel running on the device (with exceptions enumerated below). @@ -7114,8 +7168,6 @@ CUDA devices can share a unified address space with the host. For these devices **Supported Platforms** - - Whether or not a device supports unified addressing may be queried by calling cuDeviceGetAttribute() with the device attribute CU_DEVICE_ATTRIBUTE_UNIFIED_ADDRESSING. Unified addressing is automatically enabled in 64-bit processes @@ -7126,8 +7178,6 @@ Unified addressing is automatically enabled in 64-bit processes **Looking Up Information from Pointer Values** - - It is possible to look up information about the memory which backs a pointer value. For instance, one may want to know if a pointer points to host or device memory. As another example, in the case of device memory, one may want to know on which CUDA device the memory resides. These properties may be queried using the function cuPointerGetAttribute() Since pointers are unique, it is not necessary to specify information about the pointers specified to the various copy functions in the CUDA API. The function cuMemcpy() may be used to perform a copy between two pointers, ignoring whether they point to host or device memory (making cuMemcpyHtoD(), cuMemcpyDtoD(), and cuMemcpyDtoH() unnecessary for devices supporting unified addressing). For multidimensional copies, the memory type CU_MEMORYTYPE_UNIFIED may be used to specify that the CUDA driver should infer the location of the pointer from its value. @@ -7138,8 +7188,6 @@ Since pointers are unique, it is not necessary to specify information about the **Automatic Mapping of Host Allocated Host Memory** - - All host memory allocated in all contexts using cuMemAllocHost() and cuMemHostAlloc() is always directly accessible from all contexts on all devices that support unified addressing. This is the case regardless of whether or not the flags CU_MEMHOSTALLOC_PORTABLE and CU_MEMHOSTALLOC_DEVICEMAP are specified. The pointer value through which allocated host memory may be accessed in kernels on all devices that support unified addressing is the same as the pointer value through which that memory is accessed on the host, so it is not necessary to call cuMemHostGetDevicePointer() to get the device pointer for these allocations. @@ -7152,8 +7200,6 @@ Note that this is not the case for memory allocated using the flag CU_MEMHOSTALL **Automatic Registration of Peer Memory** - - Upon enabling direct access from a context that supports unified addressing to another peer context that supports unified addressing using cuCtxEnablePeerAccess() all memory allocated in the peer context using cuMemAlloc() and cuMemAllocPitch() will immediately be accessible by the current context. The device pointer value through which any peer memory may be accessed in the current context is the same pointer value through which that memory may be accessed in the peer context. @@ -7162,8 +7208,6 @@ Upon enabling direct access from a context that supports unified addressing to a **Exceptions, Disjoint Addressing** - - Not all memory may be accessed on devices through the same pointer value through which they are accessed on the host. These exceptions are host memory registered using cuMemHostRegister() and host memory allocated using the flag CU_MEMHOSTALLOC_WRITECOMBINED. For these exceptions, there exists a distinct host and device address for the memory. The device address is guaranteed to not overlap any valid host pointer range and is guaranteed to have the same value across all contexts that support unified addressing. This device address may be queried using cuMemHostGetDevicePointer() when a context using unified addressing is current. Either the host or the unified device pointer value may be used to refer to this memory through cuMemcpy() and similar functions using the CU_MEMORYTYPE_UNIFIED memory type. @@ -7182,6 +7226,10 @@ This device address may be queried using cuMemHostGetDevicePointer() when a cont Stream Management ----------------- +MANBRIEF stream management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the stream management functions of the low-level CUDA driver application programming interface. .. autoclass:: cuda.bindings.driver.CUgraphRecaptureStatus @@ -7235,6 +7283,10 @@ This section describes the stream management functions of the low-level CUDA dri Event Management ---------------- +MANBRIEF event management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the event management functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuEventCreate @@ -7248,6 +7300,10 @@ This section describes the event management functions of the low-level CUDA driv External Resource Interoperability ---------------------------------- +MANBRIEF External resource interoperability functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the external resource interoperability functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuImportExternalMemory @@ -7262,6 +7318,10 @@ This section describes the external resource interoperability functions of the l Stream Memory Operations ------------------------ +MANBRIEF Stream memory operations of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the stream memory operations of the low-level CUDA driver application programming interface. @@ -7297,6 +7357,10 @@ Warning: Improper use of these APIs may deadlock the application. Synchronizatio Execution Control ----------------- +MANBRIEF execution control functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the execution control functions of the low-level CUDA driver application programming interface. .. autoclass:: cuda.bindings.driver.CUfunctionLoadingState @@ -7327,6 +7391,10 @@ This section describes the execution control functions of the low-level CUDA dri Graph Management ---------------- +MANBRIEF graph management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the graph management functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuGraphCreate @@ -7421,6 +7489,10 @@ This section describes the graph management functions of the low-level CUDA driv Occupancy --------- +MANBRIEF occupancy calculation functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the occupancy calculation functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuOccupancyMaxActiveBlocksPerMultiprocessor @@ -7434,6 +7506,10 @@ This section describes the occupancy calculation functions of the low-level CUDA Texture Object Management ------------------------- +MANBRIEF texture object management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the texture object management functions of the low-level CUDA driver application programming interface. The texture object API is only supported on devices of compute capability 3.0 or higher. .. autofunction:: cuda.bindings.driver.cuTexObjectCreate @@ -7445,6 +7521,10 @@ This section describes the texture object management functions of the low-level Surface Object Management ------------------------- +MANBRIEF surface object management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the surface object management functions of the low-level CUDA driver application programming interface. The surface object API is only supported on devices of compute capability 3.0 or higher. .. autofunction:: cuda.bindings.driver.cuSurfObjectCreate @@ -7454,6 +7534,10 @@ This section describes the surface object management functions of the low-level Tensor Map Object Managment --------------------------- +MANBRIEF tensor map object management functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the tensor map object management functions of the low-level CUDA driver application programming interface. The tensor core API is only supported on devices of compute capability 9.0 or higher. .. autofunction:: cuda.bindings.driver.cuTensorMapEncodeTiled @@ -7464,6 +7548,10 @@ This section describes the tensor map object management functions of the low-lev Peer Context Memory Access -------------------------- +MANBRIEF direct peer context memory access functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the direct peer context memory access functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuDeviceCanAccessPeer @@ -7475,6 +7563,10 @@ This section describes the direct peer context memory access functions of the lo Graphics Interoperability ------------------------- +MANBRIEF graphics interoperability functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the graphics interoperability functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuGraphicsUnregisterResource @@ -7488,6 +7580,10 @@ This section describes the graphics interoperability functions of the low-level Driver Entry Point Access ------------------------- +MANBRIEF driver entry point access functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the driver entry point access functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuGetProcAddress @@ -7495,6 +7591,10 @@ This section describes the driver entry point access functions of the low-level Coredump Attributes Control API ------------------------------- +MANBRIEF coredump attribute control functions for the low-level CUDA API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the coredump attribute control functions of the low-level CUDA driver application programming interface. .. autoclass:: cuda.bindings.driver.CUcoredumpSettings @@ -7573,6 +7673,10 @@ This section describes the coredump attribute control functions of the low-level Green Contexts -------------- +MANBRIEF Driver level API for creation and manipulation of green contexts (CURRENT_FILE) ENDMANBRIEF + + + This section describes the APIs for creation and manipulation of green contexts in the CUDA driver. Green contexts are a lightweight alternative to traditional contexts, that can be used to select a subset of device resources. This allows the developer to, for example, select SMs from distinct spatial partitions of the GPU and target them via CUDA stream operations, kernel launches, etc. @@ -7693,9 +7797,9 @@ Workqueues -For ``CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG``\ , the resource specifies the expected maximum number of concurrent stream-ordered workloads via the ``wqConcurrencyLimit``\ field. The ``sharingScope``\ field determines how workqueue resources are shared: +For ``CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG``, the resource specifies the expected maximum number of concurrent stream-ordered workloads via the ``wqConcurrencyLimit`` field. The ``sharingScope`` field determines how workqueue resources are shared: -- ``CU_WORKQUEUE_SCOPE_DEVICE_CTX:``\ Use all shared workqueue resources across all contexts (default driver behavior). +- ``CU_WORKQUEUE_SCOPE_DEVICE_CTX:`` Use all shared workqueue resources across all contexts (default driver behavior). @@ -7703,7 +7807,7 @@ For ``CU_DEV_RESOURCE_TYPE_WORKQUEUE_CONFIG``\ , the resource specifies the expe -- ``CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED:``\ When possible, use non-overlapping workqueue resources with other balanced green contexts. +- ``CU_WORKQUEUE_SCOPE_GREEN_CTX_BALANCED:`` When possible, use non-overlapping workqueue resources with other balanced green contexts. @@ -7719,7 +7823,7 @@ The maximum concurrency limit depends on ::CUDA_DEVICE_MAX_CONNECTIONS and can b -For ``CU_DEV_RESOURCE_TYPE_WORKQUEUE``\ , the resource represents a pre-existing workqueue that can be retrieved from existing contexts or green contexts. This allows reusing workqueue resources across different green contexts. +For ``CU_DEV_RESOURCE_TYPE_WORKQUEUE``, the resource represents a pre-existing workqueue that can be retrieved from existing contexts or green contexts. This allows reusing workqueue resources across different green contexts. @@ -7737,7 +7841,7 @@ Even if the green contexts have disjoint SM partitions, it is not guaranteed tha Additionally, there are two known scenarios, where its possible for the workload to run on more SMs than was provisioned (but never less). -- On Volta+ MPS: When ``CUDA_MPS_ACTIVE_THREAD_PERCENTAGE``\ is used, the set of SMs that are used for running kernels can be scaled up to the value of SMs used for the MPS client. +- On Volta+ MPS: When ``CUDA_MPS_ACTIVE_THREAD_PERCENTAGE`` is used, the set of SMs that are used for running kernels can be scaled up to the value of SMs used for the MPS client. @@ -7845,6 +7949,10 @@ Additionally, there are two known scenarios, where its possible for the workload Error Log Management Functions ------------------------------ +MANBRIEF error log management functions for the low-level CUDA API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the error log management functions of the low-level CUDA driver application programming interface. .. autoclass:: cuda.bindings.driver.CUlogLevel @@ -7870,7 +7978,7 @@ CUDA API versioning support - +MANBRIEF CUDA checkpoint and restore functionality of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF @@ -7894,6 +8002,10 @@ Checkpoint and restore capabilities are currently restricted to Linux. Profiler Control ---------------- +MANBRIEF profiler control functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the profiler control functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuProfilerStart @@ -7902,6 +8014,10 @@ This section describes the profiler control functions of the low-level CUDA driv EGL Interoperability -------------------- +MANBRIEF EGL interoperability functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the EGL interoperability functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuGraphicsEGLRegisterImage @@ -7920,6 +8036,10 @@ This section describes the EGL interoperability functions of the low-level CUDA OpenGL Interoperability ----------------------- +MANBRIEF OpenGL interoperability functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the OpenGL interoperability functions of the low-level CUDA driver application programming interface. Note that mapping of OpenGL resources is performed with the graphics API agnostic, resource mapping interface described in Graphics Interoperability. .. autoclass:: cuda.bindings.driver.CUGLDeviceList @@ -7948,6 +8068,10 @@ This section describes the OpenGL interoperability functions of the low-level CU VDPAU Interoperability ---------------------- +MANBRIEF VDPAU interoperability functions of the low-level CUDA driver API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the VDPAU interoperability functions of the low-level CUDA driver application programming interface. .. autofunction:: cuda.bindings.driver.cuVDPAUGetDevice diff --git a/cuda_bindings/docs/source/module/runtime.rst b/cuda_bindings/docs/source/module/runtime.rst index ce6d98d0f09..14572253f71 100644 --- a/cuda_bindings/docs/source/module/runtime.rst +++ b/cuda_bindings/docs/source/module/runtime.rst @@ -1,4 +1,4 @@ -.. SPDX-FileCopyrightText: Copyright (c) 2021-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. +.. SPDX-FileCopyrightText: Copyright (c) 2021-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. .. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE ------- @@ -161,13 +161,21 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorInvalidHostPointer - This indicates that at least one host pointer passed to the API call is not a valid host pointer. [Deprecated] + This indicates that at least one host pointer passed to the API call is not a valid host pointer. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorInvalidDevicePointer - This indicates that at least one device pointer passed to the API call is not a valid device pointer. [Deprecated] + This indicates that at least one device pointer passed to the API call is not a valid device pointer. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorInvalidTexture @@ -197,25 +205,41 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorAddressOfConstant - This indicated that the user has taken the address of a constant variable, which was forbidden up until the CUDA 3.1 release. [Deprecated] + This indicated that the user has taken the address of a constant variable, which was forbidden up until the CUDA 3.1 release. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorTextureFetchFailed - This indicated that a texture fetch was not able to be performed. This was previously used for device emulation of texture operations. [Deprecated] + This indicated that a texture fetch was not able to be performed. This was previously used for device emulation of texture operations. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorTextureNotBound - This indicated that a texture was not bound for access. This was previously used for device emulation of texture operations. [Deprecated] + This indicated that a texture was not bound for access. This was previously used for device emulation of texture operations. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorSynchronizationError - This indicated that a synchronization operation had failed. This was previously used for some device emulation functions. [Deprecated] + This indicated that a synchronization operation had failed. This was previously used for some device emulation functions. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorInvalidFilterSetting @@ -233,19 +257,31 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorMixedDeviceExecution - Mixing of device and device emulation code was not allowed. [Deprecated] + Mixing of device and device emulation code was not allowed. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorNotYetImplemented - This indicates that the API call is not yet implemented. Production releases of CUDA will never return this error. [Deprecated] + This indicates that the API call is not yet implemented. Production releases of CUDA will never return this error. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorMemoryValueTooLarge - This indicated that an emulated device pointer exceeded the 32-bit address range. [Deprecated] + This indicated that an emulated device pointer exceeded the 32-bit address range. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorStubLibrary @@ -299,7 +335,7 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorIncompatibleDriverContext - This indicates that the current context is not compatible with this the CUDA Runtime. This can only occur if you are using CUDA Runtime/Driver interoperability and have created an existing Driver context using the driver API. The Driver context may be incompatible either because the Driver context was created using an older version of the API, because the Runtime API call expects a primary driver context and the Driver context is not primary, or because the Driver context has been destroyed. Please see `Interactions with the CUDA Driver API`_ for more information. + This indicates that the current context is not compatible with this the CUDA Runtime. This can only occur if you are using CUDA Runtime/Driver interoperability and have created an existing Driver context using the driver API. The Driver context may be incompatible either because the Driver context was created using an older version of the API, because the Runtime API call expects a primary driver context and the Driver context is not primary, or because the Driver context has been destroyed. Please see :py:obj:`~.Interactions with the CUDA Driver API` for more information. .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorMissingConfiguration @@ -311,7 +347,11 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorPriorLaunchFailure - This indicated that a previous kernel launch failed. This was previously used for device emulation of kernel launches. [Deprecated] + This indicated that a previous kernel launch failed. This was previously used for device emulation of kernel launches. + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaError_t.cudaErrorLaunchMaxDepthExceeded @@ -2870,13 +2910,13 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaMemPoolAttr.cudaMemPoolAttrAllocationType - (value type = cudaMemAllocationType) The allocation type of the mempool + (value type = :py:obj:`~.cudaMemAllocationType`) The allocation type of the mempool .. autoattribute:: cuda.bindings.runtime.cudaMemPoolAttr.cudaMemPoolAttrExportHandleTypes - (value type = cudaMemAllocationHandleType) Available export handle types for the mempool. For imported pools this value is always cudaMemHandleTypeNone as an imported pool cannot be re-exported + (value type = :py:obj:`~.cudaMemAllocationHandleType`) Available export handle types for the mempool. For imported pools this value is always cudaMemHandleTypeNone as an imported pool cannot be re-exported .. autoattribute:: cuda.bindings.runtime.cudaMemPoolAttr.cudaMemPoolAttrLocationId @@ -2888,7 +2928,7 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaMemPoolAttr.cudaMemPoolAttrLocationType - (value type = cudaMemLocationType) The location type for the mempool. For imported memory pools where the device is not directly visible to the importing process or pools imported via fabric handles across nodes this will be cudaMemLocationTypeInvisible + (value type = :py:obj:`~.cudaMemLocationType`) The location type for the mempool. For imported memory pools where the device is not directly visible to the importing process or pools imported via fabric handles across nodes this will be cudaMemLocationTypeInvisible .. autoattribute:: cuda.bindings.runtime.cudaMemPoolAttr.cudaMemPoolAttrMaxPoolSize @@ -3009,7 +3049,7 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaMemAllocationHandleType.cudaMemHandleTypeFabric - Allows a fabric handle to be used for exporting. (cudaMemFabricHandle_t) + Allows a fabric handle to be used for exporting. (:py:obj:`~.cudaMemFabricHandle_t`) .. autoclass:: cuda.bindings.runtime.cudaGraphMemAttributeType @@ -3384,7 +3424,7 @@ Data types used by CUDA Runtime Pointer to a buffer in which to print any log messages that are informational in nature (the buffer size is specified via option :py:obj:`~.cudaJitInfoLogBufferSizeBytes`) - Option type: char * + Option type: char \* Applies to: compiler and linker @@ -3406,7 +3446,7 @@ Data types used by CUDA Runtime Pointer to a buffer in which to print any log messages that reflect errors (the buffer size is specified via option :py:obj:`~.cudaJitErrorLogBufferSizeBytes`) - Option type: char * + Option type: char \* Applies to: compiler and linker @@ -3524,7 +3564,7 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaLibraryOption.cudaLibraryBinaryIsPreserved - Specifes that the argument `code` passed to :py:obj:`~.cudaLibraryLoadData()` will be preserved. Specifying this option will let the driver know that `code` can be accessed at any point until :py:obj:`~.cudaLibraryUnload()`. The default behavior is for the driver to allocate and maintain its own copy of `code`. Note that this is only a memory usage optimization hint and the driver can choose to ignore it if required. Specifying this option with :py:obj:`~.cudaLibraryLoadFromFile()` is invalid and will return :py:obj:`~.cudaErrorInvalidValue`. + Specifes that the argument ``code`` passed to :py:obj:`~.cudaLibraryLoadData()` will be preserved. Specifying this option will let the driver know that ``code`` can be accessed at any point until :py:obj:`~.cudaLibraryUnload()`. The default behavior is for the driver to allocate and maintain its own copy of ``code``. Note that this is only a memory usage optimization hint and the driver can choose to ignore it if required. Specifying this option with :py:obj:`~.cudaLibraryLoadFromFile()` is invalid and will return :py:obj:`~.cudaErrorInvalidValue`. .. autoclass:: cuda.bindings.runtime.cudaJit_CacheMode @@ -3594,13 +3634,13 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaKernelFunctionType.cudaKernelFunctionTypeKernel - Function handle is a cudaKernel_t + Function handle is a :py:obj:`~.cudaKernel_t` .. autoattribute:: cuda.bindings.runtime.cudaKernelFunctionType.cudaKernelFunctionTypeFunction - Function handle is a cudaFunction_t + Function handle is a :py:obj:`~.cudaFunction_t` .. autoclass:: cuda.bindings.runtime.cudaGraphConditionalHandleFlags @@ -3614,7 +3654,7 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaGraphConditionalNodeType.cudaGraphCondTypeIf - Conditional 'if/else' Node. Body[0] executed if condition is non-zero. If `size` == 2, an optional ELSE graph is created and this is executed if the condition is zero. + Conditional 'if/else' Node. Body[0] executed if condition is non-zero. If ``size`` == 2, an optional ELSE graph is created and this is executed if the condition is zero. .. autoattribute:: cuda.bindings.runtime.cudaGraphConditionalNodeType.cudaGraphCondTypeWhile @@ -3778,7 +3818,7 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaGraphDependencyType.cudaGraphDependencyTypeProgrammatic - This dependency type allows the downstream node to use `cudaGridDependencySynchronize()`. It may only be used between kernel nodes, and must be used with either the :py:obj:`~.cudaGraphKernelNodePortProgrammatic` or :py:obj:`~.cudaGraphKernelNodePortLaunchCompletion` outgoing port. + This dependency type allows the downstream node to use ``cudaGridDependencySynchronize()``. It may only be used between kernel nodes, and must be used with either the :py:obj:`~.cudaGraphKernelNodePortProgrammatic` or :py:obj:`~.cudaGraphKernelNodePortLaunchCompletion` outgoing port. .. autoclass:: cuda.bindings.runtime.cudaGraphExecUpdateResult @@ -3970,7 +4010,7 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsEventNodeParams - Adds cudaEvent_t handle from record and wait nodes to output + Adds :py:obj:`~.cudaEvent_t` handle from record and wait nodes to output .. autoattribute:: cuda.bindings.runtime.cudaGraphDebugDotFlags.cudaGraphDebugDotFlagsExtSemasSignalNodeParams @@ -4017,7 +4057,7 @@ Data types used by CUDA Runtime :py:obj:`~.cudaGraphInstantiateWithParams`. The upload will be performed using the - stream provided in `instantiateParams`. + stream provided in ``instantiateParams``. .. autoattribute:: cuda.bindings.runtime.cudaGraphInstantiateFlags.cudaGraphInstantiateFlagDeviceLaunch @@ -4144,7 +4184,7 @@ Data types used by CUDA Runtime Each type of cluster will have its enumeration / coordinate setup as if the grid consists solely of its type of cluster. For example, if the preferred substitute cluster dimensions double the regular cluster dimensions, there might be simultaneously a regular cluster indexed at (1,0,0), and a preferred cluster indexed at (1,0,0). In this example, the preferred substitute cluster (1,0,0) replaces regular clusters (2,0,0) and (3,0,0) and groups their blocks. - This attribute will only take effect when a regular cluster dimension has been specified. The preferred substitute cluster dimension must be an integer multiple greater than zero of the regular cluster dimension and must divide the grid. It must also be no more than `maxBlocksPerCluster`, if it is set in the kernel's `__launch_bounds__`. Otherwise it must be less than the maximum value the driver can support. Otherwise, setting this attribute to a value physically unable to fit on any particular device is permitted. + This attribute will only take effect when a regular cluster dimension has been specified. The preferred substitute cluster dimension must be an integer multiple greater than zero of the regular cluster dimension and must divide the grid. It must also be no more than ``maxBlocksPerCluster``, if it is set in the kernel's ``__launch_bounds__``. Otherwise it must be less than the maximum value the driver can support. Otherwise, setting this attribute to a value physically unable to fit on any particular device is permitted. .. autoattribute:: cuda.bindings.runtime.cudaLaunchAttributeID.cudaLaunchAttributeLaunchCompletionEvent @@ -4154,7 +4194,7 @@ Data types used by CUDA Runtime Nominally, the event is triggered once all blocks of the kernel have begun execution. Currently this is a best effort. If a kernel B has a launch completion dependency on a kernel A, B may wait until A is complete. Alternatively, blocks of B may begin before all blocks of A have begun, for example if B can claim execution resources unavailable to A (e.g. they run on different GPUs) or if B is a higher priority than A. Exercise caution if such an ordering inversion could lead to deadlock. - A launch completion event is nominally similar to a programmatic event with `triggerAtBlockStart` set except that it is not visible to `cudaGridDependencySynchronize()` and can be used with compute capability less than 9.0. + A launch completion event is nominally similar to a programmatic event with ``triggerAtBlockStart`` set except that it is not visible to ``cudaGridDependencySynchronize()`` and can be used with compute capability less than 9.0. The event supplied must not be an interprocess or interop event. The event must disable timing (i.e. must be created with the :py:obj:`~.cudaEventDisableTiming` flag set). @@ -5136,7 +5176,7 @@ Data types used by CUDA Runtime - Stream handle that can be passed as a cudaStream_t to use an implicit stream with legacy synchronization behavior. + Stream handle that can be passed as a :py:obj:`~.cudaStream_t` to use an implicit stream with legacy synchronization behavior. @@ -5148,7 +5188,7 @@ Data types used by CUDA Runtime - Stream handle that can be passed as a cudaStream_t to use an implicit stream with per-thread synchronization behavior. + Stream handle that can be passed as a :py:obj:`~.cudaStream_t` to use an implicit stream with per-thread synchronization behavior. @@ -5204,7 +5244,11 @@ Data types used by CUDA Runtime .. autoattribute:: cuda.bindings.runtime.cudaDeviceBlockingSync - Device flag - Use blocking synchronization [Deprecated] + Device flag - Use blocking synchronization + + + + [Deprecated] .. autoattribute:: cuda.bindings.runtime.cudaDeviceScheduleMask @@ -5389,7 +5433,7 @@ impl_private - +MANBRIEF device management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF @@ -5433,6 +5477,10 @@ This section describes the device management functions of the CUDA runtime appli Error Handling -------------- +MANBRIEF error handling functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the error handling functions of the CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaGetLastError @@ -5443,6 +5491,10 @@ This section describes the error handling functions of the CUDA runtime applicat Stream Management ----------------- +MANBRIEF stream management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the stream management functions of the CUDA runtime application programming interface. .. autoclass:: cuda.bindings.runtime.cudaGraphRecaptureCallbackData @@ -5477,6 +5529,10 @@ This section describes the stream management functions of the CUDA runtime appli Event Management ---------------- +MANBRIEF event management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the event management functions of the CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaEventCreate @@ -5491,6 +5547,10 @@ This section describes the event management functions of the CUDA runtime applic External Resource Interoperability ---------------------------------- +MANBRIEF External resource interoperability functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the external resource interoperability functions of the CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaImportExternalMemory @@ -5505,6 +5565,10 @@ This section describes the external resource interoperability functions of the C Execution Control ----------------- +MANBRIEF execution control functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the execution control functions of the CUDA runtime application programming interface. @@ -5521,6 +5585,10 @@ Some functions have overloaded C++ API template versions documented separately i Occupancy --------- +MANBRIEF occupancy calculation functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the occupancy calculation functions of the CUDA runtime application programming interface. @@ -5538,6 +5606,10 @@ See cudaOccupancyMaxPotentialBlockSize (C++ API), cudaOccupancyMaxPotentialBlock Memory Management ----------------- +MANBRIEF memory management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the memory management functions of the CUDA runtime application programming interface. @@ -5608,9 +5680,13 @@ Some functions have overloaded C++ API template versions documented separately i Stream Ordered Memory Allocator ------------------------------- -**overview** +MANBRIEF Functions for performing allocation and free operations in stream order. Functions for controlling the behavior of the underlying allocator. (CURRENT_FILE) ENDMANBRIEF + + + +**overview** The asynchronous allocator allows the user to allocate and free in stream order. All asynchronous accesses of the allocation must happen between the stream executions of the allocation and the free. If the memory is accessed outside of the promised stream order, a use before allocation / use after free error will cause undefined behavior. @@ -5622,8 +5698,6 @@ The allocator is free to reallocate the memory as long as it can guarantee that **Supported Platforms** - - Whether or not a device supports the integrated stream ordered memory allocator may be queried by calling cudaDeviceGetAttribute() with the device attribute cudaDevAttrMemoryPoolsSupported. .. autofunction:: cuda.bindings.runtime.cudaMallocAsync @@ -5647,15 +5721,17 @@ Whether or not a device supports the integrated stream ordered memory allocator Unified Addressing ------------------ -This section describes the unified addressing functions of the CUDA runtime application programming interface. +MANBRIEF unified addressing functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + +This section describes the unified addressing functions of the CUDA runtime application programming interface. -**Overview** +**Overview** CUDA devices can share a unified address space with the host. @@ -5667,8 +5743,6 @@ CUDA devices can share a unified address space with the host. **Supported Platforms** - - Whether or not a device supports unified addressing may be queried by calling cudaGetDeviceProperties() with the device property cudaDeviceProp::unifiedAddressing. Unified addressing is automatically enabled in 64-bit processes . @@ -5679,8 +5753,6 @@ Unified addressing is automatically enabled in 64-bit processes . **Looking Up Information from Pointer Values** - - It is possible to look up information about the memory which backs a pointer value. For instance, one may want to know if a pointer points to host or device memory. As another example, in the case of device memory, one may want to know on which CUDA device the memory resides. These properties may be queried using the function cudaPointerGetAttributes() Since pointers are unique, it is not necessary to specify information about the pointers specified to cudaMemcpy() and other copy functions. @@ -5693,8 +5765,6 @@ Since pointers are unique, it is not necessary to specify information about the **Automatic Mapping of Host Allocated Host Memory** - - All host memory allocated through all devices using cudaMallocHost() and cudaHostAlloc() is always directly accessible from all devices that support unified addressing. This is the case regardless of whether or not the flags cudaHostAllocPortable and cudaHostAllocMapped are specified. The pointer value through which allocated host memory may be accessed in kernels on all devices that support unified addressing is the same as the pointer value through which that memory is accessed on the host. It is not necessary to call cudaHostGetDevicePointer() to get the device pointer for these allocations. @@ -5709,8 +5779,6 @@ Note that this is not the case for memory allocated using the flag cudaHostAlloc **Direct Access of Peer Memory** - - Upon enabling direct access from a device that supports unified addressing to another peer device that supports unified addressing using cudaDeviceEnablePeerAccess() all memory allocated in the peer device using cudaMalloc() and cudaMallocPitch() will immediately be accessible by the current device. The device pointer value through which any peer's memory may be accessed in the current device is the same pointer value through which that memory may be accessed from the peer device. @@ -5719,8 +5787,6 @@ Upon enabling direct access from a device that supports unified addressing to an **Exceptions, Disjoint Addressing** - - Not all memory may be accessed on devices through the same pointer value through which they are accessed on the host. These exceptions are host memory registered using cudaHostRegister() and host memory allocated using the flag cudaHostAllocWriteCombined. For these exceptions, there exists a distinct host and device address for the memory. The device address is guaranteed to not overlap any valid host pointer range and is guaranteed to have the same value across all devices that support unified addressing. @@ -5732,6 +5798,10 @@ This device address may be queried using cudaHostGetDevicePointer() when a devic Peer Device Memory Access ------------------------- +MANBRIEF peer device memory access functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the peer device memory access functions of the CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaDeviceCanAccessPeer @@ -5741,7 +5811,7 @@ This section describes the peer device memory access functions of the CUDA runti OpenGL Interoperability ----------------------- -impl_private +impl_private @@ -5819,6 +5889,10 @@ This section describes the EGL interoperability functions of the CUDA runtime ap Graphics Interoperability ------------------------- +MANBRIEF graphics interoperability functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the graphics interoperability functions of the CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaGraphicsUnregisterResource @@ -5832,6 +5906,10 @@ This section describes the graphics interoperability functions of the CUDA runti Texture Object Management ------------------------- +MANBRIEF texture object management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the low level texture object management functions of the CUDA runtime application programming interface. The texture object API is only supported on devices of compute capability 3.0 or higher. .. autofunction:: cuda.bindings.runtime.cudaGetChannelDesc @@ -5845,6 +5923,10 @@ This section describes the low level texture object management functions of the Surface Object Management ------------------------- +MANBRIEF surface object management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the low level texture object management functions of the CUDA runtime application programming interface. The surface object API is only supported on devices of compute capability 3.0 or higher. .. autofunction:: cuda.bindings.runtime.cudaCreateSurfaceObject @@ -5863,6 +5945,10 @@ Version Management Error Log Management Functions ------------------------------ +MANBRIEF error log management interface for the CUDA Runtime and Driver (CURRENT_FILE) ENDMANBRIEF + + + This section describes the error log management functions of the CUDA runtime application programming interface. The Error Log Management interface will operate on both the CUDA Driver and CUDA Runtime. .. autoclass:: cuda.bindings.runtime.cudaLogsCallback_t @@ -5875,6 +5961,10 @@ This section describes the error log management functions of the CUDA runtime ap Graph Management ---------------- +MANBRIEF graph management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the graph management functions of CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaGraphCreate @@ -5970,6 +6060,10 @@ This section describes the graph management functions of CUDA runtime applicatio Driver Entry Point Access ------------------------- +MANBRIEF driver entry point access functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the driver entry point access functions of CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaGetDriverEntryPoint @@ -5978,6 +6072,10 @@ This section describes the driver entry point access functions of CUDA runtime a Library Management ------------------ +MANBRIEF library management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the library management functions of the CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaLibraryLoadData @@ -5994,15 +6092,17 @@ This section describes the library management functions of the CUDA runtime appl Execution Context Management ---------------------------- -This section describes the execution context management functions of the CUDA runtime application programming interface. +MANBRIEF execution context management functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + +This section describes the execution context management functions of the CUDA runtime application programming interface. -**Overview** +**Overview** A CUDA execution context cudaExecutionContext_t serves as an abstraction for the contexts exposed by the CUDA Runtime, specifically green contexts and the primary context, and provides a unified programming model and API interface for contexts in the Runtime. @@ -6052,7 +6152,7 @@ Once you have an execution context at hand, you can perform context-level operat -- Performing context-level graph node operations via cudaGraphAddNode by specifying the context in ``nodeParams``\ . Note that individual node creation APIs, such as cudaGraphAddKernelNode, do not support specifying an execution context. +- Performing context-level graph node operations via cudaGraphAddNode by specifying the context in ``nodeParams``. Note that individual node creation APIs, such as cudaGraphAddKernelNode, do not support specifying an execution context. @@ -6072,8 +6172,6 @@ Note: Developers should treat cudaExecutionContext_t as an opaque handle and avo **Lifetime of CUDA Resources** - - The lifetime of CUDA resources (memory, streams, events, modules, etc) is not tied to the lifetime of the execution context. Their lifetime is tied to the device against which they were created. As such, usage of cudaDeviceReset() should be avoided to persist the lifetime of these resources. @@ -6082,16 +6180,12 @@ The lifetime of CUDA resources (memory, streams, events, modules, etc) is not ti **APIs Operating on Current Context** - - The CUDA runtime does not provide a way to set an execution context as current. Since, the majority of the runtime APIs operate on the current context, we document below how the developer can work with these APIs. **APIs Operating on Device Resources** - - To work with these APIs (for example, cudaMalloc, cudaEventCreate, etc), developers are expected to call cudaSetDevice() prior to invoking them. Doing so does not impact functional correctness as these APIs operate on resources that are device-wide. If users have a context handle at hand, they can get the device handle from the context handle using cudaExecutionCtxGetDevice(). @@ -6100,8 +6194,6 @@ To work with these APIs (for example, cudaMalloc, cudaEventCreate, etc), develop **APIs Operating on Context Resources** - - These APIs (for example, cudaLaunchKernel, cudaMemcpyAsync, cudaMemsetAsync, etc) take in a stream and resources are inferred from the context bound to the stream at creation. See cudaExecutionCtxStreamCreate for more details. Developers are expected to use the stream-based APIs for context awareness and always pass an explicit stream handle to ensure context-awareness, and avoid reliance on the default NULL stream, which implicitly binds to the current context. @@ -6112,8 +6204,6 @@ These APIs (for example, cudaLaunchKernel, cudaMemcpyAsync, cudaMemsetAsync, etc **Green Contexts** - - Green contexts are a lightweight alternative to traditional contexts, that can be used to select a subset of device resources. This allows the developer to, for example, select SMs from distinct spatial partitions of the GPU and target them via CUDA stream operations, kernel launches, etc. Here are the broad initial steps to follow to get started: @@ -6216,9 +6306,9 @@ There are two possible partition operations - with cudaDevSmResourceSplitByCount Workqueues -For ``cudaDevResourceTypeWorkqueueConfig``\ , the resource specifies the expected maximum number of concurrent stream-ordered workloads via the ``wqConcurrencyLimit``\ field. The ``sharingScope``\ field determines how workqueue resources are shared: +For ``cudaDevResourceTypeWorkqueueConfig``, the resource specifies the expected maximum number of concurrent stream-ordered workloads via the ``wqConcurrencyLimit`` field. The ``sharingScope`` field determines how workqueue resources are shared: -- ``cudaDevWorkqueueConfigScopeDeviceCtx:``\ Use all shared workqueue resources across all contexts (default driver behavior). +- ``cudaDevWorkqueueConfigScopeDeviceCtx:`` Use all shared workqueue resources across all contexts (default driver behavior). @@ -6226,7 +6316,7 @@ For ``cudaDevResourceTypeWorkqueueConfig``\ , the resource specifies the expecte -- ``cudaDevWorkqueueConfigScopeGreenCtxBalanced:``\ When possible, use non-overlapping workqueue resources with other balanced green contexts. +- ``cudaDevWorkqueueConfigScopeGreenCtxBalanced:`` When possible, use non-overlapping workqueue resources with other balanced green contexts. @@ -6238,17 +6328,17 @@ For ``cudaDevResourceTypeWorkqueueConfig``\ , the resource specifies the expecte The maximum concurrency limit depends on ::CUDA_DEVICE_MAX_CONNECTIONS and can be queried from the device via cudaDeviceGetDevResource. Configurations may exceed this concurrency limit, but the driver will not guarantee that work submission remains non-overlapping. -For ``cudaDevResourceTypeWorkqueue``\ , the resource represents a pre-existing workqueue that can be retrieved from existing execution contexts. This allows reusing workqueue resources across different execution contexts. +For ``cudaDevResourceTypeWorkqueue``, the resource represents a pre-existing workqueue that can be retrieved from existing execution contexts. This allows reusing workqueue resources across different execution contexts. On Concurrency -Even if the green contexts have disjoint SM partitions, it is not guaranteed that the kernels launched in them will run concurrently or have forward progress guarantees. This is due to other resources that could cause a dependency. Using a combination of disjoint SMs and ``cudaDevWorkqueueConfigScopeGreenCtxBalanced``\ workqueue configurations can provide the best chance of avoiding interference. More resources will be added in the future to provide stronger guarantees. +Even if the green contexts have disjoint SM partitions, it is not guaranteed that the kernels launched in them will run concurrently or have forward progress guarantees. This is due to other resources that could cause a dependency. Using a combination of disjoint SMs and ``cudaDevWorkqueueConfigScopeGreenCtxBalanced`` workqueue configurations can provide the best chance of avoiding interference. More resources will be added in the future to provide stronger guarantees. Additionally, there are two known scenarios, where its possible for the workload to run on more SMs than was provisioned (but never less). -- On Volta+ MPS: When ``CUDA_MPS_ACTIVE_THREAD_PERCENTAGE``\ is used, the set of SMs that are used for running kernels can be scaled up to the value of SMs used for the MPS client. +- On Volta+ MPS: When ``CUDA_MPS_ACTIVE_THREAD_PERCENTAGE`` is used, the set of SMs that are used for running kernels can be scaled up to the value of SMs used for the MPS client. @@ -6281,26 +6371,28 @@ impl_private +MANBRIEF C++ high level API functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF - -This section describes the C++ high level API functions of the CUDA runtime application programming interface. To use these functions, your application needs to be compiled with the ``nvcc``\ compiler. +This section describes the C++ high level API functions of the CUDA runtime application programming interface. To use these functions, your application needs to be compiled with the ``nvcc`` compiler. Interactions with the CUDA Driver API ------------------------------------- -This section describes the interactions between the CUDA Driver API and the CUDA Runtime API +MANBRIEF interactions between CUDA Driver API and CUDA Runtime API (CURRENT_FILE) ENDMANBRIEF +This section describes the interactions between the CUDA Driver API and the CUDA Runtime API -**Execution Contexts** +**Execution Contexts** + The CUDA Runtime provides cudaExecutionContext_t as an abstraction over driver-level contexts—specifically, green contexts and the primary context. There are two primary ways to obtain an execution context: @@ -6331,8 +6423,6 @@ Note: Developers should treat cudaExecutionContext_t as an opaque handle and avo **Primary Context (aka Device Execution Context)** - - The primary context is the default execution context associated with a device in the Runtime. It can be obtained via a call to cudaDeviceGetExecutionCtx(). There is a one-to-one mapping between CUDA devices in the runtime and their primary contexts within a process. From the CUDA Runtime’s perspective, a device and its primary context are functionally synonymous. @@ -6345,8 +6435,6 @@ Unless explicitly overridden, either by making a different context current via t **Initialization and Tear-Down** - - Unless an explicit execution context is specified (see “Execution Context Management” for APIs), CUDA Runtime API calls operate on the CUDA Driver ::CUcontext which is current to the calling host thread. If no ::CUcontext is current to the calling thread when a CUDA Runtime API call which requires an active context is made, then the primary context (device execution context) for a device will be selected, made current to the calling thread, and initialized. The context will be initialized using the parameters specified by the CUDA Runtime API functions cudaSetDeviceFlags(), ::cudaD3D9SetDirect3DDevice(), ::cudaD3D10SetDirect3DDevice(), ::cudaD3D11SetDirect3DDevice(), cudaGLSetGLDevice(), and cudaVDPAUSetVDPAUDevice(). Note that these functions will fail with cudaErrorSetOnActiveProcess if they are called when the primary context for the specified device has already been initialized, except for cudaSetDeviceFlags() which will simply overwrite the previous settings. The function cudaInitDevice() ensures that the primary context is initialized for the requested device but does not make it current to the calling thread. @@ -6363,8 +6451,6 @@ Note that primary contexts are shared resources. It is recommended that the prim **CUcontext Interoperability** - - Note that the use of multiple ::CUcontext s per device within a single process will substantially degrade performance and is strongly discouraged. Instead, it is highly recommended to either use execution contexts cudaExecutionContext_t or the implicit one-to-one device-to-primary context mapping for the process provided by the CUDA Runtime API. If a non-primary ::CUcontext created by the CUDA Driver API is current to a thread then the CUDA Runtime API calls to that thread will operate on that ::CUcontext, with some exceptions listed below. Interoperability between data types is discussed in the following sections. @@ -6381,8 +6467,6 @@ Please note that attaching to legacy CUcontext (those with a version of 3010 as **Interactions between CUstream and cudaStream_t** - - The types ::CUstream and cudaStream_t are identical and may be used interchangeably. @@ -6391,8 +6475,6 @@ The types ::CUstream and cudaStream_t are identical and may be used interchangea **Interactions between CUevent and cudaEvent_t** - - The types ::CUevent and cudaEvent_t are identical and may be used interchangeably. @@ -6401,13 +6483,11 @@ The types ::CUevent and cudaEvent_t are identical and may be used interchangeabl **Interactions between CUarray and cudaArray_t** +The types ::CUarray and struct ::cudaArray \* represent the same data type and may be used interchangeably by casting the two types between each other. +In order to use a ::CUarray in a CUDA Runtime API function which takes a struct ::cudaArray \*, it is necessary to explicitly cast the ::CUarray to a struct ::cudaArray \*. -The types ::CUarray and struct ::cudaArray * represent the same data type and may be used interchangeably by casting the two types between each other. - -In order to use a ::CUarray in a CUDA Runtime API function which takes a struct ::cudaArray *, it is necessary to explicitly cast the ::CUarray to a struct ::cudaArray *. - -In order to use a struct ::cudaArray * in a CUDA Driver API function which takes a ::CUarray, it is necessary to explicitly cast the struct ::cudaArray * to a ::CUarray . +In order to use a struct ::cudaArray \* in a CUDA Driver API function which takes a ::CUarray, it is necessary to explicitly cast the struct ::cudaArray \* to a ::CUarray . @@ -6415,8 +6495,6 @@ In order to use a struct ::cudaArray * in a CUDA Driver API function which takes **Interactions between CUgraphicsResource and cudaGraphicsResource_t** - - The types ::CUgraphicsResource and cudaGraphicsResource_t represent the same data type and may be used interchangeably by casting the two types between each other. In order to use a ::CUgraphicsResource in a CUDA Runtime API function which takes a cudaGraphicsResource_t, it is necessary to explicitly cast the ::CUgraphicsResource to a cudaGraphicsResource_t. @@ -6429,8 +6507,6 @@ In order to use a cudaGraphicsResource_t in a CUDA Driver API function which tak **Interactions between CUtexObject and cudaTextureObject_t** - - The types ::CUtexObject and cudaTextureObject_t represent the same data type and may be used interchangeably by casting the two types between each other. In order to use a ::CUtexObject in a CUDA Runtime API function which takes a cudaTextureObject_t, it is necessary to explicitly cast the ::CUtexObject to a cudaTextureObject_t. @@ -6443,8 +6519,6 @@ In order to use a cudaTextureObject_t in a CUDA Driver API function which takes **Interactions between CUsurfObject and cudaSurfaceObject_t** - - The types ::CUsurfObject and cudaSurfaceObject_t represent the same data type and may be used interchangeably by casting the two types between each other. In order to use a ::CUsurfObject in a CUDA Runtime API function which takes a cudaSurfaceObject_t, it is necessary to explicitly cast the ::CUsurfObject to a cudaSurfaceObject_t. @@ -6457,8 +6531,6 @@ In order to use a cudaSurfaceObject_t in a CUDA Driver API function which takes **Interactions between CUfunction and cudaFunction_t** - - The types ::CUfunction and cudaFunction_t represent the same data type and may be used interchangeably by casting the two types between each other. In order to use a cudaFunction_t in a CUDA Driver API function which takes a ::CUfunction, it is necessary to explicitly cast the cudaFunction_t to a ::CUfunction. @@ -6469,8 +6541,6 @@ In order to use a cudaFunction_t in a CUDA Driver API function which takes a ::C **Interactions between CUkernel and cudaKernel_t** - - The types ::CUkernel and cudaKernel_t represent the same data type and may be used interchangeably by casting the two types between each other. In order to use a cudaKernel_t in a CUDA Driver API function which takes a ::CUkernel, it is necessary to explicitly cast the cudaKernel_t to a ::CUkernel. @@ -6480,6 +6550,10 @@ In order to use a cudaKernel_t in a CUDA Driver API function which takes a ::CUk Profiler Control ---------------- +MANBRIEF profiler control functions of the CUDA runtime API (CURRENT_FILE) ENDMANBRIEF + + + This section describes the profiler control functions of the CUDA runtime application programming interface. .. autofunction:: cuda.bindings.runtime.cudaProfilerStart diff --git a/cuda_bindings/pixi.toml b/cuda_bindings/pixi.toml index dd0b55f23f5..27fab4ac2bd 100644 --- a/cuda_bindings/pixi.toml +++ b/cuda_bindings/pixi.toml @@ -33,7 +33,6 @@ myst-parser = "*" numpy = "*" numpydoc = "*" pip = "*" -pyclibrary = "*" pydata-sphinx-theme = "*" pytest = "*" scipy = "*" @@ -96,9 +95,6 @@ backend = { name = "pixi-build-python", version = "*" } [package.build.config] compilers = ["c", "cxx"] -[package.build.config.env] -CUDA_PYTHON_PARSER_CACHING = "1" - [package.build.target.linux-64.config.env] CUDA_HOME = "$PREFIX/targets/x86_64-linux" CUDA_PYTHON_PARALLEL_LEVEL = "$(nproc)" @@ -120,7 +116,6 @@ cuda-version = "*" setuptools = ">=80" setuptools-scm = ">=8" cython = ">=3.2,<3.3" -pyclibrary = ">=0.1.7" cuda-pathfinder = { path = "../cuda_pathfinder" } cuda-cudart-static = "*" cuda-nvrtc-dev = "*" diff --git a/cuda_bindings/pyproject.toml b/cuda_bindings/pyproject.toml index c3f15294612..08b63cb62a2 100644 --- a/cuda_bindings/pyproject.toml +++ b/cuda_bindings/pyproject.toml @@ -6,7 +6,6 @@ requires = [ "setuptools_scm[simple]>=8,<10.1", "vcs-versioning<2.0", "cython>=3.2,<3.3", - "pyclibrary>=0.1.7", "cuda-pathfinder>=1.5", ] build-backend = "build_hooks"